-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Upgrade to Zod v4 #701
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 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b95170a
Upgrade MCP SDK to 1.2.3
kingston 2f540aa
Upgrade Zod package
kingston e4bcbd5
Remove unused transform with dynamic schema
kingston 148c1fb
Apply first batch of type fixes
kingston 305b1e2
Add z object to service actions
kingston dee71b3
Apply remainder of zod fixes
kingston 232cbff
Fix tests
kingston 8bab9ef
Fix lint issues
kingston fbb9dac
Try to fix parsing of admin crud column
kingston 3c6b6b9
Simplify admin crud column with discriminated unions
kingston 478fcc7
Fix crud input types as well
kingston f3820dd
Convert actions as well
kingston 767f5e9
Sync updates to examples
kingston b2c5e86
Upgrade zod in examples + use z.int()
kingston d57ba46
Clean up defaults
kingston 30b0a82
Apply some fixes to deprecated validators for zod v4
kingston 72a6b48
Upgrade tanstack router
kingston 333ed5f
Fix zod 4 errors
kingston c585914
Fix remaining typecheck errors
kingston e554f4d
Fix deprecated z.string().email()
kingston 96bb957
Apply proper fix
kingston 80eb0ba
Fix enum types as well
kingston 3d38da6
Fix pnpm dedupe
kingston 5530630
Fix linting errors
kingston 2760997
Fix knip
kingston 03c2d8a
Add changeset
kingston f42d27a
Fix up linting error from blog with auth
kingston 4da1c20
Fix rest of linting errors
kingston f891025
Fix linting errors and e2e tests
kingston 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
Fix zod 4 errors
- Loading branch information
commit 333ed5f8b70440897dc0052a21a9e629ef502224
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
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.
Investigate the need for explicit type casting.
The validation result now requires explicit type casting to
Partial<InferInput<TFields>>. This suggests a potential type inference issue with the Zod v4 upgrade. Type assertions can hide type errors and should be avoided when possible.Please verify:
dataSchema.parse()no longer returns the correct typeasRun the following script to check if similar type assertions were needed elsewhere:
🤖 Prompt for AI Agents