- Dec 15, 2025
- Parsed from source:Dec 15, 2025
- Detected by Releasebot:Dec 19, 2025
Zod by colinhacks
v4.2.0
New release adds JSON Schema integration for Zod with fromJSONSchema and toJSONSchema, plus new combinators xor and looseRecord. Docs now cover JSON Schema conversion and extended schema flexibility.
Features
Implement Standard JSON Schema
standard-schema/standard-schema#134
Implement z.fromJSONSchema()const jsonSchema = { type: "object", properties: { name: { type: "string" }, age: { type: "number" } }, required: ["name"] }; const schema = z.fromJSONSchema(jsonSchema);Implement z.xor()
const schema = z.xor( z.object({ type: "user", name: z.string() }), z.object({ type: "admin", role: z.string() }) ); // Exactly one of the schemas must matchImplement z.looseRecord()
const schema = z.looseRecord(z.string(), z.number()); // Allows additional properties beyond those definedCommits
- af49c08 Update docs for JSON Schema conversion of z.undefined() (#5504)
- 767f320 Add .toJSONSchema() method (#5477)
- e17dcb6 Add z.fromJSONSchema(), z.looseRecord(), z.xor() (#5534)
- Oct 6, 2025
- Parsed from source:Oct 6, 2025
- Detected by Releasebot:Dec 19, 2025
Zod by colinhacks
v4.1.12
Commits
- 0b109c3 docs(ecosystem): add bupkis to the ecosystem section (#5237)
- d22ec0d docs(ecosystem): add upfetch (#5238)
- c56a4f6 docs(ecosystem): add eslint-plugin-zod-x (#5261)
- a0abcc0 docs(metadata.mdx): fix a mistake in an example output (#5248)
- 62bf4e4 fix(ZodError): prevent flatten() from crashing on 'toString' key (#5266)
- 02a5840 refac(errors): Unify code structure and improve types (#5278)
- 4b1922a docs(content/v4/index): fix zod version (#5289)
- 3fcb20f Add frrm to ecosystem (#5292)
- fda4c7c Make docs work without token
- af44738 Fix lint
- 77c3c9f Export bg.ts
- 3b94610 v4.1.12
- Sep 20, 2025
- Parsed from source:Sep 20, 2025
- Detected by Releasebot:Dec 19, 2025
- Sep 20, 2025
- Parsed from source:Sep 20, 2025
- Detected by Releasebot:Dec 19, 2025
- Sep 16, 2025
- Parsed from source:Sep 16, 2025
- Detected by Releasebot:Dec 19, 2025
Zod by colinhacks
v4.1.9
Commits
- a78716d Update zshy (#5249)
- 923af80 Publish [email protected]
- Sep 11, 2025
- Parsed from source:Sep 11, 2025
- Detected by Releasebot:Dec 19, 2025
Zod by colinhacks
v4.1.7
Release updates roll in with version bumps and fresh locales, plus doc improvements and small feature tweaks. Highlights include Lithuanian and Georgian locales and various fixes as the 4.1.x series edges forward.
Commits:
- 0cca351 Fix variable name inconsistency in coercion documentation (#5188)
- aa78c27 Add copy/edit buttons
- 76452d4 Update button txt
- 937f73c Fix tsconfig issue in bench
- 976b436 v4.1.6 (#5222)
- 4309c61 Fix cidrv6 validation - cidrv6 should reject invalid strings with multiple slashes (#5196)
- ef95a73 feat(locales): Add Lithuanian (lt) locale (#5210)
- 3803f3f docs: update wrong contents in codeblocks in api.mdx (#5209)
- 8a47d5c docs: update coerce example in api.mdx (#5207)
- e87db13 feat(locales): Add Georgian (ka) locale (#5203)
- c54b123 docs: adds @traversable/zod and @traversable/zod-test to v4 ecosystem (#5194)
- c27a294 Fix two tiny grammatical errors in the docs. (#5193)
- 23a2d66 docs: fix broken links in async refinements and transforms references (#5190)
- 845a230 fix(locales): Add type name translations to Spanish locale (#5187)
- 27f13d6 Improve regex precision and eliminate duplicates in regexes.ts (#5181)
- a8a52b3 fix(v4): fix Khmer and Ukrainian locales (#5177)
- 887e37c Update slugs
- e1f1948 fix(v4): ensure array defaults are shallow-cloned (#5173)
- 9f65038 docs(ecosystem): add DRZL; fix Prisma Zod Generator placement (#5215)
- aa6f0f0 More fixes (#5223)
- aab3356 4.1.7
- Sep 11, 2025
- Parsed from source:Sep 11, 2025
- Detected by Releasebot:Dec 19, 2025
- Aug 28, 2025
- Parsed from source:Aug 28, 2025
- Detected by Releasebot:Dec 19, 2025
Zod by colinhacks
v4.1.5
Commits
- 530415f Update docs
- b7b081d Update z.function() type to support array input (#5170)
- 780cf57 4.1.5
This is the end. You've seen all the release notes in this feed!