-
Notifications
You must be signed in to change notification settings - Fork 171
Closed
Labels
bugSomething isn't workingSomething isn't workingcompletedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedparserThis item relates to the Parser UtilityThis item relates to the Parser Utility
Description
Expected Behavior
parser
library should not list Zod 3 as a compatible peer:
"zod": "^3.25.0 || ^4.0.0" |
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 workingSomething isn't workingcompletedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedparserThis item relates to the Parser UtilityThis item relates to the Parser Utility
Type
Projects
Status
Shipped