Never miss a release that matters

AI-powered summaries of every GitHub release.

AI Summaries

Changelogs condensed into clear, actionable insights.

Always Free

Track up to 5 packages at no cost, forever.

Weekly Digest

A curated summary of every release, delivered weekly.

Get Started Free
zodv4.x
42 releases

TL;DR

Zod v4.4.0 introduces stricter parsing for tuples and object properties, potentially breaking code relying on previously accepted invalid inputs, but improves data integrity and predictability.

Breaking

  • Tuple Defaults: Tuple parsing now accurately reflects defaults, optional tails, and undefined values, potentially changing parsed output.
  • Required z.undefined(): Properties with z.undefined() are now treated as required; use .optional() if the key itself may be absent.
  • .merge() with Refinements: .merge() now throws when the receiver has refinements; use .extend() or .safeExtend() instead.
  • JSON Schema $defs ID: Redundant id fields are removed from JSON Schema $defs entries, potentially affecting consumers reading those internal fields.

New

  • Improved Tuple Handling: More accurate handling of defaults and optional elements within tuples.
  • Safer Object Composition: Encourages use of .extend() and .safeExtend() over .merge() for clearer object composition.

Fixes Worth Knowing

  • Fixed an issue where absent object keys were not correctly handled during parsing.
  • Heading anchor links in documentation now function correctly.
  • Improved discriminated union typing for better type safety.
  • Corrected tuple length errors for more consistent behavior.
v4.4.3v4.4.3
May 4, 2026
v4.4.2v4.4.2
May 1, 2026
v4.4.1v4.4.1
Apr 29, 2026
v4.4.0v4.4.0
Apr 29, 2026
v4.3.6v4.3.6
Jan 22, 2026
v4.3.5v4.3.5
Jan 4, 2026
v4.3.4v4.3.4
Dec 31, 2025
v4.3.3v4.3.3
Dec 31, 2025
v4.3.2v4.3.2
Dec 31, 2025
v4.3.1v4.3.1
Dec 31, 2025
v4.3.0v4.3.0
Dec 31, 2025
v4.2.1v4.2.1
Dec 16, 2025
v4.2.0v4.2.0
Dec 15, 2025
v4.1.13v4.1.13
Nov 24, 2025
v4.1.12v4.1.12
Oct 6, 2025
v4.1.11v4.1.11
Sep 20, 2025
v4.1.10v4.1.10
Sep 20, 2025
v4.1.9v4.1.9
Sep 16, 2025
v4.1.8v4.1.8
Sep 11, 2025
v4.1.7v4.1.7
Sep 11, 2025
v4.1.5v4.1.5
Aug 28, 2025
v4.1.4v4.1.4
Aug 27, 2025
v4.1.3v4.1.3
Aug 26, 2025
v4.1.2v4.1.2
Aug 25, 2025
v4.1.1v4.1.1
Aug 24, 2025
v4.1.0v4.1.0
Aug 23, 2025
v4.0.17v4.0.17
Aug 9, 2025
v4.0.16v4.0.16
Aug 8, 2025
v4.0.15v4.0.15
Aug 6, 2025
v4.0.14v4.0.14
Jul 30, 2025
v4.0.13v4.0.13
Jul 29, 2025
v4.0.12v4.0.12
Jul 29, 2025
v4.0.11v4.0.11
Jul 29, 2025
v4.0.10v4.0.10
Jul 25, 2025
v4.0.9v4.0.9
Jul 24, 2025
v4.0.8v4.0.8
Jul 24, 2025
v4.0.7v4.0.7
Jul 23, 2025
v4.0.6v4.0.6
Jul 23, 2025
v4.0.5v4.0.5
Jul 10, 2025
v4.0.4v4.0.4
Jul 10, 2025
v4.0.3v4.0.3
Jul 10, 2025
v4.0.1v4.0.0
Jul 10, 2025
zodv3.x
143 releases

TL;DR

Zod now supports defining custom string formats with z.stringFormat(), enabling more precise string validation beyond built-in types like email or URL.

New

  • Custom String Formats: z.stringFormat() allows developers to define and validate strings against regular expressions directly within their Zod schemas.
  • Esperanto Locale: Added support for the Esperanto (eo) locale for improved internationalization.
  • Ecosystem Integrations: Several new integrations were added to the ecosystem listing, including svelte-jsonschema-form and zod-xlsx.

Fixes Worth Knowing

  • Fixed an issue with z.undefined() not correctly serializing to JSON Schema.
  • Corrected optionality handling within schemas.
  • Improved error messages for length checks, now including exact for precise validation.
  • Fixed a bug where defaults were being overwritten.

Before You Upgrade

  • If you rely on the internal structure of Zod, be aware that source files have been moved to a /src directory and then reverted, which may affect some tooling.
v3.25.76v3.25.76
Jul 8, 2025
v3.25.75v3.25.75
Jul 7, 2025
v3.25.74v3.25.74
Jul 4, 2025
v3.25.73v3.25.73
Jul 4, 2025
v3.25.72v3.25.72
Jul 4, 2025
v3.25.71v3.25.71
Jul 3, 2025
v3.25.70v3.25.70
Jul 3, 2025
v3.25.69v3.25.69
Jul 2, 2025
v3.25.68v3.25.68
Jul 2, 2025
v3.25.67v3.25.67
Jun 16, 2025
v3.25.66v3.25.66
Jun 16, 2025
v3.25.65v3.25.65
Jun 16, 2025
v3.25.64v3.25.64
Jun 13, 2025
v3.25.63v3.25.63
Jun 12, 2025
v3.25.62v3.25.62
Jun 11, 2025
v3.25.61v3.25.61
Jun 11, 2025
v3.25.60v3.25.60
Jun 11, 2025
v3.25.59v3.25.59
Jun 11, 2025
v3.25.58v3.25.58
Jun 10, 2025
v3.25.57v3.25.57
Jun 10, 2025
v3.25.56v3.25.56
Jun 6, 2025
v3.25.55v3.25.55
Jun 6, 2025
v3.25.54v3.25.54
Jun 6, 2025
v3.25.53v3.25.53
Jun 6, 2025
v3.25.52v3.25.52
Jun 6, 2025
v3.25.51v3.25.51
Jun 4, 2025
v3.25.50v3.25.50
Jun 3, 2025
v3.25.49v3.25.49
Jun 2, 2025
v3.25.48v3.25.48
Jun 2, 2025
v3.25.47v3.25.47
Jun 2, 2025
v3.25.46v3.25.46
Jun 1, 2025
v3.25.45v3.25.45
Jun 1, 2025
v3.25.44v3.25.44
Jun 1, 2025
v3.25.43v3.25.43
May 31, 2025
v3.25.42v3.25.42
May 30, 2025
v3.25.41v3.25.41
May 30, 2025
v3.25.40v3.25.40
May 30, 2025
v3.25.39v3.25.39
May 29, 2025
v3.25.38v3.25.38
May 29, 2025
v3.25.37v3.25.37
May 29, 2025
v3.25.36v3.25.36
May 29, 2025
v3.25.35v3.25.35
May 29, 2025
v3.25.34v3.25.34
May 28, 2025
v3.25.33v3.25.33
May 28, 2025
v3.25.32v3.25.32
May 28, 2025
v3.25.31v3.25.31
May 27, 2025
v3.25.30v3.25.30
May 27, 2025
v3.25.29v3.25.29
May 26, 2025
v3.25.28v3.25.28
May 23, 2025
v3.25.27v3.25.27
May 23, 2025
v3.25.26v3.25.26
May 23, 2025
v3.25.25v3.25.25
May 23, 2025
v3.25.24v3.25.24
May 23, 2025
v3.25.23v3.25.23
May 22, 2025
v3.25.22v3.25.22
May 22, 2025
v3.25.21v3.25.21
May 22, 2025
v3.25.20v3.25.20
May 21, 2025
v3.25.18v3.25.18
May 21, 2025
v3.25.17v3.25.17
May 21, 2025
v3.25.16v3.25.16
May 21, 2025
v3.25.15v3.25.15
May 21, 2025
v3.25.14v3.25.14
May 21, 2025
v3.25.13v3.25.13
May 21, 2025
v3.25.12v3.25.12
May 21, 2025
v3.25.11v3.25.11
May 21, 2025
v3.25.10v3.25.10
May 21, 2025
v3.25.9v3.25.9
May 21, 2025
v3.25v3.25.0
May 21, 2025
v3.24.4v3.24.4
May 4, 2025
v3.24.3v3.24.3
Apr 16, 2025
v3.24.2v3.24.2
Feb 11, 2025
v3.24.1v3.24.1
Dec 11, 2024
v3.24.0v3.24.0
Dec 10, 2024
v3.23.8v3.23.8
May 8, 2024
v3.23.7v3.23.7
May 7, 2024
v3.23.6v3.23.6
May 3, 2024
v3.23.5v3.23.5
Apr 29, 2024
v3.23.4v3.23.4
Apr 23, 2024
v3.23.3v3.23.3
Apr 22, 2024
v3.23.2v3.23.2
Apr 22, 2024
v3.23.1v3.23.1
Apr 22, 2024
v3.23.0v3.23.0
Apr 21, 2024
v3.22.4v3.22.4
Oct 4, 2023
v3.22.3v3.22.3
Oct 3, 2023
v3.22.2v3.22.2
Aug 19, 2023
v3.22.1v3.22.1
Aug 15, 2023
v3.22.0v3.22.0
Aug 14, 2023
v3.21.4v3.21.4
Mar 7, 2023
v3.21.3v3.21.3
Mar 6, 2023
v3.21.2v3.21.2
Mar 6, 2023
v3.21.1v3.21.1
Mar 6, 2023
v3.21.0v3.21.0
Mar 4, 2023
v3.20.6v3.20.6
Feb 9, 2023
v3.20.5v3.20.5
Feb 8, 2023
v3.20.4v3.20.4
Feb 8, 2023
v3.20.3v3.20.3
Feb 8, 2023
v3.20.2v3.20.2
Dec 12, 2022
v3.20.1v3.20.1
Dec 12, 2022
v3.20v3.20
Dec 12, 2022
Dec 4, 2022
v3.19.1v3.19.1
Sep 11, 2022
v3.19.0v3.19.0
Sep 6, 2022
v3.18.0v3.18.0
Aug 9, 2022
v3.17.10v3.17.10
Jul 22, 2022
v3.17.9v3.17.9
Jul 18, 2022
v3.17.8v3.17.8
Jul 18, 2022
v3.17.7v3.17.7
Jul 18, 2022
v3.17.6v3.17.6
Jul 18, 2022
v3.17.5v3.17.5
Jul 18, 2022
v3.17.4v3.17.4
Jul 18, 2022
v3.17.3v3.17.3
May 23, 2022
v3.17.2v3.17.2
May 22, 2022
v3.17.0v3.17.0
May 22, 2022
v3.16.1v3.16.1
May 20, 2022
v3.16.0v3.16.0
May 12, 2022
v3.15.1v3.15.1
May 6, 2022
v3.15.0v3.15.0
May 6, 2022
v3.14.5v3.14.5
May 6, 2022
v3.14.4v3.14.4
Apr 4, 2022
v3.14.3v3.14.3
Mar 26, 2022
v3.14.2v3.14.2
Mar 19, 2022
v3.14.1v3.14.1
Mar 18, 2022
v3.14.0v3.14.0
Mar 18, 2022
v3.13.4v3.13.4
Mar 2, 2022
v3.13.2v3.13.2
Mar 2, 2022
v3.12.0v3.12.0
Feb 24, 2022
v3.11.6v3.11.6
Oct 26, 2021
v3.11.4v3.11.4
Oct 24, 2021
v3.11.3v3.11.3
Oct 23, 2021
v3.10.3v3.10.3
Oct 19, 2021
v3.9.8v3.9.8
Oct 5, 2021
v3.9.0v3.9.0
Sep 25, 2021
v3.8.0v3.8.0
Aug 23, 2021
v3.7.3v3.7.3
Aug 19, 2021
v3.7.0v3.7.0
Aug 1, 2021
v3.6.1v3.6.1
Aug 1, 2021
v3.5.1v3.5.1
Jul 14, 2021
v3.5.0v3.5.0
Jul 6, 2021
v3.4.2v3.4.2
Jul 6, 2021
v3.4.0v3.4.0
Jul 6, 2021
v3.2v3.2
Jun 13, 2021
v3.1.0v3.1.0
May 26, 2021
v3.0.0v3.0.0
May 17, 2021
zodv4.xprerelease
1 release

TL;DR

Zod has been restructured into three packages – zod, @zod/mini (tree-shakable Zod), and @zod/core (shared logic) – and is now in beta, requiring updates to your import statements.

Breaking

  • Import paths have changed (package restructuring).
  • Zod 4 is not yet fully stable (beta release).

New

  • @zod/mini provides a smaller bundle size (optimized for web).

Before You Upgrade

  • Update your imports to use the new package structure: zod, @zod/mini, and @zod/core.
  • Install the beta versions using npm upgrade zod@next and npm install @zod/mini@next.
v4.0.0-betav4.0.0-beta
Apr 10, 2025
zodv3.xprerelease
9 releases

TL;DR

Zod now validates date, time, and duration strings using the ISO 8601 standard, expanding its data validation capabilities.

Breaking

  • .pick() and .omit() now strictly enforce known keys, potentially causing compiler errors if invalid keys are used.
  • The default generic type in ZodType changed to unknown, which may affect some recursive schema definitions or generic functions.
  • Changes to ZodFirstPartySchemaTypes may impact codegen libraries.

New

  • Date/Time/Duration Validation: Zod can now validate ISO 8601 date, time, and duration strings using z.string().date(), z.string().time(), and z.string().duration().
  • Improved Datetime Handling: z.string().datetime() now supports unqualified (timezone-less) datetimes with local: true and validates day-of-month for accuracy.
  • Base64 Validation: Added z.string().base64() for validating base64 encoded strings.

