Skip to content

Commit a9fad8d

Browse files
committed
Merge remote-tracking branch 'origin/main' into required-in-raw-shape
2 parents 7e64c60 + 4c9f82f commit a9fad8d

File tree

8 files changed

+360
-179
lines changed

8 files changed

+360
-179
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ npm install zod-from-json-schema
1414

1515
## Zod 3 vs 4
1616

17-
- If you need Zod 4, use the latest version of this package.
18-
- 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.
17+
Zod 4 is available both as the package version 4, but also as part of the version 3 packages. We support both, as well as Zod 3. Here's which version of this package to use:
18+
19+
|Zod|zod-from-json-schema|
20+
|---|--------------------|
21+
| v4 proper | latest |
22+
| v4 via 3.x | ^0.4.2 |
23+
| v3 | ^0.0.5 |
24+
25+
Note that the older package for Zod 3 supports a smaller subset of JSON schema than the latest. New features will only be added to the latest.
1926

2027
## Usage
2128

package-lock.json

Lines changed: 24 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zod-from-json-schema",
3-
"version": "0.4.2",
3+
"version": "0.5.0",
44
"description": "Creates Zod types from JSON Schema at runtime",
55
"main": "dist/index.js",
66
"module": "dist/index.mjs",
@@ -29,9 +29,10 @@
2929
"url": "git+https://github.com/glideapps/zod-from-json-schema.git"
3030
},
3131
"dependencies": {
32-
"zod": "^3.25.25"
32+
"zod": "^4.0.17"
3333
},
3434
"devDependencies": {
35+
"@types/node": "^24.3.0",
3536
"@vitest/coverage-v8": "^3.0.9",
3637
"esbuild": "^0.25.2",
3738
"typescript": "^5.8.3",

0 commit comments

Comments
 (0)