Introducing Zod 4 | Zod
After a year of active development: Zod 4 is now stable! It’s faster, slimmer, more tsc-efficient, and implements some long-requested features.
Zod 4.1 introduced a new z.codec() API for defining bi-directional transformations in Zod.