Skip to content

Releases: colinhacks/zod

v4.0.5

10 Jul 22:36
Compare
Choose a tag to compare

Commits:

v4.0.4

10 Jul 20:49
Compare
Choose a tag to compare

Commits:

  • 9335f05 Adds ZodFirstPartyTypeKind stub to fix module resolution failure inside zod-to-json-schema

v4.0.3

10 Jul 18:20
Compare
Choose a tag to compare

Commits:

v4.0.0

10 Jul 00:25
Compare
Choose a tag to compare

With this release, [email protected] has been published to npm. There were no code changes between 3.25.76 and 4.0.0!

Zod 4 has been stable for the past 6 weeks, but it was published inside [email protected] on npm. this transitionary window gave the ecosystem time to incrementally support for Zod 4 (without dropping support for Zod 3). As there is now near-universal support for Zod 4 in the ecosystem, ths time feels right to finally put a bow on things 🎀

To upgrade to Zod 4:

npm upgrade zod@^4.0.0

If you’ve already migrated to Zod 4 using the subpaths, there are no changes required. however you can optionally simplify your imports (recommended)

// after upgrading to [email protected]:
import * as z from "zod"; // Zod 4 (regular)
import * as z from "zod/mini" // Zod 4 Mini

// these still work, but are no longer needed 
import * as z from "zod/v4"; 
import * as z from "zod/v4-mini":

// if you still need Zod 3
import * as z from "zod/v3"; // Zod 3

Library authors — if you've already implemented Zod 4 support according to the best practices outlined in the Library authors guide, bump your peer dependency to include zod@^4.0.0:

// package.json
{
  "peerDependencies": {
    "zod": "^3.25.0 || ^4.0.0"
  }
}

There should be no other code changes necessary. No code changes were made between the latest 3.25.x release and 4.0.0. This does not require a major version bump.

v3.25.76

08 Jul 09:10
7baee4e
Compare
Choose a tag to compare

Commits:

v3.25.75

07 Jul 07:40
Compare
Choose a tag to compare

Commits:

  • c5f349b Fix z.undefined() behavior in toJSONSchema

v3.25.74

04 Jul 17:43
Compare
Choose a tag to compare

Commits:

v3.25.73

04 Jul 08:54
1021d3c
Compare
Choose a tag to compare

Commits:

v3.25.72

04 Jul 02:52
Compare
Choose a tag to compare

Commits:

v3.25.71

03 Jul 02:57
Compare
Choose a tag to compare

Commits: