-
Notifications
You must be signed in to change notification settings - Fork 3.6k
chore (provider-utils): replace zod with standard-schema where possible #6184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 20 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
d1427e7
wip
gr2m 5cf9e1e
wip
gr2m 0b60713
Implement standard-schema in `packages/provider-utils/src/validator.ts`
lgrammel 5f155ab
Merge branch 'v5' into v5-gr2m/5766-replace-zod-with-standard-schema
gr2m 4178db1
wip
gr2m 0ae0198
Merge branch 'v5' into v5-gr2m/5766-replace-zod-with-standard-schema
gr2m f9c6496
wip
gr2m 1863dfd
wip
gr2m 6a17b21
wip
gr2m 9b95f49
wip
gr2m 049e376
wip
gr2m 351182f
wip
gr2m 83be4e6
wip
gr2m a770a76
wip
gr2m 0cac1bd
wip
gr2m 3395c3d
wip
gr2m fd960ef
wip
gr2m 71ea96e
wip
gr2m 3edd3e7
wip
gr2m 7b3d1f2
Merge branch 'v5' into v5-gr2m/5766-replace-zod-with-standard-schema
gr2m 1d4bb39
revert `OBJECT` back to `ELEMENT`
gr2m 3ce7553
reverse changes to `schema.ts` and `zod-schema.ts`
gr2m b41723d
remove `T_` prefix from type generics
gr2m 1d0ba87
style: prettier
gr2m dad65b2
wip
gr2m a59486b
revert more changes
gr2m 5f020ca
revert more changes
gr2m fa0f0d1
gca revert more changes
gr2m 15b28ce
make `validate` async in `schema.ts`
gr2m 446415a
undo debug changes in test
gr2m 1cc03ca
make `validate` async in `zod-schema.ts` - we might want to allow a s…
gr2m bcb9690
undo formatting changes
gr2m 8e9bd55
revert formatting changes and type generic name
gr2m 7dd4d9e
make `validate` async in `valibot-schema`
gr2m 94c9668
re-export `zodSchema` from `@ai-sdk/provider-utils`
gr2m 6932097
revert changes to packages/provider-utils/src/parse-json.ts
gr2m 7bdb620
revert changes to packages/provider-utils/src/parse-json.ts
gr2m a706a80
make `validate()` method optionally async
gr2m 23ff810
style: prettier
gr2m 732b9f3
adapt packages/provider-utils/src/validate-types.test.ts
gr2m cc0a0cd
add todo comment
gr2m 5720b01
adapt tests
gr2m 5e27626
use `ts-expect-error` instead of `ts-ignore`
gr2m 430f527
fx
lgrammel b4ba863
Merge branch 'v5-gr2m/5766-replace-zod-with-standard-schema' of https…
lgrammel 9592c8b
cs
lgrammel f284b6d
Merge branch 'v5' into v5-gr2m/5766-replace-zod-with-standard-schema
lgrammel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ELEMENTwas on purpose because it is an array element