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
- 3
- changes to make
- 0
- advisories fixed
- 39
- new
- 78
- fixes
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
- Zod can exhaust memory while validating oversized constrained collectionshigh · GHSA-mrhx-c7xc-m3w5
Upgrading to 4.6.6 clears it.
Release by release
- 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
- Breaking
9 other lines we could not sort, mostly version bumps
- 4.5.0
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 toz.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
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.