Skip to content

Bug: Zod 3 support listed by parser package #4189

@ben-eb

Description

@ben-eb

Expected Behavior

parser library should not list Zod 3 as a compatible peer:

Current Behavior

Zod 3 is listed as a compatible peer dependency, but it is not (as envelopes now use Zod 4 exclusive functions)

Code snippet

Not specific to any code sample, the problem is in the version range specified by package.json

Steps to Reproduce

  • Install Zod 3 and parser dependency;
  • Try to use a schema and note the type incompatibilities. I noticed this when using types for SNS;

Possible Solution

Remove Zod 3 from peer version range

Powertools for AWS Lambda (TypeScript) version

latest

AWS Lambda function runtime

22.x

Packaging format used

npm

Execution logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcompletedThis item is complete and has been merged/shippedparserThis item relates to the Parser Utility

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions