Packages

zod

4.6.7 · 12 Oct 2026MIT468.6M / weekRepositoryHomepagenpmAtom feed

Upgrading zod From 4.4.3 to 4.5.0

1 release in betweenevery note read

Other targets from 4.4.3Newest 4.x, Latest4.6.7Clears its advisory4.6.6
  1. 4.4.3yours
  2. 4.5.0target
  3. 8 pre

Before you upgrade

Tick each one off as you go
  • Breaking4.5.0
  • Breaking4.5.0
  • Deprecated4.5.0

Security

1 advisory still affects 4.5.0

Upgrading to 4.6.6 clears it.

Release by release

  1. 4.5.0

    Migration needed28 Aug 202639 new · 78 fixes
    • Breaking

      v4: Distinguish number and bigint formats at the type level

    • Breaking

      v4: Require seconds once a datetime carries a Z or an offset

    • Deprecated

      Surface @deprecated on re-exported compat aliases

    • New

      v4: Validate without building the output, and keep schemas out of dictionary mode

9 other lines we could not sort, mostly version bumps
  • z.compile() — the flagship feature of Zod 4.5

    4.5.0
  • z.creditCard() — 12–19 digits plus Luhn checksum

    4.5.0
  • z.properties() — the multi-property counterpart to z.property()

    4.5.0
  • z.validate(): boolean — a fast-path to verify input validity without a full parse (up to 16x faster on invalid data)

    4.5.0
  • New locales: Bengali (bn), Central Kurdish (ckb), Hindi (hi), Kannada (kn), Norwegian Nynorsk (nn), Brazilian Portuguese (pt-BR), Slovak (sk), Turkmen (tk)

    4.5.0
  • Preserve callsites in parse stack traces

    4.5.0
  • core: Drop the exactOptional parse prototype from #6432

    4.5.0
  • Improve Portuguese localization and add Brazilian Portuguese (pt-BR)

    4.5.0
  • Shill oxlint

    4.5.0

38 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.