zod
4.6.7 · 12 Oct 2026MIT468.6M / weekRepositoryHomepagenpmAtom feed
Upgrading zod From 4.1.13 to 4.2.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Security
1 advisory still affects 4.2.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
Add
.toJSONSchema()method - New
Add
z.fromJSONSchema(),z.looseRecord(),z.xor()
- New
1 other line we could not sort, mostly version bumps
- 4.2.0
Update docs for JSON Schema conversion of
z.undefined()
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.