Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ npm install zod-from-json-schema

## Zod 3 vs 4

- If you need Zod 4, use the latest version of this package.
Prior to Zod officially releasing an official v4 package, Zod v4 was available in the Zod 3.x branches, i.e. ^3.25.25. This package maintains legacy version 3/4 support in the 0.x version and Zod 4 support (with the official Zod 4 release) in the 1.x version.

- If you need Zod 4, you can use the ^1.0.0 branch or the ^0.4.0 branches of this repo
- If you need Zod 3, use the latest version that's less than 0.4.0 (at the of writing that's 0.0.5). It supports a smaller subsets of JSON Schema.

## Usage
Expand Down
30 changes: 24 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zod-from-json-schema",
"version": "0.4.2",
"version": "1.0.0",
"description": "Creates Zod types from JSON Schema at runtime",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -29,9 +29,10 @@
"url": "git+https://github.com/glideapps/zod-from-json-schema.git"
},
"dependencies": {
"zod": "^3.25.25"
"zod": "^4.0.17"
},
"devDependencies": {
"@types/node": "^24.3.0",
"@vitest/coverage-v8": "^3.0.9",
"esbuild": "^0.25.2",
"typescript": "^5.8.3",
Expand Down
Loading