Skip to content

Commit ced8eee

Browse files
authored
feat(ai): re-export zodSchema from main package (#7625)
## background Users migrating to v5 encountered breaking changes when `zodSchema` was no longer available from the main `ai` package import, forcing them to change imports to `@ai-sdk/provider-utils` for circular dependency support. ## summary - re-export zodSchema from main ai package for backward compatibility ## verification - zodSchema now available via `import { zodSchema } from 'ai'` ## tasks - [x] add zodSchema to re-exports in packages/ai/src/index.ts related issue #7455
1 parent 8225c6f commit ced8eee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎.changeset/giant-jobs-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
feat(ai): re-export zodSchema from main package

‎packages/ai/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export {
66
generateId,
77
jsonSchema,
88
tool,
9+
zodSchema,
910
type IdGenerator,
1011
type InferToolInput,
1112
type InferToolOutput,

0 commit comments

Comments
 (0)