Fixes Worth Knowing

  • Fixed an issue where z.record().parse could filter out undefined values.
  • Improved performance of enum comparisons.
  • Corrected email validation to disallow commas.
  • Fixed a bug in cuid2 validation.

Before You Upgrade

  • Review your use of .pick() and .omit() to ensure only valid keys are used.
  • If you are using recursive schemas or generic functions with ZodType, verify compatibility with the new default generic type of unknown.
v3.23.0-beta.0v3.23.0-beta.0
Apr 18, 2024
3.0.0-beta33.0.0-beta3
May 16, 2021
3.0.0-alpha.393.0.0-alpha.39
Apr 25, 2021
v3.0.0-alpha.33v3.0.0-alpha.33
Mar 25, 2021
v3.0.0-alpha.32v3.0.0-alpha.32
Mar 25, 2021
v3.0.0-alpha.19v3.0.0-alpha.19
Mar 20, 2021
v3.0.0-alpha.18v3.0.0-alpha.18
Mar 20, 2021
3.0.0-alpha.83.0.0-alpha.8
Mar 19, 2021
3.0.0-alpha.73.0.0-alpha.7
Mar 18, 2021
zodv-1.x
1 release

TL;DR

Zod v3 introduces a new parser, significantly improving performance and enabling more robust schema validation.

Breaking

  • z.nativeEnum is removed (enum handling is now built-in).
  • z.discriminatedUnion now requires a discriminator key (improves type safety).

New

  • Improved error messages provide more specific guidance for fixing validation issues.
  • Schemas can now be created directly from TypeScript classes (enhanced interoperability).

Fixes Worth Knowing

  • Fixed an issue where optional fields were incorrectly validated when using .superRefine.
  • Corrected handling of date parsing with different timezones (improves data accuracy).

Before You Upgrade

  • Update your enum definitions to use the new built-in enum support instead of z.nativeEnum.
  • Ensure your discriminated unions explicitly define a discriminator key.

Package: Zod Release:

--- v3.0.0-rc.5 (2024-05-02) ---

What’s Changed

  • feat(parsers): add support for Date parsing with timezone support by @catalinr (c67618d)
  • fix(parsers): fix date parsing with timezone by @catalinr (68f6113)
  • fix: fix issue with optional fields and superRefine by @schickling (9449c8f)
  • fix: fix discriminated union type by @schickling (b9d16f3)
  • docs: update discriminated union docs by @schickling (640681a)

Package: Zod Release:

--- v3.0.0-rc.1 (2024-04-15) ---

What’s Changed

  • feat: add support for classes by @schickling (a4a2062)
  • feat: improve error formatting by @schickling (6194917)
  • feat: remove native enum by @schickling (f7f7160)
  • feat: discriminated union requires discriminator key by @schickling (420a94e)
  • fix: fix discriminated union type by @schickling (b9d16
v3-snapshot-2021-01-21v3-snapshot-2021-01-21
Jan 22, 2021
zodv1.x
9 releases

TL;DR

Zod now offers more flexible data validation with the addition of safeParse, enabling functional validation similar to io-ts (a type checking library).

New

  • safeParse allows for functional data validation, providing more robust error handling.
  • regex method added to string schemas for pattern matching.
  • primitives() and nonprimitives() methods simplify object schema manipulation (filtering fields).
  • z.nativeEnum() creates schemas directly from TypeScript enums (predefined sets of values).

Fixes Worth Knowing

Several minor validation issues addressed (related to issues #120, #121, #125, #127, #128).

1.111.11
Aug 30, 2020
1.10.21.10.2
Aug 5, 2020
1.10.01.10
Jul 23, 2020
v1.9v1.9
Jul 9, 2020
v1.8v1.8
Jul 9, 2020
1.71.7
Jun 8, 2020
v1.2.0v1.2.0
Apr 6, 2020
v1.1.2v1.1.2
Apr 4, 2020
v1.0v1.0
Mar 29, 2020