fix(react-form-start): replace deprecated inputValidator with validator#2230
Open
smorimoto wants to merge 1 commit into
Open
fix(react-form-start): replace deprecated inputValidator with validator#2230smorimoto wants to merge 1 commit into
smorimoto wants to merge 1 commit into
Conversation
TanStack Start has deprecated createServerFn().inputValidator() in favour of .validator(). Update the react-form-start package, example, and SSR docs accordingly, and bump the @tanstack/react-start peer dependency to ^1.168.27 where the new API is available.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
TanStack Start has deprecated
createServerFn().inputValidator()in favour of.validator(). Projects using@tanstack/react-form-startwere seeing a build-time deprecation warning from the Start compiler.This PR updates the library, example, and SSR documentation to use the new API, and bumps the
@tanstack/react-startpeer dependency to^1.168.27, which includes thevalidator()method.Changes
.inputValidator()with.validator()increateServerValidate.tsx@tanstack/react-startto^1.168.27inreact-form-startand the examplepnpm-lock.yamland addminimumReleaseAgeExcludeentries for the updated TanStack packagesTest plan
@tanstack/react-formand@tanstack/react-form-startsuccessfully