Packages

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

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

Security

1 advisory still affects 4.2.0

Upgrading to 4.6.6 clears it.

Release by release

  1. 4.2.0

    15 Dec 20252 new
    • New

      Add .toJSONSchema() method

    • New

      Add z.fromJSONSchema(), z.looseRecord(), z.xor()

1 other line we could not sort, mostly version bumps
  • Update docs for JSON Schema conversion of z.undefined()

    4.2.0

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.