0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/start-plugin-core/tests/createServerFn
Manuel Schiller 550f478810
refactor(start)!: remove the deprecated inputValidator (#8694)
* refactor(start)!: remove the deprecated inputValidator

createServerFn().inputValidator() and createMiddleware().inputValidator()
were deprecated aliases of validator(). Remove both, the inputValidator
option the builders set, and the compiler's deprecation warnings, so
validator() is the only way to declare a validator. Server functions now
store their validator under the key middleware reads.

The compiler test of diagnostic locations across line terminators now
checks the code frame of the destructuring diagnostic instead of the
removed warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(agents): do not test that a removed API is gone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
History 2026-10-13 00:32:10 +02:00
..
snapshots test: format compiler output before comparing snapshots (#8658) 2026-10-10 14:09:42 +02:00
test-files rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
caller-dead-code.test.ts test: cover compiler output validity and edge cases for code splitting, Hydrate, server functions and the route generator (#8629) 2026-10-07 16:21:29 +02:00
createServerFn.test.ts refactor(start)!: remove the deprecated inputValidator (#8694) 2026-10-13 00:32:10 +02:00
declaration-sites.test.ts test: cover compiler output validity and edge cases for code splitting, Hydrate, server functions and the route generator (#8629) 2026-10-07 16:21:29 +02:00
exports-and-directives.test.ts test: cover compiler output validity and edge cases for code splitting, Hydrate, server functions and the route generator (#8629) 2026-10-07 16:21:29 +02:00
handler-scope.test.ts test: cover compiler output validity and edge cases for code splitting, Hydrate, server functions and the route generator (#8629) 2026-10-07 16:21:29 +02:00