zod
4.6.7 · 12 Oct 2026MIT468.6M / weekRepositoryHomepagenpmAtom feed
Upgrading zod From 4.6.1 to 4.6.7
6 releases in betweenevery note read
- 0
- changes to make
- 1
- advisory fixed
- 3
- new
- 4
- fixes
Security
Fixes 1 advisory affecting 4.6.1
- Zod can exhaust memory while validating oversized constrained collectionshigh · GHSA-mrhx-c7xc-m3w5
Release by release
4.6.7nothing new or fixed in the note
- Fixed
types: Declare record output and input as members, not base type arguments
- Fixed
v4: Check array, set and map size bounds before parsing elements
- Fixed
- New
instanceof: Key the .properties() shape off the instance type
- New
- New
Add
z.currencyCode()over a vendored ISO 4217 list, refreshed weekly by CI - New
z.url()rejects an invalid URL withURL.canParse()instead of a throwing constructor, about 50x faster; fewer allocations on the validation path
- New
1 other line we could not sort, mostly version bumps
- 4.6.5
Revert "feat: add z.currencyCode() over a vendored ISO 4217 list, refreshed weekly by CI (#6595)"
19 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.