v3.25.49
Breaking Changes📦 zodView on GitHub →
⚠ 1 breaking✨ 2 features🐛 2 fixes🔧 3 symbols
Summary
This release updates z.custom to treat validation issues as fatal and includes several documentation fixes and minor feature enhancements for regex and enums.
⚠️ Breaking Changes
- Validation issues in z.custom are now fatal. This means if a z.custom check fails, subsequent refinements or checks in the chain will not execute for that value.
Migration Steps
- Review usage of z.custom; ensure that logic does not rely on non-fatal error behavior for subsequent validations.
✨ New Features
- Added includes position regex support.
- Added type to literal enum.
🐛 Bug Fixes
- Fixed typos on the 'Defining schemas' documentation page.
- Removed invalid z.literal(Symbol) example from documentation.
🔧 Affected Symbols
z.customz.literalz.enum