Migrating to Zod v4.1.3
Version v4.1.3 introduces 1 breaking change. This guide details how to update your code.
Released: 8/26/2025
1
Breaking Changes
2
Migration Steps
3
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
stringToBooleantoJSONSchemapayloadSchemaBreaking Changes
●Issue #1
The utility function 'stringToBoolean' has been removed from the codebase. Replace any direct imports or calls to this function with native boolean parsing or custom logic.
Migration Steps
- 1Remove all references to 'stringToBoolean' as it has been dropped.
- 2Update any JSON Schema generation logic targeting openapi-3.0 to benefit from corrected record and numeric range outputs.
Release Summary
Version 4.1.3 focuses on fixing JSON Schema generation bugs for OpenAPI 3.0 and Draft-7, while also removing the stringToBoolean utility.
Need More Details?
View the full release notes and all changes for Zod v4.1.3.
View Full Changelog