Packages

zod

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

Upgrading zod From 4.5.4 to 4.6.0

1 release in betweenevery note read

Other targets from 4.5.4Newest 4.x, Latest4.6.7Clears its advisory4.6.6
  1. 4.5.4yours
  2. 4.6.0target
0
changes to make
0
advisories fixed
15
new
8
fixes

Security

1 advisory still affects 4.6.0

Upgrading to 4.6.6 clears it.

Release by release

  1. 4.6.0

    9 Sep 202615 new · 8 fixes
    • New

      compile: Add z.withParser for externally generated parsers

    • New

      v4: Drop the lookaheads from the email regex

    • New

      v4: Add z.iban() string format with mod-97 checksum

    • New

      compile: for-in record walk, cheaper issue finalization, and a generative compile differential

18 other lines we could not sort, mostly version bumps
  • .validate() — checks input validity without building a result (up to 35x faster than .safeParse().success on a compiled schema)

    4.6.0
  • z.instanceof().properties() — validates properties of an instance

    4.6.0
  • fromJSONSchema() — enforces six validation keywords it used to ignore

    4.6.0
  • z.iban() — electronic-format IBAN plus mod-97 checksum

    4.6.0
  • z.withParser() — installs a parser generated elsewhere, for environments without new Function

    4.6.0
  • Faster CommonJS — drops the getter on every export (~3x faster z.validate() under require)

    4.6.0
  • Memory retention in recursive schemas — releases the parsed input, fixing a 4.5 out-of-memory regression

    4.6.0
  • @zod/mini — Zod Mini as a standalone package, versioned in lockstep with zod since 4.5

    4.6.0
  • Migrate development and CI to Nub

    4.6.0
  • Release the parsed input once a failing safeParse builds its error

    4.6.0

43 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.