Skip to content

Commit cecb6ec

Browse files
committed
refactor(utils): use Zod's native z.fromJSONSchema() for JSON Schema conversion
- Replace custom JSON Schema to Zod conversion with Zod v4.3+ native method - Update Zod peer dependency to require >=4.3.0 for fromJSONSchema support - Simplify json-schema-to-zod.ts from ~210 lines to ~50 lines
1 parent 807f168 commit cecb6ec

File tree

3 files changed

+56
-217
lines changed

3 files changed

+56
-217
lines changed

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ catalogs:
2727
typescript: ^5.8.3
2828
unplugin-unused: ^0.5.4
2929
vitest: ^4.0.15
30-
zod: ^4.1.13
30+
zod: ^4.3.0
3131
examples:
3232
'@anthropic-ai/claude-agent-sdk': ^0.1.67
3333
'@tanstack/ai': ^0.2.0
@@ -37,7 +37,7 @@ catalogs:
3737
'@anthropic-ai/sdk': ^0.52.0
3838
ai: '>=5.0.108 <7.0.0'
3939
openai: ^6.2.0
40-
zod: '>=3.25.0 <5'
40+
zod: '>=4.3.0 <5'
4141
prod:
4242
'@modelcontextprotocol/sdk': ^1.24.3
4343
'@orama/orama': ^3.1.11

0 commit comments

Comments
 (0)