Open
Description
Summary
Zod 4 is stable and available to use today (https://zod.dev/v4). It comes with a range of improvements which I won't reiterate here.
Why is this needed?
- Significant performance improvements have been benchmarked should reduce costs for people running with the Parser component.
- 2x reduction in core bundle size should lead to reduced Lambda function packages.
- Multiple new features and a significantly improved API.
Which area does this relate to?
Parser
Solution
Update to Zod 4 for Parser. On the surface, it looks like many API's are backwards compatible. See https://zod.dev/v4/changelog for full migration guide. Most changes also seem to be deprecated rather than backwards breaking.
Acknowledgment
- This request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Ideas