Radar — Zod
Recent Zod changes
v4.4.2 — May 1, 2026
- Discriminated-union option typing tightened;
z.preprocessdefers optionality to the inner schema.
v4.4.0 — Apr 29, 2026
- ⚠
z.cuidvalidation tightened and CUID v1 deprecated;z.httpUrlnow rejects malformed URLs missing the slash after the protocol. - Key-refinement failures surface as structured
invalid_keyissues; the v3-style single-argumentz.record(valueType)works again. - Global configuration is shared through
globalThis— fixes mixed CJS/ESM module instances.
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,$refwith circular schemas, metadata preserved. - ⚠ E.164 phone regex tightened — non-zero leading digit, 7–15 digits total.
v4.2.0 — Dec 15, 2025
z.fromJSONSchemaand a.toJSONSchemamethod; newz.looseRecordandz.xor.
These summaries link to the original release notes. They cover selected features, security updates, and migration changes.