Zod 4
Published on: 2025-07-03 10:24:58
After a year of active development: Zod 4 is now stable! It's faster, slimmer, more tsc -efficient, and implements some long-requested features.
Huge thanks to Clerk, who supported my work on Zod 4 through their extremely generous OSS Fellowship. They were an amazing partner throughout the (much longer than anticipated!) development process. ❤️
To simplify the migration process both for users and Zod's ecosystem of associated libraries, Zod 4 is being published alongside Zod 3 as part of the [email protected] release. To upgrade:
npm upgrade zod@^3.25.0
Then import Zod 4 from the "/v4" subpath:
import { z } from "zod/v4" ;
Refer to the Migration guide for a complete list of breaking changes. This page covers the new features and improvements.
Zod v3.0 was released in May 2021 (!). Back then Zod had 2700 stars on GitHub and 600k weekly downloads. Today it has 37.8k stars and 31M weekly downloads (up from 23M when the beta came out 6 weeks ago!). After 24 minor versions, the Zod 3 codebase
... Read full article.