chore: bump to 0.2.2 + make Zod schemas version-agnostic (v3.25+/v4) (#178)
* feat: make generated Zod schemas version-agnostic (v3.25+/v4) - Change generated schema imports from `zod/v4` to standard `zod` - Replace v4-only `z.looseObject()` with `z.object().passthrough()` - Works with both Zod v3.25+ and v4, matching MCP TS SDK approach - Bump version to 0.2.2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: regenerate package-lock.json in Docker 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
parent
bbea41f27b
commit
82ab3c894c
1 changed files with 2041 additions and 1246 deletions
2
src/generated/schema.test.ts
generated
2
src/generated/schema.test.ts
generated
|
|
@ -1,7 +1,7 @@
|
|||
// Generated by ts-to-zod
|
||||
// Integration tests verifying schemas match TypeScript types
|
||||
// Run: npm run generate:schemas
|
||||
import * as z from "zod/v4";
|
||||
import { z } from "zod";
|
||||
|
||||
import * as spec from "../spec.types.js";
|
||||
import * as generated from "./schema.js";
|
||||
|
|
|
|||
Loading…
Reference in a new issue