Packages

zod

4.6.7 · 12 Oct 2026MIT468.6M / weekRepositoryHomepagenpmAtom feed

Your version

4.1.3

26 Aug 2025Where it was published

4.6.7 is the newest release of 4.x.

Summary· from the note as AI read it

Migration neededRead before upgrading: 1 change to make.

Before you upgrade

  • Check for uses of stringToBoolean and replace them, e.g. with z.stringbool()

In short

1 removed4 fixed4 internal

  • Removed

    Drop stringToBoolean

Security

1 advisory affects 4.1.3; 4.6.6 fixes them

Release note

Commits

  • Drop stringToBoolean

  • v4: toJSONSchema - add missing oneOf inside items in tuple conversion

  • v4: toJSONSchema tuple path handling for draft-7 with metadata IDs

  • v4: toJSONSchema - wrong record output when targeting openapi-3.0

  • v4: toJSONSchema - output numbers with exclusive range correctly when targeting openapi-3.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.