v3.25.35
Breaking Changes📦 zodView on GitHub →
⚠ 1 breaking✨ 1 features🐛 2 fixes🔧 3 symbols
Summary
Version 3.25.35 improves discriminated union handling, fixes the isPlainObject utility, and removes default values from JSON Schemas for transforming schemas.
⚠️ Breaking Changes
- JSON Schema generation for transforming schemas no longer includes default values, which may affect tools relying on these defaults for validation or UI generation.
Migration Steps
- If your workflow relies on default values within JSON Schemas for transforming schemas, manually verify the output of .jsonSchema() after upgrading.
✨ New Features
- Improved implementation for discriminated unions to enhance performance or reliability.
🐛 Bug Fixes
- Fixed the isPlainObject utility function to correctly identify plain objects.
- Fixed linting issues in the codebase.
🔧 Affected Symbols
isPlainObjectz.discriminatedUnionz.transform