Skip to content

fix(react-form-start): replace deprecated inputValidator with validator#2230

Open
smorimoto wants to merge 1 commit into
TanStack:mainfrom
smorimoto:fix/replace-inputvalidator-with-validator
Open

fix(react-form-start): replace deprecated inputValidator with validator#2230
smorimoto wants to merge 1 commit into
TanStack:mainfrom
smorimoto:fix/replace-inputvalidator-with-validator

Conversation

@smorimoto

@smorimoto smorimoto commented Jul 2, 2026

Copy link
Copy Markdown

Summary

TanStack Start has deprecated createServerFn().inputValidator() in favour of .validator(). Projects using @tanstack/react-form-start were 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-start peer dependency to ^1.168.27, which includes the validator() method.

Changes

  • Replace .inputValidator() with .validator() in createServerValidate.tsx
  • Update the TanStack Start example and SSR guide
  • Bump @tanstack/react-start to ^1.168.27 in react-form-start and the example
  • Refresh pnpm-lock.yaml and add minimumReleaseAgeExclude entries for the updated TanStack packages

Test plan

  • Built @tanstack/react-form and @tanstack/react-form-start successfully
  • Verify the deprecation warning no longer appears when running the TanStack Start example

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.
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8209a54f-d506-4a8b-9f1d-883575eac09a

📥 Commits

Reviewing files that changed from the base of the PR and between 6a73479 and 2ea2a9a.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • docs/framework/react/guides/ssr.md
  • examples/react/tanstack-start/package.json
  • examples/react/tanstack-start/src/utils/form.tsx
  • packages/react-form-start/package.json
  • packages/react-form-start/src/createServerValidate.tsx
  • pnpm-workspace.yaml
 _________________________________________________________________________________________
< The function of good software is to make the complex appear to be simple. - Grady Booch >
 -----------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​tanstack/​react-start@​1.168.27991008498100

View full report

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown

Caution

Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted.

Error details
{}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant