Dev Tools · 2h ago
Zod 4 Rewrite Brings Tree-Shakeable Validators and Faster Parsing
Zod 4, a major rewrite of the TypeScript schema validation library, is now stable. Key changes include top-level string format functions like z.email() and a unified error parameter. The deprecated Zod 3 APIs still work with warnings, enabling incremental migration.
Meridian48 take
The performance gains and tree-shaking improvements are real, but the API churn means teams should budget time for migration, even with backward compatibility.
Read the full reporting
What Changed in Zod 4, and How I Migrated Production Schemas →
DEV Community
zod-4typescript-validation