v4.3.4
Breaking Changes📦 zodView on GitHub →
⚠ 2 breaking✨ 3 features🐛 1 fixes🔧 4 symbols
Summary
This release introduces patternProperties support for looseRecord and improves documentation, while removing the .refine() method from ZodMiniType and dropping ISO time in fromJSONSchema.
⚠️ Breaking Changes
- Removed .refine() method from ZodMiniType, which may break custom validation logic relying on this method.
- Dropped ISO time support in fromJSONSchema conversion.
Migration Steps
- Replace usage of .refine() on ZodMiniType instances with alternative validation logic.
- Update JSON schema conversion logic if relying on ISO time formatting.
✨ New Features
- Added support for patternProperties in looseRecord schemas.
- Added new integration tests to the suite.
- Improved documentation for looseRecord.
🐛 Bug Fixes
- Fixed linting issues across the codebase.
🔧 Affected Symbols
ZodMiniTypelooseRecordfromJSONSchemapatternProperties