Change8

v3.25.68

Breaking Changes
📦 zodView on GitHub →
1 breaking4 features🐛 3 fixes🔧 5 symbols

Summary

Release 3.25.68 introduces z.stringFormat(), removes the 'example' and 'examples' properties, and updates internal dependencies and documentation regarding treeshaking.

⚠️ Breaking Changes

  • The 'example' and 'examples' properties have been entirely dropped from the schema definition. Users should remove these from their Zod schemas as they are no longer supported.

Migration Steps

  1. Remove any usage of `.example()` or `.examples()` from Zod schemas as they have been removed.
  2. Update lint-staged to v16 if using the project's internal tooling.
  3. Review the new treeshaking documentation to ensure optimal bundle sizes.

✨ New Features

  • Added zod-xlsx to the ecosystem documentation.
  • Added `z.stringFormat()` for enhanced string validation.
  • Added documentation for `reportInput`.
  • Added a dedicated discussion on treeshaking to the documentation.

🐛 Bug Fixes

  • Added 'exact' property to length check issues in v4.
  • Fixed formatting and build issues.
  • Resolved issue #4035.

🔧 Affected Symbols

z.stringFormatreportInputZodStringZodIssueCode.too_smallZodIssueCode.too_big