Skip to content
Source
Sign inSign up
TanStack/router

rename inputValidator to validator #7566

Mergedschiller-manuel(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/7566/headmerged by schiller-manuel(GitHub profile, opens in a new tab)

inputValidator is deprecated and will be removed soon

Summary by CodeRabbit

  • New Features

    • Added validator() as the canonical method for server function and middleware input validation.
  • Deprecations

    • inputValidator() is now deprecated; use validator() instead. Compiler warnings are emitted for remaining uses.
  • Documentation

    • Updated all guides and examples to use the new validator() API across React, Solid, and Vue frameworks.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsdocumentation

    2. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: react-start

    3. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: solid-start

    4. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: start-plugin-core

    5. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: start-server-core

    6. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: start-client-core

    7. github-actions[bot](GitHub profile, opens in a new tab) added labelspackage: vue-start

    8. Review Change Stack

      Caution

      Review failed

      Pull request was closed or merged during review

      📝 Walkthrough

      Walkthrough

      Repository-wide rename of inputValidator to validator across docs, examples, and tests. Core APIs updated to expose validator and deprecate inputValidator. Compiler gains a warn hook and emits deprecation warnings while transforming chains.

      Changes

      Validator API and deprecation plumbing

      Layer / File(s)Summary
      Core API rename, compiler warnings, and repo-wide updates
      packages/start-client-core/*, packages/start-plugin-core/*, docs/*, e2e/*, examples/*, _artifacts/*, .changeset/*
      Introduce validator in builder/types, deprecate inputValidator, add compiler warn pipeline and transforms, and update all usages in docs, e2e, and examples.

      Estimated code review effort

      🎯 4 (Complex) | ⏱️ ~60 minutes

      Suggested reviewers

      • chorobin
      • Sheraff
      • SeanCassiere

      Poem

      I thump my paw: “Validate!” I cheer, From burrowed docs to code so clear. The old spell fades, new runes align, Compiler whispers, gentle sign. With carrot-shaped cursors we migrate through, One hop, one warn—our garden’s new.

      ✨ Finishing Touches
      📝 Generate docstrings
      • Create stacked PR
      • Commit on current branch
      🧪 Generate unit tests (beta)
      • Create PR with unit tests
      • Commit unit tests in branch `rename-validator`
    9. View your CI Pipeline Execution ↗ for commit 16807d2a2a3a4b387d672e6b4c3f79080996db67

      CommandStatusDurationResult
      nx affected --targets=test:eslint,test:unit,tes...❌ Failed10m 11sView ↗
      nx run-many --target=build --exclude=examples/*...✅ Succeeded1m 30sView ↗

      💡 Dealing with memory or CPU issues? See memory and CPU details with the resource usage add-on ↗.


      ☁️ Nx Cloud last updated this comment at 2026-06-06 20:58:38 UTC

    10. 🚀 Changeset Version Preview

      5 package(s) bumped directly, 9 bumped as dependents.

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/react-start1.168.24 → 1.168.25Changeset
      @tanstack/solid-start1.168.24 → 1.168.25Changeset
      @tanstack/start-client-core1.170.11 → 1.170.12Changeset
      @tanstack/start-plugin-core1.171.16 → 1.171.17Changeset
      @tanstack/vue-start1.168.23 → 1.168.24Changeset
      @tanstack/react-start-client1.168.12 → 1.168.13Dependent
      @tanstack/react-start-rsc0.1.23 → 0.1.24Dependent
      @tanstack/react-start-server1.167.18 → 1.167.19Dependent
      @tanstack/solid-start-client1.168.12 → 1.168.13Dependent
      @tanstack/solid-start-server1.167.18 → 1.167.19Dependent
      @tanstack/start-server-core1.169.13 → 1.169.14Dependent
      @tanstack/start-static-server-functions1.167.16 → 1.167.17Dependent
      @tanstack/vue-start-client1.167.16 → 1.167.17Dependent
      @tanstack/vue-start-server1.167.18 → 1.167.19Dependent
    11. Bundle Size Benchmarks

      • Commit: 9df3d9270577
      • Measured at: 2026-06-06T20:49:32.215Z
      • Baseline source: history:10a7ff833cd9
      • Dashboard: bundle-size history
      ScenarioCurrent (gzip)Delta vs baselineInitial gzipRawBrotliTrend
      react-router.minimal87.25 KiB0 B (0.00%)87.11 KiB273.66 KiB75.97 KiB▁▁▁▆▆▆███▆▆
      react-router.full91.08 KiB0 B (0.00%)90.94 KiB286.05 KiB79.21 KiB▁▁▁▇▇▇█████
      solid-router.minimal35.49 KiB0 B (0.00%)35.36 KiB105.96 KiB32.00 KiB▁▁▁▅▅▅▇▇▇██
      solid-router.full40.54 KiB0 B (0.00%)40.41 KiB121.17 KiB36.49 KiB▁▁▁▇▇▇█████
      vue-router.minimal52.97 KiB0 B (0.00%)52.84 KiB149.97 KiB47.65 KiB▁▁▁▅▅▅█████
      vue-router.full58.95 KiB0 B (0.00%)58.82 KiB168.73 KiB52.81 KiB▁▁▁▇▇▇█████
      react-start.minimal101.88 KiB0 B (0.00%)101.74 KiB321.97 KiB88.22 KiB▁▁▁▆▆▆█████
      react-start.deferred-hydration102.61 KiB0 B (0.00%)101.76 KiB323.35 KiB88.95 KiB▁▁▁▆▆▆███▇▇
      react-start.full105.33 KiB+41 B (+0.04%)105.20 KiB332.40 KiB91.13 KiB▁▁▁▃▃▃▆▆▆▆▆█
      react-start.rsbuild.minimal99.60 KiB0 B (0.00%)99.43 KiB316.46 KiB85.65 KiB▁▁▁▄▄▄▇▇▇██
      react-start.rsbuild.minimal-iife100.00 KiB0 B (0.00%)99.83 KiB317.39 KiB86.08 KiB▁▁▁▅▅▅▇▇▇██
      react-start.rsbuild.full102.89 KiB+38 B (+0.04%)102.72 KiB326.96 KiB88.50 KiB▁▁▁▃▃▃▅▅▅▅▅█
      solid-start.minimal49.60 KiB0 B (0.00%)49.47 KiB152.02 KiB43.81 KiB▁▁▁▅▅▅▇▇▇██
      solid-start.deferred-hydration52.86 KiB0 B (0.00%)49.53 KiB160.06 KiB46.77 KiB▁▁▁▅▅▅▇▇▇██
      solid-start.full55.41 KiB+40 B (+0.07%)55.28 KiB169.07 KiB48.79 KiB▁▁▁▄▄▄▅▅▅▅▅█
      vue-start.minimal71.01 KiB0 B (0.00%)70.89 KiB207.11 KiB62.92 KiB▁▁▁▅▅▅█████
      vue-start.full75.01 KiB+35 B (+0.05%)74.88 KiB219.75 KiB66.39 KiB▁▁▁▄▄▄▆▆▆▅▅█

      Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better.

    12. More templates

      @tanstack/arktype-adapter

      npm i https://pkg.pr.new/@tanstack/arktype-adapter@7566

      @tanstack/eslint-plugin-router

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@7566

      @tanstack/eslint-plugin-start

      npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@7566

      @tanstack/history

      npm i https://pkg.pr.new/@tanstack/history@7566

      @tanstack/nitro-v2-vite-plugin

      npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@7566

      @tanstack/react-router

      npm i https://pkg.pr.new/@tanstack/react-router@7566

      @tanstack/react-router-devtools

      npm i https://pkg.pr.new/@tanstack/react-router-devtools@7566

      @tanstack/react-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@7566

      @tanstack/react-start

      npm i https://pkg.pr.new/@tanstack/react-start@7566

      @tanstack/react-start-client

      npm i https://pkg.pr.new/@tanstack/react-start-client@7566

      @tanstack/react-start-rsc

      npm i https://pkg.pr.new/@tanstack/react-start-rsc@7566

      @tanstack/react-start-server

      npm i https://pkg.pr.new/@tanstack/react-start-server@7566

      @tanstack/router-cli

      npm i https://pkg.pr.new/@tanstack/router-cli@7566

      @tanstack/router-core

      npm i https://pkg.pr.new/@tanstack/router-core@7566

      @tanstack/router-devtools

      npm i https://pkg.pr.new/@tanstack/router-devtools@7566

      @tanstack/router-devtools-core

      npm i https://pkg.pr.new/@tanstack/router-devtools-core@7566

      @tanstack/router-generator

      npm i https://pkg.pr.new/@tanstack/router-generator@7566

      @tanstack/router-plugin

      npm i https://pkg.pr.new/@tanstack/router-plugin@7566

      @tanstack/router-ssr-query-core

      npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@7566

      @tanstack/router-utils

      npm i https://pkg.pr.new/@tanstack/router-utils@7566

      @tanstack/router-vite-plugin

      npm i https://pkg.pr.new/@tanstack/router-vite-plugin@7566

      @tanstack/solid-router

      npm i https://pkg.pr.new/@tanstack/solid-router@7566

      @tanstack/solid-router-devtools

      npm i https://pkg.pr.new/@tanstack/solid-router-devtools@7566

      @tanstack/solid-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@7566

      @tanstack/solid-start

      npm i https://pkg.pr.new/@tanstack/solid-start@7566

      @tanstack/solid-start-client

      npm i https://pkg.pr.new/@tanstack/solid-start-client@7566

      @tanstack/solid-start-server

      npm i https://pkg.pr.new/@tanstack/solid-start-server@7566

      @tanstack/start-client-core

      npm i https://pkg.pr.new/@tanstack/start-client-core@7566

      @tanstack/start-fn-stubs

      npm i https://pkg.pr.new/@tanstack/start-fn-stubs@7566

      @tanstack/start-plugin-core

      npm i https://pkg.pr.new/@tanstack/start-plugin-core@7566

      @tanstack/start-server-core

      npm i https://pkg.pr.new/@tanstack/start-server-core@7566

      @tanstack/start-static-server-functions

      npm i https://pkg.pr.new/@tanstack/start-static-server-functions@7566

      @tanstack/start-storage-context

      npm i https://pkg.pr.new/@tanstack/start-storage-context@7566

      @tanstack/valibot-adapter

      npm i https://pkg.pr.new/@tanstack/valibot-adapter@7566

      @tanstack/virtual-file-routes

      npm i https://pkg.pr.new/@tanstack/virtual-file-routes@7566

      @tanstack/vue-router

      npm i https://pkg.pr.new/@tanstack/vue-router@7566

      @tanstack/vue-router-devtools

      npm i https://pkg.pr.new/@tanstack/vue-router-devtools@7566

      @tanstack/vue-router-ssr-query

      npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@7566

      @tanstack/vue-start

      npm i https://pkg.pr.new/@tanstack/vue-start@7566

      @tanstack/vue-start-client

      npm i https://pkg.pr.new/@tanstack/vue-start-client@7566

      @tanstack/vue-start-server

      npm i https://pkg.pr.new/@tanstack/vue-start-server@7566

      @tanstack/zod-adapter

      npm i https://pkg.pr.new/@tanstack/zod-adapter@7566

      commit: 20b7ee1

    13. Nx Cloud has identified a flaky task in your failed CI:

      🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.

      Nx Cloud View detailed reasoning in Nx Cloud ↗


      🎓 Learn more about Self-Healing CI on [nx.dev](https://nx.dev/docs/features/ci-features/self-healing-ci?utm_source=pull-request&utm_medium=comment)
    14. Merging this PR will not alter performance

      ✅ 5 untouched benchmarks ⏩ 1 skipped benchmark1


      Comparing rename-validator (20b7ee1) with main (10a7ff8) Open in CodSpeed

      Footnotes

      1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

Sign in to join this conversation.