Skip to content

Commit 998e92d

Browse files
committed
Merge branch 'main' into fix/heda-content-utils
2 parents c3dcec1 + 9ae24ef commit 998e92d

629 files changed

Lines changed: 8424 additions & 5762 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/typescript-node:24"
3+
}

benchmarks/bundle-size/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
"@tanstack/router-plugin": "workspace:^",
2121
"@types/react": "^19.0.8",
2222
"@types/react-dom": "^19.0.3",
23-
"@vitejs/plugin-react": "^4.3.4",
24-
"@vitejs/plugin-vue": "^5.2.3",
25-
"@vitejs/plugin-vue-jsx": "^4.1.2",
23+
"@vitejs/plugin-react": "^6.0.1",
24+
"@vitejs/plugin-vue": "^6.0.5",
25+
"@vitejs/plugin-vue-jsx": "^5.1.5",
2626
"typescript": "^5.7.2",
27-
"vite": "^7.3.1",
28-
"vite-plugin-solid": "^2.11.10"
27+
"vite": "^8.0.0",
28+
"vite-plugin-solid": "^2.11.11"
2929
}
3030
}

benchmarks/client-nav/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"@platformatic/flame": "^1.6.0",
3333
"@codspeed/vitest-plugin": "^5.0.1",
3434
"@testing-library/react": "^16.2.0",
35-
"@vitejs/plugin-react": "^4.3.4",
36-
"@vitejs/plugin-vue": "^5.2.3",
37-
"@vitejs/plugin-vue-jsx": "^4.1.2",
35+
"@vitejs/plugin-react": "^6.0.1",
36+
"@vitejs/plugin-vue": "^6.0.5",
37+
"@vitejs/plugin-vue-jsx": "^5.1.5",
3838
"@types/jsdom": "28.0.0",
3939
"typescript": "^5.7.2",
40-
"vite": "^7.3.1",
41-
"vite-plugin-solid": "^2.11.10",
40+
"vite": "^8.0.0",
41+
"vite-plugin-solid": "^2.11.11",
4242
"vitest": "^4.0.17"
4343
},
4444
"nx": {

benchmarks/ssr/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
},
3030
"devDependencies": {
3131
"@codspeed/vitest-plugin": "^5.0.1",
32-
"@vitejs/plugin-react": "^4.3.4",
33-
"@vitejs/plugin-vue-jsx": "^4.1.2",
32+
"@vitejs/plugin-react": "^6.0.1",
33+
"@vitejs/plugin-vue-jsx": "^5.1.5",
3434
"typescript": "^5.7.2",
35-
"vite": "^7.3.1",
36-
"vite-plugin-solid": "^2.11.10",
35+
"vite": "^8.0.0",
36+
"vite-plugin-solid": "^2.11.11",
3737
"vitest": "^4.0.17"
3838
},
3939
"nx": {

docs/router/api/router/RouterStateType.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ type RouterState = {
1111
isLoading: boolean
1212
isTransitioning: boolean
1313
matches: Array<RouteMatch>
14-
pendingMatches: Array<RouteMatch>
1514
location: ParsedLocation
1615
resolvedLocation: ParsedLocation
1716
}
@@ -41,11 +40,6 @@ The `RouterState` type contains all of the properties that are available on the
4140
- Type: [`Array<RouteMatch>`](./RouteMatchType.md)
4241
- An array of all of the route matches that have been resolved and are currently active.
4342
44-
### `pendingMatches` property
45-
46-
- Type: [`Array<RouteMatch>`](./RouteMatchType.md)
47-
- An array of all of the route matches that are currently pending.
48-
4943
### `location` property
5044
5145
- Type: [`ParsedLocation`](./ParsedLocationType.md)

docs/router/api/router/retainSearchParamsFunction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ If `true` is passed in, all search params will be retained.
1515
```tsx
1616
import { z } from 'zod'
1717
import { createRootRoute, retainSearchParams } from '@tanstack/react-router'
18-
import { zodValidator } from '@tanstack/zod-adapter'
1918

2019
const searchSchema = z.object({
2120
rootValue: z.string().optional(),
2221
})
2322

2423
export const Route = createRootRoute({
25-
validateSearch: zodValidator(searchSchema),
24+
// Use the schema directly for Zod v4
25+
validateSearch: searchSchema,
2626
search: {
2727
middlewares: [retainSearchParams(['rootValue'])],
2828
},
@@ -32,15 +32,15 @@ export const Route = createRootRoute({
3232
```tsx
3333
import { z } from 'zod'
3434
import { createFileRoute, retainSearchParams } from '@tanstack/react-router'
35-
import { zodValidator } from '@tanstack/zod-adapter'
3635

3736
const searchSchema = z.object({
3837
one: z.string().optional(),
3938
two: z.string().optional(),
4039
})
4140

4241
export const Route = createFileRoute('/')({
43-
validateSearch: zodValidator(searchSchema),
42+
// Use the schema directly for Zod v4
43+
validateSearch: searchSchema,
4444
search: {
4545
middlewares: [retainSearchParams(true)],
4646
},

docs/router/api/router/stripSearchParamsFunction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ title: Search middleware to strip search params
1818
```tsx
1919
import { z } from 'zod'
2020
import { createFileRoute, stripSearchParams } from '@tanstack/react-router'
21-
import { zodValidator } from '@tanstack/zod-adapter'
2221

2322
const defaultValues = {
2423
one: 'abc',
@@ -31,7 +30,8 @@ const searchSchema = z.object({
3130
})
3231

3332
export const Route = createFileRoute('/')({
34-
validateSearch: zodValidator(searchSchema),
33+
// for Zod v4, use the schema directly
34+
validateSearch: searchSchema,
3535
search: {
3636
// strip default values
3737
middlewares: [stripSearchParams(defaultValues)],
@@ -42,15 +42,15 @@ export const Route = createFileRoute('/')({
4242
```tsx
4343
import { z } from 'zod'
4444
import { createRootRoute, stripSearchParams } from '@tanstack/react-router'
45-
import { zodValidator } from '@tanstack/zod-adapter'
4645

4746
const searchSchema = z.object({
4847
hello: z.string().default('world'),
4948
requiredParam: z.string(),
5049
})
5150

5251
export const Route = createRootRoute({
53-
validateSearch: zodValidator(searchSchema),
52+
// for Zod v4, use the schema directly
53+
validateSearch: searchSchema,
5454
search: {
5555
// always remove `hello`
5656
middlewares: [stripSearchParams(['hello'])],
@@ -61,15 +61,15 @@ export const Route = createRootRoute({
6161
```tsx
6262
import { z } from 'zod'
6363
import { createFileRoute, stripSearchParams } from '@tanstack/react-router'
64-
import { zodValidator } from '@tanstack/zod-adapter'
6564

6665
const searchSchema = z.object({
6766
one: z.string().default('abc'),
6867
two: z.string().default('xyz'),
6968
})
7069

7170
export const Route = createFileRoute('/')({
72-
validateSearch: zodValidator(searchSchema),
71+
// for Zod v4, use the schema directly
72+
validateSearch: searchSchema,
7373
search: {
7474
// remove all search params
7575
middlewares: [stripSearchParams(true)],

docs/router/api/router/useChildMatchesHook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: useChildMatches hook
66
The `useChildMatches` hook returns all of the child [`RouteMatch`](./RouteMatchType.md) objects from the closest match down to the leaf-most match. **It does not include the current match, which can be obtained using the `useMatch` hook.**
77

88
> [!IMPORTANT]
9-
> If the router has pending matches and they are showing their pending component fallbacks, `router.state.pendingMatches` will used instead of `router.state.matches`.
9+
> If the router has pending matches and they are showing their pending component fallbacks, pending matches are used instead of active matches.
1010
1111
## useChildMatches options
1212

docs/router/api/router/useParentMatchesHook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: useParentMatches hook
66
The `useParentMatches` hook returns all of the parent [`RouteMatch`](./RouteMatchType.md) objects from the root down to the immediate parent of the current match in context. **It does not include the current match, which can be obtained using the `useMatch` hook.**
77

88
> [!IMPORTANT]
9-
> If the router has pending matches and they are showing their pending component fallbacks, `router.state.pendingMatches` will used instead of `router.state.matches`.
9+
> If the router has pending matches and they are showing their pending component fallbacks, pending matches are used instead of active matches.
1010
1111
## useParentMatches options
1212

docs/router/api/router/useRouterStateHook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: useRouterState hook
66
The `useRouterState` method is a hook that returns the current internal state of the router. This hook is useful for accessing the current state of the router in a component.
77

88
> [!TIP]
9-
> If you want to access the current location or the current matches, you should try out the [`useLocation`](./useLocationHook.md) and [`useMatches`](./useMatchesHook.md) hooks first. These hooks are designed to be more ergonomic and easier to use than accessing the router state directly.
9+
> If you want to access the current location or the current matches, you should try out the [`useLocation`](./useLocationHook.md) and [`useMatches`](./useMatchesHook.md) hooks first. These hooks are designed to be more performant, more ergonomic and easier to use than accessing the router state directly.
1010
1111
## useRouterState options
1212

0 commit comments

Comments
 (0)