Skip to content
Source
Sign inSign up
TanStack/router

refactor(start)!: remove the deprecated inputValidator #8694

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

Showing 13 changed files with 9 additions and 4 deletions (loading 10).

x
0 of 13 viewed, 13 left
9 additions and 0 deletions.changeset/remove-input-validator.mdAdded
View file
@@ -0,0 +1,9 @@
+---
+'@tanstack/start-client-core': patch
+'@tanstack/start-plugin-core': patch
+'@tanstack/react-start': patch
+'@tanstack/solid-start': patch
+'@tanstack/vue-start': patch
+---
+​
+Remove the deprecated `.inputValidator()` from `createServerFn` and `createMiddleware`. Use `.validator()`, which takes the same validator.
0 additions and 2 deletionspackages/start-client-core/src/tests/createServerFn.test-d.tsModified
View file
@@ -21,8 +21,6 @@
expectTypeOf(createServerFn()).toHaveProperty('handler')
expectTypeOf(createServerFn()).toHaveProperty('middleware')
expectTypeOf(createServerFn()).toHaveProperty('validator')
- // TODO remove upon stable
- expectTypeOf(createServerFn()).toHaveProperty('inputValidator')
​
createServerFn({ method: 'GET' }).handler((options) => {
expectTypeOf(options).toEqualTypeOf<{
0 additions and 2 deletionspackages/start-client-core/src/tests/createServerMiddleware.test-d.tsModified
View file