8 digests · monthly

Radar — Zod

Recent Zod changes

v4.4.2 — May 1, 2026

  • Discriminated-union option typing tightened; z.preprocess defers optionality to the inner schema.
Read the full edition →

v4.4.0 — Apr 29, 2026

  • z.cuid validation tightened and CUID v1 deprecated; z.httpUrl now rejects malformed URLs missing the slash after the protocol.
  • Key-refinement failures surface as structured invalid_key issues; the v3-style single-argument z.record(valueType) works again.
  • Global configuration is shared through globalThis — fixes mixed CJS/ESM module instances.
Read the full edition →

v4.3.0 — Dec 31, 2025

  • JSON Schema conversion covers the full surface: all primitive types, string formats, composition (anyOf/oneOf/allOf), object and array constraints, $ref with circular schemas, metadata preserved.
  • ⚠ E.164 phone regex tightened — non-zero leading digit, 7–15 digits total.

v4.2.0 — Dec 15, 2025

  • z.fromJSONSchema and a .toJSONSchema method; new z.looseRecord and z.xor.
Read the full edition →

These summaries link to the original release notes. They cover selected features, security updates, and migration changes.