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
Security
1 advisory still affects 4.6.0
- Zod can exhaust memory while validating oversized constrained collectionshigh · GHSA-mrhx-c7xc-m3w5
Upgrading to 4.6.6 clears it.
Release by release
- 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
- New
18 other lines we could not sort, mostly version bumps
- 4.6.0
.validate()— checks input validity without building a result (up to 35x faster than.safeParse().successon 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 withoutnew Function - 4.6.0
Faster CommonJS — drops the getter on every export (~3x faster
z.validate()underrequire) - 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 withzodsince 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
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.