Migrating to Zod v3.25.68
Version v3.25.68 introduces 1 breaking change. This guide details how to update your code.
Released: 7/2/2025
1
Breaking Changes
3
Migration Steps
5
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
z.stringFormatreportInputZodStringZodIssueCode.too_smallZodIssueCode.too_bigBreaking Changes
●Issue #1
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
- 1Remove any usage of `.example()` or `.examples()` from Zod schemas as they have been removed.
- 2Update lint-staged to v16 if using the project's internal tooling.
- 3Review the new treeshaking documentation to ensure optimal bundle sizes.
Release Summary
Release 3.25.68 introduces z.stringFormat(), removes the 'example' and 'examples' properties, and updates internal dependencies and documentation regarding treeshaking.
Need More Details?
View the full release notes and all changes for Zod v3.25.68.
View Full Changelog