feat!: drop Zod v3 support (#1460)
This commit is contained in:
parent
bc883afe3c
commit
be5670f4fa
1 changed files with 669 additions and 947 deletions
|
|
@ -88,12 +88,11 @@ Located in `packages/*/src/experimental/`:
|
|||
|
||||
- **Tasks**: Long-running task support with polling/resumption (`packages/core/src/experimental/tasks/`)
|
||||
|
||||
### Zod Compatibility
|
||||
### Zod Schemas
|
||||
|
||||
The SDK uses `zod/v4` internally but supports both v3 and v4 APIs. Compatibility utilities:
|
||||
The SDK uses `zod/v4` internally. Schema utilities live in:
|
||||
|
||||
- `packages/core/src/util/zod-compat.ts` - Schema parsing helpers that work across versions
|
||||
- `packages/core/src/util/zod-json-schema-compat.ts` - Converts Zod schemas to JSON Schema
|
||||
- `packages/core/src/util/schema.ts` - AnySchema alias and helpers for inspecting Zod objects
|
||||
|
||||
### Validation
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue