From 673a04398b8bc033fdab215c9242ecbfc10cec2c Mon Sep 17 00:00:00 2001 From: Dane Grant Date: Sun, 11 May 2025 18:37:47 -0400 Subject: [PATCH 01/47] docs(start): Remove unplanned feature from docs (#4150) --- docs/start/framework/react/server-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/start/framework/react/server-functions.md b/docs/start/framework/react/server-functions.md index 61c97a5080..577b9d5e07 100644 --- a/docs/start/framework/react/server-functions.md +++ b/docs/start/framework/react/server-functions.md @@ -7,7 +7,7 @@ title: Server Functions Server functions allow you to specify logic that can be invoked almost anywhere (even the client), but run **only** on the server. In fact, they are not so different from an API Route, but with a few key differences: -- They do not have stable public URL (but you'll be able to do this very soon!) +- They do not have stable public URL - They can be called from anywhere in your application, including loaders, hooks, components, etc., but cannot be called from API Routes. However, they are similar to regular API Routes in that: From 9f93ce0df0049c40cf19cd2ac3af059697976237 Mon Sep 17 00:00:00 2001 From: Birk Skyum <74932975+birkskyum@users.noreply.github.com> Date: Tue, 13 May 2025 16:11:53 +0200 Subject: [PATCH 02/47] fix(docs): update src to images on tanstack.com (#4165) tanstack.com has been updated to use /src instead of /app, which means these broken asset links has to be updated too --- docs/start/framework/react/authentication.md | 6 ++-- docs/start/framework/react/databases.md | 12 ++++---- docs/start/framework/react/hosting.md | 6 ++-- docs/start/framework/react/observability.md | 6 ++-- docs/start/framework/react/overview.md | 30 ++++++++++---------- docs/start/framework/solid/authentication.md | 6 ++-- docs/start/framework/solid/hosting.md | 6 ++-- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/docs/start/framework/react/authentication.md b/docs/start/framework/react/authentication.md index fe90ebbcff..8d4ed86236 100644 --- a/docs/start/framework/react/authentication.md +++ b/docs/start/framework/react/authentication.md @@ -17,9 +17,9 @@ That said, authentication is not something to be taken lightly. After much vetti - - - Clerk logo + + + Clerk logo diff --git a/docs/start/framework/react/databases.md b/docs/start/framework/react/databases.md index 6f6aba34bd..e2a0bc42de 100644 --- a/docs/start/framework/react/databases.md +++ b/docs/start/framework/react/databases.md @@ -41,9 +41,9 @@ While TanStack Start is designed to work with any database provider, we highly r - - - Neon logo + + + Neon logo @@ -65,9 +65,9 @@ Key features that make Neon stand out: - - - Convex logo + + + Convex logo diff --git a/docs/start/framework/react/hosting.md b/docs/start/framework/react/hosting.md index 5241494e80..d48eb493b0 100644 --- a/docs/start/framework/react/hosting.md +++ b/docs/start/framework/react/hosting.md @@ -15,9 +15,9 @@ However, since hosting is one of the most crucial aspects of your application's - - - Netlify logo + + + Netlify logo diff --git a/docs/start/framework/react/observability.md b/docs/start/framework/react/observability.md index fb483ba814..78e6a2dff3 100644 --- a/docs/start/framework/react/observability.md +++ b/docs/start/framework/react/observability.md @@ -15,9 +15,9 @@ However, for the best observability experience, we highly recommend using [Sentr - - - Convex logo + + + Convex logo diff --git a/docs/start/framework/react/overview.md b/docs/start/framework/react/overview.md index ca4bbac835..4316c864e5 100644 --- a/docs/start/framework/react/overview.md +++ b/docs/start/framework/react/overview.md @@ -71,45 +71,45 @@ TanStack works closely with our partners to provide the best possible developer - **Clerk** - - - Clerk logo + + + Clerk logo The best possible authentication experience for modern web applications, including TanStack Start applications. Clerk provides TanStack Start users with first-class integrations and solutions to auth and collaborates closely with the TanStack team to ensure that TanStack Start provides APIs that are up to date with the latest in auth best practices. - **Netlify** - - - Netlify logo + + + Netlify logo The leading hosting platform for web applications that provides a fast, secure, and reliable environment for deploying your web applications. We work closely with Netlify to ensure that TanStack Start applications not only deploy seamlessly to their platform, but also implement best practices for performance, security, and reliability regardless of where you end up deploying. - **Neon** - - - Neon logo + + + Neon logo A serverless, autoscaling Postgres solution purpose-built for modern full-stack apps. Neon offers rich integration opportunities with TanStack Start, including server functions and database-backed routing. Together, we’re simplifying the database experience for developers using TanStack. - **Convex** - - - Convex logo + + + Convex logo A serverless database platform that integrates seamlessly with TanStack Start. Convex is designed to simplify the process of managing your application's data and provides a real-time, scalable, and transactional data backend that works well with TanStack Start applications. Convex also collaborates closely with the TanStack team to ensure that TanStack Start provides APIs that are up to date with the latest in database best practices. - **Sentry** - - - Sentry logo + + + Sentry logo A powerful, full-featured observability platform that integrates seamlessly with TanStack Start. Sentry helps developers monitor and fix crashes in real-time and provides insights into your application's performance and error tracking. Sentry collaborates closely with the TanStack team to ensure that TanStack Start provides APIs that are up to date with the latest in observability best practices. diff --git a/docs/start/framework/solid/authentication.md b/docs/start/framework/solid/authentication.md index 24a74f7316..eee03da9da 100644 --- a/docs/start/framework/solid/authentication.md +++ b/docs/start/framework/solid/authentication.md @@ -17,9 +17,9 @@ That said, authentication is not something to be taken lightly. After much vetti - - - Convex logo + + + Convex logo diff --git a/docs/start/framework/solid/hosting.md b/docs/start/framework/solid/hosting.md index 0acb872b8b..0a1586223e 100644 --- a/docs/start/framework/solid/hosting.md +++ b/docs/start/framework/solid/hosting.md @@ -15,9 +15,9 @@ However, since hosting is one of the most crucial aspects of your application's - - - Netlify logo + + + Netlify logo From 38142f4c68243151fd88a7e8a56402b1b34e5ad7 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Tue, 13 May 2025 11:53:29 -0600 Subject: [PATCH 03/47] docs: update comparison --- docs/router/framework/react/comparison.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/router/framework/react/comparison.md b/docs/router/framework/react/comparison.md index 4ef92b2667..62e10a054e 100644 --- a/docs/router/framework/react/comparison.md +++ b/docs/router/framework/react/comparison.md @@ -10,8 +10,8 @@ Before you commit to a new tool, it's always nice to know how it stacks up again Feature/Capability Key: - βœ… 1st-class, built-in, and ready to use with no added configuration or code -- πŸ”΅ Supported via addon package - 🟑 Partial Support (on a scale of 5) +- 🟠 Supported via addon/community package - πŸ”Ά Possible, but requires custom code/implementation/casting - πŸ›‘ Not officially supported @@ -39,9 +39,9 @@ Feature/Capability Key: | Ranked Routes | βœ… | βœ… | βœ… | | Active Link Customization | βœ… | βœ… | βœ… | | Optimistic UI | βœ… | βœ… | πŸ”Ά | -| Typesafe Absolute + Relative Navigation | βœ… | πŸ›‘ | πŸ›‘ | +| Typesafe Absolute + Relative Navigation | βœ… | 🟑 (1/5 via `buildHref` util) | 🟠 (IDE plugin) | | Route Mount/Transition/Unmount Events | βœ… | πŸ›‘ | πŸ›‘ | -| Devtools | βœ… | πŸ›‘ | πŸ›‘ | +| Devtools | βœ… | 🟠 | πŸ›‘ | | Basic Search Params | βœ… | βœ… | βœ… | | Search Param Hooks | βœ… | βœ… | βœ… | | ``/`useNavigate` Search Param API | βœ… | 🟑 (search-string only via the `to`/`search` options) | 🟑 (search-string only via the `to`/`search` options) | @@ -54,7 +54,7 @@ Feature/Capability Key: | Suspense Route Elements | βœ… | βœ… | βœ… | | Route Error Elements | βœ… | βœ… | βœ… | | Route Pending Elements | βœ… | βœ… | βœ… | -| ``/`useBlocker` | βœ… | πŸ”Ά | ❓ | +| ``/`useBlocker` | βœ… | πŸ”Ά (no hard reloads or cross-origin navigation) | πŸ›‘ | | Deferred Primitives | βœ… | βœ… | βœ… | | Navigation Scroll Restoration | βœ… | βœ… | ❓ | | ElementScroll Restoration | βœ… | πŸ›‘ | πŸ›‘ | @@ -72,7 +72,7 @@ Feature/Capability Key: | React Server Function Middleware | βœ… | πŸ›‘ | πŸ›‘ | | API Routes | βœ… | βœ… | βœ… | | API Middleware | βœ… | πŸ›‘ | βœ… | -| React Server Components | πŸ›‘ | πŸ›‘ | βœ… | +| React Server Components | πŸ›‘ | 🟑 (Experimental) | βœ… | | `
` API | πŸ›‘ | βœ… | βœ… | [bp-tanstack-router]: https://badgen.net/bundlephobia/minzip/@tanstack/react-router From 5d940e2d8bdb12e213eede0abe8012855433ec4b Mon Sep 17 00:00:00 2001 From: Luis Merino Date: Wed, 14 May 2025 00:26:04 +0200 Subject: [PATCH 04/47] docs: specify that not found errors are handled by the nearest parent when called within `loader` (#4164) --- docs/router/framework/react/guide/not-found-errors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/framework/react/guide/not-found-errors.md b/docs/router/framework/react/guide/not-found-errors.md index 08dec747b0..739e2b20cb 100644 --- a/docs/router/framework/react/guide/not-found-errors.md +++ b/docs/router/framework/react/guide/not-found-errors.md @@ -16,7 +16,7 @@ There are 2 uses for not-found errors in TanStack Router: - Attempting to access `/posts/1/edit` when the route tree only handles `/posts/$postId` - **Missing resources**: When a resource cannot be found, such as a post with a given ID or any asynchronous data that is not available or does not exist - **You, the developer** must throw a not-found error when a resource cannot be found. This can be done in the `beforeLoad` or `loader` functions using the `notFound` utility. - - Will be handled by the nearest parent route with a `notFoundComponent` or the root route + - Will be handled by the nearest parent route with a `notFoundComponent` (when `notFound` is called within `loader`) or the root route. - Examples: - Attempting to access `/posts/1` when the post with ID 1 does not exist - Attempting to access `/docs/path/to/document` when the document does not exist From fa871a0e8b71b64b9488e5d754ed3b8ac26a4671 Mon Sep 17 00:00:00 2001 From: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com> Date: Fri, 16 May 2025 02:20:48 +0200 Subject: [PATCH 05/47] docs(router): fix `scrollRestorationBehavior` option in "scroll-restoration" guide (#4169) --- docs/router/framework/react/guide/scroll-restoration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/router/framework/react/guide/scroll-restoration.md b/docs/router/framework/react/guide/scroll-restoration.md index 77634d03e9..034b9465a7 100644 --- a/docs/router/framework/react/guide/scroll-restoration.md +++ b/docs/router/framework/react/guide/scroll-restoration.md @@ -177,12 +177,12 @@ function Component() { ## Scroll Behavior -To control the scroll behavior when navigating between pages, you can use the `scrollBehavior` option. This allows you to make the transition between pages instant instead of a smooth scroll. The global configuration of scroll restoration behavior has the same options as those supported by the browser, which are `smooth`, `instant`, and `auto` (see [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#behavior) for more information). +To control the scroll behavior when navigating between pages, you can use the `scrollRestorationBehavior` option. This allows you to make the transition between pages instant instead of a smooth scroll. The global configuration of scroll restoration behavior has the same options as those supported by the browser, which are `smooth`, `instant`, and `auto` (see [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#behavior) for more information). ```tsx import { createRouter } from '@tanstack/react-router' const router = createRouter({ - scrollBehavior: 'instant', + scrollRestorationBehavior: 'instant', }) ``` From e18b333a60bea1691ec4f8135dc156ae18578f09 Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Fri, 16 May 2025 19:03:16 +0200 Subject: [PATCH 06/47] fix: properly handle sessionStorage not being available for scroll restoration (#4186) --- .../react-router/src/ScrollRestoration.tsx | 2 +- .../router-core/src/scroll-restoration.ts | 71 ++++++++++++------- .../solid-router/src/ScrollRestoration.tsx | 2 +- 3 files changed, 46 insertions(+), 29 deletions(-) diff --git a/packages/react-router/src/ScrollRestoration.tsx b/packages/react-router/src/ScrollRestoration.tsx index 063d93914f..71d472723d 100644 --- a/packages/react-router/src/ScrollRestoration.tsx +++ b/packages/react-router/src/ScrollRestoration.tsx @@ -64,6 +64,6 @@ export function useElementScrollRestoration( } const restoreKey = getKey(router.latestLocation) - const byKey = scrollRestorationCache.state[restoreKey] + const byKey = scrollRestorationCache?.state[restoreKey] return byKey?.[elementSelector] } diff --git a/packages/router-core/src/scroll-restoration.ts b/packages/router-core/src/scroll-restoration.ts index 7efa94a908..1e3270534f 100644 --- a/packages/router-core/src/scroll-restoration.ts +++ b/packages/router-core/src/scroll-restoration.ts @@ -18,12 +18,22 @@ export type ScrollRestorationOptions = { scrollBehavior?: ScrollToOptions['behavior'] } +function getSafeSessionStorage() { + try { + if ( + typeof window !== 'undefined' && + typeof window.sessionStorage === 'object' + ) { + return window.sessionStorage + } + } catch { + return undefined + } + return undefined +} + export const storageKey = 'tsr-scroll-restoration-v1_3' -let sessionsStorage = false -try { - sessionsStorage = - typeof window !== 'undefined' && typeof window.sessionStorage === 'object' -} catch {} + const throttle = (fn: (...args: Array) => void, wait: number) => { let timeout: any return (...args: Array) => { @@ -35,28 +45,32 @@ const throttle = (fn: (...args: Array) => void, wait: number) => { } } } -export const scrollRestorationCache: ScrollRestorationCache = sessionsStorage - ? (() => { - const state: ScrollRestorationByKey = - JSON.parse(window.sessionStorage.getItem(storageKey) || 'null') || {} - - return { - state, - // This setter is simply to make sure that we set the sessionStorage right - // after the state is updated. It doesn't necessarily need to be a functional - // update. - set: (updater) => ( - (scrollRestorationCache.state = - functionalUpdate(updater, scrollRestorationCache.state) || - scrollRestorationCache.state), - window.sessionStorage.setItem( - storageKey, - JSON.stringify(scrollRestorationCache.state), - ) - ), - } - })() - : (undefined as any) + +function createScrollRestorationCache(): ScrollRestorationCache | undefined { + const safeSessionStorage = getSafeSessionStorage() + if (!safeSessionStorage) { + return undefined + } + + const persistedState = safeSessionStorage.getItem(storageKey) + let state: ScrollRestorationByKey = persistedState + ? JSON.parse(persistedState) + : {} + + return { + state, + // This setter is simply to make sure that we set the sessionStorage right + // after the state is updated. It doesn't necessarily need to be a functional + // update. + set: (updater) => ( + (state = functionalUpdate(updater, state) || state), + safeSessionStorage.setItem(storageKey, JSON.stringify(state)) + ), + } +} + +export const scrollRestorationCache = createScrollRestorationCache() + /** * The default `getKey` function for `useScrollRestoration`. * It returns the `key` from the location state or the `href` of the location. @@ -176,6 +190,9 @@ export function restoreScroll( } export function setupScrollRestoration(router: AnyRouter, force?: boolean) { + if (scrollRestorationCache === undefined) { + return + } const shouldScrollRestoration = force ?? router.options.scrollRestoration ?? false diff --git a/packages/solid-router/src/ScrollRestoration.tsx b/packages/solid-router/src/ScrollRestoration.tsx index 063d93914f..71d472723d 100644 --- a/packages/solid-router/src/ScrollRestoration.tsx +++ b/packages/solid-router/src/ScrollRestoration.tsx @@ -64,6 +64,6 @@ export function useElementScrollRestoration( } const restoreKey = getKey(router.latestLocation) - const byKey = scrollRestorationCache.state[restoreKey] + const byKey = scrollRestorationCache?.state[restoreKey] return byKey?.[elementSelector] } From 13996c687575bede75c4b3f1195f0dcc8e63b19f Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 16 May 2025 17:05:45 +0000 Subject: [PATCH 07/47] release: v1.120.4 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index ac20a7fa3c..053c01a02c 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 5bedf2de76..088c0aa8f3 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index 4ac49178e6..ee2071fda3 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 6925019d18..4966937349 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 53e01ca07c..9ebf9a0531 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 2b45e427a8..5f0704aab9 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 0376b204be..e115b0fe3b 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index 8cdbbd949c..522d46f16b 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index 74062d8926..506682a8c9 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index a29711ecc0..16b72fff97 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index ff649aeac9..824443101e 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index b8b045f74c..2135c5f6dc 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 2f2c75d4b0..44f95633fd 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index 07d7ca2b8c..1e453ad334 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 6fbb0f6ae3..7265599132 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 01c44d2c42..6bc6da69bd 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 24629dc4d7..3df7c358df 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index fcda245ccc..bb7557b3e9 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index b028ce0f14..130364a9fe 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 76974a7fd6..0f7b5141b7 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index a02bbd11c7..35c6347554 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index a70374a87d..1016cedf43 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index f5ee2a99ee..efe00191cc 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index 950bfd7b4f..e1fb128836 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 6dec44454f..cbecade1d8 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index 68ee7d2a5d..ef851a69ae 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index d63d9c1272..2de005c453 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index f108f10e39..9782c7285f 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router-devtools": "^1.120.4", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index 87e0b53e46..63f88f732e 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 8805fcadee..613cfc8355 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 6e8e6a773b..24a990b236 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router-devtools": "^1.120.4", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 4ab5a93131..c3b03b8a9b 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 35e73aefb1..22f6ef4eb0 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 3b1f2e4cb1..fc43eea9ef 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router-devtools": "^1.120.4", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 8f110580a1..7e6a66beab 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index 8e07cf2589..21f5c7849c 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", + "@tanstack/react-router": "^1.120.4", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index af25aedde5..f8334c8697 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.3", + "@tanstack/arktype-adapter": "^1.120.4", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", - "@tanstack/valibot-adapter": "^1.120.3", - "@tanstack/zod-adapter": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", + "@tanstack/valibot-adapter": "^1.120.4", + "@tanstack/zod-adapter": "^1.120.4", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index c87ecebfde..811cc07674 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 554777cc4e..5e07183b9d 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index 9c27d1a42d..193613bcdb 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-with-query": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-with-query": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index e526759a5b..9e54a4213a 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 5481062895..1d77edbc2a 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index b7475e12c3..4a990760c4 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 81c2bb8456..7333393af6 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index ab54a780df..528fd00793 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-with-query": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-with-query": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index 5597354b06..a619ded11a 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index a9c4ced79d..83d637b609 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index e327c367b7..a1c472a9e1 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-start": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index 45d347e083..c0b78c65e3 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 8e30f6062d..c3dec5b63c 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-with-query": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-with-query": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 9b4f6be98b..3b64d46aef 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 3b99a514bc..e866ceb591 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 3bdb7d217c..e1eb24db5c 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index bc9b26032a..c8b58a6931 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 2414353240..5e01276f45 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.3", - "@tanstack/react-router-devtools": "^1.120.3", - "@tanstack/router-plugin": "^1.120.3", - "@tanstack/react-start": "^1.120.3", + "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-start": "^1.120.4", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index ecc30cd748..73d4cd11be 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 2c97989801..69d283d477 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 9f0ae1d786..bbd9ee8cf2 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index f074c64838..3af58f5985 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 72aa31853b..b3e78423e8 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index c602e83393..6b9b691863 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 190dd6540c..1fafffbcf7 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index e22354139e..3b5eb0fb29 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.3", + "@tanstack/router-plugin": "^1.120.4", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 2a94ab0a76..e1cff61228 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", - "@tanstack/solid-start": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-start": "^1.120.4", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index 9503c2499a..d889c25338 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.3", - "@tanstack/solid-router-devtools": "^1.120.3", - "@tanstack/solid-start": "^1.120.3", + "@tanstack/solid-router": "^1.120.4", + "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-start": "^1.120.4", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index ebe26da7e3..addccbea1c 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 940def08b5..e03204f52f 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index fbfa01431f..2b9d5ac85f 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index caac296dc9..d32746256d 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index a83ed07e55..162201f6e4 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index 23efef7bfd..b7390aeeed 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index f367442a9c..ff858a2483 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index 9bbf439abe..802c7a4f00 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index a08b503980..18af4103a9 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index 3d620859f8..dda493476c 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index ce60e3f821..df0eecd9f4 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index 59cc80782b..d39709013c 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index 82405a50bb..dd43180187 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 6a86263abf..7b1ceb4084 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 1b0e9ebefc..9d729d51a2 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index d3768c86fd..256e11841f 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index 2970a3554a..da35662331 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index 931c967fcc..240a399b47 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 63e7524577..b22246d9fa 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 0e730177d0..1cbc876284 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index 3ee031b8e0..8f9fd26ade 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index 4aea00c279..2ffdaba034 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 228c931c61..3168868dd8 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index 3c2acd77ee..7eea75779b 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index e4ce1dbd0d..070fd7d6a2 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 8c5bb24691..5a0d85baad 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 95f7e6799a..6950d5f832 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index 8878f1ea62..11f596257e 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index e8e5ec5828..f9bbe9ddeb 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index cec8c3d19a..ac735a0cd8 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index b9feda56bc..9d3dd348e9 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 2a4f92a117..07b64eca13 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index ce55411e1e..30849657d9 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 93af7a8aa8..2e163dbd4e 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.3", + "version": "1.120.4", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 93f882fd74..9fbefe9183 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5244,7 +5244,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5284,7 +5284,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5318,7 +5318,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5358,7 +5358,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5404,7 +5404,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5447,7 +5447,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5487,7 +5487,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5530,7 +5530,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5570,7 +5570,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5619,7 +5619,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.3 + specifier: ^1.120.4 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From 7bf23b4b1897f854baa032b91545279aeb1a5ff5 Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Fri, 16 May 2025 22:33:26 +0200 Subject: [PATCH 08/47] fix: head execution (#4189) --- packages/react-router/tests/Scripts.test.tsx | 4 +- packages/react-router/tests/route.test.tsx | 80 ++++++++++++ packages/router-core/src/route.ts | 19 ++- packages/router-core/src/router.ts | 121 ++++++++++--------- 4 files changed, 158 insertions(+), 66 deletions(-) diff --git a/packages/react-router/tests/Scripts.test.tsx b/packages/react-router/tests/Scripts.test.tsx index 13a9f0571c..972a4753b1 100644 --- a/packages/react-router/tests/Scripts.test.tsx +++ b/packages/react-router/tests/Scripts.test.tsx @@ -123,7 +123,7 @@ describe('ssr HeadContent', () => { }, { name: 'description', - content: loaderData.description, + content: loaderData?.description, }, { name: 'image', @@ -160,7 +160,7 @@ describe('ssr HeadContent', () => { }, { name: 'description', - content: loaderData.description, + content: loaderData?.description, }, { name: 'last-modified', diff --git a/packages/react-router/tests/route.test.tsx b/packages/react-router/tests/route.test.tsx index 9c6fbbfc0e..9190d1269d 100644 --- a/packages/react-router/tests/route.test.tsx +++ b/packages/react-router/tests/route.test.tsx @@ -8,6 +8,7 @@ import { createRoute, createRouter, getRouteApi, + notFound, } from '../src' afterEach(() => { @@ -272,6 +273,85 @@ describe('route.head', () => { ]) }) + test('meta is set when loader throws notFound', async () => { + const rootRoute = createRootRoute({ + head: () => ({ + meta: [ + { title: 'Root' }, + { + charSet: 'utf-8', + }, + ], + }), + }) + const indexRoute = createRoute({ + getParentRoute: () => rootRoute, + path: '/', + head: () => ({ + meta: [{ title: 'Index' }], + }), + loader: async () => { + throw notFound() + }, + component: () =>
Index
, + }) + const routeTree = rootRoute.addChildren([indexRoute]) + const router = createRouter({ routeTree }) + render() + expect(await screen.findByText('Not Found')).toBeInTheDocument() + + const metaState = router.state.matches.map((m) => m.meta) + expect(metaState).toEqual([ + [ + { title: 'Root' }, + { + charSet: 'utf-8', + }, + ], + [{ title: 'Index' }], + ]) + }) + + test('meta is set when loader throws an error', async () => { + const rootRoute = createRootRoute({ + head: () => ({ + meta: [ + { title: 'Root' }, + { + charSet: 'utf-8', + }, + ], + }), + }) + const indexRoute = createRoute({ + getParentRoute: () => rootRoute, + path: '/', + head: () => ({ + meta: [{ title: 'Index' }], + }), + loader: async () => { + throw new Error('Fly, you fools!') + }, + component: () =>
Index
, + }) + const routeTree = rootRoute.addChildren([indexRoute]) + const router = createRouter({ routeTree }) + render() + + expect(await screen.findByText('Fly, you fools!')).toBeInTheDocument() + + const metaState = router.state.matches.map((m) => m.meta) + expect(metaState).toEqual([ + [ + { title: 'Root' }, + { + charSet: 'utf-8', + }, + ], + [{ title: 'Index' }], + ]) + }) + test('scripts', async () => { const rootRoute = createRootRoute({ head: () => ({ diff --git a/packages/router-core/src/route.ts b/packages/router-core/src/route.ts index 6344357790..2c876e2149 100644 --- a/packages/router-core/src/route.ts +++ b/packages/router-core/src/route.ts @@ -960,7 +960,7 @@ type AssetFnContextOptions< TLoaderDeps > params: ResolveAllParamsFromParent - loaderData: ResolveLoaderData + loaderData?: ResolveLoaderData } export interface DefaultUpdatableRouteOptionsExtensions { @@ -1070,9 +1070,20 @@ export interface UpdatableRouteOptions< TLoaderDeps >, ) => void - headers?: (ctx: { - loaderData: ResolveLoaderData - }) => Record + headers?: ( + ctx: AssetFnContextOptions< + TRouteId, + TFullPath, + TParentRoute, + TParams, + TSearchValidator, + TLoaderFn, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps + >, + ) => Record head?: ( ctx: AssetFnContextOptions< TRouteId, diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 3a510d6506..3899ce384c 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -1447,26 +1447,6 @@ export class RouterCore< ...match.__beforeLoadContext, } } - - // If it's already a success, update headers and head content - // These may get updated again if the match is refreshed - // due to being stale - if (match.status === 'success') { - match.headers = route.options.headers?.({ - loaderData: match.loaderData, - }) - const assetContext = { - matches, - match, - params: match.params, - loaderData: match.loaderData, - } - const headFnContent = route.options.head?.(assetContext) - match.links = headFnContent?.links - match.headScripts = headFnContent?.scripts - match.meta = headFnContent?.meta - match.scripts = route.options.scripts?.(assetContext) - } }) return matches @@ -2609,6 +2589,35 @@ export class RouterCore< !this.state.matches.find((d) => d.id === matchId), })) + const executeHead = () => { + const match = this.getMatch(matchId) + // in case of a redirecting match during preload, the match does not exist + if (!match) { + return + } + const assetContext = { + matches, + match, + params: match.params, + loaderData: match.loaderData, + } + const headFnContent = route.options.head?.(assetContext) + const meta = headFnContent?.meta + const links = headFnContent?.links + const headScripts = headFnContent?.scripts + + const scripts = route.options.scripts?.(assetContext) + const headers = route.options.headers?.(assetContext) + updateMatch(matchId, (prev) => ({ + ...prev, + meta, + links, + headScripts, + headers, + scripts, + })) + } + const runLoader = async () => { try { // If the Matches component rendered @@ -2649,40 +2658,21 @@ export class RouterCore< await potentialPendingMinPromise() - const assetContext = { - matches, - match: this.getMatch(matchId)!, - params: this.getMatch(matchId)!.params, - loaderData, - } - const headFnContent = - route.options.head?.(assetContext) - const meta = headFnContent?.meta - const links = headFnContent?.links - const headScripts = headFnContent?.scripts - - const scripts = route.options.scripts?.(assetContext) - const headers = route.options.headers?.({ - loaderData, - }) - // Last but not least, wait for the the components // to be preloaded before we resolve the match await route._componentsPromise - updateMatch(matchId, (prev) => ({ - ...prev, - error: undefined, - status: 'success', - isFetching: false, - updatedAt: Date.now(), - loaderData, - meta, - links, - headScripts, - headers, - scripts, - })) + batch(() => { + updateMatch(matchId, (prev) => ({ + ...prev, + error: undefined, + status: 'success', + isFetching: false, + updatedAt: Date.now(), + loaderData, + })) + executeHead() + }) } catch (e) { let error = e @@ -2700,12 +2690,15 @@ export class RouterCore< ) } - updateMatch(matchId, (prev) => ({ - ...prev, - error, - status: 'error', - isFetching: false, - })) + batch(() => { + updateMatch(matchId, (prev) => ({ + ...prev, + error, + status: 'error', + isFetching: false, + })) + executeHead() + }) } this.serverSsr?.onMatchSettled({ @@ -2713,10 +2706,13 @@ export class RouterCore< match: this.getMatch(matchId)!, }) } catch (err) { - updateMatch(matchId, (prev) => ({ - ...prev, - loaderPromise: undefined, - })) + batch(() => { + updateMatch(matchId, (prev) => ({ + ...prev, + loaderPromise: undefined, + })) + executeHead() + }) handleRedirectAndNotFound(this.getMatch(matchId)!, err) } } @@ -2752,6 +2748,11 @@ export class RouterCore< (loaderShouldRunAsync && sync) ) { await runLoader() + } else { + // if the loader did not run, still update head. + // reason: parent's beforeLoad may have changed the route context + // and only now do we know the route context (and that the loader would not run) + executeHead() } } if (!loaderIsRunningAsync) { From ada2b082262d90c204f3803ab5c994a0f15a9918 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 16 May 2025 20:36:47 +0000 Subject: [PATCH 09/47] release: v1.120.5 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 053c01a02c..e65b674fb2 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 088c0aa8f3..164354166c 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index ee2071fda3..92f2633dff 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 4966937349..830efc3463 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 9ebf9a0531..80572b16bc 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 5f0704aab9..9e5c9652dd 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index e115b0fe3b..9811b16bce 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index 522d46f16b..f18b870ac4 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index 506682a8c9..00f29f77ac 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index 16b72fff97..41d4fefcbb 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 824443101e..10c5fa32e9 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 2135c5f6dc..4e6ec5ae46 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 44f95633fd..4a82ab63bd 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index 1e453ad334..f6ce226948 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 7265599132..46a904bc56 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 6bc6da69bd..8842c91a7c 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 3df7c358df..7ee7bfcce7 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index bb7557b3e9..ab1c78e0ce 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 130364a9fe..13b13f8a65 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 0f7b5141b7..d96223ffb7 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index 35c6347554..581bd5a1bd 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 1016cedf43..571fac6494 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index efe00191cc..6bee2777b0 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index e1fb128836..f2e519ed72 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index cbecade1d8..0775382649 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index ef851a69ae..bbca7d44cc 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 2de005c453..5fb94c6dea 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index 9782c7285f..0b59b268da 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.5", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index 63f88f732e..e6f4eaf04c 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 613cfc8355..7731371e90 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 24a990b236..0d2a953c0b 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.5", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index c3b03b8a9b..06ae9843f7 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 22f6ef4eb0..baf67ca8dc 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index fc43eea9ef..514590e172 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.5", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 7e6a66beab..0934f3c6aa 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index 21f5c7849c..39d04fbcc2 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", + "@tanstack/react-router": "^1.120.5", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index f8334c8697..3b60a4ed38 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.4", + "@tanstack/arktype-adapter": "^1.120.5", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", - "@tanstack/valibot-adapter": "^1.120.4", - "@tanstack/zod-adapter": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", + "@tanstack/valibot-adapter": "^1.120.5", + "@tanstack/zod-adapter": "^1.120.5", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 811cc07674..345ed53845 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 5e07183b9d..3662d55a9a 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index 193613bcdb..aa5aae6481 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-with-query": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-with-query": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 9e54a4213a..b15e1c9ce0 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 1d77edbc2a..66dc899868 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index 4a990760c4..abcd93cd09 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 7333393af6..d87f7b5cb3 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index 528fd00793..d50994327d 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-with-query": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-with-query": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index a619ded11a..cc5d64827b 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 83d637b609..3b6bb40f09 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index a1c472a9e1..f6903a0e1d 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-start": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index c0b78c65e3..b1c940c174 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index c3dec5b63c..f898640a42 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-with-query": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-with-query": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 3b64d46aef..ad46f85421 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index e866ceb591..5bd3a609a4 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index e1eb24db5c..ce0f5be451 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index c8b58a6931..0c4c483695 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 5e01276f45..1c0dbe84a0 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.4", - "@tanstack/react-router-devtools": "^1.120.4", - "@tanstack/router-plugin": "^1.120.4", - "@tanstack/react-start": "^1.120.4", + "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-start": "^1.120.5", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index 73d4cd11be..d935a1428f 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 69d283d477..d8dbbcdd88 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index bbd9ee8cf2..1b0a141642 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 3af58f5985..be48a952ab 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index b3e78423e8..035d7568c9 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 6b9b691863..4ae9bb2f3b 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 1fafffbcf7..380ec9f70a 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 3b5eb0fb29..9848d51cbd 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.4", + "@tanstack/router-plugin": "^1.120.5", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index e1cff61228..618810475f 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", - "@tanstack/solid-start": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-start": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index d889c25338..48deeb8c8f 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.4", - "@tanstack/solid-router-devtools": "^1.120.4", - "@tanstack/solid-start": "^1.120.4", + "@tanstack/solid-router": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-start": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index addccbea1c..2cf227c998 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index e03204f52f..6f3dbcc1f5 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index 2b9d5ac85f..32e2b8dcbe 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index d32746256d..2761edaca1 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index 162201f6e4..65efe07d61 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index b7390aeeed..dfb7d18bcf 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index ff858a2483..273832bb47 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index 802c7a4f00..7937c64129 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index 18af4103a9..ad5cdb03a1 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index dda493476c..74fdc90998 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index df0eecd9f4..63b90c5556 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index d39709013c..5d132c5db2 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index dd43180187..bf6244997b 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 7b1ceb4084..d6d35e97d3 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 9d729d51a2..b4f9661df2 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 256e11841f..202cd3c57d 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index da35662331..7fb57b0ad4 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index 240a399b47..81330e39b4 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index b22246d9fa..6cc1235d65 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 1cbc876284..77f0216bbc 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index 8f9fd26ade..e6cddcbeec 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index 2ffdaba034..176b1452d5 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 3168868dd8..6613347742 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index 7eea75779b..a799006ef5 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index 070fd7d6a2..b8579ed7ae 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 5a0d85baad..12ff9f190e 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 6950d5f832..dec92696d2 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index 11f596257e..0fe7944f24 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index f9bbe9ddeb..4f2f2935a4 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index ac735a0cd8..9ce4a0d359 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index 9d3dd348e9..4e75ab8346 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 07b64eca13..251c6e31d5 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 30849657d9..197c0f1dc8 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 2e163dbd4e..1c78998910 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.4", + "version": "1.120.5", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9fbefe9183..5221f08423 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5244,7 +5244,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5284,7 +5284,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5318,7 +5318,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5358,7 +5358,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5404,7 +5404,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5447,7 +5447,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5487,7 +5487,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5530,7 +5530,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5570,7 +5570,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5619,7 +5619,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.4 + specifier: ^1.120.5 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From 699194749ce018e9415929c4fb6246f0d8dbebf9 Mon Sep 17 00:00:00 2001 From: Adam Hunter Date: Sun, 18 May 2025 03:52:39 -0400 Subject: [PATCH 10/47] fix(router-devtools-core): adds missing containerElement prop support for TanStackRouterDevtoolsCore (#4126) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../src/TanStackRouterDevtoolsCore.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx b/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx index 38a99c583e..a342d01e4d 100644 --- a/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx +++ b/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx @@ -58,6 +58,7 @@ class TanStackRouterDevtoolsCore { #panelProps: any #closeButtonProps: any #toggleButtonProps: any + #containerElement?: string | any #isMounted = false #Component: any @@ -73,6 +74,7 @@ class TanStackRouterDevtoolsCore { this.#panelProps = config.panelProps this.#closeButtonProps = config.closeButtonProps this.#toggleButtonProps = config.toggleButtonProps + this.#containerElement = config.containerElement } mount(el: T) { @@ -90,6 +92,7 @@ class TanStackRouterDevtoolsCore { const panelProps = this.#panelProps const closeButtonProps = this.#closeButtonProps const toggleButtonProps = this.#toggleButtonProps + const containerElement = this.#containerElement let Devtools @@ -110,6 +113,7 @@ class TanStackRouterDevtoolsCore { panelProps={panelProps} closeButtonProps={closeButtonProps} toggleButtonProps={toggleButtonProps} + containerElement={containerElement} /> ) }, el) @@ -146,6 +150,10 @@ class TanStackRouterDevtoolsCore { if (options.shadowDOMTarget !== undefined) { this.#shadowDOMTarget = options.shadowDOMTarget } + + if (options.containerElement !== undefined) { + this.#containerElement = options.containerElement + } } } From dd3d33f5679c45a7cb90f2725c8ab7b9e0a65177 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sun, 18 May 2025 08:07:05 +0000 Subject: [PATCH 11/47] release: v1.120.6 --- examples/react/authenticated-routes-firebase/package.json | 2 +- examples/react/authenticated-routes/package.json | 2 +- examples/react/basic-default-search-params/package.json | 2 +- examples/react/basic-devtools-panel/package.json | 2 +- examples/react/basic-file-based/package.json | 2 +- examples/react/basic-non-nested-devtools/package.json | 2 +- examples/react/basic-react-query-file-based/package.json | 2 +- examples/react/basic-react-query/package.json | 2 +- examples/react/basic-ssr-file-based/package.json | 2 +- examples/react/basic-ssr-streaming-file-based/package.json | 2 +- examples/react/basic-virtual-file-based/package.json | 2 +- examples/react/basic-virtual-inside-file-based/package.json | 2 +- examples/react/basic/package.json | 2 +- examples/react/deferred-data/package.json | 2 +- examples/react/kitchen-sink-file-based/package.json | 2 +- examples/react/kitchen-sink-react-query-file-based/package.json | 2 +- examples/react/kitchen-sink-react-query/package.json | 2 +- examples/react/kitchen-sink/package.json | 2 +- examples/react/large-file-based/package.json | 2 +- examples/react/location-masking/package.json | 2 +- examples/react/navigation-blocking/package.json | 2 +- examples/react/quickstart-esbuild-file-based/package.json | 2 +- examples/react/quickstart-file-based/package.json | 2 +- examples/react/quickstart-rspack-file-based/package.json | 2 +- examples/react/quickstart-webpack-file-based/package.json | 2 +- examples/react/quickstart/package.json | 2 +- examples/react/router-monorepo-react-query/package.json | 2 +- .../react/router-monorepo-react-query/packages/app/package.json | 2 +- examples/react/router-monorepo-simple-lazy/package.json | 2 +- .../react/router-monorepo-simple-lazy/packages/app/package.json | 2 +- examples/react/router-monorepo-simple/package.json | 2 +- examples/react/router-monorepo-simple/packages/app/package.json | 2 +- examples/react/scroll-restoration/package.json | 2 +- examples/react/search-validator-adapters/package.json | 2 +- examples/react/start-bare/package.json | 2 +- examples/react/start-basic-auth/package.json | 2 +- examples/react/start-basic-react-query/package.json | 2 +- examples/react/start-basic-rsc/package.json | 2 +- examples/react/start-basic-static/package.json | 2 +- examples/react/start-basic/package.json | 2 +- examples/react/start-clerk-basic/package.json | 2 +- examples/react/start-convex-trellaux/package.json | 2 +- examples/react/start-counter/package.json | 2 +- examples/react/start-large/package.json | 2 +- examples/react/start-material-ui/package.json | 2 +- examples/react/start-supabase-basic/package.json | 2 +- examples/react/start-trellaux/package.json | 2 +- examples/react/start-workos/package.json | 2 +- examples/react/view-transitions/package.json | 2 +- examples/react/with-framer-motion/package.json | 2 +- examples/react/with-trpc-react-query/package.json | 2 +- examples/react/with-trpc/package.json | 2 +- examples/solid/basic-devtools-panel/package.json | 2 +- examples/solid/basic-file-based/package.json | 2 +- examples/solid/basic-non-nested-devtools/package.json | 2 +- examples/solid/basic-solid-query-file-based/package.json | 2 +- examples/solid/basic-solid-query/package.json | 2 +- examples/solid/basic/package.json | 2 +- examples/solid/kitchen-sink-file-based/package.json | 2 +- examples/solid/quickstart-file-based/package.json | 2 +- examples/solid/start-bare/package.json | 2 +- examples/solid/start-basic/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- 66 files changed, 66 insertions(+), 66 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index e65b674fb2..73565b52f5 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 164354166c..335104ed02 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index 92f2633dff..ce7010d5d1 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 830efc3463..01d76a121f 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 80572b16bc..83130be441 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 9e5c9652dd..6b29190592 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 9811b16bce..bd059811f3 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -12,7 +12,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index f18b870ac4..207e85d0bb 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -12,7 +12,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index 00f29f77ac..e32a753e60 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/react-start": "^1.120.5", "get-port": "^7.1.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index 41d4fefcbb..5ab1503a24 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/react-start": "^1.120.5", "get-port": "^7.1.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 10c5fa32e9..7cb606bddb 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 4e6ec5ae46..1515d32ec0 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 4a82ab63bd..e18b4620be 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index f6ce226948..657884d994 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 46a904bc56..288eb485be 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "immer": "^10.1.1", "react": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 8842c91a7c..19446f1f80 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -12,7 +12,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "immer": "^10.1.1", "react": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 7ee7bfcce7..200cd051f0 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -12,7 +12,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index ab1c78e0ce..42bdeb3be3 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 13b13f8a65..8531a0f2bb 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -13,7 +13,7 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index d96223ffb7..7ce1e608df 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -12,7 +12,7 @@ "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index 581bd5a1bd..608ab59613 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 571fac6494..ef25c20760 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 6bee2777b0..f9381b7074 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index f2e519ed72..4a8c91da94 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 0775382649..ae3b3e422b 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0" }, diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index bbca7d44cc..e53db4f48a 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 5fb94c6dea..db2a09d06b 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -13,7 +13,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index 0b59b268da..b023870d37 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 7731371e90..84398e6044 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 0d2a953c0b..465cb63cfa 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index baf67ca8dc..769a169608 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 514590e172..56e19117e4 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index 39d04fbcc2..bb20152425 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.5", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 3b60a4ed38..5dd6f53a14 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -13,7 +13,7 @@ "@tanstack/arktype-adapter": "^1.120.5", "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/valibot-adapter": "^1.120.5", "@tanstack/zod-adapter": "^1.120.5", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 345ed53845..2f42515cd8 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 3662d55a9a..46a514193b 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -12,7 +12,7 @@ "dependencies": { "@prisma/client": "5.22.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "prisma": "^5.22.0", "react": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index aa5aae6481..fbf88a5f65 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -13,7 +13,7 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", "@tanstack/react-router-with-query": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index b15e1c9ce0..00b4705d66 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -11,7 +11,7 @@ "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 66dc899868..6586a0ca91 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index abcd93cd09..fb0c910cf8 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index d87f7b5cb3..4321f8e584 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -11,7 +11,7 @@ "dependencies": { "@clerk/tanstack-react-start": "0.12.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index d50994327d..ac218c3a19 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -16,7 +16,7 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", "@tanstack/react-router-with-query": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "concurrently": "^8.2.2", "convex": "^1.19.0", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index cc5d64827b..c43694b14c 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 3b6bb40f09..38e12929da 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -13,7 +13,7 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index f6903a0e1d..7953751cf8 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -16,7 +16,7 @@ "@mui/material": "6.4.7", "@tanstack/react-router": "^1.120.5", "@tanstack/react-start": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index b1c940c174..05f3533cfd 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -16,7 +16,7 @@ "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index f898640a42..b41293c268 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -13,7 +13,7 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", "@tanstack/react-router-with-query": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "ky": "^1.7.4", "msw": "^2.7.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index ad46f85421..5cadde799e 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -15,7 +15,7 @@ "dependencies": { "@radix-ui/themes": "^3.2.1", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/react-start": "^1.120.5", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 5bd3a609a4..5a1e831553 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index ce0f5be451..3345097450 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index 0c4c483695..e47265059d 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -11,7 +11,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/react-start": "^1.120.5", "@trpc/client": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 1c0dbe84a0..d3bf419983 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.5", + "@tanstack/react-router-devtools": "^1.120.6", "@tanstack/router-plugin": "^1.120.5", "@tanstack/react-start": "^1.120.5", "@trpc/client": "11.0.0-rc.772", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index d935a1428f..fc350bdcde 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index d8dbbcdd88..8a343a1855 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 1b0a141642..ef9f7e8e53 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index be48a952ab..e4b1e8778a 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -13,7 +13,7 @@ "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 035d7568c9..88b9997c2a 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -12,7 +12,7 @@ "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 4ae9bb2f3b..ca4eee23b5 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 380ec9f70a..9d53501ec1 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 9848d51cbd..afd3fbbf18 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 618810475f..eaf0681393 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "@tanstack/solid-start": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index 48deeb8c8f..c35cb473d9 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.5", + "@tanstack/solid-router-devtools": "^1.120.6", "@tanstack/solid-start": "^1.120.5", "solid-js": "^1.9.5", "redaxios": "^0.5.1", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 6f3dbcc1f5..add34149e1 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.5", + "version": "1.120.6", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index 5d132c5db2..048b9a61a6 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.5", + "version": "1.120.6", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index bf6244997b..b2eadf7566 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.5", + "version": "1.120.6", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index 7fb57b0ad4..7e7cc2d061 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.5", + "version": "1.120.6", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", From 72ffeb4d4ae23a30859b9c7b8a3164535d5f2b85 Mon Sep 17 00:00:00 2001 From: Leonardo Montini Date: Tue, 20 May 2025 20:44:56 +0200 Subject: [PATCH 12/47] docs: fix neon bullet points and url (#4214) The markdown list wasn't shown properly and I noticed the signup link was broken Before ![image](https://github.com/user-attachments/assets/9efd3f90-3ed1-42af-823a-edb4fdd39770) After ![image](https://github.com/user-attachments/assets/bc43b4ee-30b4-4eb8-ace2-6cd9ca77c2d9) --- docs/start/framework/react/databases.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/start/framework/react/databases.md b/docs/start/framework/react/databases.md index e2a0bc42de..39d4cd09dc 100644 --- a/docs/start/framework/react/databases.md +++ b/docs/start/framework/react/databases.md @@ -57,9 +57,10 @@ Key features that make Neon stand out: - Point-in-time restore - Web-based SQL editor - Bottomless storage - +
+
- To learn more about Neon, visit the [Neon website](https://neon.tech?utm_source=tanstack) -- To sign up, visit the [Neon dashboard](https://console.neon.tech/sign_up?utm_source=tanstack) +- To sign up, visit the [Neon dashboard](https://console.neon.tech/signup?utm_source=tanstack) ## What is Convex? From d4321feac164fac984cb9849f7c7f60dab50aa2a Mon Sep 17 00:00:00 2001 From: Joel Tannas Date: Thu, 22 May 2025 12:06:50 -0600 Subject: [PATCH 13/47] docs: Fix syntax error in search middleware example (#4223) --- docs/router/framework/react/guide/search-params.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/framework/react/guide/search-params.md b/docs/router/framework/react/guide/search-params.md index 786ea2cd67..281c827016 100644 --- a/docs/router/framework/react/guide/search-params.md +++ b/docs/router/framework/react/guide/search-params.md @@ -590,7 +590,7 @@ export const Route = createRootRoute({ ({search, next}) => { const result = next(search) return { - rootValue: search.rootValue + rootValue: search.rootValue, ...result } } From 385c47be5f3609f0200aa31fc0653cb451874bbb Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 18:07:48 +0000 Subject: [PATCH 14/47] ci: apply automated fixes --- docs/router/framework/react/guide/search-params.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/router/framework/react/guide/search-params.md b/docs/router/framework/react/guide/search-params.md index 281c827016..ce3096cefb 100644 --- a/docs/router/framework/react/guide/search-params.md +++ b/docs/router/framework/react/guide/search-params.md @@ -587,15 +587,15 @@ export const Route = createRootRoute({ validateSearch: zodValidator(searchSchema), search: { middlewares: [ - ({search, next}) => { + ({ search, next }) => { const result = next(search) return { rootValue: search.rootValue, - ...result + ...result, } - } - ] - } + }, + ], + }, }) ``` From 0d71e044d8af60c303b3b2b4293066ae12ae06c9 Mon Sep 17 00:00:00 2001 From: scarf Date: Fri, 23 May 2025 03:08:04 +0900 Subject: [PATCH 15/47] docs(react-router): document migration path for `parseParams` and `stringifyParams` (#4216) --- docs/router/framework/react/api/router/RouteOptionsType.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/router/framework/react/api/router/RouteOptionsType.md b/docs/router/framework/react/api/router/RouteOptionsType.md index 92510684ea..3500f0f27f 100644 --- a/docs/router/framework/react/api/router/RouteOptionsType.md +++ b/docs/router/framework/react/api/router/RouteOptionsType.md @@ -65,13 +65,13 @@ The `RouteOptions` type accepts an object with the following properties: - Search middlewares are functions that transform the search parameters when generating new links for a route or its descendants. - A search middleware is passed in the current search (if it is the first middleware to run) or is invoked by the previous middleware calling `next`. -### `parseParams` method (⚠️ deprecated) +### `parseParams` method (⚠️ deprecated, use `params.parse` instead) - Type: `(rawParams: Record) => TParams` - Optional - A function that will be called when this route is matched and passed the raw params from the current location and return valid parsed params. If this function throws, the route will be put into an error state and the error will be thrown during render. If this function does not throw, its return value will be used as the route's params and the return type will be inferred into the rest of the router. -### `stringifyParams` method (⚠️ deprecated) +### `stringifyParams` method (⚠️ deprecated, use `params.stringify` instead) - Type: `(params: TParams) => Record` - Required if `parseParams` is provided From 5a8267971df45a062cfd137d0d37c69653d8d8f9 Mon Sep 17 00:00:00 2001 From: Christopher Horobin Date: Fri, 23 May 2025 00:25:53 +0200 Subject: [PATCH 16/47] fix: type errors with `skipLibCheck: false` (#4233) fixes #4114 --- packages/react-router/src/route.tsx | 140 +++++++++++++++++----------- packages/router-core/src/index.ts | 1 + packages/router-core/src/route.ts | 83 +++++++++++++---- packages/solid-router/src/route.tsx | 140 +++++++++++++++++----------- 4 files changed, 238 insertions(+), 126 deletions(-) diff --git a/packages/react-router/src/route.tsx b/packages/react-router/src/route.tsx index 8ec238a5b3..d3730e819e 100644 --- a/packages/react-router/src/route.tsx +++ b/packages/react-router/src/route.tsx @@ -25,9 +25,11 @@ import type { ResolveFullPath, ResolveId, ResolveParams, + RootRoute as RootRouteCore, RootRouteId, RootRouteOptions, RouteConstraints, + Route as RouteCore, RouteIds, RouteMask, RouteOptions, @@ -148,43 +150,62 @@ export class RouteApi< } export class Route< - in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, - in out TPath extends RouteConstraints['TPath'] = '/', - in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath< - TParentRoute, - TPath - >, - in out TCustomId extends RouteConstraints['TCustomId'] = string, - in out TId extends RouteConstraints['TId'] = ResolveId< + in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, + in out TPath extends RouteConstraints['TPath'] = '/', + in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath< + TParentRoute, + TPath + >, + in out TCustomId extends RouteConstraints['TCustomId'] = string, + in out TId extends RouteConstraints['TId'] = ResolveId< + TParentRoute, + TCustomId, + TPath + >, + in out TSearchValidator = undefined, + in out TParams = ResolveParams, + in out TRouterContext = AnyContext, + in out TRouteContextFn = AnyContext, + in out TBeforeLoadFn = AnyContext, + in out TLoaderDeps extends Record = {}, + in out TLoaderFn = undefined, + in out TChildren = unknown, + in out TFileRouteTypes = unknown, + > + extends BaseRoute< TParentRoute, + TPath, + TFullPath, TCustomId, - TPath - >, - in out TSearchValidator = undefined, - in out TParams = ResolveParams, - in out TRouterContext = AnyContext, - in out TRouteContextFn = AnyContext, - in out TBeforeLoadFn = AnyContext, - in out TLoaderDeps extends Record = {}, - in out TLoaderFn = undefined, - in out TChildren = unknown, - in out TFileRouteTypes = unknown, -> extends BaseRoute< - TParentRoute, - TPath, - TFullPath, - TCustomId, - TId, - TSearchValidator, - TParams, - TRouterContext, - TRouteContextFn, - TBeforeLoadFn, - TLoaderDeps, - TLoaderFn, - TChildren, - TFileRouteTypes -> { + TId, + TSearchValidator, + TParams, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > + implements + RouteCore< + TParentRoute, + TPath, + TFullPath, + TCustomId, + TId, + TSearchValidator, + TParams, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > +{ /** * @deprecated Use the `createRoute` function instead. */ @@ -364,24 +385,37 @@ export function createRootRouteWithContext() { export const rootRouteWithContext = createRootRouteWithContext export class RootRoute< - in out TSearchValidator = undefined, - in out TRouterContext = {}, - in out TRouteContextFn = AnyContext, - in out TBeforeLoadFn = AnyContext, - in out TLoaderDeps extends Record = {}, - in out TLoaderFn = undefined, - in out TChildren = unknown, - in out TFileRouteTypes = unknown, -> extends BaseRootRoute< - TSearchValidator, - TRouterContext, - TRouteContextFn, - TBeforeLoadFn, - TLoaderDeps, - TLoaderFn, - TChildren, - TFileRouteTypes -> { + in out TSearchValidator = undefined, + in out TRouterContext = {}, + in out TRouteContextFn = AnyContext, + in out TBeforeLoadFn = AnyContext, + in out TLoaderDeps extends Record = {}, + in out TLoaderFn = undefined, + in out TChildren = unknown, + in out TFileRouteTypes = unknown, + > + extends BaseRootRoute< + TSearchValidator, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > + implements + RootRouteCore< + TSearchValidator, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > +{ /** * @deprecated `RootRoute` is now an internal implementation detail. Use `createRootRoute()` instead. */ diff --git a/packages/router-core/src/index.ts b/packages/router-core/src/index.ts index 4988400855..6759c0e22e 100644 --- a/packages/router-core/src/index.ts +++ b/packages/router-core/src/index.ts @@ -198,6 +198,7 @@ export type { RouteAddChildrenFn, RouteAddFileChildrenFn, RouteAddFileTypesFn, + RootRoute, } from './route' export { diff --git a/packages/router-core/src/route.ts b/packages/router-core/src/route.ts index 2c876e2149..9c1aeb05ea 100644 --- a/packages/router-core/src/route.ts +++ b/packages/router-core/src/route.ts @@ -621,7 +621,24 @@ export interface Route< TBeforeLoadFn >, ) => this - lazy: RouteLazyFn + lazy: RouteLazyFn< + Route< + TParentRoute, + TPath, + TFullPath, + TCustomId, + TId, + TSearchValidator, + TParams, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > + > addChildren: RouteAddChildrenFn< TParentRoute, TPath, @@ -1281,24 +1298,7 @@ export class BaseRoute< in out TLoaderFn = undefined, in out TChildren = unknown, in out TFileRouteTypes = unknown, -> implements - Route< - TParentRoute, - TPath, - TFullPath, - TCustomId, - TId, - TSearchValidator, - TParams, - TRouterContext, - TRouteContextFn, - TBeforeLoadFn, - TLoaderDeps, - TLoaderFn, - TChildren, - TFileRouteTypes - > -{ +> { isRoot: TParentRoute extends AnyRoute ? true : false options: RouteOptions< TParentRoute, @@ -1573,7 +1573,24 @@ export class BaseRoute< return this } - lazy: RouteLazyFn = (lazyFn) => { + lazy: RouteLazyFn< + Route< + TParentRoute, + TPath, + TFullPath, + TCustomId, + TId, + TSearchValidator, + TParams, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > + > = (lazyFn) => { this.lazyFn = lazyFn return this } @@ -1591,6 +1608,32 @@ export class BaseRouteApi { } } +export interface RootRoute< + in out TSearchValidator = undefined, + in out TRouterContext = {}, + in out TRouteContextFn = AnyContext, + in out TBeforeLoadFn = AnyContext, + in out TLoaderDeps extends Record = {}, + in out TLoaderFn = undefined, + in out TChildren = unknown, + in out TFileRouteTypes = unknown, +> extends Route< + any, // TParentRoute + '/', // TPath + '/', // TFullPath + string, // TCustomId + RootRouteId, // TId + TSearchValidator, // TSearchValidator + {}, // TParams + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, // TChildren + TFileRouteTypes + > {} + export class BaseRootRoute< in out TSearchValidator = undefined, in out TRouterContext = {}, diff --git a/packages/solid-router/src/route.tsx b/packages/solid-router/src/route.tsx index a1c2762f69..5e61e3926b 100644 --- a/packages/solid-router/src/route.tsx +++ b/packages/solid-router/src/route.tsx @@ -24,9 +24,11 @@ import type { ResolveFullPath, ResolveId, ResolveParams, + RootRoute as RootRouteCore, RootRouteId, RootRouteOptions, RouteConstraints, + Route as RouteCore, RouteIds, RouteMask, RouteOptions, @@ -142,43 +144,62 @@ export class RouteApi< } export class Route< - in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, - in out TPath extends RouteConstraints['TPath'] = '/', - in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath< - TParentRoute, - TPath - >, - in out TCustomId extends RouteConstraints['TCustomId'] = string, - in out TId extends RouteConstraints['TId'] = ResolveId< + in out TParentRoute extends RouteConstraints['TParentRoute'] = AnyRoute, + in out TPath extends RouteConstraints['TPath'] = '/', + in out TFullPath extends RouteConstraints['TFullPath'] = ResolveFullPath< + TParentRoute, + TPath + >, + in out TCustomId extends RouteConstraints['TCustomId'] = string, + in out TId extends RouteConstraints['TId'] = ResolveId< + TParentRoute, + TCustomId, + TPath + >, + in out TSearchValidator = undefined, + in out TParams = ResolveParams, + in out TRouterContext = AnyContext, + in out TRouteContextFn = AnyContext, + in out TBeforeLoadFn = AnyContext, + in out TLoaderDeps extends Record = {}, + in out TLoaderFn = undefined, + in out TChildren = unknown, + in out TFileRouteTypes = unknown, + > + extends BaseRoute< TParentRoute, + TPath, + TFullPath, TCustomId, - TPath - >, - in out TSearchValidator = undefined, - in out TParams = ResolveParams, - in out TRouterContext = AnyContext, - in out TRouteContextFn = AnyContext, - in out TBeforeLoadFn = AnyContext, - in out TLoaderDeps extends Record = {}, - in out TLoaderFn = undefined, - in out TChildren = unknown, - in out TFileRouteTypes = unknown, -> extends BaseRoute< - TParentRoute, - TPath, - TFullPath, - TCustomId, - TId, - TSearchValidator, - TParams, - TRouterContext, - TRouteContextFn, - TBeforeLoadFn, - TLoaderDeps, - TLoaderFn, - TChildren, - TFileRouteTypes -> { + TId, + TSearchValidator, + TParams, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > + implements + RouteCore< + TParentRoute, + TPath, + TFullPath, + TCustomId, + TId, + TSearchValidator, + TParams, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > +{ /** * @deprecated Use the `createRoute` function instead. */ @@ -352,24 +373,37 @@ export function createRootRouteWithContext() { export const rootRouteWithContext = createRootRouteWithContext export class RootRoute< - in out TSearchValidator = undefined, - in out TRouterContext = {}, - in out TRouteContextFn = AnyContext, - in out TBeforeLoadFn = AnyContext, - in out TLoaderDeps extends Record = {}, - in out TLoaderFn = undefined, - in out TChildren = unknown, - in out TFileRouteTypes = unknown, -> extends BaseRootRoute< - TSearchValidator, - TRouterContext, - TRouteContextFn, - TBeforeLoadFn, - TLoaderDeps, - TLoaderFn, - TChildren, - TFileRouteTypes -> { + in out TSearchValidator = undefined, + in out TRouterContext = {}, + in out TRouteContextFn = AnyContext, + in out TBeforeLoadFn = AnyContext, + in out TLoaderDeps extends Record = {}, + in out TLoaderFn = undefined, + in out TChildren = unknown, + in out TFileRouteTypes = unknown, + > + extends BaseRootRoute< + TSearchValidator, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > + implements + RootRouteCore< + TSearchValidator, + TRouterContext, + TRouteContextFn, + TBeforeLoadFn, + TLoaderDeps, + TLoaderFn, + TChildren, + TFileRouteTypes + > +{ /** * @deprecated `RootRoute` is now an internal implementation detail. Use `createRootRoute()` instead. */ From 986fa83e6d6944478aa22fc1a540dadbd1f33aa9 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Thu, 22 May 2025 22:27:14 +0000 Subject: [PATCH 17/47] release: v1.120.7 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 73565b52f5..b38cc74b23 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 335104ed02..d1cda6469c 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index ce7010d5d1..fee6715d20 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 01d76a121f..d709d3808d 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 83130be441..53c6340ab5 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 6b29190592..d21f4ee526 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index bd059811f3..5b105fb41f 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index 207e85d0bb..e11bc33be5 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index e32a753e60..ea4e519cd6 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index 5ab1503a24..9d4eab96ca 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 7cb606bddb..3feb22ba1c 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 1515d32ec0..dbeb610a01 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index e18b4620be..ac22336706 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index 657884d994..dc8074c135 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 288eb485be..cb43600cce 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 19446f1f80..2cf118d723 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 200cd051f0..8afb3a915a 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 42bdeb3be3..8eefd02bb2 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 8531a0f2bb..82ed262a32 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 7ce1e608df..521daaf631 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index 608ab59613..86501ac06a 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index ef25c20760..f1189e2054 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index f9381b7074..9434148b00 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index 4a8c91da94..c39ed63dc7 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index ae3b3e422b..9e460a392a 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index e53db4f48a..bfb1f0f57a 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index db2a09d06b..7b5aa1ce4b 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index b023870d37..a3b879bde4 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router-devtools": "^1.120.7", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index e6f4eaf04c..21638619fe 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 84398e6044..4534dba119 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 465cb63cfa..8444d81701 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router-devtools": "^1.120.7", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 06ae9843f7..368c564640 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 769a169608..d40983748d 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 56e19117e4..471657898b 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router-devtools": "^1.120.7", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 0934f3c6aa..8134e5284c 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index bb20152425..5108abb1f1 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", + "@tanstack/react-router": "^1.120.7", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 5dd6f53a14..d656bee803 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.5", + "@tanstack/arktype-adapter": "^1.120.7", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", - "@tanstack/valibot-adapter": "^1.120.5", - "@tanstack/zod-adapter": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", + "@tanstack/valibot-adapter": "^1.120.7", + "@tanstack/zod-adapter": "^1.120.7", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 2f42515cd8..46e4b5e44f 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 46a514193b..24c3afa547 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index fbf88a5f65..b23c22cdf1 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-with-query": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-with-query": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 00b4705d66..af3c61a353 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 6586a0ca91..4f77abac08 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index fb0c910cf8..e35204a8a9 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 4321f8e584..4b687b9eae 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index ac218c3a19..72021bcaa9 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-with-query": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-with-query": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index c43694b14c..4c96f9b338 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 38e12929da..952866ff02 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 7953751cf8..3a39c3e3f8 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-start": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index 05f3533cfd..b27bd72d4b 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index b41293c268..2b1cc0d010 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-with-query": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-with-query": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 5cadde799e..ed5daaf163 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 5a1e831553..ae06c28ade 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 3345097450..0c6aad82f6 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index e47265059d..a7117ae118 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index d3bf419983..b448371d40 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.5", - "@tanstack/react-router-devtools": "^1.120.6", - "@tanstack/router-plugin": "^1.120.5", - "@tanstack/react-start": "^1.120.5", + "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-start": "^1.120.7", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index fc350bdcde..0942ebf80e 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 8a343a1855..f3dbec217c 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index ef9f7e8e53..8462f432a5 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index e4b1e8778a..1c38313853 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 88b9997c2a..6c2e9f22c4 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index ca4eee23b5..c6ed838979 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 9d53501ec1..eaac803380 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index afd3fbbf18..8e673005c5 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.5", + "@tanstack/router-plugin": "^1.120.7", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index eaf0681393..22bcdcafb6 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", - "@tanstack/solid-start": "^1.120.5", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-start": "^1.120.7", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index c35cb473d9..1061ba77d6 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.5", - "@tanstack/solid-router-devtools": "^1.120.6", - "@tanstack/solid-start": "^1.120.5", + "@tanstack/solid-router": "^1.120.7", + "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-start": "^1.120.7", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index 2cf227c998..b83eb57cd0 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index add34149e1..4cb7c1b27d 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.6", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index 32e2b8dcbe..ddd27fd965 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 2761edaca1..30858bb3b6 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index 65efe07d61..c7728f5ed8 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index dfb7d18bcf..e53e5e585b 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index 273832bb47..de8d282082 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index 7937c64129..93de8f591d 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index ad5cdb03a1..f04a90e90c 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index 74fdc90998..8f208bc5f6 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index 63b90c5556..07380be0c9 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index 048b9a61a6..deb8829483 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.6", + "version": "1.120.7", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index b2eadf7566..eb00462aa7 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.6", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index d6d35e97d3..09bbbc34f4 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index b4f9661df2..c27907133d 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 202cd3c57d..13b36c4239 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index 7e7cc2d061..f89a1a1f08 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.6", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index 81330e39b4..1594812570 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 6cc1235d65..0a05182f63 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 77f0216bbc..338c0b3346 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index e6cddcbeec..b3c5f1b166 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index 176b1452d5..d82d959415 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 6613347742..84c34f6b8f 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index a799006ef5..605a12defa 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index b8579ed7ae..b5806d0023 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 12ff9f190e..2cd68e7f6c 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index dec92696d2..7996ffe406 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index 0fe7944f24..45cc41279d 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index 4f2f2935a4..6d9242db8e 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index 9ce4a0d359..de17aaed17 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index 4e75ab8346..221e6a6121 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 251c6e31d5..3aae32636d 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 197c0f1dc8..1db1a3c695 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 1c78998910..3dd62d2323 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.5", + "version": "1.120.7", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5221f08423..558c312f03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5244,7 +5244,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5284,7 +5284,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5318,7 +5318,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5358,7 +5358,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5404,7 +5404,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5447,7 +5447,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5487,7 +5487,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5530,7 +5530,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5570,7 +5570,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5619,7 +5619,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.5 + specifier: ^1.120.7 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From 5663aa601b551493dff8ad56d965e3d0621c7fd4 Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Fri, 23 May 2025 19:30:01 +0200 Subject: [PATCH 18/47] fix: proper HMR handling for file routes (#4240) porting from alpha to main --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- packages/router-core/src/route.ts | 10 +++ .../src/core/code-splitter/compilers.ts | 16 ++--- .../core/code-splitter/framework-options.ts | 6 -- .../src/core/route-hmr-statement.ts | 13 ++++ .../src/core/router-code-splitter-plugin.ts | 19 +----- .../src/core/router-composed-plugin.ts | 28 +++++--- .../src/core/router-hmr-plugin.ts | 67 +++++++++++++++++++ packages/router-plugin/src/core/utils.ts | 18 +++++ .../1-default/development/arrow-function.tsx | 8 ++- .../react/1-default/development/chinese.tsx | 8 ++- .../development/conditional-properties.tsx | 8 ++- ...ructured-react-memo-imported-component.tsx | 8 ++- ...-default-component-and-normal-notFound.tsx | 8 ++- .../development/function-declaration.tsx | 8 ++- .../1-default/development/importAttribute.tsx | 8 ++- ...-default-component-destructured-loader.tsx | 8 ++- .../imported-default-component.tsx | 8 ++- .../development/imported-errorComponent.tsx | 15 ++++- .../imported-notFoundComponent.tsx | 15 ++++- .../development/imported-pendingComponent.tsx | 8 ++- .../react/1-default/development/imported.tsx | 8 ++- .../react/1-default/development/inline.tsx | 8 ++- .../1-default/development/random-number.tsx | 8 ++- .../development/react-memo-component.tsx | 8 ++- .../react-memo-imported-component.tsx | 8 ++- .../development/retain-exports-loader.tsx | 8 ++- .../development/arrow-function.tsx | 8 ++- .../development/chinese.tsx | 8 ++- .../development/conditional-properties.tsx | 8 ++- ...ructured-react-memo-imported-component.tsx | 8 ++- ...-default-component-and-normal-notFound.tsx | 8 ++- .../development/function-declaration.tsx | 8 ++- .../development/importAttribute.tsx | 8 ++- ...-default-component-destructured-loader.tsx | 8 ++- .../imported-default-component.tsx | 8 ++- .../development/imported-errorComponent.tsx | 15 ++++- .../imported-notFoundComponent.tsx | 15 ++++- .../development/imported-pendingComponent.tsx | 15 ++++- .../development/imported.tsx | 8 ++- .../development/inline.tsx | 8 ++- .../development/random-number.tsx | 8 ++- .../development/react-memo-component.tsx | 8 ++- .../react-memo-imported-component.tsx | 8 ++- .../development/retain-exports-loader.tsx | 8 ++- .../development/arrow-function.tsx | 8 ++- .../development/chinese.tsx | 8 ++- .../development/conditional-properties.tsx | 8 ++- ...ructured-react-memo-imported-component.tsx | 8 ++- ...-default-component-and-normal-notFound.tsx | 8 ++- .../development/function-declaration.tsx | 8 ++- .../development/importAttribute.tsx | 8 ++- ...-default-component-destructured-loader.tsx | 8 ++- .../imported-default-component.tsx | 8 ++- .../development/imported-errorComponent.tsx | 15 ++++- .../imported-notFoundComponent.tsx | 15 ++++- .../development/imported-pendingComponent.tsx | 15 ++++- .../development/imported.tsx | 8 ++- .../development/inline.tsx | 8 ++- .../development/random-number.tsx | 8 ++- .../development/react-memo-component.tsx | 8 ++- .../react-memo-imported-component.tsx | 8 ++- .../development/retain-exports-loader.tsx | 8 ++- .../1-default/development/arrow-function.tsx | 8 ++- .../development/arrow-function.tsx | 8 ++- .../development/arrow-function.tsx | 8 ++- 65 files changed, 529 insertions(+), 160 deletions(-) create mode 100644 packages/router-plugin/src/core/route-hmr-statement.ts create mode 100644 packages/router-plugin/src/core/router-hmr-plugin.ts create mode 100644 packages/router-plugin/src/core/utils.ts diff --git a/packages/router-core/src/route.ts b/packages/router-core/src/route.ts index 9c1aeb05ea..773dc91bcf 100644 --- a/packages/router-core/src/route.ts +++ b/packages/router-core/src/route.ts @@ -1460,6 +1460,16 @@ export class BaseRoute< this._ssr = options?.ssr ?? opts.defaultSsr ?? true } + clone = (other: typeof this) => { + this._path = other._path + this._id = other._id + this._fullPath = other._fullPath + this._to = other._to + this._ssr = other._ssr + this.options.getParentRoute = other.options.getParentRoute + this.children = other.children + } + addChildren: RouteAddChildrenFn< TParentRoute, TPath, diff --git a/packages/router-plugin/src/core/code-splitter/compilers.ts b/packages/router-plugin/src/core/code-splitter/compilers.ts index 91ca8ccf79..f223f89c87 100644 --- a/packages/router-plugin/src/core/code-splitter/compilers.ts +++ b/packages/router-plugin/src/core/code-splitter/compilers.ts @@ -7,6 +7,7 @@ import { } from 'babel-dead-code-elimination' import { generateFromAst, parseAst } from '@tanstack/router-utils' import { tsrSplit } from '../constants' +import { routeHmrStatement } from '../route-hmr-statement' import { createIdentifier } from './path-ids' import { getFrameworkOptions } from './framework-options' import type { GeneratorResult, ParseAstOptions } from '@tanstack/router-utils' @@ -288,18 +289,9 @@ export function compileCodeSplitReferenceRoute( )() } - // If the TSRDummyComponent is not defined, define it - if ( - opts.runtimeEnv !== 'prod' && // only in development - !hasImportedOrDefinedIdentifier( - frameworkOptions.idents.dummyHMRComponent, - ) - ) { - programPath.pushContainer('body', [ - template.statement( - frameworkOptions.dummyHMRComponent, - )(), - ]) + // add HMR handling + if (opts.runtimeEnv !== 'prod') { + programPath.pushContainer('body', routeHmrStatement) } } diff --git a/packages/router-plugin/src/core/code-splitter/framework-options.ts b/packages/router-plugin/src/core/code-splitter/framework-options.ts index 909f7607d6..860178b1f1 100644 --- a/packages/router-plugin/src/core/code-splitter/framework-options.ts +++ b/packages/router-plugin/src/core/code-splitter/framework-options.ts @@ -4,9 +4,7 @@ type FrameworkOptions = { createFileRoute: string lazyFn: string lazyRouteComponent: string - dummyHMRComponent: string } - dummyHMRComponent: string } export function getFrameworkOptions(framework: string): FrameworkOptions { @@ -20,9 +18,7 @@ export function getFrameworkOptions(framework: string): FrameworkOptions { createFileRoute: 'createFileRoute', lazyFn: 'lazyFn', lazyRouteComponent: 'lazyRouteComponent', - dummyHMRComponent: 'TSRDummyComponent', }, - dummyHMRComponent: `export function TSRDummyComponent() { return null }`, } break case 'solid': @@ -32,9 +28,7 @@ export function getFrameworkOptions(framework: string): FrameworkOptions { createFileRoute: 'createFileRoute', lazyFn: 'lazyFn', lazyRouteComponent: 'lazyRouteComponent', - dummyHMRComponent: 'TSRDummyComponent', }, - dummyHMRComponent: `export function TSRDummyComponent() { return null }`, } break default: diff --git a/packages/router-plugin/src/core/route-hmr-statement.ts b/packages/router-plugin/src/core/route-hmr-statement.ts new file mode 100644 index 0000000000..73e66cf4cb --- /dev/null +++ b/packages/router-plugin/src/core/route-hmr-statement.ts @@ -0,0 +1,13 @@ +import * as template from '@babel/template' + +export const routeHmrStatement = template.statement( + ` +if (import.meta.hot) { + import.meta.hot.accept((newModule) => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route) + } + }) +} +`, +)() diff --git a/packages/router-plugin/src/core/router-code-splitter-plugin.ts b/packages/router-plugin/src/core/router-code-splitter-plugin.ts index 7c1ecc17a8..d15e60fdd0 100644 --- a/packages/router-plugin/src/core/router-code-splitter-plugin.ts +++ b/packages/router-plugin/src/core/router-code-splitter-plugin.ts @@ -3,7 +3,6 @@ * https://github.com/TanStack/router/pull/3355 */ -import { isAbsolute, join, normalize } from 'node:path' import { fileURLToPath, pathToFileURL } from 'node:url' import { logDiff } from '@tanstack/router-utils' import { getConfig, splitGroupingsSchema } from './config' @@ -18,6 +17,7 @@ import { tsrSplit, } from './constants' import { decodeIdentifier } from './code-splitter/path-ids' +import { debug, fileIsInRoutesDirectory } from './utils' import type { CodeSplitGroupings, SplitRouteIdentNodes } from './constants' import type { Config } from './config' @@ -27,27 +27,10 @@ import type { TransformResult as UnpluginTransformResult, } from 'unplugin' -const debug = - process.env.TSR_VITE_DEBUG && - ['true', 'router-plugin'].includes(process.env.TSR_VITE_DEBUG) - function capitalizeFirst(str: string): string { return str.charAt(0).toUpperCase() + str.slice(1) } -function fileIsInRoutesDirectory( - filePath: string, - routesDirectory: string, -): boolean { - const routesDirectoryPath = isAbsolute(routesDirectory) - ? routesDirectory - : join(process.cwd(), routesDirectory) - - const path = normalize(filePath) - - return path.startsWith(routesDirectoryPath) -} - type BannedBeforeExternalPlugin = { identifier: string pkg: string diff --git a/packages/router-plugin/src/core/router-composed-plugin.ts b/packages/router-plugin/src/core/router-composed-plugin.ts index a8256f8b4b..fe384be10f 100644 --- a/packages/router-plugin/src/core/router-composed-plugin.ts +++ b/packages/router-plugin/src/core/router-composed-plugin.ts @@ -1,22 +1,30 @@ import { unpluginRouterGeneratorFactory } from './router-generator-plugin' import { unpluginRouterCodeSplitterFactory } from './router-code-splitter-plugin' - +import { unpluginRouterHmrFactory } from './router-hmr-plugin' import type { Config } from './config' import type { UnpluginFactory } from 'unplugin' export const unpluginRouterComposedFactory: UnpluginFactory< Partial | undefined > = (options = {}, meta) => { - const routerGenerator = unpluginRouterGeneratorFactory(options, meta) + const getPlugin = (pluginFactory: UnpluginFactory>) => { + const plugin = pluginFactory(options, meta) + if (!Array.isArray(plugin)) { + return [plugin] + } + return plugin + } + + const routerGenerator = getPlugin(unpluginRouterGeneratorFactory) + const routerCodeSplitter = getPlugin(unpluginRouterCodeSplitterFactory) - const routerGeneratorOptions = Array.isArray(routerGenerator) - ? routerGenerator - : [routerGenerator] + const result = [...routerGenerator, ...routerCodeSplitter] - const routerCodeSplitter = unpluginRouterCodeSplitterFactory(options, meta) - const routerCodeSplitterOptions = Array.isArray(routerCodeSplitter) - ? routerCodeSplitter - : [routerCodeSplitter] + const isProduction = process.env.NODE_ENV === 'production' - return [...routerGeneratorOptions, ...routerCodeSplitterOptions] + if (!isProduction && !options.autoCodeSplitting) { + const routerHmr = getPlugin(unpluginRouterHmrFactory) + result.push(...routerHmr) + } + return result } diff --git a/packages/router-plugin/src/core/router-hmr-plugin.ts b/packages/router-plugin/src/core/router-hmr-plugin.ts new file mode 100644 index 0000000000..38e29bbb11 --- /dev/null +++ b/packages/router-plugin/src/core/router-hmr-plugin.ts @@ -0,0 +1,67 @@ +import { generateFromAst, logDiff, parseAst } from '@tanstack/router-utils' +import { getConfig } from './config' +import { routeHmrStatement } from './route-hmr-statement' +import { debug, fileIsInRoutesDirectory } from './utils' +import type { Config } from './config' +import type { UnpluginFactory } from 'unplugin' + +/** + * This plugin adds HMR support for file routes. + * It is only added to the composed plugin in dev when autoCodeSplitting is disabled, since the code splitting plugin + * handles HMR for code-split routes itself. + */ +export const unpluginRouterHmrFactory: UnpluginFactory< + Partial | undefined +> = (options = {}) => { + let ROOT: string = process.cwd() + let userConfig = options as Config + + return { + name: 'router-hmr-plugin', + enforce: 'pre', + + transform(code, id) { + if (!code.includes('export const Route = createFileRoute(')) { + return null + } + + if (debug) console.info('Adding HMR handling to route ', id) + + const ast = parseAst({ code, filename: id, root: ROOT }) + ast.program.body.push(routeHmrStatement) + const result = generateFromAst(ast, { + sourceMaps: true, + filename: id, + sourceFileName: id, + }) + if (debug) { + logDiff(code, result.code) + console.log('Output:\n', result.code + '\n\n') + } + return result + }, + + transformInclude(id) { + return fileIsInRoutesDirectory(id, userConfig.routesDirectory) + }, + + vite: { + configResolved(config) { + ROOT = config.root + config.mode + + userConfig = getConfig(options, ROOT) + }, + }, + + rspack() { + ROOT = process.cwd() + userConfig = getConfig(options, ROOT) + }, + + webpack() { + ROOT = process.cwd() + userConfig = getConfig(options, ROOT) + }, + } +} diff --git a/packages/router-plugin/src/core/utils.ts b/packages/router-plugin/src/core/utils.ts new file mode 100644 index 0000000000..d866a2241f --- /dev/null +++ b/packages/router-plugin/src/core/utils.ts @@ -0,0 +1,18 @@ +import { isAbsolute, join, normalize } from 'node:path' + +export const debug = + process.env.TSR_VITE_DEBUG && + ['true', 'router-plugin'].includes(process.env.TSR_VITE_DEBUG) + +export function fileIsInRoutesDirectory( + filePath: string, + routesDirectory: string, +): boolean { + const routesDirectoryPath = isAbsolute(routesDirectory) + ? routesDirectory + : join(process.cwd(), routesDirectory) + + const path = normalize(filePath) + + return path.startsWith(routesDirectoryPath) +} diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx index 0e48584a4a..d13fdc0a9a 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/posts')({ loader: fetchPosts, component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx index dffbd70c4d..abe95e1645 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/')({ interface DemoProps { title: string; } -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx index 26de4ca825..45da5048e8 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/posts')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: isEnabled ? TrueImport.loader : falseLoader }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx index 0fbc312626..7b57f3ebd9 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: importedLoader }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx index 0c88bfe0ad..a0ab6c5ab1 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx @@ -12,6 +12,10 @@ export default function Home() {

{one}

; } -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx index c395bc44ee..ae10058a91 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/posts')({ loader: fetchPosts, component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx index 8a221122d7..1207dee6d6 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx @@ -4,6 +4,10 @@ import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx index e23a496a74..f33aef1023 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: importedLoader }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx index 968e6633d4..19b8875997 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx @@ -4,6 +4,10 @@ import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx index 0701029aa3..21a9069938 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), errorComponent: lazyRouteComponent($$splitErrorComponentImporter, 'errorComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx index 63787a44d6..9f608978f5 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, 'notFoundComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx index 13cfc22f7b..763d8ff26c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), pendingComponent: importedPendingComponent }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx index c4a5d9dbc4..7baa2e3057 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: importedLoader }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx index 931f6bce74..c19e2898d5 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ }); Route.addChildren([]); export const test = 'test'; -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx index b229826efb..8b00e0aa9c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx @@ -30,6 +30,10 @@ export const Route = createFileRoute('/')({ }, component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx index dc266fa611..c5f946a469 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: importedLoader }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx index b1df7f4cf9..49922c6c9d 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: importedLoader }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx index 2d40731c37..047970676d 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx @@ -14,6 +14,10 @@ export const Route = createFileRoute('/_layout')({ export const SIDEBAR_WIDTH = '150px'; export const SIDEBAR_MINI_WIDTH = '80px'; const ASIDE_WIDTH = '250px'; -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx index 7104674b73..99fdcb621a 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/posts')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx index 3efbe3595d..5dc9c6c39c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/')({ interface DemoProps { title: string; } -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx index a126bb6807..e59fb6b170 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/posts')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx index 65f2bfb918..1a97263515 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx index 762ac36b1d..fc60c1de1c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx @@ -12,6 +12,10 @@ export default function Home() {

{one}

; } -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx index d6e6fa8152..0c2b2f0f7f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/posts')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx index b89aede427..c189737cc9 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx @@ -4,6 +4,10 @@ import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx index 9169f0b966..1519ca0183 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx index 9b38429966..27aa2140f6 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx @@ -4,6 +4,10 @@ import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx index 108ad65fde..7111e86e76 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), errorComponent: lazyRouteComponent($$splitErrorComponentImporter, 'errorComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx index 4df3a0edc2..5622edf3e8 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, 'notFoundComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx index 8a12860d09..b01e0aec42 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), pendingComponent: lazyRouteComponent($$splitPendingComponentImporter, 'pendingComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx index b8c6e8c0ff..f2947f2004 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx index a179d36c0b..12626addb0 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ }); Route.addChildren([]); export const test = 'test'; -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx index 92f502edde..bb9a25ce5b 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx @@ -26,6 +26,10 @@ export const Route = createFileRoute('/')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx index bf8ae8af25..f99d37f872 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx index 5987f84c0a..6f5453d797 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx index c8da9752f0..9f37f2c2ba 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx @@ -14,6 +14,10 @@ export const Route = createFileRoute('/_layout')({ export const SIDEBAR_WIDTH = '150px'; export const SIDEBAR_MINI_WIDTH = '80px'; const ASIDE_WIDTH = '250px'; -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx index 25bae96925..26e6cb91cf 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/posts')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx index 9abb4a9d61..c26129ff26 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/')({ interface DemoProps { title: string; } -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx index 279773de15..6f59f24540 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/posts')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx index 0fe0b8418d..b0e77520d1 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx index 77e009583c..027607711c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx @@ -12,6 +12,10 @@ export default function Home() {

{one}

; } -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx index 01360ef869..41dd964317 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx @@ -8,6 +8,10 @@ export const Route = createFileRoute('/posts')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx index d8355986bf..a79f652e83 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx @@ -4,6 +4,10 @@ import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx index 4e0beddab5..abfa009cb3 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx index b749bed2ea..d7af841661 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx @@ -4,6 +4,10 @@ import { createFileRoute } from '@tanstack/react-router'; export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx index 26951c2d0a..3fd46aa9ae 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), errorComponent: lazyRouteComponent($$splitErrorComponentImporter, 'errorComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx index 54565ca6f1..9bfc309859 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), notFoundComponent: lazyRouteComponent($$splitNotFoundComponentImporter, 'notFoundComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx index 02997dc053..de977998cf 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx @@ -6,6 +6,17 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), pendingComponent: lazyRouteComponent($$splitPendingComponentImporter, 'pendingComponent') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); +} +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx index c397f9dccc..a6c20d87ad 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx index ff044594ad..b452135b17 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ }); Route.addChildren([]); export const test = 'test'; -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx index 05f26ecf0d..769c2b9f63 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx @@ -26,6 +26,10 @@ export const Route = createFileRoute('/')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx index 66da0c232a..37d9d53304 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx index 8db833f30c..a5c16d16d3 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/')({ component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr), loader: lazyFn($$splitLoaderImporter, 'loader') }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx index eb4fd485bb..fec84f0be8 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx @@ -14,6 +14,10 @@ export const Route = createFileRoute('/_layout')({ export const SIDEBAR_WIDTH = '150px'; export const SIDEBAR_MINI_WIDTH = '80px'; const ASIDE_WIDTH = '250px'; -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx index f62b65b5eb..e2375ceb8b 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx @@ -6,6 +6,10 @@ export const Route = createFileRoute('/posts')({ loader: fetchPosts, component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx index 5f36162818..b0356f3d87 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/posts')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx index 56e28dce37..8efe2d0465 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx @@ -7,6 +7,10 @@ export const Route = createFileRoute('/posts')({ loader: lazyFn($$splitLoaderImporter, 'loader'), component: lazyRouteComponent($$splitComponentImporter, 'component', () => Route.ssr) }); -export function TSRDummyComponent() { - return null; +if (import.meta.hot) { + import.meta.hot.accept(newModule => { + if (newModule.Route && typeof newModule.Route.clone === 'function') { + newModule.Route.clone(Route); + } + }); } \ No newline at end of file From bd9eb8b3a994457f54cdb020ba7c1827cdb063b4 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 23 May 2025 17:31:26 +0000 Subject: [PATCH 19/47] release: v1.120.8 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index b38cc74b23..4112e7df96 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index d1cda6469c..f1a15bd079 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index fee6715d20..f46a7d4c66 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index d709d3808d..f285b1693d 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 53c6340ab5..62ad2b3a5b 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index d21f4ee526..82211c7c52 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 5b105fb41f..dd3fd7510b 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index e11bc33be5..194c7cae2f 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index ea4e519cd6..e0aa73dbcd 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index 9d4eab96ca..f92faf7004 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 3feb22ba1c..3feb5c6a25 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index dbeb610a01..90cb13b555 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index ac22336706..ffbc9398dc 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index dc8074c135..dd31466657 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index cb43600cce..2fce1f413a 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 2cf118d723..ea382c567f 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 8afb3a915a..e913a1fc50 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 8eefd02bb2..7599743c56 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 82ed262a32..25166e425b 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 521daaf631..3b9cf1a1b8 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index 86501ac06a..68f1cf4c5f 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index f1189e2054..14cd4acf85 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 9434148b00..3de2cc7068 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index c39ed63dc7..f5ac7a7082 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 9e460a392a..edbdca1b71 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index bfb1f0f57a..596449cdd5 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 7b5aa1ce4b..0e6e451d11 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index a3b879bde4..2b429d51f0 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.8", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index 21638619fe..dd2cb1ce1d 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 4534dba119..4ca318bdaa 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 8444d81701..0b4997bcb7 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.8", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 368c564640..b40f55ee5e 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index d40983748d..1ba206f8f5 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 471657898b..1b8798872f 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.8", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 8134e5284c..20da3f76c8 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index 5108abb1f1..0021862080 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", + "@tanstack/react-router": "^1.120.8", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index d656bee803..8cce8e6d92 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.7", + "@tanstack/arktype-adapter": "^1.120.8", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", - "@tanstack/valibot-adapter": "^1.120.7", - "@tanstack/zod-adapter": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", + "@tanstack/valibot-adapter": "^1.120.8", + "@tanstack/zod-adapter": "^1.120.8", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 46e4b5e44f..1275897533 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 24c3afa547..42963728f5 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index b23c22cdf1..c3f668f6de 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-with-query": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-with-query": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index af3c61a353..f47e0d2e2b 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 4f77abac08..88c9468de5 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index e35204a8a9..85114df19d 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 4b687b9eae..91483ed2b5 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index 72021bcaa9..a770f056a7 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-with-query": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-with-query": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index 4c96f9b338..91c5580944 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 952866ff02..07da893b08 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 3a39c3e3f8..8171e8166c 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-start": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index b27bd72d4b..c2f547c80e 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 2b1cc0d010..fb19fe1772 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-with-query": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-with-query": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index ed5daaf163..a226ee75bd 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index ae06c28ade..5bc2536b94 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 0c6aad82f6..f5b1f47fb6 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index a7117ae118..f32effee71 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index b448371d40..1c44a6a9d5 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.7", - "@tanstack/react-router-devtools": "^1.120.7", - "@tanstack/router-plugin": "^1.120.7", - "@tanstack/react-start": "^1.120.7", + "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-start": "^1.120.8", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index 0942ebf80e..1df6adce15 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index f3dbec217c..5b2006d1b4 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 8462f432a5..0affb50484 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 1c38313853..1a66043d85 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 6c2e9f22c4..07729ce608 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index c6ed838979..7cd1d5887c 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index eaac803380..9f84ec6418 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 8e673005c5..53f69d8df6 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.7", + "@tanstack/router-plugin": "^1.120.8", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 22bcdcafb6..9b25d43b33 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", - "@tanstack/solid-start": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-start": "^1.120.8", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index 1061ba77d6..d9bdbbdcab 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.7", - "@tanstack/solid-router-devtools": "^1.120.7", - "@tanstack/solid-start": "^1.120.7", + "@tanstack/solid-router": "^1.120.8", + "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-start": "^1.120.8", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index b83eb57cd0..e7a811fa12 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 4cb7c1b27d..85c2904742 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index ddd27fd965..32ee0e72a8 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 30858bb3b6..5d72f86390 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index c7728f5ed8..2798903f64 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index e53e5e585b..0fd005c9a1 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index de8d282082..e2a352a788 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index 93de8f591d..cb1c78b500 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index f04a90e90c..726d626752 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index 8f208bc5f6..b93e5e75c9 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index 07380be0c9..ecc907a841 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index deb8829483..a8b87e3066 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index eb00462aa7..a4eba687a3 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 09bbbc34f4..03cf133fbb 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index c27907133d..3b184da162 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 13b36c4239..7c8cb9b91c 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index f89a1a1f08..26b60bc635 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index 1594812570..e6c67fbe70 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 0a05182f63..32969c808b 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 338c0b3346..9c67c8d1d8 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index b3c5f1b166..1d6c14eaa1 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index d82d959415..946aee3cda 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 84c34f6b8f..26856f8c2d 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index 605a12defa..9d947b4f02 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index b5806d0023..62262989e4 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 2cd68e7f6c..21965b3437 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 7996ffe406..78f37ee3f4 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index 45cc41279d..c2d05f35bb 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index 6d9242db8e..3617a327d0 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index de17aaed17..3eee66d06c 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index 221e6a6121..1ada05d473 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 3aae32636d..c9674f07f9 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 1db1a3c695..5480d4d8a8 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 3dd62d2323..74c430b78e 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.7", + "version": "1.120.8", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 558c312f03..50df711013 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5244,7 +5244,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5284,7 +5284,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5318,7 +5318,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5358,7 +5358,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5404,7 +5404,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5447,7 +5447,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5487,7 +5487,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5530,7 +5530,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5570,7 +5570,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5619,7 +5619,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.7 + specifier: ^1.120.8 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From 7eba99e328be0b36e686a735cc668b3cb01c4123 Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Fri, 23 May 2025 20:53:06 +0200 Subject: [PATCH 20/47] fix: router.buildLocation use RegisteredRouter (#4242) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- packages/router-core/src/RouterProvider.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/router-core/src/RouterProvider.ts b/packages/router-core/src/RouterProvider.ts index 1c2b42ef21..972596bb12 100644 --- a/packages/router-core/src/RouterProvider.ts +++ b/packages/router-core/src/RouterProvider.ts @@ -1,11 +1,7 @@ import type { NavigateOptions, ToOptions } from './link' import type { ParsedLocation } from './location' import type { RoutePaths } from './routeInfo' -import type { - AnyRouter, - RegisteredRouter, - ViewTransitionOptions, -} from './router' +import type { RegisteredRouter, ViewTransitionOptions } from './router' export interface MatchLocation { to?: string | number | null @@ -37,7 +33,7 @@ export type NavigateFn = < ) => Promise | void export type BuildLocationFn = < - TRouter extends AnyRouter, + TRouter extends RegisteredRouter, TTo extends string | undefined, TFrom extends RoutePaths | string = string, TMaskFrom extends RoutePaths | string = TFrom, From 0d7dc76b60ff53dadff53f91fbb91a936273855c Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 23 May 2025 18:54:28 +0000 Subject: [PATCH 21/47] release: v1.120.9 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 4112e7df96..c2efbd544d 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index f1a15bd079..a2923df0c0 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index f46a7d4c66..e7e07959a6 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index f285b1693d..86da1d4c52 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 62ad2b3a5b..54158cdecd 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 82211c7c52..b5e6e6b987 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index dd3fd7510b..96909fc088 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index 194c7cae2f..f0eb18f0f9 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index e0aa73dbcd..57689ec774 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index f92faf7004..ed27520015 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 3feb5c6a25..d6892f7623 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 90cb13b555..f1b3d37787 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index ffbc9398dc..ae21d5a9f4 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index dd31466657..cf7b09f65e 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 2fce1f413a..226226aa2e 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index ea382c567f..2c080f9c30 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index e913a1fc50..4a084e04e8 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 7599743c56..1cbf540f48 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 25166e425b..86885b3d9f 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 3b9cf1a1b8..a6d0a90de9 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index 68f1cf4c5f..df9f4404da 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 14cd4acf85..54faef976a 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 3de2cc7068..f25276f520 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index f5ac7a7082..d88d1dd0b6 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index edbdca1b71..cc6bb0f657 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index 596449cdd5..df88d6f8a2 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 0e6e451d11..7d1287277b 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index 2b429d51f0..475ef4b720 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.9", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index dd2cb1ce1d..7fc4df4773 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 4ca318bdaa..d54db63269 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 0b4997bcb7..6d71d027bb 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.9", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index b40f55ee5e..847e075973 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 1ba206f8f5..192f04f146 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 1b8798872f..ded81d400f 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.9", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 20da3f76c8..5407711adb 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index 0021862080..f5add15474 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", + "@tanstack/react-router": "^1.120.9", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 8cce8e6d92..a3e95ae632 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.8", + "@tanstack/arktype-adapter": "^1.120.9", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", - "@tanstack/valibot-adapter": "^1.120.8", - "@tanstack/zod-adapter": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", + "@tanstack/valibot-adapter": "^1.120.9", + "@tanstack/zod-adapter": "^1.120.9", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 1275897533..c4da6c3be7 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 42963728f5..586f01c4c5 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index c3f668f6de..6f37728125 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-with-query": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-with-query": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index f47e0d2e2b..94eb649264 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 88c9468de5..32524346de 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index 85114df19d..c369cdf47e 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 91483ed2b5..d2b04f056c 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index a770f056a7..16ca2b3a2c 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-with-query": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-with-query": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index 91c5580944..fb9e2f4107 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 07da893b08..1465637ecd 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 8171e8166c..1421e2ebe7 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-start": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index c2f547c80e..b924776e23 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index fb19fe1772..0506474feb 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-with-query": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-with-query": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index a226ee75bd..5c1fb8fec3 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 5bc2536b94..1ee7ef9788 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index f5b1f47fb6..1f609816d5 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index f32effee71..827b541323 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 1c44a6a9d5..2086221cf7 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.8", - "@tanstack/react-router-devtools": "^1.120.8", - "@tanstack/router-plugin": "^1.120.8", - "@tanstack/react-start": "^1.120.8", + "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-start": "^1.120.9", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index 1df6adce15..a803c27c01 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 5b2006d1b4..1d3d1a8cad 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 0affb50484..5adf47a5e4 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 1a66043d85..ccfa647bcf 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 07729ce608..ebf31aa641 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 7cd1d5887c..18abcf7291 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 9f84ec6418..808f60ef73 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 53f69d8df6..986606b912 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.8", + "@tanstack/router-plugin": "^1.120.9", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 9b25d43b33..04008d67dd 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", - "@tanstack/solid-start": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-start": "^1.120.9", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index d9bdbbdcab..e8836009be 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.8", - "@tanstack/solid-router-devtools": "^1.120.8", - "@tanstack/solid-start": "^1.120.8", + "@tanstack/solid-router": "^1.120.9", + "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-start": "^1.120.9", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index e7a811fa12..b81d995e71 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 85c2904742..1d4770e362 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index 32ee0e72a8..dc8630c39a 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 5d72f86390..c20deec680 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index 2798903f64..f28241d32c 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index 0fd005c9a1..ea78c129c2 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index e2a352a788..bab3a4bea7 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index cb1c78b500..e8a3009556 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index 726d626752..b5b5abcfc4 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index b93e5e75c9..c2ff4a4d90 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index ecc907a841..fa95feb15f 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index a8b87e3066..4b8c82236d 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index a4eba687a3..6400b82b33 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 03cf133fbb..2785971e97 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 3b184da162..9fc738e854 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 7c8cb9b91c..1dd0ad8a2e 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index 26b60bc635..ba83ff0ed8 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index e6c67fbe70..5af7c3638c 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 32969c808b..76f108cfc4 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 9c67c8d1d8..56c523560a 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index 1d6c14eaa1..430466293e 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index 946aee3cda..fb171bfcc4 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 26856f8c2d..c1df9ee17b 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index 9d947b4f02..2aa9fb1d14 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index 62262989e4..06415e2de2 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 21965b3437..10cda95a48 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 78f37ee3f4..b58686c348 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index c2d05f35bb..697f304ccd 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index 3617a327d0..5975202db8 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index 3eee66d06c..1895f71808 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index 1ada05d473..31b1e98962 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index c9674f07f9..58d01d4846 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 5480d4d8a8..333435b978 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 74c430b78e..cd7d59ac6b 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.8", + "version": "1.120.9", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50df711013..4589ac9a60 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5244,7 +5244,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5284,7 +5284,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5318,7 +5318,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5358,7 +5358,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5404,7 +5404,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5447,7 +5447,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5487,7 +5487,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5530,7 +5530,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5570,7 +5570,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5619,7 +5619,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.8 + specifier: ^1.120.9 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From 63c623b169937504cdc06426014fd8cd24945a06 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sat, 24 May 2025 01:36:54 -0600 Subject: [PATCH 22/47] docs: fix links --- docs/router/eslint/eslint-plugin-router.md | 2 +- docs/router/framework/react/api/router.md | 156 +++++++++--------- .../react/api/router/ActiveLinkOptionsType.md | 2 +- .../react/api/router/FileRouteClass.md | 6 +- .../react/api/router/LinkOptionsType.md | 4 +- .../react/api/router/LinkPropsType.md | 4 +- .../react/api/router/NavigateOptionsType.md | 4 +- .../react/api/router/NotFoundRouteClass.md | 4 +- .../react/api/router/RedirectType.md | 2 +- .../react/api/router/RootRouteClass.md | 6 +- .../react/api/router/RouteApiClass.md | 4 +- .../react/api/router/RouteApiType.md | 24 +-- .../framework/react/api/router/RouteClass.md | 6 +- .../react/api/router/RouteMaskType.md | 4 +- .../react/api/router/RouteOptionsType.md | 10 +- .../framework/react/api/router/RouteType.md | 2 +- .../framework/react/api/router/RouterClass.md | 6 +- .../react/api/router/RouterEventsType.md | 4 +- .../react/api/router/RouterOptionsType.md | 8 +- .../react/api/router/RouterStateType.md | 8 +- .../framework/react/api/router/RouterType.md | 8 +- .../react/api/router/ToMaskOptionsType.md | 4 +- .../api/router/UseMatchRouteOptionsType.md | 6 +- .../api/router/catchBoundaryComponent.md | 2 +- .../api/router/createFileRouteFunction.md | 2 +- .../api/router/createLazyFileRouteFunction.md | 6 +- .../api/router/createLazyRouteFunction.md | 6 +- .../api/router/createRootRouteFunction.md | 4 +- .../createRootRouteWithContextFunction.md | 4 +- .../react/api/router/createRouteFunction.md | 6 +- .../api/router/createRouteMaskFunction.md | 4 +- .../react/api/router/createRouterFunction.md | 6 +- .../react/api/router/deferFunction.md | 4 +- .../react/api/router/getRouteApiFunction.md | 4 +- .../react/api/router/isNotFoundFunction.md | 8 +- .../react/api/router/linkComponent.md | 2 +- .../framework/react/api/router/linkOptions.md | 2 +- .../react/api/router/matchRouteComponent.md | 2 +- .../react/api/router/navigateComponent.md | 2 +- .../react/api/router/notFoundFunction.md | 2 +- .../react/api/router/redirectFunction.md | 2 +- .../router/rootRouteWithContextFunction.md | 6 +- .../react/api/router/useBlockerHook.md | 2 +- .../react/api/router/useCanGoBack.md | 2 +- .../react/api/router/useChildMatchesHook.md | 6 +- .../react/api/router/useLinkPropsHook.md | 6 +- .../react/api/router/useLoaderDataHook.md | 4 +- .../react/api/router/useLoaderDepsHook.md | 2 +- .../react/api/router/useLocationHook.md | 6 +- .../react/api/router/useMatchHook.md | 8 +- .../react/api/router/useMatchRouteHook.md | 2 +- .../react/api/router/useMatchesHook.md | 8 +- .../react/api/router/useNavigateHook.md | 2 +- .../react/api/router/useParamsHook.md | 2 +- .../react/api/router/useParentMatchesHook.md | 6 +- .../react/api/router/useRouterHook.md | 6 +- .../react/api/router/useRouterStateHook.md | 8 +- .../react/api/router/useSearchHook.md | 2 +- .../router/framework/react/decisions-on-dx.md | 6 +- docs/router/framework/react/faq.md | 2 +- .../react/guide/authenticated-routes.md | 4 +- .../framework/react/guide/code-splitting.md | 4 +- .../react/guide/creating-a-router.md | 4 +- .../framework/react/guide/custom-link.md | 8 +- .../custom-search-param-serialization.md | 2 +- .../framework/react/guide/data-loading.md | 6 +- .../react/guide/deferred-data-loading.md | 6 +- .../react/guide/external-data-loading.md | 2 +- .../framework/react/guide/history-types.md | 2 +- .../react/guide/navigation-blocking.md | 2 +- .../framework/react/guide/not-found-errors.md | 2 +- .../framework/react/guide/path-params.md | 4 +- .../framework/react/guide/route-masking.md | 2 +- .../framework/react/guide/search-params.md | 4 +- docs/router/framework/react/guide/ssr.md | 4 +- .../framework/react/guide/tanstack-start.md | 2 +- .../framework/react/guide/type-safety.md | 2 +- .../react/migrate-from-react-location.md | 34 ++-- docs/router/framework/react/overview.md | 2 +- docs/router/framework/react/quick-start.md | 2 +- .../react/routing/code-based-routing.md | 14 +- .../react/routing/file-based-routing.md | 14 +- .../react/routing/file-naming-conventions.md | 34 ++-- .../routing/installation-with-esbuild.md | 2 +- .../routing/installation-with-router-cli.md | 2 +- .../react/routing/installation-with-rspack.md | 2 +- .../react/routing/installation-with-vite.md | 2 +- .../routing/installation-with-webpack.md | 2 +- .../framework/react/routing/route-trees.md | 14 +- .../react/routing/routing-concepts.md | 2 +- docs/router/framework/solid/quick-start.md | 2 +- docs/start/framework/react/authentication.md | 4 +- .../framework/react/build-from-scratch.md | 2 +- docs/start/framework/react/quick-start.md | 46 +++--- .../start/framework/react/server-functions.md | 2 +- .../framework/solid/build-from-scratch.md | 2 +- docs/start/framework/solid/quick-start.md | 6 +- package.json | 11 +- pnpm-lock.yaml | 135 +++++++++++++++ scripts/verify-links.ts | 133 +++++++++++++++ 100 files changed, 619 insertions(+), 348 deletions(-) create mode 100644 scripts/verify-links.ts diff --git a/docs/router/eslint/eslint-plugin-router.md b/docs/router/eslint/eslint-plugin-router.md index a9b5cac93e..54036cb304 100644 --- a/docs/router/eslint/eslint-plugin-router.md +++ b/docs/router/eslint/eslint-plugin-router.md @@ -102,4 +102,4 @@ Alternatively, add `@tanstack/eslint-plugin-router` to the plugins section, and The following rules are available in the TanStack Router ESLint Plugin: -- [@tanstack/router/create-route-property-order](./create-route-property-order.md) +- [@tanstack/router/create-route-property-order](../create-route-property-order.md) diff --git a/docs/router/framework/react/api/router.md b/docs/router/framework/react/api/router.md index ff999e0c5d..ad3a58f851 100644 --- a/docs/router/framework/react/api/router.md +++ b/docs/router/framework/react/api/router.md @@ -4,85 +4,85 @@ title: Router API --- - Functions - - [`createFileRoute`](./router/createFileRouteFunction.md) - - [`createLazyFileRoute`](./router/createLazyFileRouteFunction.md) - - [`createRootRoute`](./router/createRootRouteFunction.md) - - [`createRootRouteWithContext`](./router/createRootRouteWithContextFunction.md) - - [`createRoute`](./router/createRouteFunction.md) - - [`createLazyRoute`](./router/createLazyRouteFunction.md) - - [`createRouteMask`](./router/createRouteMaskFunction.md) - - [`createRouter`](./router/createRouterFunction.md) - - [`defer`](./router/deferFunction.md) - - [`getRouteApi`](./router/getRouteApiFunction.md) - - [`isNotFound`](./router/isNotFoundFunction.md) - - [`isRedirect`](./router/isRedirectFunction.md) - - [`lazyRouteComponent`](./router/lazyRouteComponentFunction.md) - - [`linkOptions`](./router/linkOptions.md) - - [`notFound`](./router/notFoundFunction.md) - - [`redirect`](./router/redirectFunction.md) - - [`retainSearchParams`](./router/retainSearchParamsFunction.md) - - [`stripSearchParams`](./router/stripSearchParamsFunction.md) + - [`createFileRoute`](../router/createFileRouteFunction.md) + - [`createLazyFileRoute`](../router/createLazyFileRouteFunction.md) + - [`createRootRoute`](../router/createRootRouteFunction.md) + - [`createRootRouteWithContext`](../router/createRootRouteWithContextFunction.md) + - [`createRoute`](../router/createRouteFunction.md) + - [`createLazyRoute`](../router/createLazyRouteFunction.md) + - [`createRouteMask`](../router/createRouteMaskFunction.md) + - [`createRouter`](../router/createRouterFunction.md) + - [`defer`](../router/deferFunction.md) + - [`getRouteApi`](../router/getRouteApiFunction.md) + - [`isNotFound`](../router/isNotFoundFunction.md) + - [`isRedirect`](../router/isRedirectFunction.md) + - [`lazyRouteComponent`](../router/lazyRouteComponentFunction.md) + - [`linkOptions`](../router/linkOptions.md) + - [`notFound`](../router/notFoundFunction.md) + - [`redirect`](../router/redirectFunction.md) + - [`retainSearchParams`](../router/retainSearchParamsFunction.md) + - [`stripSearchParams`](../router/stripSearchParamsFunction.md) - Components - - [``](./router/awaitComponent.md) - - [``](./router/catchBoundaryComponent.md) - - [``](./router/catchNotFoundComponent.md) - - [``](./router/clientOnlyComponent.md) - - [``](./router/defaultGlobalNotFoundComponent.md) - - [``](./router/errorComponentComponent.md) - - [``](./router/linkComponent.md) - - [``](./router/matchRouteComponent.md) - - [``](./router/navigateComponent.md) - - [``](./router/outletComponent.md) + - [``](../router/awaitComponent.md) + - [``](../router/catchBoundaryComponent.md) + - [``](../router/catchNotFoundComponent.md) + - [``](../router/clientOnlyComponent.md) + - [``](../router/defaultGlobalNotFoundComponent.md) + - [``](../router/errorComponentComponent.md) + - [``](../router/linkComponent.md) + - [``](../router/matchRouteComponent.md) + - [``](../router/navigateComponent.md) + - [``](../router/outletComponent.md) - Hooks - - [`useAwaited`](./router/useAwaitedHook.md) - - [`useBlocker`](./router/useBlockerHook.md) - - [`useCanGoBack`](./router//useCanGoBack.md) - - [`useChildMatches`](./router/useChildMatchesHook.md) - - [`useLinkProps`](./router/useLinkPropsHook.md) - - [`useLoaderData`](./router/useLoaderDataHook.md) - - [`useLoaderDeps`](./router/useLoaderDepsHook.md) - - [`useLocation`](./router/useLocationHook.md) - - [`useMatch`](./router/useMatchHook.md) - - [`useMatchRoute`](./router/useMatchRouteHook.md) - - [`useMatches`](./router/useMatchesHook.md) - - [`useNavigate`](./router/useNavigateHook.md) - - [`useParentMatches`](./router/useParentMatchesHook.md) - - [`useParams`](./router/useParamsHook.md) - - [`useRouteContext`](./router/useRouteContextHook.md) - - [`useRouter`](./router/useRouterHook.md) - - [`useRouterState`](./router/useRouterStateHook.md) - - [`useSearch`](./router/useSearchHook.md) + - [`useAwaited`](../router/useAwaitedHook.md) + - [`useBlocker`](../router/useBlockerHook.md) + - [`useCanGoBack`](../router//useCanGoBack.md) + - [`useChildMatches`](../router/useChildMatchesHook.md) + - [`useLinkProps`](../router/useLinkPropsHook.md) + - [`useLoaderData`](../router/useLoaderDataHook.md) + - [`useLoaderDeps`](../router/useLoaderDepsHook.md) + - [`useLocation`](../router/useLocationHook.md) + - [`useMatch`](../router/useMatchHook.md) + - [`useMatchRoute`](../router/useMatchRouteHook.md) + - [`useMatches`](../router/useMatchesHook.md) + - [`useNavigate`](../router/useNavigateHook.md) + - [`useParentMatches`](../router/useParentMatchesHook.md) + - [`useParams`](../router/useParamsHook.md) + - [`useRouteContext`](../router/useRouteContextHook.md) + - [`useRouter`](../router/useRouterHook.md) + - [`useRouterState`](../router/useRouterStateHook.md) + - [`useSearch`](../router/useSearchHook.md) - Types - - [`ActiveLinkOptions Type`](./router/ActiveLinkOptionsType.md) - - [`AsyncRouteComponent Type`](./router/AsyncRouteComponentType.md) - - [`HistoryState Interface`](./router/historyStateInterface.md) - - [`LinkOptions Type`](./router/LinkOptionsType.md) - - [`LinkProps Type`](./router/LinkPropsType.md) - - [`MatchRouteOptions Type`](./router/MatchRouteOptionsType.md) - - [`NavigateOptions Type`](./router/NavigateOptionsType.md) - - [`NotFoundError Type`](./router/NotFoundErrorType.md) - - [`ParsedHistoryState Type`](./router/ParsedHistoryStateType.md) - - [`ParsedLocation Type`](./router/ParsedLocationType.md) - - [`Redirect Type`](./router/RedirectType.md) - - [`Register Type`](./router/RegisterType.md) - - [`Route Type`](./router/RouteType.md) - - [`RouteApi Type`](./router/RouteApiType.md) - - [`RouteMask Type`](./router/RouteMaskType.md) - - [`RouteMatch Type`](./router/RouteMatchType.md) - - [`RouteOptions Type`](./router/RouteOptionsType.md) - - [`Router Type`](./router/RouterType.md) - - [`RouterEvents Type`](./router/RouterEventsType.md) - - [`RouterOptions Type`](./router/RouterOptionsType.md) - - [`RouterState Type`](./router/RouterStateType.md) - - [`ToMaskOptions Type`](./router/ToMaskOptionsType.md) - - [`ToOptions Type`](./router/ToOptionsType.md) - - [`UseMatchRouteOptions Type`](./router/UseMatchRouteOptionsType.md) - - [`ViewTransitionOptions Type`](./router/ViewTransitionOptionsType.md) + - [`ActiveLinkOptions Type`](../router/ActiveLinkOptionsType.md) + - [`AsyncRouteComponent Type`](../router/AsyncRouteComponentType.md) + - [`HistoryState Interface`](../router/historyStateInterface.md) + - [`LinkOptions Type`](../router/LinkOptionsType.md) + - [`LinkProps Type`](../router/LinkPropsType.md) + - [`MatchRouteOptions Type`](../router/MatchRouteOptionsType.md) + - [`NavigateOptions Type`](../router/NavigateOptionsType.md) + - [`NotFoundError Type`](../router/NotFoundErrorType.md) + - [`ParsedHistoryState Type`](../router/ParsedHistoryStateType.md) + - [`ParsedLocation Type`](../router/ParsedLocationType.md) + - [`Redirect Type`](../router/RedirectType.md) + - [`Register Type`](../router/RegisterType.md) + - [`Route Type`](../router/RouteType.md) + - [`RouteApi Type`](../router/RouteApiType.md) + - [`RouteMask Type`](../router/RouteMaskType.md) + - [`RouteMatch Type`](../router/RouteMatchType.md) + - [`RouteOptions Type`](../router/RouteOptionsType.md) + - [`Router Type`](../router/RouterType.md) + - [`RouterEvents Type`](../router/RouterEventsType.md) + - [`RouterOptions Type`](../router/RouterOptionsType.md) + - [`RouterState Type`](../router/RouterStateType.md) + - [`ToMaskOptions Type`](../router/ToMaskOptionsType.md) + - [`ToOptions Type`](../router/ToOptionsType.md) + - [`UseMatchRouteOptions Type`](../router/UseMatchRouteOptionsType.md) + - [`ViewTransitionOptions Type`](../router/ViewTransitionOptionsType.md) - ⚠️ Deprecated - - [`FileRoute Class`](./router/FileRouteClass.md) - - [`Route Class`](./router/RouteClass.md) - - [`Router Class`](./router/RouterClass.md) - - [`RouteApi Class`](./router/RouteApiClass.md) - - [`RootRoute Class`](./router/RootRouteClass.md) - - [`NotFoundRoute Class`](./router/NotFoundRouteClass.md) - - [`rootRouteWithContext Function`](./router/rootRouteWithContextFunction.md) + - [`FileRoute Class`](../router/FileRouteClass.md) + - [`Route Class`](../router/RouteClass.md) + - [`Router Class`](../router/RouterClass.md) + - [`RouteApi Class`](../router/RouteApiClass.md) + - [`RootRoute Class`](../router/RootRouteClass.md) + - [`NotFoundRoute Class`](../router/NotFoundRouteClass.md) + - [`rootRouteWithContext Function`](../router/rootRouteWithContextFunction.md) diff --git a/docs/router/framework/react/api/router/ActiveLinkOptionsType.md b/docs/router/framework/react/api/router/ActiveLinkOptionsType.md index 01434bf41a..8f673799e0 100644 --- a/docs/router/framework/react/api/router/ActiveLinkOptionsType.md +++ b/docs/router/framework/react/api/router/ActiveLinkOptionsType.md @@ -3,7 +3,7 @@ id: ActiveLinkOptionsType title: ActiveLinkOptions type --- -The `ActiveLinkOptions` type extends the [`LinkOptions`](./LinkOptionsType.md) type and contains additional options that can be used to describe how a link should be styled when it is active. +The `ActiveLinkOptions` type extends the [`LinkOptions`](../LinkOptionsType.md) type and contains additional options that can be used to describe how a link should be styled when it is active. ```tsx type ActiveLinkOptions = LinkOptions & { diff --git a/docs/router/framework/react/api/router/FileRouteClass.md b/docs/router/framework/react/api/router/FileRouteClass.md index d7745b4580..47f565137f 100644 --- a/docs/router/framework/react/api/router/FileRouteClass.md +++ b/docs/router/framework/react/api/router/FileRouteClass.md @@ -5,7 +5,7 @@ title: FileRoute class > [!CAUTION] > This class has been deprecated and will be removed in the next major version of TanStack Router. -> Please use the [`createFileRoute`](./createFileRouteFunction.md) function instead. +> Please use the [`createFileRoute`](../createFileRouteFunction.md) function instead. The `FileRoute` class is a factory that can be used to create a file-based route instance. This route instance can then be used to automatically generate a route tree with the `tsr generate` and `tsr watch` commands. @@ -34,13 +34,13 @@ The `createRoute` method is a method that can be used to configure the file rout #### .createRoute options - Type: `Omit` -- [`RouteOptions`](./RouteOptionsType.md) +- [`RouteOptions`](../RouteOptionsType.md) - Optional - The same options that are available to the `Route` class, but with the `getParentRoute`, `path`, and `id` options omitted since they are unnecessary for file-based routing. #### .createRoute returns -A [`Route`](./RouteType.md) instance that can be used to configure the route to be inserted into the route-tree. +A [`Route`](../RouteType.md) instance that can be used to configure the route to be inserted into the route-tree. > ⚠️ Note: For `tsr generate` and `tsr watch` to work properly, the file route instance must be exported from the file using the `Route` identifier. diff --git a/docs/router/framework/react/api/router/LinkOptionsType.md b/docs/router/framework/react/api/router/LinkOptionsType.md index 481a5b4a3d..5f81578140 100644 --- a/docs/router/framework/react/api/router/LinkOptionsType.md +++ b/docs/router/framework/react/api/router/LinkOptionsType.md @@ -3,7 +3,7 @@ id: LinkOptionsType title: LinkOptions type --- -The `LinkOptions` type extends the [`NavigateOptions`](./NavigateOptionsType.md) type and contains additional options that can be used by TanStack Router when handling actual anchor element attributes. +The `LinkOptions` type extends the [`NavigateOptions`](../NavigateOptionsType.md) type and contains additional options that can be used by TanStack Router when handling actual anchor element attributes. ```tsx type LinkOptions = NavigateOptions & { @@ -36,7 +36,7 @@ The `LinkOptions` object accepts/contains the following properties: - Type: `false | 'intent' | 'viewport' | 'render'` - Optional - If set, the link's preloading strategy will be set to this value. -- See the [Preloading guide](../../guide/preloading.md) for more information. +- See the [Preloading guide](../../../guide/preloading.md) for more information. ### `preloadDelay` diff --git a/docs/router/framework/react/api/router/LinkPropsType.md b/docs/router/framework/react/api/router/LinkPropsType.md index e8df561a97..4866cb400b 100644 --- a/docs/router/framework/react/api/router/LinkPropsType.md +++ b/docs/router/framework/react/api/router/LinkPropsType.md @@ -3,7 +3,7 @@ id: LinkPropsType title: LinkProps type --- -The `LinkProps` type extends the [`ActiveLinkOptions`](./ActiveLinkOptionsType.md) and `React.AnchorHTMLAttributes` types and contains additional props specific to the `Link` component. +The `LinkProps` type extends the [`ActiveLinkOptions`](../ActiveLinkOptionsType.md) and `React.AnchorHTMLAttributes` types and contains additional props specific to the `Link` component. ```tsx type LinkProps = ActiveLinkOptions & @@ -16,7 +16,7 @@ type LinkProps = ActiveLinkOptions & ## LinkProps properties -- All of the props from [`ActiveLinkOptions`](./ActiveLinkOptionsType.md) +- All of the props from [`ActiveLinkOptions`](../ActiveLinkOptionsType.md) - All of the props from `React.AnchorHTMLAttributes` #### `children` diff --git a/docs/router/framework/react/api/router/NavigateOptionsType.md b/docs/router/framework/react/api/router/NavigateOptionsType.md index c4068d0fc2..4a855774e9 100644 --- a/docs/router/framework/react/api/router/NavigateOptionsType.md +++ b/docs/router/framework/react/api/router/NavigateOptionsType.md @@ -50,7 +50,7 @@ The `NavigateOptions` object accepts the following properties: - Optional - Defaults to `false`. - If `true`, navigation will be called using `document.startViewTransition()`. -- If [`ViewTransitionOptions`](./ViewTransitionOptionsType.md), route navigations will be called using `document.startViewTransition({update, types})` where `types` will be the strings array passed with `ViewTransitionOptions["types"]`. If the browser does not support viewTransition types, the navigation will fall back to normal `document.startTransition()`, same as if `true` was passed. +- If [`ViewTransitionOptions`](../ViewTransitionOptionsType.md), route navigations will be called using `document.startViewTransition({update, types})` where `types` will be the strings array passed with `ViewTransitionOptions["types"]`. If the browser does not support viewTransition types, the navigation will fall back to normal `document.startTransition()`, same as if `true` was passed. - If the browser does not support this api, this option will be ignored. - See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Document/startViewTransition) for more information on how this function works. - See [Google](https://developer.chrome.com/docs/web-platform/view-transitions/same-document#view-transition-types) for more information on viewTransition types @@ -75,4 +75,4 @@ The `NavigateOptions` object accepts the following properties: - Optional - This can be used instead of `to` to navigate to a fully built href, e.g. pointing to an external target. -- [`ToOptions`](./ToOptionsType.md) +- [`ToOptions`](../ToOptionsType.md) diff --git a/docs/router/framework/react/api/router/NotFoundRouteClass.md b/docs/router/framework/react/api/router/NotFoundRouteClass.md index 1efe0e5dae..bfe954ba00 100644 --- a/docs/router/framework/react/api/router/NotFoundRouteClass.md +++ b/docs/router/framework/react/api/router/NotFoundRouteClass.md @@ -6,7 +6,7 @@ title: NotFoundRoute class > [!CAUTION] > This class has been deprecated and will be removed in the next major version of TanStack Router. > Please use the `notFoundComponent` route option that is present during route configuration. -> See the [Not Found Errors guide](../../guide/not-found-errors.md) for more information. +> See the [Not Found Errors guide](../../../guide/not-found-errors.md) for more information. The `NotFoundRoute` class extends the `Route` class and can be used to create a not found route instance. A not found route instance can be passed to the `routerOptions.notFoundRoute` option to configure a default not-found/404 route for every branch of the route tree. @@ -28,7 +28,7 @@ Omit< > ``` -- [RouteOptions](./RouteOptionsType.md) +- [RouteOptions](../RouteOptionsType.md) - Required - The options that will be used to configure the not found route instance. diff --git a/docs/router/framework/react/api/router/RedirectType.md b/docs/router/framework/react/api/router/RedirectType.md index b1727a0689..4955d06cd0 100644 --- a/docs/router/framework/react/api/router/RedirectType.md +++ b/docs/router/framework/react/api/router/RedirectType.md @@ -13,7 +13,7 @@ export type Redirect = { } & NavigateOptions ``` -- [`NavigateOptions`](./NavigateOptionsType.md) +- [`NavigateOptions`](../NavigateOptionsType.md) ## Redirect properties diff --git a/docs/router/framework/react/api/router/RootRouteClass.md b/docs/router/framework/react/api/router/RootRouteClass.md index 1553dd2550..c0e7e2e6f3 100644 --- a/docs/router/framework/react/api/router/RootRouteClass.md +++ b/docs/router/framework/react/api/router/RootRouteClass.md @@ -5,7 +5,7 @@ title: RootRoute class > [!CAUTION] > This class has been deprecated and will be removed in the next major version of TanStack Router. -> Please use the [`createRootRoute`](./createRootRouteFunction.md) function instead. +> Please use the [`createRootRoute`](../createRootRouteFunction.md) function instead. The `RootRoute` class extends the `Route` class and can be used to create a root route instance. A root route instance can then be used to create a route tree. @@ -31,12 +31,12 @@ Omit< > ``` -- [`RouteOptions`](./RouteOptionsType.md) +- [`RouteOptions`](../RouteOptionsType.md) - Optional ## Constructor returns -A new [`Route`](./RouteType.md) instance. +A new [`Route`](../RouteType.md) instance. ## Examples diff --git a/docs/router/framework/react/api/router/RouteApiClass.md b/docs/router/framework/react/api/router/RouteApiClass.md index 387089cdf3..60fa514405 100644 --- a/docs/router/framework/react/api/router/RouteApiClass.md +++ b/docs/router/framework/react/api/router/RouteApiClass.md @@ -5,7 +5,7 @@ title: RouteApi class > [!CAUTION] > This class has been deprecated and will be removed in the next major version of TanStack Router. -> Please use the [`getRouteApi`](./getRouteApiFunction.md) function instead. +> Please use the [`getRouteApi`](../getRouteApiFunction.md) function instead. The `RouteApi` class provides type-safe version of common hooks like `useParams`, `useSearch`, `useRouteContext`, `useNavigate`, `useLoaderData`, and `useLoaderDeps` that are pre-bound to a specific route ID and corresponding registered route types. @@ -21,7 +21,7 @@ The `RouteApi` constructor accepts a single argument: the `options` that will be ## Constructor returns -- An instance of the [`RouteApi`](./RouteApiType.md) that is pre-bound to the route ID that it was called with. +- An instance of the [`RouteApi`](../RouteApiType.md) that is pre-bound to the route ID that it was called with. ## Examples diff --git a/docs/router/framework/react/api/router/RouteApiType.md b/docs/router/framework/react/api/router/RouteApiType.md index a5d806397b..36e1f4c78e 100644 --- a/docs/router/framework/react/api/router/RouteApiType.md +++ b/docs/router/framework/react/api/router/RouteApiType.md @@ -17,7 +17,7 @@ The `RouteApi` has the following properties and methods: }): TSelected ``` -- A type-safe version of the [`useMatch`](./useMatchHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of the [`useMatch`](../useMatchHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. - Options - `opts.select` - Optional @@ -27,7 +27,7 @@ The `RouteApi` has the following properties and methods: - Optional - `boolean` - Configures whether structural sharing is enabled for the value returned by `select`. - - See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. + - See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. - Returns - If a `select` function is provided, the return value of the `select` function. - If no `select` function is provided, the `RouteMatch` object or a loosened version of the `RouteMatch` object if `opts.strict` is `false`. @@ -40,7 +40,7 @@ The `RouteApi` has the following properties and methods: }): TSelected ``` -- A type-safe version of the [`useRouteContext`](./useRouteContextHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of the [`useRouteContext`](../useRouteContextHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. - Options - `opts.select` - Optional @@ -58,7 +58,7 @@ The `RouteApi` has the following properties and methods: }): TSelected ``` -- A type-safe version of the [`useSearch`](./useSearchHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of the [`useSearch`](../useSearchHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. - Options - `opts.select` - Optional @@ -68,7 +68,7 @@ The `RouteApi` has the following properties and methods: - Optional - `boolean` - Configures whether structural sharing is enabled for the value returned by `select`. - - See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. + - See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. - Returns - If a `select` function is provided, the return value of the `select` function. - If no `select` function is provided, the `TFullSearchSchema` object or a loosened version of the `TFullSearchSchema` object if `opts.strict` is `false`. @@ -81,7 +81,7 @@ The `RouteApi` has the following properties and methods: }): TSelected ``` -- A type-safe version of the [`useParams`](./useParamsHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of the [`useParams`](../useParamsHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. - Options - `opts.select` - Optional @@ -91,7 +91,7 @@ The `RouteApi` has the following properties and methods: - Optional - `boolean` - Configures whether structural sharing is enabled for the value returned by `select`. - - See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. + - See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. - Returns - If a `select` function is provided, the return value of the `select` function. - If no `select` function is provided, the `TAllParams` object or a loosened version of the `TAllParams` object if `opts.strict` is `false`. @@ -104,7 +104,7 @@ The `RouteApi` has the following properties and methods: }): TSelected ``` -- A type-safe version of the [`useLoaderData`](./useLoaderDataHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of the [`useLoaderData`](../useLoaderDataHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. - Options - `opts.select` - Optional @@ -114,7 +114,7 @@ The `RouteApi` has the following properties and methods: - Optional - `boolean` - Configures whether structural sharing is enabled for the value returned by `select`. - - See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. + - See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. - Returns - If a `select` function is provided, the return value of the `select` function. - If no `select` function is provided, the `TLoaderData` object or a loosened version of the `TLoaderData` object if `opts.strict` is `false`. @@ -127,7 +127,7 @@ The `RouteApi` has the following properties and methods: }): TSelected ``` -- A type-safe version of the [`useLoaderDeps`](./useLoaderDepsHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of the [`useLoaderDeps`](../useLoaderDepsHook.md) hook that is pre-bound to the route ID that the `RouteApi` instance was created with. - Options - `opts.select` - Optional @@ -137,7 +137,7 @@ The `RouteApi` has the following properties and methods: - Optional - `boolean` - Configures whether structural sharing is enabled for the value returned by `select`. - - See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. + - See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. - Returns - If a `select` function is provided, the return value of the `select` function. - If no `select` function is provided, the `TLoaderDeps` object. @@ -148,4 +148,4 @@ The `RouteApi` has the following properties and methods: useNavigate(): // navigate function ``` -- A type-safe version of [`useNavigate`](./useNavigateHook.md) that is pre-bound to the route ID that the `RouteApi` instance was created with. +- A type-safe version of [`useNavigate`](../useNavigateHook.md) that is pre-bound to the route ID that the `RouteApi` instance was created with. diff --git a/docs/router/framework/react/api/router/RouteClass.md b/docs/router/framework/react/api/router/RouteClass.md index 514a58cd41..7658092ca4 100644 --- a/docs/router/framework/react/api/router/RouteClass.md +++ b/docs/router/framework/react/api/router/RouteClass.md @@ -5,7 +5,7 @@ title: Route class > [!CAUTION] > This class has been deprecated and will be removed in the next major version of TanStack Router. -> Please use the [`createRoute`](./createRouteFunction.md) function instead. +> Please use the [`createRoute`](../createRouteFunction.md) function instead. The `Route` class implements the `RouteApi` class and can be used to create route instances. A route instance can then be used to create a route tree. @@ -15,13 +15,13 @@ The `Route` constructor accepts an object as its only argument. ### Constructor options -- Type: [`RouteOptions`](./RouteOptionsType.md) +- Type: [`RouteOptions`](../RouteOptionsType.md) - Required - The options that will be used to configure the route instance ### Constructor returns -A new [`Route`](./RouteType.md) instance. +A new [`Route`](../RouteType.md) instance. ## Examples diff --git a/docs/router/framework/react/api/router/RouteMaskType.md b/docs/router/framework/react/api/router/RouteMaskType.md index d3e22c0c0d..9ce6e42e36 100644 --- a/docs/router/framework/react/api/router/RouteMaskType.md +++ b/docs/router/framework/react/api/router/RouteMaskType.md @@ -3,7 +3,7 @@ id: RouteMaskType title: RouteMask type --- -The `RouteMask` type extends the [`ToOptions`](./ToOptionsType.md) type and has other the necessary properties to create a route mask. +The `RouteMask` type extends the [`ToOptions`](../ToOptionsType.md) type and has other the necessary properties to create a route mask. ## RouteMask properties @@ -11,7 +11,7 @@ The `RouteMask` type accepts an object with the following properties: ### `...ToOptions` -- Type: [`ToOptions`](./ToOptionsType.md) +- Type: [`ToOptions`](../ToOptionsType.md) - Required - The options that will be used to configure the route mask diff --git a/docs/router/framework/react/api/router/RouteOptionsType.md b/docs/router/framework/react/api/router/RouteOptionsType.md index 3500f0f27f..33fd10fe00 100644 --- a/docs/router/framework/react/api/router/RouteOptionsType.md +++ b/docs/router/framework/react/api/router/RouteOptionsType.md @@ -109,13 +109,13 @@ type beforeLoad = ( ``` - Optional -- [`ParsedLocation`](./ParsedLocationType.md) +- [`ParsedLocation`](../ParsedLocationType.md) - This async function is called before a route is loaded. If an error is thrown here, the route's loader will not be called and the route will not render. If thrown during a navigation, the navigation will be canceled and the error will be passed to the `onError` function. If thrown during a preload event, the error will be logged to the console and the preload will fail. - If this function returns a promise, the route will be put into a pending state and cause rendering to suspend until the promise resolves. If this route's pendingMs threshold is reached, the `pendingComponent` will be shown until it resolves. If the promise rejects, the route will be put into an error state and the error will be thrown during render. - If this function returns a `TRouteContext` object, that object will be merged into the route's context and be made available in the `loader` and other related route components/methods. - It's common to use this function to check if a user is authenticated and redirect them to a login page if they are not. To do this, you can either return or throw a `redirect` object from this function. -> 🚧 `opts.navigate` has been deprecated and will be removed in the next major release. Use `throw redirect({ to: '/somewhere' })` instead. Read more about the `redirect` function [here](./redirectFunction.md). +> 🚧 `opts.navigate` has been deprecated and will be removed in the next major release. Use `throw redirect({ to: '/somewhere' })` instead. Read more about the `redirect` function [here](../redirectFunction.md). ### `loader` method @@ -138,12 +138,12 @@ type loader = ( ``` - Optional -- [`ParsedLocation`](./ParsedLocationType.md) +- [`ParsedLocation`](../ParsedLocationType.md) - This async function is called when a route is matched and passed the route's match object. If an error is thrown here, the route will be put into an error state and the error will be thrown during render. If thrown during a navigation, the navigation will be canceled and the error will be passed to the `onError` function. If thrown during a preload event, the error will be logged to the console and the preload will fail. - If this function returns a promise, the route will be put into a pending state and cause rendering to suspend until the promise resolves. If this route's pendingMs threshold is reached, the `pendingComponent` will be shown until it resolves. If the promise rejects, the route will be put into an error state and the error will be thrown during render. - If this function returns a `TLoaderData` object, that object will be stored on the route match until the route match is no longer active. It can be accessed using the `useLoaderData` hook in any component that is a child of the route match before another `` is rendered. -> 🚧 `opts.navigate` has been deprecated and will be removed in the next major release. Use `throw redirect({ to: '/somewhere' })` instead. Read more about the `redirect` function [here](./redirectFunction.md). +> 🚧 `opts.navigate` has been deprecated and will be removed in the next major release. Use `throw redirect({ to: '/somewhere' })` instead. Read more about the `redirect` function [here](../redirectFunction.md). ### `loaderDeps` method @@ -241,7 +241,7 @@ type loaderDeps = (opts: { search: TFullSearchSchema }) => Record - Type: `(error: any) => void` - Optional - A function that will be called when an error is thrown during a navigation or preload event. -- If this function throws a [`redirect`](./redirectFunction.md), then the router will process and apply the redirect immediately. +- If this function throws a [`redirect`](../redirectFunction.md), then the router will process and apply the redirect immediately. ### `onEnter` property diff --git a/docs/router/framework/react/api/router/RouteType.md b/docs/router/framework/react/api/router/RouteType.md index 57e23ecc8b..6e2c675c9a 100644 --- a/docs/router/framework/react/api/router/RouteType.md +++ b/docs/router/framework/react/api/router/RouteType.md @@ -28,4 +28,4 @@ An instance of the `Route` has the following properties and methods: ### ...`RouteApi` methods -- All of the methods from [`RouteApi`](./RouteApiType.md) are available. +- All of the methods from [`RouteApi`](../RouteApiType.md) are available. diff --git a/docs/router/framework/react/api/router/RouterClass.md b/docs/router/framework/react/api/router/RouterClass.md index dfb4589b77..24fa525afc 100644 --- a/docs/router/framework/react/api/router/RouterClass.md +++ b/docs/router/framework/react/api/router/RouterClass.md @@ -5,7 +5,7 @@ title: Router Class > [!CAUTION] > This class has been deprecated and will be removed in the next major version of TanStack Router. -> Please use the [`createRouter`](./createRouterFunction.md) function instead. +> Please use the [`createRouter`](../createRouterFunction.md) function instead. The `Router` class is used to instantiate a new router instance. @@ -15,13 +15,13 @@ The `Router` constructor accepts a single argument: the `options` that will be u ### Constructor options -- Type: [`RouterOptions`](./RouterOptionsType.md) +- Type: [`RouterOptions`](../RouterOptionsType.md) - Required - The options that will be used to configure the router instance. ### Constructor returns -- An instance of the [`Router`](./RouterType.md). +- An instance of the [`Router`](../RouterType.md). ## Examples diff --git a/docs/router/framework/react/api/router/RouterEventsType.md b/docs/router/framework/react/api/router/RouterEventsType.md index fd1b6dfb3d..0d31f05ce3 100644 --- a/docs/router/framework/react/api/router/RouterEventsType.md +++ b/docs/router/framework/react/api/router/RouterEventsType.md @@ -66,12 +66,12 @@ Once an event is emitted, the following properties will be present on the event ### `fromLocation` property -- Type: [`ParsedLocation`](./ParsedLocationType.md) +- Type: [`ParsedLocation`](../ParsedLocationType.md) - The location that the router is transitioning from. ### `toLocation` property -- Type: [`ParsedLocation`](./ParsedLocationType.md) +- Type: [`ParsedLocation`](../ParsedLocationType.md) - The location that the router is transitioning to. ### `pathChanged` property diff --git a/docs/router/framework/react/api/router/RouterOptionsType.md b/docs/router/framework/react/api/router/RouterOptionsType.md index 8d78f2719a..2bd2ecea9a 100644 --- a/docs/router/framework/react/api/router/RouterOptionsType.md +++ b/docs/router/framework/react/api/router/RouterOptionsType.md @@ -141,7 +141,7 @@ The `RouterOptions` type accepts an object with the following properties and met - Type: `boolean | ViewTransitionOptions` - Optional - If `true`, route navigations will be called using `document.startViewTransition()`. -- If [`ViewTransitionOptions`](./ViewTransitionOptionsType.md), route navigations will be called using `document.startViewTransition({update, types})` +- If [`ViewTransitionOptions`](../ViewTransitionOptionsType.md), route navigations will be called using `document.startViewTransition({update, types})` where `types` will be the strings array passed with `ViewTransitionOptions["types"]`. If the browser does not support viewTransition types, the navigation will fall back to normal `document.startTransition()`, same as if `true` was passed. - If the browser does not support this api, this option will be ignored. @@ -174,7 +174,7 @@ The `RouterOptions` type accepts an object with the following properties and met ### `context` property - Type: `any` -- Optional or required if the root route was created with [`createRootRouteWithContext()`](./createRootRouteWithContextFunction.md). +- Optional or required if the root route was created with [`createRootRouteWithContext()`](../createRootRouteWithContextFunction.md). - The root context that will be provided to all routes in the route tree. This can be used to provide a context to all routes in the tree without having to provide it to each route individually. ### `dehydrate` method @@ -251,7 +251,7 @@ const router = createRouter({ - Type: `'root' | 'fuzzy'` - Optional - Defaults to `'fuzzy'` -- This property controls how TanStack Router will handle scenarios where it cannot find a route to match the current location. See the [Not Found Errors guide](../../guide/not-found-errors.md) for more information. +- This property controls how TanStack Router will handle scenarios where it cannot find a route to match the current location. See the [Not Found Errors guide](../../../guide/not-found-errors.md) for more information. ### `notFoundRoute` property @@ -295,7 +295,7 @@ const router = createRouter({ - Optional - Defaults to `false` - Configures whether structural sharing is enabled by default for fine-grained selectors. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ### `defaultRemountDeps` property diff --git a/docs/router/framework/react/api/router/RouterStateType.md b/docs/router/framework/react/api/router/RouterStateType.md index 6c4d2aca93..401ffdfef4 100644 --- a/docs/router/framework/react/api/router/RouterStateType.md +++ b/docs/router/framework/react/api/router/RouterStateType.md @@ -38,20 +38,20 @@ The `RouterState` type contains all of the properties that are available on the ### `matches` property -- Type: [`Array`](./RouteMatchType.md) +- Type: [`Array`](../RouteMatchType.md) - An array of all of the route matches that have been resolved and are currently active. ### `pendingMatches` property -- Type: [`Array`](./RouteMatchType.md) +- Type: [`Array`](../RouteMatchType.md) - An array of all of the route matches that are currently pending. ### `location` property -- Type: [`ParsedLocation`](./ParsedLocationType.md) +- Type: [`ParsedLocation`](../ParsedLocationType.md) - The latest location that the router has parsed from the browser history. This location may not be resolved and loaded yet. ### `resolvedLocation` property -- Type: [`ParsedLocation`](./ParsedLocationType.md) +- Type: [`ParsedLocation`](../ParsedLocationType.md) - The location that the router has resolved and loaded. diff --git a/docs/router/framework/react/api/router/RouterType.md b/docs/router/framework/react/api/router/RouterType.md index cd4f4d8504..7f44c8c582 100644 --- a/docs/router/framework/react/api/router/RouterType.md +++ b/docs/router/framework/react/api/router/RouterType.md @@ -16,15 +16,15 @@ An instance of the `Router` has the following properties and methods: ### `state` property -- Type: [`RouterState`](./RouterStateType.md) +- Type: [`RouterState`](../RouterStateType.md) - The current state of the router. -> ⚠️⚠️⚠️ **`router.state` is always up to date, but NOT REACTIVE. If you use `router.state` in a component, the component will not re-render when the router state changes. To get a reactive version of the router state, use the [`useRouterState`](./useRouterStateHook.md) hook.** +> ⚠️⚠️⚠️ **`router.state` is always up to date, but NOT REACTIVE. If you use `router.state` in a component, the component will not re-render when the router state changes. To get a reactive version of the router state, use the [`useRouterState`](../useRouterStateHook.md) hook.** ### `.subscribe` method - Type: `(eventType: TType, fn: ListenerFn) => (event: RouterEvent) => void` -- Subscribes to a [`RouterEvent`](./RouterEventsType.md). +- Subscribes to a [`RouterEvent`](../RouterEventsType.md). - Returns a function that can be used to unsubscribe from the event. - The callback provided to the returned function will be called with the event that was emitted. @@ -100,7 +100,7 @@ Commits a new location object to the browser history. ``` - Properties - `location` - - Type: [`ParsedLocation`](./ParsedLocationType.md) + - Type: [`ParsedLocation`](../ParsedLocationType.md) - Required - The location to commit to the browser history. - `replace` diff --git a/docs/router/framework/react/api/router/ToMaskOptionsType.md b/docs/router/framework/react/api/router/ToMaskOptionsType.md index fa0140fec2..3c725af540 100644 --- a/docs/router/framework/react/api/router/ToMaskOptionsType.md +++ b/docs/router/framework/react/api/router/ToMaskOptionsType.md @@ -3,7 +3,7 @@ id: ToMaskOptionsType title: ToMaskOptions type --- -The `ToMaskOptions` type extends the [`ToOptions`](./ToOptionsType.md) type and describes additional options available when using route masks. +The `ToMaskOptions` type extends the [`ToOptions`](../ToOptionsType.md) type and describes additional options available when using route masks. ```tsx type ToMaskOptions = ToOptions & { @@ -11,4 +11,4 @@ type ToMaskOptions = ToOptions & { } ``` -- [`ToOptions`](./ToOptionsType.md) +- [`ToOptions`](../ToOptionsType.md) diff --git a/docs/router/framework/react/api/router/UseMatchRouteOptionsType.md b/docs/router/framework/react/api/router/UseMatchRouteOptionsType.md index 885b7d26d3..a7e622a319 100644 --- a/docs/router/framework/react/api/router/UseMatchRouteOptionsType.md +++ b/docs/router/framework/react/api/router/UseMatchRouteOptionsType.md @@ -3,11 +3,11 @@ id: UseMatchRouteOptionsType title: UseMatchRouteOptions type --- -The `UseMatchRouteOptions` type extends the [`ToOptions`](./ToOptionsType.md) type and describes additional options available when using the [`useMatchRoute`](./useMatchRouteHook.md) hook. +The `UseMatchRouteOptions` type extends the [`ToOptions`](../ToOptionsType.md) type and describes additional options available when using the [`useMatchRoute`](../useMatchRouteHook.md) hook. ```tsx export type UseMatchRouteOptions = ToOptions & MatchRouteOptions ``` -- [`ToOptions`](./ToOptionsType.md) -- [`MatchRouteOptions`](./MatchRouteOptionsType.md) +- [`ToOptions`](../ToOptionsType.md) +- [`MatchRouteOptions`](../MatchRouteOptionsType.md) diff --git a/docs/router/framework/react/api/router/catchBoundaryComponent.md b/docs/router/framework/react/api/router/catchBoundaryComponent.md index deef0ffa22..ac3871cb21 100644 --- a/docs/router/framework/react/api/router/catchBoundaryComponent.md +++ b/docs/router/framework/react/api/router/catchBoundaryComponent.md @@ -24,7 +24,7 @@ The `CatchBoundary` component accepts the following props: ### `props.errorComponent` prop - Type: `React.ReactNode` -- Optional - [`default: ErrorComponent`](./errorComponentComponent.md) +- Optional - [`default: ErrorComponent`](../errorComponentComponent.md) - The component to render when there is an error. ### `props.onCatch` prop diff --git a/docs/router/framework/react/api/router/createFileRouteFunction.md b/docs/router/framework/react/api/router/createFileRouteFunction.md index 945e713075..e6330da51e 100644 --- a/docs/router/framework/react/api/router/createFileRouteFunction.md +++ b/docs/router/framework/react/api/router/createFileRouteFunction.md @@ -17,7 +17,7 @@ The `createFileRoute` function accepts a single argument of type `string` that r ## createFileRoute returns -A new function that accepts a single argument of type [`RouteOptions`](./RouteOptionsType.md) that will be used to configure the file [`Route`](./RouteType.md) instance. +A new function that accepts a single argument of type [`RouteOptions`](../RouteOptionsType.md) that will be used to configure the file [`Route`](../RouteType.md) instance. > ⚠️ Note: For `tsr generate` and `tsr watch` to work properly, the file route instance must be exported from the file using the `Route` identifier. diff --git a/docs/router/framework/react/api/router/createLazyFileRouteFunction.md b/docs/router/framework/react/api/router/createLazyFileRouteFunction.md index 87e1743ed1..5d00fb7458 100644 --- a/docs/router/framework/react/api/router/createLazyFileRouteFunction.md +++ b/docs/router/framework/react/api/router/createLazyFileRouteFunction.md @@ -3,7 +3,7 @@ id: createLazyFileRouteFunction title: createLazyFileRoute function --- -The `createLazyFileRoute` function is used for creating a partial file-based route route instance that is lazily loaded when matched. This route instance can only be used to configure the [non-critical properties](../../guide/code-splitting.md#how-does-tanstack-router-split-code) of the route, such as `component`, `pendingComponent`, `errorComponent`, and the `notFoundComponent`. +The `createLazyFileRoute` function is used for creating a partial file-based route route instance that is lazily loaded when matched. This route instance can only be used to configure the [non-critical properties](../../../guide/code-splitting.md#how-does-tanstack-router-split-code) of the route, such as `component`, `pendingComponent`, `errorComponent`, and the `notFoundComponent`. ## createLazyFileRoute options @@ -17,7 +17,7 @@ The `createLazyFileRoute` function accepts a single argument of type `string` th ### createLazyFileRoute returns -A new function that accepts a single argument of partial of the type [`RouteOptions`](./RouteOptionsType.md) that will be used to configure the file [`Route`](./RouteType.md) instance. +A new function that accepts a single argument of partial of the type [`RouteOptions`](../RouteOptionsType.md) that will be used to configure the file [`Route`](../RouteType.md) instance. - Type: @@ -28,7 +28,7 @@ Pick< > ``` -- [`RouteOptions`](./RouteOptionsType.md) +- [`RouteOptions`](../RouteOptionsType.md) > ⚠️ Note: For `tsr generate` and `tsr watch` to work properly, the file route instance must be exported from the file using the `Route` identifier. diff --git a/docs/router/framework/react/api/router/createLazyRouteFunction.md b/docs/router/framework/react/api/router/createLazyRouteFunction.md index 48c100c352..57e9fcdc71 100644 --- a/docs/router/framework/react/api/router/createLazyRouteFunction.md +++ b/docs/router/framework/react/api/router/createLazyRouteFunction.md @@ -3,7 +3,7 @@ id: createLazyRouteFunction title: createLazyRoute function --- -The `createLazyRoute` function is used for creating a partial code-based route route instance that is lazily loaded when matched. This route instance can only be used to configure the [non-critical properties](../../guide/code-splitting.md#how-does-tanstack-router-split-code) of the route, such as `component`, `pendingComponent`, `errorComponent`, and the `notFoundComponent`. +The `createLazyRoute` function is used for creating a partial code-based route route instance that is lazily loaded when matched. This route instance can only be used to configure the [non-critical properties](../../../guide/code-splitting.md#how-does-tanstack-router-split-code) of the route, such as `component`, `pendingComponent`, `errorComponent`, and the `notFoundComponent`. ## createLazyRoute options @@ -17,7 +17,7 @@ The `createLazyRoute` function accepts a single argument of type `string` that r ### createLazyRoute returns -A new function that accepts a single argument of partial of the type [`RouteOptions`](./RouteOptionsType.md) that will be used to configure the file [`Route`](./RouteType.md) instance. +A new function that accepts a single argument of partial of the type [`RouteOptions`](../RouteOptionsType.md) that will be used to configure the file [`Route`](../RouteType.md) instance. - Type: @@ -28,7 +28,7 @@ Pick< > ``` -- [`RouteOptions`](./RouteOptionsType.md) +- [`RouteOptions`](../RouteOptionsType.md) > ⚠️ Note: This route instance must be manually lazily loaded against its critical route instance using the `lazy` method returned by the `createRoute` function. diff --git a/docs/router/framework/react/api/router/createRootRouteFunction.md b/docs/router/framework/react/api/router/createRootRouteFunction.md index 27cff72032..6494924a70 100644 --- a/docs/router/framework/react/api/router/createRootRouteFunction.md +++ b/docs/router/framework/react/api/router/createRootRouteFunction.md @@ -23,12 +23,12 @@ Omit< > ``` -- [`RouteOptions`](./RouteOptionsType.md) +- [`RouteOptions`](../RouteOptionsType.md) - Optional ## createRootRoute returns -A new [`Route`](./RouteType.md) instance. +A new [`Route`](../RouteType.md) instance. ## Examples diff --git a/docs/router/framework/react/api/router/createRootRouteWithContextFunction.md b/docs/router/framework/react/api/router/createRootRouteWithContextFunction.md index 7e15737539..38d5c39496 100644 --- a/docs/router/framework/react/api/router/createRootRouteWithContextFunction.md +++ b/docs/router/framework/react/api/router/createRootRouteWithContextFunction.md @@ -17,8 +17,8 @@ The `createRootRouteWithContext` function accepts a single generic argument: ## createRootRouteWithContext returns -- A factory function that can be used to create a new [`createRootRoute`](./createRootRouteFunction.md) instance. -- It accepts a single argument, the same as the [`createRootRoute`](./createRootRouteFunction.md) function. +- A factory function that can be used to create a new [`createRootRoute`](../createRootRouteFunction.md) instance. +- It accepts a single argument, the same as the [`createRootRoute`](../createRootRouteFunction.md) function. ## Examples diff --git a/docs/router/framework/react/api/router/createRouteFunction.md b/docs/router/framework/react/api/router/createRouteFunction.md index 2ca9bdcb2d..7294e6abc7 100644 --- a/docs/router/framework/react/api/router/createRouteFunction.md +++ b/docs/router/framework/react/api/router/createRouteFunction.md @@ -3,17 +3,17 @@ id: createRouteFunction title: createRoute function --- -The `createRoute` function implements returns a [`Route`](./RouteType.md) instance. A route instance can then be passed to a root route's children to create a route tree, which is then passed to the router. +The `createRoute` function implements returns a [`Route`](../RouteType.md) instance. A route instance can then be passed to a root route's children to create a route tree, which is then passed to the router. ## createRoute options -- Type: [`RouteOptions`](./RouteOptionsType.md) +- Type: [`RouteOptions`](../RouteOptionsType.md) - Required - The options that will be used to configure the route instance ## createRoute returns -A new [`Route`](./RouteType.md) instance. +A new [`Route`](../RouteType.md) instance. ## Examples diff --git a/docs/router/framework/react/api/router/createRouteMaskFunction.md b/docs/router/framework/react/api/router/createRouteMaskFunction.md index 64722c57b3..45210ff31d 100644 --- a/docs/router/framework/react/api/router/createRouteMaskFunction.md +++ b/docs/router/framework/react/api/router/createRouteMaskFunction.md @@ -7,13 +7,13 @@ The `createRouteMask` function is a helper function that can be used to create a ## createRouteMask options -- Type: [`RouteMask`](./RouteMaskType.md) +- Type: [`RouteMask`](../RouteMaskType.md) - Required - The options that will be used to configure the route mask ## createRouteMask returns -- A object with the type signature of [`RouteMask`](./RouteMaskType.md) that can be passed to the `RouterOptions.routeMasks` option. +- A object with the type signature of [`RouteMask`](../RouteMaskType.md) that can be passed to the `RouterOptions.routeMasks` option. ## Examples diff --git a/docs/router/framework/react/api/router/createRouterFunction.md b/docs/router/framework/react/api/router/createRouterFunction.md index 7fe5779f7d..d82df5e5a7 100644 --- a/docs/router/framework/react/api/router/createRouterFunction.md +++ b/docs/router/framework/react/api/router/createRouterFunction.md @@ -3,17 +3,17 @@ id: createRouterFunction title: createRouter function --- -The `createRouter` function accepts a [`RouterOptions`](./RouterOptionsType.md) object and creates a new [`Router`](./RouterClass.md) instance. +The `createRouter` function accepts a [`RouterOptions`](../RouterOptionsType.md) object and creates a new [`Router`](../RouterClass.md) instance. ## createRouter options -- Type: [`RouterOptions`](./RouterOptionsType.md) +- Type: [`RouterOptions`](../RouterOptionsType.md) - Required - The options that will be used to configure the router instance. ## createRouter returns -- An instance of the [`Router`](./RouterType.md). +- An instance of the [`Router`](../RouterType.md). ## Examples diff --git a/docs/router/framework/react/api/router/deferFunction.md b/docs/router/framework/react/api/router/deferFunction.md index 929b9d7c63..7c1c1130c1 100644 --- a/docs/router/framework/react/api/router/deferFunction.md +++ b/docs/router/framework/react/api/router/deferFunction.md @@ -6,7 +6,7 @@ title: defer function > [!CAUTION] > You don't need to call `defer` manually anymore, Promises are handled automatically now. -The `defer` function wraps a promise with a deferred state object that can be used to inspect the promise's state. This deferred promise can then be passed to the [`useAwaited`](./useAwaitedHook.md) hook or the [``](./awaitComponent.md) component for suspending until the promise is resolved or rejected. +The `defer` function wraps a promise with a deferred state object that can be used to inspect the promise's state. This deferred promise can then be passed to the [`useAwaited`](../useAwaitedHook.md) hook or the [``](../awaitComponent.md) component for suspending until the promise is resolved or rejected. The `defer` function accepts a single argument, the `promise` to wrap with a deferred state object. @@ -18,7 +18,7 @@ The `defer` function accepts a single argument, the `promise` to wrap with a def ## defer returns -- A promise that can be passed to the [`useAwaited`](./useAwaitedHook.md) hook or the [``](./awaitComponent.md) component. +- A promise that can be passed to the [`useAwaited`](../useAwaitedHook.md) hook or the [``](../awaitComponent.md) component. ## Examples diff --git a/docs/router/framework/react/api/router/getRouteApiFunction.md b/docs/router/framework/react/api/router/getRouteApiFunction.md index cd78075a3a..6aa13b74a9 100644 --- a/docs/router/framework/react/api/router/getRouteApiFunction.md +++ b/docs/router/framework/react/api/router/getRouteApiFunction.md @@ -13,11 +13,11 @@ The `getRouteApi` function accepts a single argument, a `routeId` string literal - Type: `string` - Required -- The route ID to which the [`RouteApi`](./RouteApiClass.md) instance will be bound +- The route ID to which the [`RouteApi`](../RouteApiClass.md) instance will be bound ## getRouteApi returns -- An instance of the [`RouteApi`](./RouteApiType.md) that is pre-bound to the route ID that the `getRouteApi` function was called with. +- An instance of the [`RouteApi`](../RouteApiType.md) that is pre-bound to the route ID that the `getRouteApi` function was called with. ## Examples diff --git a/docs/router/framework/react/api/router/isNotFoundFunction.md b/docs/router/framework/react/api/router/isNotFoundFunction.md index 17411b7bbe..8ace56b353 100644 --- a/docs/router/framework/react/api/router/isNotFoundFunction.md +++ b/docs/router/framework/react/api/router/isNotFoundFunction.md @@ -3,7 +3,7 @@ id: isNotFoundFunction title: isNotFound function --- -The `isNotFound` function can be used to determine if an object is a [`NotFoundError`](./NotFoundErrorType.md) object. +The `isNotFound` function can be used to determine if an object is a [`NotFoundError`](../NotFoundErrorType.md) object. ## isNotFound options @@ -13,13 +13,13 @@ The `isNotFound` function accepts a single argument, an `input`. - Type: `unknown` - Required -- An object to check if it is a [`NotFoundError`](./NotFoundErrorType.md). +- An object to check if it is a [`NotFoundError`](../NotFoundErrorType.md). ## isNotFound returns - Type: `boolean` -- `true` if the object is a [`NotFoundError`](./NotFoundErrorType.md). -- `false` if the object is not a [`NotFoundError`](./NotFoundErrorType.md). +- `true` if the object is a [`NotFoundError`](../NotFoundErrorType.md). +- `false` if the object is not a [`NotFoundError`](../NotFoundErrorType.md). ## Examples diff --git a/docs/router/framework/react/api/router/linkComponent.md b/docs/router/framework/react/api/router/linkComponent.md index 6c973d80df..dd990f1425 100644 --- a/docs/router/framework/react/api/router/linkComponent.md +++ b/docs/router/framework/react/api/router/linkComponent.md @@ -12,7 +12,7 @@ The `Link` component accepts the following props: ### `...props` - Type: `LinkProps & React.RefAttributes` -- [`LinkProps`](./LinkPropsType.md) +- [`LinkProps`](../LinkPropsType.md) ## Link returns diff --git a/docs/router/framework/react/api/router/linkOptions.md b/docs/router/framework/react/api/router/linkOptions.md index 2c828500be..7226afaf8a 100644 --- a/docs/router/framework/react/api/router/linkOptions.md +++ b/docs/router/framework/react/api/router/linkOptions.md @@ -12,7 +12,7 @@ The `linkOptions` accepts the following option: ### `...props` - Type: `LinkProps & React.RefAttributes` -- [`LinkProps`](./LinkPropsType.md) +- [`LinkProps`](../LinkPropsType.md) ## `linkOptions` returns diff --git a/docs/router/framework/react/api/router/matchRouteComponent.md b/docs/router/framework/react/api/router/matchRouteComponent.md index 2deba6762e..be23a0b18e 100644 --- a/docs/router/framework/react/api/router/matchRouteComponent.md +++ b/docs/router/framework/react/api/router/matchRouteComponent.md @@ -11,7 +11,7 @@ The `MatchRoute` component accepts the same options as the `useMatchRoute` hook ### `...props` prop -- Type: [`UseMatchRouteOptions`](./UseMatchRouteOptionsType.md) +- Type: [`UseMatchRouteOptions`](../UseMatchRouteOptionsType.md) ### `children` prop diff --git a/docs/router/framework/react/api/router/navigateComponent.md b/docs/router/framework/react/api/router/navigateComponent.md index a4431eaf87..c66e9dd6ac 100644 --- a/docs/router/framework/react/api/router/navigateComponent.md +++ b/docs/router/framework/react/api/router/navigateComponent.md @@ -11,7 +11,7 @@ The `Navigate` component accepts the following props: ### `...options` -- Type: [`NavigateOptions`](./NavigateOptionsType.md) +- Type: [`NavigateOptions`](../NavigateOptionsType.md) ## Navigate returns diff --git a/docs/router/framework/react/api/router/notFoundFunction.md b/docs/router/framework/react/api/router/notFoundFunction.md index 02bb26bfbc..53848b4af8 100644 --- a/docs/router/framework/react/api/router/notFoundFunction.md +++ b/docs/router/framework/react/api/router/notFoundFunction.md @@ -9,7 +9,7 @@ The `notFound` function returns a new `NotFoundError` object that can be either The `notFound` function accepts a single optional argument, the `options` to create the not-found error object. -- Type: [`Partial`](./NotFoundErrorType.md) +- Type: [`Partial`](../NotFoundErrorType.md) - Optional ## notFound returns diff --git a/docs/router/framework/react/api/router/redirectFunction.md b/docs/router/framework/react/api/router/redirectFunction.md index 1e1c83dfb3..14d70225b6 100644 --- a/docs/router/framework/react/api/router/redirectFunction.md +++ b/docs/router/framework/react/api/router/redirectFunction.md @@ -9,7 +9,7 @@ The `redirect` function returns a new `Redirect` object that can be either retur The `redirect` function accepts a single argument, the `options` to determine the redirect behavior. -- Type: [`Redirect`](./RedirectType.md) +- Type: [`Redirect`](../RedirectType.md) - Required ## redirect returns diff --git a/docs/router/framework/react/api/router/rootRouteWithContextFunction.md b/docs/router/framework/react/api/router/rootRouteWithContextFunction.md index 30cf6d69a6..d2db4f3712 100644 --- a/docs/router/framework/react/api/router/rootRouteWithContextFunction.md +++ b/docs/router/framework/react/api/router/rootRouteWithContextFunction.md @@ -5,7 +5,7 @@ title: rootRouteWithContext function > [!CAUTION] > This function is deprecated and will be removed in the next major version of TanStack Router. -> Please use the [`createRootRouteWithContext`](./createRootRouteWithContextFunction.md) function instead. +> Please use the [`createRootRouteWithContext`](../createRootRouteWithContextFunction.md) function instead. The `rootRouteWithContext` function is a helper function that can be used to create a root route instance that requires a context type to be fulfilled when the router is created. @@ -21,8 +21,8 @@ The `rootRouteWithContext` function accepts a single generic argument: ## rootRouteWithContext returns -- A factory function that can be used to create a new [`createRootRoute`](./createRootRouteFunction.md) instance. -- It accepts a single argument, the same as the [`createRootRoute`](./createRootRouteFunction.md) function. +- A factory function that can be used to create a new [`createRootRoute`](../createRootRouteFunction.md) instance. +- It accepts a single argument, the same as the [`createRootRoute`](../createRootRouteFunction.md) function. ## Examples diff --git a/docs/router/framework/react/api/router/useBlockerHook.md b/docs/router/framework/react/api/router/useBlockerHook.md index 98d4a06c3b..218efc6b4a 100644 --- a/docs/router/framework/react/api/router/useBlockerHook.md +++ b/docs/router/framework/react/api/router/useBlockerHook.md @@ -3,7 +3,7 @@ id: useBlockerHook title: useBlocker hook --- -The `useBlocker` method is a hook that [blocks navigation](../../guide/navigation-blocking.md) when a condition is met. +The `useBlocker` method is a hook that [blocks navigation](../../../guide/navigation-blocking.md) when a condition is met. > ⚠️ The following new `useBlocker` API is currently _experimental_. diff --git a/docs/router/framework/react/api/router/useCanGoBack.md b/docs/router/framework/react/api/router/useCanGoBack.md index 39b84fbdf9..cfae538055 100644 --- a/docs/router/framework/react/api/router/useCanGoBack.md +++ b/docs/router/framework/react/api/router/useCanGoBack.md @@ -14,7 +14,7 @@ The `useCanGoBack` hook returns a boolean representing if the router history can ## Limitations -The router history index is reset after a navigation with [`reloadDocument`](./NavigateOptionsType.md#reloaddocument) set as `true`. This causes the router history to consider the new location as the initial one and will cause `useCanGoBack` to return `false`. +The router history index is reset after a navigation with [`reloadDocument`](../NavigateOptionsType.md#reloaddocument) set as `true`. This causes the router history to consider the new location as the initial one and will cause `useCanGoBack` to return `false`. ## Examples diff --git a/docs/router/framework/react/api/router/useChildMatchesHook.md b/docs/router/framework/react/api/router/useChildMatchesHook.md index cf31d21016..ae4480d822 100644 --- a/docs/router/framework/react/api/router/useChildMatchesHook.md +++ b/docs/router/framework/react/api/router/useChildMatchesHook.md @@ -3,7 +3,7 @@ id: useChildMatchesHook title: useChildMatches hook --- -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.** +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.** > [!IMPORTANT] > If the router has pending matches and they are showing their pending component fallbacks, `router.state.pendingMatches` will used instead of `router.state.matches`. @@ -23,12 +23,12 @@ The `useChildMatches` hook accepts a single _optional_ argument, an `options` ob - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useChildMatches returns - If a `select` function is provided, the return value of the `select` function. -- If no `select` function is provided, an array of [`RouteMatch`](./RouteMatchType.md) objects. +- If no `select` function is provided, an array of [`RouteMatch`](../RouteMatchType.md) objects. ## Examples diff --git a/docs/router/framework/react/api/router/useLinkPropsHook.md b/docs/router/framework/react/api/router/useLinkPropsHook.md index 3c29881ba1..d3f70ba0c7 100644 --- a/docs/router/framework/react/api/router/useLinkPropsHook.md +++ b/docs/router/framework/react/api/router/useLinkPropsHook.md @@ -12,9 +12,9 @@ type UseLinkPropsOptions = ActiveLinkOptions & React.AnchorHTMLAttributes ``` -- [`ActiveLinkOptions`](./ActiveLinkOptionsType.md) -- The `useLinkProps` options are used to build a [`LinkProps`](./LinkPropsType.md) object. -- It also extends the `React.AnchorHTMLAttributes` type, so that any additional props that are passed to the `useLinkProps` hook will be merged with the [`LinkProps`](./LinkPropsType.md) object. +- [`ActiveLinkOptions`](../ActiveLinkOptionsType.md) +- The `useLinkProps` options are used to build a [`LinkProps`](../LinkPropsType.md) object. +- It also extends the `React.AnchorHTMLAttributes` type, so that any additional props that are passed to the `useLinkProps` hook will be merged with the [`LinkProps`](../LinkPropsType.md) object. ## useLinkProps returns diff --git a/docs/router/framework/react/api/router/useLoaderDataHook.md b/docs/router/framework/react/api/router/useLoaderDataHook.md index dfcf2d3758..809fd3785e 100644 --- a/docs/router/framework/react/api/router/useLoaderDataHook.md +++ b/docs/router/framework/react/api/router/useLoaderDataHook.md @@ -3,7 +3,7 @@ id: useLoaderDataHook title: useLoaderData hook --- -The `useLoaderData` hook returns the loader data from the closest [`RouteMatch`](./RouteMatchType.md) in the component tree. +The `useLoaderData` hook returns the loader data from the closest [`RouteMatch`](../RouteMatchType.md) in the component tree. ## useLoaderData options @@ -34,7 +34,7 @@ The `useLoaderData` hook accepts an `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useLoaderData returns diff --git a/docs/router/framework/react/api/router/useLoaderDepsHook.md b/docs/router/framework/react/api/router/useLoaderDepsHook.md index bf9a3a35ec..7e3d43e2ca 100644 --- a/docs/router/framework/react/api/router/useLoaderDepsHook.md +++ b/docs/router/framework/react/api/router/useLoaderDepsHook.md @@ -26,7 +26,7 @@ The `useLoaderDepsHook` hook accepts an `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useLoaderDeps returns diff --git a/docs/router/framework/react/api/router/useLocationHook.md b/docs/router/framework/react/api/router/useLocationHook.md index 7bbccad150..d568095852 100644 --- a/docs/router/framework/react/api/router/useLocationHook.md +++ b/docs/router/framework/react/api/router/useLocationHook.md @@ -3,7 +3,7 @@ id: useLocationHook title: useLocation hook --- -The `useLocation` method is a hook that returns the current [`location`](./ParsedLocationType.md) object. This hook is useful for when you want to perform some side effect whenever the current location changes. +The `useLocation` method is a hook that returns the current [`location`](../ParsedLocationType.md) object. This hook is useful for when you want to perform some side effect whenever the current location changes. ## useLocation options @@ -13,11 +13,11 @@ The `useLocation` hook accepts an optional `options` object. - Type: `(state: ParsedLocationType) => TSelected` - Optional -- If supplied, this function will be called with the [`location`](./ParsedLocationType.md) object and the return value will be returned from `useLocation`. +- If supplied, this function will be called with the [`location`](../ParsedLocationType.md) object and the return value will be returned from `useLocation`. ## useLocation returns -- The current [`location`](./ParsedLocationType.md) object or `TSelected` if a `select` function is provided. +- The current [`location`](../ParsedLocationType.md) object or `TSelected` if a `select` function is provided. ## Examples diff --git a/docs/router/framework/react/api/router/useMatchHook.md b/docs/router/framework/react/api/router/useMatchHook.md index 966fd1d7c1..5c43705b04 100644 --- a/docs/router/framework/react/api/router/useMatchHook.md +++ b/docs/router/framework/react/api/router/useMatchHook.md @@ -3,7 +3,7 @@ id: useMatchHook title: useMatch hook --- -The `useMatch` hook returns a [`RouteMatch`](./RouteMatchType.md) in the component tree. The raw route match contains all of the information about a route match in the router and also powers many other hooks under the hood like `useParams`, `useLoaderData`, `useRouteContext`, and `useSearch`. +The `useMatch` hook returns a [`RouteMatch`](../RouteMatchType.md) in the component tree. The raw route match contains all of the information about a route match in the router and also powers many other hooks under the hood like `useParams`, `useLoaderData`, `useRouteContext`, and `useSearch`. ## useMatch options @@ -15,7 +15,7 @@ The `useMatch` hook accepts a single argument, an `options` object. - The route id of a match - Optional, but recommended for full type safety. - If `opts.strict` is `true`, `from` is required and TypeScript will warn for this option if it is not provided. -- If `opts.strict` is `false`, `from` must not be set and TypeScript will provided loosened types for the returned [`RouteMatch`](./RouteMatchType.md). +- If `opts.strict` is `false`, `from` must not be set and TypeScript will provided loosened types for the returned [`RouteMatch`](../RouteMatchType.md). ### `opts.strict` option @@ -35,7 +35,7 @@ The `useMatch` hook accepts a single argument, an `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ### `opts.shouldThrow` option @@ -47,7 +47,7 @@ The `useMatch` hook accepts a single argument, an `options` object. ## useMatch returns - If a `select` function is provided, the return value of the `select` function. -- If no `select` function is provided, the [`RouteMatch`](./RouteMatchType.md) object or a loosened version of the `RouteMatch` object if `opts.strict` is `false`. +- If no `select` function is provided, the [`RouteMatch`](../RouteMatchType.md) object or a loosened version of the `RouteMatch` object if `opts.strict` is `false`. ## Examples diff --git a/docs/router/framework/react/api/router/useMatchRouteHook.md b/docs/router/framework/react/api/router/useMatchRouteHook.md index 01c26d07c6..ab597abef8 100644 --- a/docs/router/framework/react/api/router/useMatchRouteHook.md +++ b/docs/router/framework/react/api/router/useMatchRouteHook.md @@ -17,7 +17,7 @@ The `matchRoute` function is a function that can be used to match a route agains The `matchRoute` function accepts a single argument, an `options` object. -- Type: [`UseMatchRouteOptions`](./UseMatchRouteOptionsType.md) +- Type: [`UseMatchRouteOptions`](../UseMatchRouteOptionsType.md) ### matchRoute function returns diff --git a/docs/router/framework/react/api/router/useMatchesHook.md b/docs/router/framework/react/api/router/useMatchesHook.md index d7a1be8dc3..c8cc3ccaf8 100644 --- a/docs/router/framework/react/api/router/useMatchesHook.md +++ b/docs/router/framework/react/api/router/useMatchesHook.md @@ -3,10 +3,10 @@ id: useMatchesHook title: useMatches hook --- -The `useMatches` hook returns all of the [`RouteMatch`](./RouteMatchType.md) objects from the router **regardless of its callers position in the React component tree**. +The `useMatches` hook returns all of the [`RouteMatch`](../RouteMatchType.md) objects from the router **regardless of its callers position in the React component tree**. > [!TIP] -> If you only want the parent or child matches, then you can use the [`useParentMatches`](./useParentMatchesHook.md) or the [`useChildMatches`](./useChildMatchesHook.md) based on the selection you need. +> If you only want the parent or child matches, then you can use the [`useParentMatches`](../useParentMatchesHook.md) or the [`useChildMatches`](../useChildMatchesHook.md) based on the selection you need. ## useMatches options @@ -23,12 +23,12 @@ The `useMatches` hook accepts a single _optional_ argument, an `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useMatches returns - If a `select` function is provided, the return value of the `select` function. -- If no `select` function is provided, an array of [`RouteMatch`](./RouteMatchType.md) objects. +- If no `select` function is provided, an array of [`RouteMatch`](../RouteMatchType.md) objects. ## Examples diff --git a/docs/router/framework/react/api/router/useNavigateHook.md b/docs/router/framework/react/api/router/useNavigateHook.md index 916d2cd237..5c28804ce6 100644 --- a/docs/router/framework/react/api/router/useNavigateHook.md +++ b/docs/router/framework/react/api/router/useNavigateHook.md @@ -27,7 +27,7 @@ The `navigate` function is a function that can be used to navigate to a new loca The `navigate` function accepts a single argument, an `options` object. -- Type: [`NavigateOptions`](./NavigateOptionsType.md) +- Type: [`NavigateOptions`](../NavigateOptionsType.md) ### navigate function returns diff --git a/docs/router/framework/react/api/router/useParamsHook.md b/docs/router/framework/react/api/router/useParamsHook.md index 0f3ca88fca..b0624c7129 100644 --- a/docs/router/framework/react/api/router/useParamsHook.md +++ b/docs/router/framework/react/api/router/useParamsHook.md @@ -33,7 +33,7 @@ The `useParams` hook accepts an optional `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useParams returns diff --git a/docs/router/framework/react/api/router/useParentMatchesHook.md b/docs/router/framework/react/api/router/useParentMatchesHook.md index fe4068f397..c6c577fbe0 100644 --- a/docs/router/framework/react/api/router/useParentMatchesHook.md +++ b/docs/router/framework/react/api/router/useParentMatchesHook.md @@ -3,7 +3,7 @@ id: useParentMatchesHook title: useParentMatches hook --- -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.** +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.** > [!IMPORTANT] > If the router has pending matches and they are showing their pending component fallbacks, `router.state.pendingMatches` will used instead of `router.state.matches`. @@ -23,12 +23,12 @@ The `useParentMatches` hook accepts an optional `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useParentMatches returns - If a `select` function is provided, the return value of the `select` function. -- If no `select` function is provided, an array of [`RouteMatch`](./RouteMatchType.md) objects. +- If no `select` function is provided, an array of [`RouteMatch`](../RouteMatchType.md) objects. ## Examples diff --git a/docs/router/framework/react/api/router/useRouterHook.md b/docs/router/framework/react/api/router/useRouterHook.md index 174829c256..14d29a4955 100644 --- a/docs/router/framework/react/api/router/useRouterHook.md +++ b/docs/router/framework/react/api/router/useRouterHook.md @@ -3,13 +3,13 @@ id: useRouterHook title: useRouter hook --- -The `useRouter` method is a hook that returns the current instance of [`Router`](./RouterType.md) from context. This hook is useful for accessing the router instance in a component. +The `useRouter` method is a hook that returns the current instance of [`Router`](../RouterType.md) from context. This hook is useful for accessing the router instance in a component. ## useRouter returns -- The current [`Router`](./RouterType.md) instance. +- The current [`Router`](../RouterType.md) instance. -> ⚠️⚠️⚠️ **`router.state` is always up to date, but NOT REACTIVE. If you use `router.state` in a component, the component will not re-render when the router state changes. To get a reactive version of the router state, use the [`useRouterState`](./useRouterStateHook.md) hook.** +> ⚠️⚠️⚠️ **`router.state` is always up to date, but NOT REACTIVE. If you use `router.state` in a component, the component will not re-render when the router state changes. To get a reactive version of the router state, use the [`useRouterState`](../useRouterStateHook.md) hook.** ## Examples diff --git a/docs/router/framework/react/api/router/useRouterStateHook.md b/docs/router/framework/react/api/router/useRouterStateHook.md index bcded1d415..f83527cc50 100644 --- a/docs/router/framework/react/api/router/useRouterStateHook.md +++ b/docs/router/framework/react/api/router/useRouterStateHook.md @@ -6,7 +6,7 @@ title: useRouterState hook 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. > [!TIP] -> 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. +> 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. ## useRouterState options @@ -16,18 +16,18 @@ The `useRouterState` hook accepts an optional `options` object. - Type: `(state: RouterState) => TSelected` - Optional -- If supplied, this function will be called with the [`RouterState`](./RouterStateType.md) object and the return value will be returned from `useRouterState`. +- If supplied, this function will be called with the [`RouterState`](../RouterStateType.md) object and the return value will be returned from `useRouterState`. ### `opts.structuralSharing` option - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ## useRouterState returns -- The current [`RouterState`](./RouterStateType.md) object or `TSelected` if a `select` function is provided. +- The current [`RouterState`](../RouterStateType.md) object or `TSelected` if a `select` function is provided. ## Examples diff --git a/docs/router/framework/react/api/router/useSearchHook.md b/docs/router/framework/react/api/router/useSearchHook.md index 39c8ed5d9e..985b42b206 100644 --- a/docs/router/framework/react/api/router/useSearchHook.md +++ b/docs/router/framework/react/api/router/useSearchHook.md @@ -33,7 +33,7 @@ The `useSearch` hook accepts an `options` object. - Type: `boolean` - Optional - Configures whether structural sharing is enabled for the value returned by `select`. -- See the [Render Optimizations guide](../../guide/render-optimizations.md) for more information. +- See the [Render Optimizations guide](../../../guide/render-optimizations.md) for more information. ### `opts.strict` option diff --git a/docs/router/framework/react/decisions-on-dx.md b/docs/router/framework/react/decisions-on-dx.md index 405db4c6eb..f2a4af5ed8 100644 --- a/docs/router/framework/react/decisions-on-dx.md +++ b/docs/router/framework/react/decisions-on-dx.md @@ -90,7 +90,7 @@ This only gets worse as you begin to use more features of the router, such as ne What we found to be the best way to define your routes is to abstract the definition of the route configuration outside of the route-tree. Then stitch together your route configurations into a single cohesive route-tree that is then passed into the `createRouter` function. -You can read more about [code-based routing](./routing/code-based-routing.md) to see how to define your routes in this way. +You can read more about [code-based routing](../routing/code-based-routing.md) to see how to define your routes in this way. > [!TIP] > Finding Code-based routing to be a bit too cumbersome? See why [file-based routing](#3-why-is-file-based-routing-the-preferred-way-to-define-routes) is the preferred way to define your routes. @@ -160,7 +160,7 @@ We went with **module declaration**, as it is what we found to be the most scala Something you'll notice (quite soon) in the TanStack Router documentation is that we push for **file-based routing** as the preferred method for defining your routes. This is because we've found that file-based routing is the most scalable and maintainable way to define your routes. > [!TIP] -> Before you continue, it's important you have a good understanding of [code-based routing](./routing/code-based-routing.md) and [file-based routing](./routing/file-based-routing.md). +> Before you continue, it's important you have a good understanding of [code-based routing](../routing/code-based-routing.md) and [file-based routing](../routing/file-based-routing.md). As mentioned in the beginning, TanStack Router was designed for complex applications that require a high degree of type-safety and maintainability. And to achieve this, the configuration of the router has been done in a precise way that allows TypeScript to infer the types of your routes as much as possible. @@ -234,4 +234,4 @@ That's it! No need to worry about defining the `getParentRoute` function, stitch At no point does the TanStack Router Bundler Plugin take away your control over your route configurations. It's designed to be as flexible as possible, allowing you to define your routes in a way that suits your application whilst reducing the boilerplate and complexity of the route configuration. -Check out the guides for [file-based routing](./routing/file-based-routing.md) and [code-splitting](./routing/code-splitting.md) for a more in-depth explanation of how they work in TanStack Router. +Check out the guides for [file-based routing](../routing/file-based-routing.md) and [code-splitting](../guide/code-splitting.md) for a more in-depth explanation of how they work in TanStack Router. diff --git a/docs/router/framework/react/faq.md b/docs/router/framework/react/faq.md index 01169d3b13..09fccf1dd7 100644 --- a/docs/router/framework/react/faq.md +++ b/docs/router/framework/react/faq.md @@ -14,7 +14,7 @@ You should commit this file into git so that other developers can use it to buil No, the root route is always rendered as it is the entry point of your application. -If you need to conditionally render a route's component, this usually means that the page content needs to be different based on some condition (e.g. user authentication). For this use case, you should use a [Layout Route](./routing/routing-concepts.md#layout-routes) or a [Pathless Layout Route](./routing/routing-concepts.md#pathless-layout-routes) to conditionally render the content. +If you need to conditionally render a route's component, this usually means that the page content needs to be different based on some condition (e.g. user authentication). For this use case, you should use a [Layout Route](../routing/routing-concepts.md#layout-routes) or a [Pathless Layout Route](../routing/routing-concepts.md#pathless-layout-routes) to conditionally render the content. You can restrict access to these routes using a conditional check in the `beforeLoad` function of the route. diff --git a/docs/router/framework/react/guide/authenticated-routes.md b/docs/router/framework/react/guide/authenticated-routes.md index 007ec5cfe8..f80a18377f 100644 --- a/docs/router/framework/react/guide/authenticated-routes.md +++ b/docs/router/framework/react/guide/authenticated-routes.md @@ -83,9 +83,9 @@ If your authentication flow relies on interactions with React context and/or hoo > [!IMPORTANT] > React hooks are not meant to be consumed outside of React components. If you need to use a hook outside of a React component, you need to extract the returned state from the hook in a component that wraps your `` and then pass the returned value down to TanStack Router. -We'll cover the `router.context` options in-detail in the [Router Context](./router-context.md) section. +We'll cover the `router.context` options in-detail in the [Router Context](../router-context.md) section. -Here's an example that uses React context and hooks for protecting authenticated routes in TanStack Router. See the entire working setup in the [Authenticated Routes example](../examples/authenticated-routes). +Here's an example that uses React context and hooks for protecting authenticated routes in TanStack Router. See the entire working setup in the [Authenticated Routes example](https://github.com/TanStack/router/tree/main/examples/react/authenticated-routes). - `src/routes/__root.tsx` diff --git a/docs/router/framework/react/guide/code-splitting.md b/docs/router/framework/react/guide/code-splitting.md index e2646e402c..985452f2a9 100644 --- a/docs/router/framework/react/guide/code-splitting.md +++ b/docs/router/framework/react/guide/code-splitting.md @@ -72,7 +72,7 @@ This is the easiest and most powerful way to code split your route files. When using the `autoCodeSplitting` feature, TanStack Router will automatically code split your route files based on the non-critical route configuration mentioned above. > [!IMPORTANT] -> The automatic code-splitting feature is **ONLY** available when you are using file-based routing with one of our [supported bundlers](../routing/file-based-routing.md#getting-started-with-file-based-routing). +> The automatic code-splitting feature is **ONLY** available when you are using file-based routing with one of our [supported bundlers](../../routing/file-based-routing.md#getting-started-with-file-based-routing). > This will **NOT** work if you are **only** using the CLI (`@tanstack/router-cli`). To enable automatic code-splitting, you just need to add the following to the configuration of your TanStack Router Bundler Plugin: @@ -96,7 +96,7 @@ export default defineConfig({ That's it! TanStack Router will automatically code-split all your route files by their critical and non-critical route configurations. -If you want more control over the code-splitting process, head over to the [Automatic Code Splitting](./automatic-code-splitting.md) guide to learn more about the options available. +If you want more control over the code-splitting process, head over to the [Automatic Code Splitting](../automatic-code-splitting.md) guide to learn more about the options available. ## Using the `.lazy.tsx` suffix diff --git a/docs/router/framework/react/guide/creating-a-router.md b/docs/router/framework/react/guide/creating-a-router.md index d84815bd7c..d18d6329ca 100644 --- a/docs/router/framework/react/guide/creating-a-router.md +++ b/docs/router/framework/react/guide/creating-a-router.md @@ -18,7 +18,7 @@ const router = createRouter({ You'll probably notice quickly that the `Router` constructor requires a `routeTree` option. This is the route tree that the router will use to match routes and render components. -Whether you used [file-based routing](../routing/file-based-routing.md) or [code-based routing](../routing/code-based-routing.md), you'll need to pass your route tree to the `createRouter` function: +Whether you used [file-based routing](../../routing/file-based-routing.md) or [code-based routing](../../routing/code-based-routing.md), you'll need to pass your route tree to the `createRouter` function: ### Filesystem Route Tree @@ -73,4 +73,4 @@ export const Route = createRootRoute({ ## Other Options -There are many other options that can be passed to the `Router` constructor. You can find a full list of them in the [API Reference](../api/router/RouterOptionsType.md). +There are many other options that can be passed to the `Router` constructor. You can find a full list of them in the [API Reference](../../api/router/RouterOptionsType.md). diff --git a/docs/router/framework/react/guide/custom-link.md b/docs/router/framework/react/guide/custom-link.md index 6131527d59..133a1b7e13 100644 --- a/docs/router/framework/react/guide/custom-link.md +++ b/docs/router/framework/react/guide/custom-link.md @@ -2,7 +2,7 @@ title: Custom Link --- -While repeating yourself can be acceptable in many situations, you might find that you do it too often. At times, you may want to create cross-cutting components with additional behavior or styles. You might also consider using third-party libraries in combination with TanStack Router’s type safety. +While repeating yourself can be acceptable in many situations, you might find that you do it too often. At times, you may want to create cross-cutting components with additional behavior or styles. You might also consider using third-party libraries in combination with TanStack Router's type safety. ## `createLink` for cross-cutting concerns @@ -53,9 +53,9 @@ Here are some examples of how you can use `createLink` with third-party librarie ### React Aria Components example -React Aria Components’ +React Aria Components' [Link](https://react-spectrum.adobe.com/react-aria/Link.html) component does not support the standard `onMouseEnter` and `onMouseLeave` events. -Therefore, you cannot use it directly with TanStack Router’s `preload (intent)` prop. +Therefore, you cannot use it directly with TanStack Router's `preload (intent)` prop. Explanation for this can be found here: @@ -146,7 +146,7 @@ export const CustomLink: LinkComponent = ( ### MUI example -There is an [example](../examples/start-material-ui) available which uses these patterns. +There is an [example](https://github.com/TanStack/router/tree/main/examples/react/start-material-ui) available which uses these patterns. #### `Link` diff --git a/docs/router/framework/react/guide/custom-search-param-serialization.md b/docs/router/framework/react/guide/custom-search-param-serialization.md index 33124513e8..11f3329edc 100644 --- a/docs/router/framework/react/guide/custom-search-param-serialization.md +++ b/docs/router/framework/react/guide/custom-search-param-serialization.md @@ -38,7 +38,7 @@ const router = createRouter({ However, this default behavior may not be suitable for all use cases. For example, you may want to use a different serialization format, such as base64 encoding, or you may want to use a purpose-built serialization/deserialization library, like [query-string](https://github.com/sindresorhus/query-string), [JSURL2](https://github.com/wmertens/jsurl2), or [Zipson](https://jgranstrom.github.io/zipson/). -This can be achieved by providing your own serialization and deserialization functions to the `parseSearch` and `stringifySearch` options in the [`Router`](../api/router/RouterOptionsType.md#stringifysearch-method) configuration. When doing this, you can utilize TanStack Router's built-in helper functions, `parseSearchWith` and `stringifySearchWith`, to simplify the process. +This can be achieved by providing your own serialization and deserialization functions to the `parseSearch` and `stringifySearch` options in the [`Router`](../../api/router/RouterOptionsType.md#stringifysearch-method) configuration. When doing this, you can utilize TanStack Router's built-in helper functions, `parseSearchWith` and `stringifySearchWith`, to simplify the process. > [!TIP] > An important aspect of serialization and deserialization, is that you are able to get the same object back after deserialization. This is important because if the serialization and deserialization process is not done correctly, you may lose some information. For example, if you are using a library that does not support nested objects, you may lose the nested object when deserializing the search string. diff --git a/docs/router/framework/react/guide/data-loading.md b/docs/router/framework/react/guide/data-loading.md index 02fc39d670..cd02b10a20 100644 --- a/docs/router/framework/react/guide/data-loading.md +++ b/docs/router/framework/react/guide/data-loading.md @@ -49,7 +49,7 @@ TanStack Router Cache Cons: - No built-in cache-level optimistic update APIs (you can still use ephemeral state from something like a `useMutation` hook to achieve this at the component level) > [!TIP] -> If you know right away that you'd like to or need to use something more robust like TanStack Query, skip to the [External Data Loading](./external-data-loading.md) guide. +> If you know right away that you'd like to or need to use something more robust like TanStack Query, skip to the [External Data Loading](../external-data-loading.md) guide. ## Using the Router Cache @@ -219,7 +219,7 @@ To opt out of preloading, don't turn it on via the `routerOptions.defaultPreload ## Passing all loader events to an external cache -We break down this use case in the [External Data Loading](./external-data-loading.md) page, but if you'd like to use an external cache like TanStack Query, you can do so by passing all loader events to your external cache. As long as you are using the defaults, the only change you'll need to make is to set the `defaultPreloadStaleTime` option on the router to `0`: +We break down this use case in the [External Data Loading](../external-data-loading.md) page, but if you'd like to use an external cache like TanStack Query, you can do so by passing all loader events to your external cache. As long as you are using the defaults, the only change you'll need to make is to set the `defaultPreloadStaleTime` option on the router to `0`: ```tsx const router = createRouter({ @@ -401,7 +401,7 @@ export const Route = createFileRoute('/posts')({ Ideally most route loaders can resolve their data within a short moment, removing the need to render a placeholder spinner and simply rely on suspense to render the next route when it's completely ready. When critical data that is required to render a route's component is slow though, you have 2 options: -- Split up your fast and slow data into separate promises and `defer` the slow data until after the fast data is loaded (see the [Deferred Data Loading](./deferred-data-loading.md) guide). +- Split up your fast and slow data into separate promises and `defer` the slow data until after the fast data is loaded (see the [Deferred Data Loading](../deferred-data-loading.md) guide). - Show a pending component after an optimistic suspense threshold until all of the data is ready (See below). ## Showing a pending component diff --git a/docs/router/framework/react/guide/deferred-data-loading.md b/docs/router/framework/react/guide/deferred-data-loading.md index cfff886fb4..151be5537c 100644 --- a/docs/router/framework/react/guide/deferred-data-loading.md +++ b/docs/router/framework/react/guide/deferred-data-loading.md @@ -62,7 +62,7 @@ function PostIdComponent() { ``` > [!TIP] -> If your component is code-split, you can use the [getRouteApi function](./code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `Route` configuration to get access to the typed `useLoaderData()` hook. +> If your component is code-split, you can use the [getRouteApi function](../code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `Route` configuration to get access to the typed `useLoaderData()` hook. The `Await` component resolves the promise by triggering the nearest suspense boundary until it is resolved, after which it renders the component's `children` as a function with the resolved data. @@ -77,7 +77,7 @@ If the promise is rejected, the `Await` component will throw the serialized erro ## Deferred Data Loading with External libraries -When your strategy for fetching information for the route relies on [External Data Loading](./external-data-loading.md) with an external library like [TanStack Query](https://tanstack.com/query), deferred data loading works a bit differently, as the library handles the data fetching and caching for you outside of TanStack Router. +When your strategy for fetching information for the route relies on [External Data Loading](../external-data-loading.md) with an external library like [TanStack Query](https://tanstack.com/query), deferred data loading works a bit differently, as the library handles the data fetching and caching for you outside of TanStack Router. So, instead of using `defer` and `Await`, you'll instead want to use the Route's `loader` to kick off the data fetching and then use the library's hooks to access the data in your components. @@ -139,7 +139,7 @@ Streamed promises follow the same lifecycle as the loader data they are associat **Streaming requires a server that supports it and for TanStack Router to be configured to use it properly.** -Please read the entire [Streaming SSR Guide](./ssr.md#streaming-ssr) for step by step instructions on how to set up your server for streaming. +Please read the entire [Streaming SSR Guide](../ssr.md#streaming-ssr) for step by step instructions on how to set up your server for streaming. ## SSR Streaming Lifecycle diff --git a/docs/router/framework/react/guide/external-data-loading.md b/docs/router/framework/react/guide/external-data-loading.md index e2d0e1eb53..4e573de640 100644 --- a/docs/router/framework/react/guide/external-data-loading.md +++ b/docs/router/framework/react/guide/external-data-loading.md @@ -4,7 +4,7 @@ title: External Data Loading --- > [!IMPORTANT] -> This guide is geared towards external state management libraries and their integration with TanStack Router for data fetching, ssr, hydration/dehydration and streaming. If you haven't read the standard [Data Loading](./data-loading.md) guide, please do so first. +> This guide is geared towards external state management libraries and their integration with TanStack Router for data fetching, ssr, hydration/dehydration and streaming. If you haven't read the standard [Data Loading](../data-loading.md) guide, please do so first. ## To **Store** or to **Coordinate**? diff --git a/docs/router/framework/react/guide/history-types.md b/docs/router/framework/react/guide/history-types.md index c65afccd27..5559788d80 100644 --- a/docs/router/framework/react/guide/history-types.md +++ b/docs/router/framework/react/guide/history-types.md @@ -52,4 +52,4 @@ const memoryHistory = createMemoryHistory({ const router = createRouter({ routeTree, history: memoryHistory }) ``` -Refer to the [SSR Guide](./ssr.md#server-history) for usage on the server for server-side rendering. +Refer to the [SSR Guide](../ssr.md#server-history) for usage on the server for server-side rendering. diff --git a/docs/router/framework/react/guide/navigation-blocking.md b/docs/router/framework/react/guide/navigation-blocking.md index 575c4d1442..f95b5f5f94 100644 --- a/docs/router/framework/react/guide/navigation-blocking.md +++ b/docs/router/framework/react/guide/navigation-blocking.md @@ -79,7 +79,7 @@ function MyComponent() { } ``` -You can find more information about the `useBlocker` hook in the [API reference](../api/router/useBlockerHook.md). +You can find more information about the `useBlocker` hook in the [API reference](../../api/router/useBlockerHook.md). ## Component-based blocking diff --git a/docs/router/framework/react/guide/not-found-errors.md b/docs/router/framework/react/guide/not-found-errors.md index 739e2b20cb..acf45085b6 100644 --- a/docs/router/framework/react/guide/not-found-errors.md +++ b/docs/router/framework/react/guide/not-found-errors.md @@ -256,7 +256,7 @@ export const Route = createFileRoute('/posts/$postId')({ ## Usage With SSR -See [SSR guide](./ssr.md) for more information. +See [SSR guide](../ssr.md) for more information. ## Migrating from `NotFoundRoute` diff --git a/docs/router/framework/react/guide/path-params.md b/docs/router/framework/react/guide/path-params.md index ba2d77df03..1b1399af65 100644 --- a/docs/router/framework/react/guide/path-params.md +++ b/docs/router/framework/react/guide/path-params.md @@ -68,7 +68,7 @@ function PostComponent() { } ``` -> 🧠 Quick tip: If your component is code-split, you can use the [getRouteApi function](./code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `Route` configuration to get access to the typed `useParams()` hook. +> 🧠 Quick tip: If your component is code-split, you can use the [getRouteApi function](../code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `Route` configuration to get access to the typed `useParams()` hook. ## Path Params outside of Routes @@ -113,7 +113,7 @@ Notice that the function style is useful when you need to persist params that ar ## Allowed Characters -By default, path params are escaped with `encodeURIComponent`. If you want to allow other valid URI characters (e.g. `@` or `+`), you can specify that in your [RouterOptions](../api/router/RouterOptionsType.md#pathparamsallowedcharacters-property) +By default, path params are escaped with `encodeURIComponent`. If you want to allow other valid URI characters (e.g. `@` or `+`), you can specify that in your [RouterOptions](../../api/router/RouterOptionsType.md#pathparamsallowedcharacters-property) Example usage: diff --git a/docs/router/framework/react/guide/route-masking.md b/docs/router/framework/react/guide/route-masking.md index b31647db81..d46dbc7f33 100644 --- a/docs/router/framework/react/guide/route-masking.md +++ b/docs/router/framework/react/guide/route-masking.md @@ -9,7 +9,7 @@ Route masking is a way to mask the actual URL of a route that gets persisted to - Navigating to a route with the search param `?showLogin=true`, but masking the URL to _not_ contain the search param - Navigating to a route with the search param `?modal=settings`, but masking the URL as `/settings' -Each of these scenarios can be achieved with route masking and even extended to support more advanced patterns like [parallel routes](./parallel-routes.md). +Each of these scenarios can be achieved with route masking and even extended to support more advanced patterns like [parallel routes](../parallel-routes.md). ## How does route masking work? diff --git a/docs/router/framework/react/guide/search-params.md b/docs/router/framework/react/guide/search-params.md index ce3096cefb..dec1850671 100644 --- a/docs/router/framework/react/guide/search-params.md +++ b/docs/router/framework/react/guide/search-params.md @@ -363,7 +363,7 @@ Once your search params have been validated and typed, you're finally ready to s ### Using Search Params in Loaders -Please read the [Search Params in Loaders](./data-loading.md#using-loaderdeps-to-access-search-params) section for more information about how to read search params in loaders with the `loaderDeps` option. +Please read the [Search Params in Loaders](../data-loading.md#using-loaderdeps-to-access-search-params) section for more information about how to read search params in loaders with the `loaderDeps` option. ### Search Params are inherited from Parent Routes @@ -415,7 +415,7 @@ const ProductList = () => { ``` > [!TIP] -> If your component is code-split, you can use the [getRouteApi function](./code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `Route` configuration to get access to the typed `useSearch()` hook. +> If your component is code-split, you can use the [getRouteApi function](../code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `Route` configuration to get access to the typed `useSearch()` hook. ### Search Params outside of Route Components diff --git a/docs/router/framework/react/guide/ssr.md b/docs/router/framework/react/guide/ssr.md index 9197f03a07..d4f4f6c5da 100644 --- a/docs/router/framework/react/guide/ssr.md +++ b/docs/router/framework/react/guide/ssr.md @@ -112,7 +112,7 @@ Resolved loader data fetched by routes is automatically dehydrated and rehydrate ⚠️ If you are using deferred data streaming, you will also need to ensure that you have implemented the [SSR Streaming & Stream Transform](#streaming-ssr) pattern near the end of this guide. -For more information on how to utilize data loading and data streaming, see the [Data Loading](./data-loading.md) and [Data Streaming](../data-streaming) guides. +For more information on how to utilize data loading, see the [Data Loading](../data-loading.md) guide. ### Rendering the Application on the Server @@ -220,7 +220,7 @@ If you are using more complex data types like `Map`, `Set`, `BigInt`, etc, you m The Data Serialization API allows the usage of a custom serializer that can allow us to transparently use these data types when communicating across the network. - + ```tsx import { SuperJSON } from 'superjson' diff --git a/docs/router/framework/react/guide/tanstack-start.md b/docs/router/framework/react/guide/tanstack-start.md index 9704d721c4..0dfd75acc7 100644 --- a/docs/router/framework/react/guide/tanstack-start.md +++ b/docs/router/framework/react/guide/tanstack-start.md @@ -124,7 +124,7 @@ Once configuration is done, we'll have a file tree that looks like the following ## The Router Configuration This is the file that will dictate the behavior of TanStack Router used within Start. Here, you can configure everything -from the default [preloading functionality](./preloading.md) to [caching staleness](./data-loading.md). +from the default [preloading functionality](../preloading.md) to [caching staleness](../data-loading.md). ```tsx // app/router.tsx diff --git a/docs/router/framework/react/guide/type-safety.md b/docs/router/framework/react/guide/type-safety.md index f6aee18a5f..f194d8779a 100644 --- a/docs/router/framework/react/guide/type-safety.md +++ b/docs/router/framework/react/guide/type-safety.md @@ -65,7 +65,7 @@ function PostsComponent() { Every hook and component that requires a context hint will have a `from` param where you can pass the ID or path of the route you are rendering within. -> 🧠 Quick tip: If your component is code-split, you can use the [getRouteApi function](./code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to pass in the `Route.fullPath` to get access to the typed `useParams()` and `useSearch()` hooks. +> 🧠 Quick tip: If your component is code-split, you can use the [getRouteApi function](../code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to pass in the `Route.fullPath` to get access to the typed `useParams()` and `useSearch()` hooks. ### What if I don't know the route? What if it's a shared component? diff --git a/docs/router/framework/react/migrate-from-react-location.md b/docs/router/framework/react/migrate-from-react-location.md index 100d614cae..25dc9226d3 100644 --- a/docs/router/framework/react/migrate-from-react-location.md +++ b/docs/router/framework/react/migrate-from-react-location.md @@ -2,23 +2,23 @@ title: Migration from React Location --- -Before you begin your journey in migrating from React Location, it's important that you have a good understanding of the [Routing Concepts](./routing/routing-concepts.md) and [Design Decisions](./decisions-on-dx.md) used by TanStack Router. +Before you begin your journey in migrating from React Location, it's important that you have a good understanding of the [Routing Concepts](../routing/routing-concepts.md) and [Design Decisions](../decisions-on-dx.md) used by TanStack Router. ## Differences between React Location and TanStack Router React Location and TanStack Router share much of same design decisions concepts, but there are some key differences that you should be aware of. - React Location uses _generics_ to infer types for routes, while TanStack Router uses _module declaration merging_ to infer types. -- Route configuration in React Location is done using a single array of route definitions, while in TanStack Router, route configuration is done using a tree of route definitions starting with the [root route](./routing/routing-concepts.md#the-root-route). -- [File-based routing](./routing/file-based-routing.md) is the recommended way to define routes in TanStack Router, while React Location only allows you to define routes in a single file using a code-based approach. - - TanStack Router does support a [code-based approach](./routing/code-based-routing.md) to defining routes, but it is not recommended for most use cases. You can read more about why, over here: [why is file-based routing the preferred way to define routes?](./decisions-on-dx.md#3-why-is-file-based-routing-the-preferred-way-to-define-routes) +- Route configuration in React Location is done using a single array of route definitions, while in TanStack Router, route configuration is done using a tree of route definitions starting with the [root route](../routing/routing-concepts.md#the-root-route). +- [File-based routing](../routing/file-based-routing.md) is the recommended way to define routes in TanStack Router, while React Location only allows you to define routes in a single file using a code-based approach. + - TanStack Router does support a [code-based approach](../routing/code-based-routing.md) to defining routes, but it is not recommended for most use cases. You can read more about why, over here: [why is file-based routing the preferred way to define routes?](../decisions-on-dx.md#3-why-is-file-based-routing-the-preferred-way-to-define-routes) ## Migration guide In this guide we'll go over the process of migrating the [React Location Basic example](https://github.com/TanStack/router/tree/react-location/examples/basic) over to TanStack Router using file-based routing, with the end goal of having the same functionality as the original example (styling and other non-routing related code will be omitted). > [!TIP] -> To use a code-based approach for defining your routes, you can read the [code-based Routing](./routing/code-based-routing.md) guide. +> To use a code-based approach for defining your routes, you can read the [code-based Routing](../routing/code-based-routing.md) guide. ### Step 1: Swap over to TanStack Router's dependencies @@ -57,7 +57,7 @@ export default defineConfig({ }) ``` -However, if your application does not use Vite, you use one of our other [supported bundlers](./routing/file-based-routing.md#getting-started-with-file-based-routing), or you can use the `@tanstack/router-cli` package to watch for changes in your routes files and automatically update the routes configuration. +However, if your application does not use Vite, you use one of our other [supported bundlers](../routing/file-based-routing.md#getting-started-with-file-based-routing), or you can use the `@tanstack/router-cli` package to watch for changes in your routes files and automatically update the routes configuration. ### Step 3: Add the file-based configuration file to your project @@ -70,7 +70,7 @@ Create a `tsr.config.json` file in the root of your project with the following c } ``` -You can find the full list of options for the `tsr.config.json` file [here](./routing/file-based-routing.md#options). +You can find the full list of options for the `tsr.config.json` file [here](../routing/file-based-routing.md#options). ### Step 4: Create the routes directory @@ -249,19 +249,19 @@ You should now have successfully migrated your application from React Location t React Location also has a few more features that you might be using in your application. Here are some guides to help you migrate those features: -- [Search params](./guide/search-params.md) -- [Data loading](./guide/data-loading.md) -- [History types](./guide/history-types.md) -- [Wildcard / Splat / Catch-all routes](./routing/routing-concepts.md#splat--catch-all-routes) -- [Authenticated routes](./guide/authenticated-routes.md) +- [Search params](../guide/search-params.md) +- [Data loading](../guide/data-loading.md) +- [History types](../guide/history-types.md) +- [Wildcard / Splat / Catch-all routes](../routing/routing-concepts.md#splat--catch-all-routes) +- [Authenticated routes](../guide/authenticated-routes.md) TanStack Router also has a few more features that you might want to explore: -- [Router Context](./guide/router-context.md) -- [Preloading](./guide/preloading.md) -- [Pathless Layout Routes](./routing/routing-concepts.md#pathless-layout-routes) -- [Route masking](./guide/route-masking.md) -- [SSR](./guide/ssr.md) +- [Router Context](../guide/router-context.md) +- [Preloading](../guide/preloading.md) +- [Pathless Layout Routes](../routing/routing-concepts.md#pathless-layout-routes) +- [Route masking](../guide/route-masking.md) +- [SSR](../guide/ssr.md) - ... and more! If you are facing any issues or have any questions, feel free to ask for help in the TanStack Discord. diff --git a/docs/router/framework/react/overview.md b/docs/router/framework/react/overview.md index be83513a79..c2e171feda 100644 --- a/docs/router/framework/react/overview.md +++ b/docs/router/framework/react/overview.md @@ -44,7 +44,7 @@ It's probably no surprise at this point that picking a router is so important th TanStack Router itself is not a "framework" in the traditional sense, since it doesn't address a few other common full-stack concerns. However TanStack Router has been designed to be upgradable to a full-stack framework when used in conjunction with other tools that address bundling, deployments, and server-side-specific functionality. This is why we are currently developing [TanStack Start](https://tanstack.com/start), a full-stack framework that is built on top of TanStack Router and tools like Nitro, and Vite. -For a deeper dive on the history of TanStack Router, feel free to read [TanStack Router's History](./decisions-on-dx.md#tanstack-routers-origin-story). +For a deeper dive on the history of TanStack Router, feel free to read [TanStack Router's History](../decisions-on-dx.md#tanstack-routers-origin-story). ## Why TanStack Router? diff --git a/docs/router/framework/react/quick-start.md b/docs/router/framework/react/quick-start.md index b9264f8742..461d5e6834 100644 --- a/docs/router/framework/react/quick-start.md +++ b/docs/router/framework/react/quick-start.md @@ -58,7 +58,7 @@ export default defineConfig({ ``` > [!TIP] -> If you are not using Vite, or any of the supported bundlers, you can check out the [TanStack Router CLI](./routing/installation-with-router-cli.md) guide for more info. +> If you are not using Vite, or any of the supported bundlers, you can check out the [TanStack Router CLI](../routing/installation-with-router-cli.md) guide for more info. Create the following files: diff --git a/docs/router/framework/react/routing/code-based-routing.md b/docs/router/framework/react/routing/code-based-routing.md index 3adbf14ca2..c4562541fd 100644 --- a/docs/router/framework/react/routing/code-based-routing.md +++ b/docs/router/framework/react/routing/code-based-routing.md @@ -3,18 +3,18 @@ title: Code-Based Routing --- > [!TIP] -> Code-based routing is not recommended for most applications. It is recommended to use [File-Based Routing](./file-based-routing.md) instead. +> Code-based routing is not recommended for most applications. It is recommended to use [File-Based Routing](../file-based-routing.md) instead. ## ⚠️ Before You Start -- If you're using [File-Based Routing](./file-based-routing.md), **skip this guide**. -- If you still insist on using code-based routing, you must read the [Routing Concepts](./routing-concepts.md) guide first, as it also covers core concepts of the router. +- If you're using [File-Based Routing](../file-based-routing.md), **skip this guide**. +- If you still insist on using code-based routing, you must read the [Routing Concepts](../routing-concepts.md) guide first, as it also covers core concepts of the router. ## Route Trees Code-based routing is no different from file-based routing in that it uses the same route tree concept to organize, match and compose matching routes into a component tree. The only difference is that instead of using the filesystem to organize your routes, you use code. -Let's consider the same route tree from the [Route Trees & Nesting](./route-trees.md#route-trees) guide, and convert it to code-based routing: +Let's consider the same route tree from the [Route Trees & Nesting](../route-trees.md#route-trees) guide, and convert it to code-based routing: Here is the file-based version: @@ -179,7 +179,7 @@ But before you can go ahead and build the route tree, you need to understand how Believe it or not, file-based routing is really a superset of code-based routing and uses the filesystem and a bit of code-generation abstraction on top of it to generate this structure you see above automatically. -We're going to assume you've read the [Routing Concepts](./routing-concepts.md) guide and are familiar with each of these main concepts: +We're going to assume you've read the [Routing Concepts](../routing-concepts.md) guide and are familiar with each of these main concepts: - The Root Route - Basic Routes @@ -214,7 +214,7 @@ export interface MyRouterContext { const rootRoute = createRootRouteWithContext() ``` -To learn more about Context in TanStack Router, see the [Router Context](../guide/router-context.md) guide. +To learn more about Context in TanStack Router, see the [Router Context](../../guide/router-context.md) guide. ## Basic Routes @@ -269,7 +269,7 @@ function PostComponent() { ``` > [!TIP] -> If your component is code-split, you can use the [getRouteApi function](./code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `postIdRoute` configuration to get access to the typed `useParams()` hook. +> If your component is code-split, you can use the [getRouteApi function](../../guide/code-splitting.md#manually-accessing-route-apis-in-other-files-with-the-getrouteapi-helper) to avoid having to import the `postIdRoute` configuration to get access to the typed `useParams()` hook. ## Splat / Catch-All Routes diff --git a/docs/router/framework/react/routing/file-based-routing.md b/docs/router/framework/react/routing/file-based-routing.md index 03e9942d7e..e4095e2b00 100644 --- a/docs/router/framework/react/routing/file-based-routing.md +++ b/docs/router/framework/react/routing/file-based-routing.md @@ -2,7 +2,7 @@ title: File-Based Routing --- -Most of the TanStack Router documentation is written for file-based routing and is intended to help you understand in more detail how to configure file-based routing and the technical details behind how it works. While file-based routing is the preferred and recommended way to configure TanStack Router, you can also use [code-based routing](./code-based-routing.md) if you prefer. +Most of the TanStack Router documentation is written for file-based routing and is intended to help you understand in more detail how to configure file-based routing and the technical details behind how it works. While file-based routing is the preferred and recommended way to configure TanStack Router, you can also use [code-based routing](../code-based-routing.md) if you prefer. ## What is File-Based Routing? @@ -96,7 +96,7 @@ See the example below: Both flat and directory routes can be mixed together to create a route tree that uses the best of both worlds where it makes sense. > [!TIP] -> If you find that the default file-based routing structure doesn't fit your needs, you can always use [Virtual File Routes](./virtual-file-routes.md) to control the source of your routes whilst still getting the awesome performance benefits of file-based routing. +> If you find that the default file-based routing structure doesn't fit your needs, you can always use [Virtual File Routes](../virtual-file-routes.md) to control the source of your routes whilst still getting the awesome performance benefits of file-based routing. ## Getting started with File-Based Routing @@ -106,13 +106,13 @@ To enable file-based routing, you'll need to be using React with a supported bun [//]: # 'SupportedBundlersList' -- [Installation with Vite](./installation-with-vite.md) -- [Installation with Rspack/Rsbuild](./installation-with-rspack.md) -- [Installation with Webpack](./installation-with-webpack.md) -- [Installation with Esbuild](./installation-with-esbuild.md) +- [Installation with Vite](../installation-with-vite.md) +- [Installation with Rspack/Rsbuild](../installation-with-rspack.md) +- [Installation with Webpack](../installation-with-webpack.md) +- [Installation with Esbuild](../installation-with-esbuild.md) [//]: # 'SupportedBundlersList' When using TanStack Router's file-based routing through one of the supported bundlers, our plugin will **automatically generate your route configuration through your bundler's dev and build processes**. It is the easiest way to use TanStack Router's route generation features. -If your bundler is not yet supported, you can reach out to us on Discord or GitHub to let us know. Till then, fear not! You can still use the [`@tanstack/router-cli`](./installation-with-router-cli.md) package to generate your route tree file. +If your bundler is not yet supported, you can reach out to us on Discord or GitHub to let us know. Till then, fear not! You can still use the [`@tanstack/router-cli`](../installation-with-router-cli.md) package to generate your route tree file. diff --git a/docs/router/framework/react/routing/file-naming-conventions.md b/docs/router/framework/react/routing/file-naming-conventions.md index 300895addc..859b05019c 100644 --- a/docs/router/framework/react/routing/file-naming-conventions.md +++ b/docs/router/framework/react/routing/file-naming-conventions.md @@ -2,21 +2,21 @@ title: File Naming Conventions --- -File-based routing requires that you follow a few simple file naming conventions to ensure that your routes are generated correctly. The concepts these conventions enable are covered in detail in the [Route Trees & Nesting](./route-trees.md) guide. - -| Feature | Description | -| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| **`__root.tsx`** | The root route file must be named `__root.tsx` and must be placed in the root of the configured `routesDirectory`. | -| **`.` Separator** | Routes can use the `.` character to denote a nested route. For example, `blog.post` will be generated as a child of `blog`. | -| **`$` Token** | Route segments with the `$` token are parameterized and will extract the value from the URL pathname as a route `param`. | -| **`_` Prefix** | Route segments with the `_` prefix are considered to be pathless layout routes and will not be used when matching its child routes against the URL pathname. | -| **`_` Suffix** | Route segments with the `_` suffix exclude the route from being nested under any parent routes. | -| **`-` Prefix** | Files and folders with the `-` prefix are excluded from the route tree. They will not be added to the `routeTree.gen.ts` file and can be used to colocate logic in route folders. | -| **`(folder)` folder name pattern** | A folder that matches this pattern is treated as a **route group**, preventing the folder from being included in the route's URL path. | -| **`index` Token** | Route segments ending with the `index` token (before any file extensions) will match the parent route when the URL pathname matches the parent route exactly. This can be configured via the `indexToken` configuration option, see [options](../../../api/file-based-routing.md#indextoken). | -| **`.route.tsx` File Type** | When using directories to organise routes, the `route` suffix can be used to create a route file at the directory's path. For example, `blog.post.route.tsx` or `blog/post/route.tsx` can be used as the route file for the `/blog/post` route. This can be configured via the `routeToken` configuration option, see [options](../../../api/file-based-routing.md#routetoken). | - -> **πŸ’‘ Remember:** The file-naming conventions for your project could be affected by what [options](../../../api/file-based-routing.md) are configured. +File-based routing requires that you follow a few simple file naming conventions to ensure that your routes are generated correctly. The concepts these conventions enable are covered in detail in the [Route Trees & Nesting](../route-trees.md) guide. + +| Feature | Description | +| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **`__root.tsx`** | The root route file must be named `__root.tsx` and must be placed in the root of the configured `routesDirectory`. | +| **`.` Separator** | Routes can use the `.` character to denote a nested route. For example, `blog.post` will be generated as a child of `blog`. | +| **`$` Token** | Route segments with the `$` token are parameterized and will extract the value from the URL pathname as a route `param`. | +| **`_` Prefix** | Route segments with the `_` prefix are considered to be pathless layout routes and will not be used when matching its child routes against the URL pathname. | +| **`_` Suffix** | Route segments with the `_` suffix exclude the route from being nested under any parent routes. | +| **`-` Prefix** | Files and folders with the `-` prefix are excluded from the route tree. They will not be added to the `routeTree.gen.ts` file and can be used to colocate logic in route folders. | +| **`(folder)` folder name pattern** | A folder that matches this pattern is treated as a **route group**, preventing the folder from being included in the route's URL path. | +| **`index` Token** | Route segments ending with the `index` token (before any file extensions) will match the parent route when the URL pathname matches the parent route exactly. This can be configured via the `indexToken` configuration option, see [options](../../../../api/file-based-routing.md#indextoken). | +| **`.route.tsx` File Type** | When using directories to organise routes, the `route` suffix can be used to create a route file at the directory's path. For example, `blog.post.route.tsx` or `blog/post/route.tsx` can be used as the route file for the `/blog/post` route. This can be configured via the `routeToken` configuration option, see [options](../../../../api/file-based-routing.md#routetoken). | + +> **πŸ’‘ Remember:** The file-naming conventions for your project could be affected by what [options](../../../../api/file-based-routing.md) are configured. ## Dynamic Path Params @@ -27,7 +27,7 @@ Dynamic path params can be used in both flat and directory routes to create rout | ... | ... | ... | | Κ¦ `posts.$postId.tsx` | `/posts/$postId` | `` | -We'll learn more about dynamic path params in the [Path Params](../guide/path-params.md) guide. +We'll learn more about dynamic path params in the [Path Params](../../guide/path-params.md) guide. ## Pathless Routes @@ -39,4 +39,4 @@ Pathless routes wrap child routes with either logic or a component without requi | Κ¦ `_app.a.tsx` | /a | `` | | Κ¦ `_app.b.tsx` | /b | `` | -To learn more about pathless routes, see the [Routing Concepts - Pathless Routes](./routing-concepts.md#pathless-layout-routes) guide. +To learn more about pathless routes, see the [Routing Concepts - Pathless Routes](../routing-concepts.md#pathless-layout-routes) guide. diff --git a/docs/router/framework/react/routing/installation-with-esbuild.md b/docs/router/framework/react/routing/installation-with-esbuild.md index 262213f386..d7facef96f 100644 --- a/docs/router/framework/react/routing/installation-with-esbuild.md +++ b/docs/router/framework/react/routing/installation-with-esbuild.md @@ -76,4 +76,4 @@ When using the TanStack Router Plugin with Esbuild for File-based routing, it co If these defaults work for your project, you don't need to configure anything at all! However, if you need to customize the configuration, you can do so by editing the configuration object passed into the `TanStackRouterEsbuild` function. -You can find all the available configuration options in the [File-based Routing API Reference](../../../api/file-based-routing.md). +You can find all the available configuration options in the [File-based Routing API Reference](../../../../api/file-based-routing.md). diff --git a/docs/router/framework/react/routing/installation-with-router-cli.md b/docs/router/framework/react/routing/installation-with-router-cli.md index c67d7c1f9c..53b94fcd6f 100644 --- a/docs/router/framework/react/routing/installation-with-router-cli.md +++ b/docs/router/framework/react/routing/installation-with-router-cli.md @@ -100,4 +100,4 @@ If these defaults work for your project, you don't need to configure anything at [//]: # 'TargetConfiguration' [//]: # 'TargetConfiguration' -You can find all the available configuration options in the [File-based Routing API Reference](../../../api/file-based-routing.md). +You can find all the available configuration options in the [File-based Routing API Reference](../../../../api/file-based-routing.md). diff --git a/docs/router/framework/react/routing/installation-with-rspack.md b/docs/router/framework/react/routing/installation-with-rspack.md index b118773f86..d8d6b96af3 100644 --- a/docs/router/framework/react/routing/installation-with-rspack.md +++ b/docs/router/framework/react/routing/installation-with-rspack.md @@ -82,4 +82,4 @@ When using the TanStack Router Plugin with Rspack (or Rsbuild) for File-based ro If these defaults work for your project, you don't need to configure anything at all! However, if you need to customize the configuration, you can do so by editing the configuration object passed into the `TanStackRouterVite` function. -You can find all the available configuration options in the [File-based Routing API Reference](../../../api/file-based-routing.md). +You can find all the available configuration options in the [File-based Routing API Reference](../../../../api/file-based-routing.md). diff --git a/docs/router/framework/react/routing/installation-with-vite.md b/docs/router/framework/react/routing/installation-with-vite.md index 00dc2e37d8..f23f019768 100644 --- a/docs/router/framework/react/routing/installation-with-vite.md +++ b/docs/router/framework/react/routing/installation-with-vite.md @@ -84,4 +84,4 @@ When using the TanStack Router Plugin with Vite for File-based routing, it comes If these defaults work for your project, you don't need to configure anything at all! However, if you need to customize the configuration, you can do so by editing the configuration object passed into the `TanStackRouterVite` function. -You can find all the available configuration options in the [File-based Routing API Reference](../../../api/file-based-routing.md). +You can find all the available configuration options in the [File-based Routing API Reference](../../../../api/file-based-routing.md). diff --git a/docs/router/framework/react/routing/installation-with-webpack.md b/docs/router/framework/react/routing/installation-with-webpack.md index f98a9a1cd2..35514757ac 100644 --- a/docs/router/framework/react/routing/installation-with-webpack.md +++ b/docs/router/framework/react/routing/installation-with-webpack.md @@ -75,4 +75,4 @@ When using the TanStack Router Plugin with Webpack for File-based routing, it co If these defaults work for your project, you don't need to configure anything at all! However, if you need to customize the configuration, you can do so by editing the configuration object passed into the `TanStackRouterWebpack` function. -You can find all the available configuration options in the [File-based Routing API Reference](../../../api/file-based-routing.md). +You can find all the available configuration options in the [File-based Routing API Reference](../../../../api/file-based-routing.md). diff --git a/docs/router/framework/react/routing/route-trees.md b/docs/router/framework/react/routing/route-trees.md index c2d9729666..6065034b73 100644 --- a/docs/router/framework/react/routing/route-trees.md +++ b/docs/router/framework/react/routing/route-trees.md @@ -6,8 +6,8 @@ TanStack Router uses a nested route tree to match up the URL with the correct co To build a route tree, TanStack Router supports: -- [File-Based Routing](./file-based-routing.md) -- [Code-Based Routing](./code-based-routing.md) +- [File-Based Routing](../file-based-routing.md) +- [Code-Based Routing](../code-based-routing.md) Both methods support the exact same core features and functionality, but **file-based routing requires less code for the same or better results**. For this reason, **file-based routing is the preferred and recommended way** to configure TanStack Router. Most of the documentation is written from the perspective of file-based routing. @@ -58,10 +58,10 @@ The above is a valid route tree configuration that can be used with TanStack Rou Route trees can be configured using a few different ways: -- [Flat Routes](./file-based-routing.md#flat-routes) -- [Directories](./file-based-routing.md#directory-routes) -- [Mixed Flat Routes and Directories](./file-based-routing.md#mixed-flat-and-directory-routes) -- [Virtual File Routes](./virtual-file-routes.md) -- [Code-Based Routes](./code-based-routing.md) +- [Flat Routes](../file-based-routing.md#flat-routes) +- [Directories](../file-based-routing.md#directory-routes) +- [Mixed Flat Routes and Directories](../file-based-routing.md#mixed-flat-and-directory-routes) +- [Virtual File Routes](../virtual-file-routes.md) +- [Code-Based Routes](../code-based-routing.md) Please be sure to check out the full documentation links above for each type of route tree, or just proceed to the next section to get started with file-based routing. diff --git a/docs/router/framework/react/routing/routing-concepts.md b/docs/router/framework/react/routing/routing-concepts.md index 38d9ae5cd9..fcc4a6c7ef 100644 --- a/docs/router/framework/react/routing/routing-concepts.md +++ b/docs/router/framework/react/routing/routing-concepts.md @@ -59,7 +59,7 @@ export interface MyRouterContext { export const Route = createRootRouteWithContext() ``` -To learn more about Context in TanStack Router, see the [Router Context](../guide/router-context.md) guide. +To learn more about Context in TanStack Router, see the [Router Context](../../guide/router-context.md) guide. ## Basic Routes diff --git a/docs/router/framework/solid/quick-start.md b/docs/router/framework/solid/quick-start.md index a831b6de1d..de012cae2c 100644 --- a/docs/router/framework/solid/quick-start.md +++ b/docs/router/framework/solid/quick-start.md @@ -57,7 +57,7 @@ export default defineConfig({ ``` > [!TIP] -> If you are not using Vite, or any of the supported bundlers, you can check out the [TanStack Router CLI](./routing/installation-with-router-cli.md) guide for more info. +> If you are not using Vite, or any of the supported bundlers, you can check out the [TanStack Router CLI](../routing/installation-with-router-cli.md) guide for more info. Create the following files: diff --git a/docs/start/framework/react/authentication.md b/docs/start/framework/react/authentication.md index 8d4ed86236..6b78767a62 100644 --- a/docs/start/framework/react/authentication.md +++ b/docs/start/framework/react/authentication.md @@ -27,8 +27,8 @@ Clerk is a modern authentication platform that provides a full suite of authenti - To learn more about Clerk, visit the [Clerk website](https://go.clerk.com/wOwHtuJ) - To sign up, visit the [Clerk dashboard](https://go.clerk.com/PrSDXti) -- To get started with Clerk, check out our [official Start + Clerk examples!](../examples/start-clerk-basic/) +- To get started with Clerk, check out our [official Start + Clerk examples!](https://github.com/TanStack/router/tree/main/examples/react/start-clerk-basic/) ## Documentation & APIs -Documentation for implementing your own authentication logic with TanStack Start is coming soon! In the meantime, you can check out any of the `-auth` prefixed [examples](../examples) for a starting point. +Documentation for implementing your own authentication logic with TanStack Start is coming soon! In the meantime, you can check out any of the `-auth` prefixed [examples](https://github.com/TanStack/router/tree/main/examples/react) for a starting point. diff --git a/docs/start/framework/react/build-from-scratch.md b/docs/start/framework/react/build-from-scratch.md index 055526d7f8..a0f09832d9 100644 --- a/docs/start/framework/react/build-from-scratch.md +++ b/docs/start/framework/react/build-from-scratch.md @@ -315,4 +315,4 @@ That's it! 🀯 You've now set up a TanStack Start project and written your firs You can now run `npm run dev` to start your server and navigate to `http://localhost:3000` to see your route in action. -You want to deploy your application? Check out the [hosting guide](./hosting.md). +You want to deploy your application? Check out the [hosting guide](../hosting.md). diff --git a/docs/start/framework/react/quick-start.md b/docs/start/framework/react/quick-start.md index dab0590691..75913e24e2 100644 --- a/docs/start/framework/react/quick-start.md +++ b/docs/start/framework/react/quick-start.md @@ -5,7 +5,7 @@ title: Quick Start ## Impatient? -If you're impatient, you can clone and run the [Basic](../examples/start-basic) example right away with the following commands: +If you're impatient, you can clone and run the [Basic](https://github.com/TanStack/router/tree/main/examples/react/start-basic) example right away with the following commands: ```bash npx gitpick TanStack/router/tree/main/examples/react/start-basic start-basic @@ -22,16 +22,16 @@ Once you've cloned the example you want, head back to the [Learn the Basics](../ TanStack Start has load of examples to get you started. Pick one of the examples below to get started! -- [Basic](../examples/start-basic) (start-basic) -- [Basic + Auth](../examples/start-basic-auth) (start-basic-auth) -- [Counter](../examples/start-counter) (start-counter) -- [Basic + React Query](../examples/start-basic-react-query) (start-basic-react-query) -- [Clerk Auth](../examples/start-clerk-basic) (start-clerk-basic) -- [Convex + Trellaux](../examples/start-convex-trellaux) (start-convex-trellaux) -- [Supabase](../examples/start-supabase-basic) (start-supabase-basic) -- [Trellaux](../examples/start-trellaux) (start-trellaux) -- [WorkOS](../examples/start-workos) (start-workos) -- [Material UI](../examples/start-material-ui) (start-material-ui) +- [Basic](https://github.com/TanStack/router/tree/main/examples/react/start-basic) (start-basic) +- [Basic + Auth](https://github.com/TanStack/router/tree/main/examples/react/start-basic-auth) (start-basic-auth) +- [Counter](https://github.com/TanStack/router/tree/main/examples/react/start-counter) (start-counter) +- [Basic + React Query](https://github.com/TanStack/router/tree/main/examples/react/start-basic-react-query) (start-basic-react-query) +- [Clerk Auth](https://github.com/TanStack/router/tree/main/examples/react/start-clerk-basic) (start-clerk-basic) +- [Convex + Trellaux](https://github.com/TanStack/router/tree/main/examples/react/start-convex-trellaux) (start-convex-trellaux) +- [Supabase](https://github.com/TanStack/router/tree/main/examples/react/start-supabase-basic) (start-supabase-basic) +- [Trellaux](https://github.com/TanStack/router/tree/main/examples/react/start-trellaux) (start-trellaux) +- [WorkOS](https://github.com/TanStack/router/tree/main/examples/react/start-workos) (start-workos) +- [Material UI](https://github.com/TanStack/router/tree/main/examples/react/start-material-ui) (start-material-ui) ### Stackblitz @@ -58,15 +58,15 @@ Once you've clone or deployed an example, head back to the [Learn the Basics](.. While not Start-specific examples, these may help you understand more about how TanStack Router works: -- [Quickstart (file-based)](../examples/quickstart-file-based) -- [Basic (file-based)](../examples/basic-file-based) -- [Kitchen Sink (file-based)](../examples/kitchen-sink-file-based) -- [Kitchen Sink + React Query (file-based)](../examples/kitchen-sink-react-query-file-based) -- [Location Masking](../examples/location-masking) -- [Authenticated Routes](../examples/authenticated-routes) -- [Scroll Restoration](../examples/scroll-restoration) -- [Deferred Data](../examples/deferred-data) -- [Navigation Blocking](../examples/navigation-blocking) -- [View Transitions](../examples/view-transitions) -- [With tRPC](../examples/with-trpc) -- [With tRPC + React Query](../examples/with-trpc-react-query) +- [Quickstart (file-based)](https://github.com/TanStack/router/tree/main/examples/react/quickstart-file-based) +- [Basic (file-based)](https://github.com/TanStack/router/tree/main/examples/react/basic-file-based) +- [Kitchen Sink (file-based)](https://github.com/TanStack/router/tree/main/examples/react/kitchen-sink-file-based) +- [Kitchen Sink + React Query (file-based)](https://github.com/TanStack/router/tree/main/examples/react/kitchen-sink-react-query-file-based) +- [Location Masking](https://github.com/TanStack/router/tree/main/examples/react/location-masking) +- [Authenticated Routes](https://github.com/TanStack/router/tree/main/examples/react/authenticated-routes) +- [Scroll Restoration](https://github.com/TanStack/router/tree/main/examples/react/scroll-restoration) +- [Deferred Data](https://github.com/TanStack/router/tree/main/examples/react/deferred-data) +- [Navigation Blocking](https://github.com/TanStack/router/tree/main/examples/react/navigation-blocking) +- [View Transitions](https://github.com/TanStack/router/tree/main/examples/react/view-transitions) +- [With tRPC](https://github.com/TanStack/router/tree/main/examples/react/with-trpc) +- [With tRPC + React Query](https://github.com/TanStack/router/tree/main/examples/react/with-trpc-react-query) diff --git a/docs/start/framework/react/server-functions.md b/docs/start/framework/react/server-functions.md index 577b9d5e07..9204938d8a 100644 --- a/docs/start/framework/react/server-functions.md +++ b/docs/start/framework/react/server-functions.md @@ -32,7 +32,7 @@ Server functions can be defined anywhere in your application, but must be define ## Server Function Middleware -Server functions can use middleware to share logic, context, common operations, prerequisites, and much more. To learn more about server function middleware, be sure to read about them in the [Middleware guide](./middleware.md). +Server functions can use middleware to share logic, context, common operations, prerequisites, and much more. To learn more about server function middleware, be sure to read about them in the [Middleware guide](../middleware.md). ## Defining Server Functions diff --git a/docs/start/framework/solid/build-from-scratch.md b/docs/start/framework/solid/build-from-scratch.md index c5fcdb3563..7d0e7c6515 100644 --- a/docs/start/framework/solid/build-from-scratch.md +++ b/docs/start/framework/solid/build-from-scratch.md @@ -297,4 +297,4 @@ That's it! 🀯 You've now set up a TanStack Start project and written your firs You can now run `npm run dev` to start your server and navigate to `http://localhost:3000` to see your route in action. -You want to deploy your application? Check out the [hosting guide](./hosting.md). +You want to deploy your application? Check out the [hosting guide](../hosting.md). diff --git a/docs/start/framework/solid/quick-start.md b/docs/start/framework/solid/quick-start.md index 8d296d362c..4006381156 100644 --- a/docs/start/framework/solid/quick-start.md +++ b/docs/start/framework/solid/quick-start.md @@ -5,7 +5,7 @@ title: Quick Start ## Impatient? -If you're impatient, you can clone and run the [Basic](../examples/start-basic) example right away with the following commands: +If you're impatient, you can clone and run the [Basic](https://github.com/TanStack/router/tree/main/examples/solid/start-basic) example right away with the following commands: ```bash npx degit https://github.com/tanstack/router/examples/solid/start-basic start-basic @@ -22,8 +22,8 @@ Once you've cloned the example you want, head back to the [Learn the Basics](../ TanStack Start has load of examples to get you started. Pick one of the examples below to get started! -- [Basic](../examples/start-basic) (start-basic) -- [Bare](../examples/start-bare) (start-bare) +- [Basic](https://github.com/TanStack/router/tree/main/examples/solid/start-basic) (start-basic) +- [Bare](https://github.com/TanStack/router/tree/main/examples/solid/start-bare) (start-bare) ### Stackblitz diff --git a/package.json b/package.json index 9ac5606a3a..42238c2ad3 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "gpt-generate": "node gpt/generate.js", "set-ts-version": "node scripts/set-ts-version.js", "labeler-generate": "node scripts/generateLabelerConfig.mjs", - "cleanup-empty-packages": "node scripts/cleanup-empty-packages.mjs" + "cleanup-empty-packages": "node scripts/cleanup-empty-packages.mjs", + "verify-links": "node scripts/verify-links.ts" }, "devDependencies": { "@arethetypeswrong/cli": "^0.17.3", @@ -47,7 +48,9 @@ "eslint": "^9.22.0", "eslint-plugin-react-hooks": "^5.1.0", "eslint-plugin-unused-imports": "^4.1.4", + "fast-glob": "^3.3.3", "jsdom": "^25.0.1", + "markdown-link-extractor": "^4.0.2", "nx": "20.8.1", "prettier": "^3.5.0", "publint": "^0.3.4", @@ -57,13 +60,13 @@ "rimraf": "^6.0.1", "tinyglobby": "^0.2.12", "typescript": "^5.8.2", - "vite": "6.1.4", - "vitest": "^3.0.6", "typescript53": "npm:typescript@5.3", "typescript54": "npm:typescript@5.4", "typescript55": "npm:typescript@5.5", "typescript56": "npm:typescript@5.6", - "typescript57": "npm:typescript@5.7" + "typescript57": "npm:typescript@5.7", + "vite": "6.1.4", + "vitest": "^3.0.6" }, "resolutions": { "use-sync-external-store": "1.2.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4589ac9a60..d54b53c808 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -98,9 +98,15 @@ importers: eslint-plugin-unused-imports: specifier: ^4.1.4 version: 4.1.4(@typescript-eslint/eslint-plugin@8.22.0(@typescript-eslint/parser@8.22.0(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2))(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2))(eslint@9.22.0(jiti@2.4.2)) + fast-glob: + specifier: ^3.3.3 + version: 3.3.3 jsdom: specifier: ^25.0.1 version: 25.0.1 + markdown-link-extractor: + specifier: ^4.0.2 + version: 4.0.2 nx: specifier: 20.8.1 version: 20.8.1(@swc/core@1.10.15(@swc/helpers@0.5.15)) @@ -11371,6 +11377,13 @@ packages: resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} engines: {node: '>= 16'} + cheerio-select@2.1.0: + resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} + + cheerio@1.0.0: + resolution: {integrity: sha512-quS9HgjQpdaXOvsZz82Oz7uxtXiy6UIsIQcpBj7HRw2M63Skasm9qlDocAM7jNuaxdhpPU7c4kJN+gA5MCu4ww==} + engines: {node: '>=18.17'} + chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} @@ -11642,6 +11655,9 @@ packages: css-select@4.3.0: resolution: {integrity: sha512-wPpOYtnsVontu2mODhA19JrqWxNsfdatRKd64kmpRbQgh1KtItko5sTnEpPdpSaJszTOhEMlF/RPz28qj4HqhQ==} + css-select@5.1.0: + resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} + css-what@6.1.0: resolution: {integrity: sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw==} engines: {node: '>= 6'} @@ -11854,6 +11870,9 @@ packages: dom-serializer@1.4.1: resolution: {integrity: sha512-VHwB3KfrcOOkelEG2ZOfxqLZdfkil8PtJi4P8N2MMXucZq2yLp75ClViUlOVwyoHEDjYU433Aq+5zWP61+RGag==} + dom-serializer@2.0.0: + resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==} + domelementtype@2.3.0: resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==} @@ -11861,9 +11880,16 @@ packages: resolution: {integrity: sha512-GrwoxYN+uWlzO8uhUXRl0P+kHE4GtVPfYzVLcUxPL7KNdHKj66vvlhiweIHqYYXWlw+T8iLMp42Lm67ghw4WMQ==} engines: {node: '>= 4'} + domhandler@5.0.3: + resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==} + engines: {node: '>= 4'} + domutils@2.8.0: resolution: {integrity: sha512-w96Cjofp72M5IIhpjgobBimYEfoPjx1Vx0BSX9P30WBdZW2WIKU0T1Bd0kz2eNZ9ikjKgHbEyKx8BB6H1L3h3A==} + domutils@3.2.2: + resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + dot-case@3.0.4: resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} @@ -11916,6 +11942,9 @@ packages: resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} engines: {node: '>= 0.8'} + encoding-sniffer@0.2.0: + resolution: {integrity: sha512-ju7Wq1kg04I3HtiYIOrUrdfdDvkyO9s5XM8QAj/bN61Yo/Vb4vgJxy5vi4Yxk01gWHbrofpPtpxM8bKger9jhg==} + end-of-stream@1.4.4: resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} @@ -12590,6 +12619,9 @@ packages: html-entities@2.5.2: resolution: {integrity: sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA==} + html-link-extractor@1.0.5: + resolution: {integrity: sha512-ADd49pudM157uWHwHQPUSX4ssMsvR/yHIswOR5CUfBdK9g9ZYGMhVSE6KZVHJ6kCkR0gH4htsfzU6zECDNVwyw==} + html-minifier-terser@6.1.0: resolution: {integrity: sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==} engines: {node: '>=12'} @@ -12614,6 +12646,9 @@ packages: htmlparser2@6.1.0: resolution: {integrity: sha512-gyyPk6rgonLFEDGoeRgQNaEUvdJ4ktTmmUh/h2t7s+M8oPpIPxgNACWa+6ESR57kXstwqPiCut0V8NRpcwgU7A==} + htmlparser2@9.1.0: + resolution: {integrity: sha512-5zfg6mHUoaer/97TxnGpxmbR7zJtPwIYFMZ/H5ucTlPZhKvtum05yiPK3Mgai3a0DyVxv7qYqoweaEd2nrYQzQ==} + http-deceiver@1.2.7: resolution: {integrity: sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw==} @@ -13261,12 +13296,20 @@ packages: resolution: {integrity: sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==} hasBin: true + markdown-link-extractor@4.0.2: + resolution: {integrity: sha512-5cUOu4Vwx1wenJgxaudsJ8xwLUMN7747yDJX3V/L7+gi3e4MsCm7w5nbrDQQy8nEfnl4r5NV3pDXMAjhGXYXAw==} + marked-terminal@7.3.0: resolution: {integrity: sha512-t4rBvPsHc57uE/2nJOLmMbZCQ4tgAccAED3ngXQqW6g+TxA488JzJ+FK3lQkzBQOI1mRV/r/Kq+1ZlJ4D0owQw==} engines: {node: '>=16.0.0'} peerDependencies: marked: '>=1 <16' + marked@12.0.2: + resolution: {integrity: sha512-qXUm7e/YKFoqFPYPa3Ukg9xlI5cyAtGmyEIzMfW//m6kXwCy2Ps9DYf5ioijFKQ8qyuscrHoY04iJGctu2Kg0Q==} + engines: {node: '>= 18'} + hasBin: true + marked@9.1.6: resolution: {integrity: sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==} engines: {node: '>= 16'} @@ -13503,6 +13546,7 @@ packages: node-domexception@1.0.0: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead node-emoji@2.2.0: resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} @@ -13711,6 +13755,12 @@ packages: parse5-htmlparser2-tree-adapter@6.0.1: resolution: {integrity: sha512-qPuWvbLgvDGilKc5BoicRovlT4MtYT6JfJyBOMDsKoiT+GiuP5qyrPCnR9HcPECIJJmZh5jRndyNThnhhb/vlA==} + parse5-htmlparser2-tree-adapter@7.1.0: + resolution: {integrity: sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==} + + parse5-parser-stream@7.1.2: + resolution: {integrity: sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==} + parse5@5.1.1: resolution: {integrity: sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==} @@ -14861,6 +14911,10 @@ packages: undici-types@6.20.0: resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} + undici@6.21.3: + resolution: {integrity: sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==} + engines: {node: '>=18.17'} + unenv@1.10.0: resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==} @@ -20091,6 +20145,29 @@ snapshots: check-error@2.1.1: {} + cheerio-select@2.1.0: + dependencies: + boolbase: 1.0.0 + css-select: 5.1.0 + css-what: 6.1.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + + cheerio@1.0.0: + dependencies: + cheerio-select: 2.1.0 + dom-serializer: 2.0.0 + domhandler: 5.0.3 + domutils: 3.2.2 + encoding-sniffer: 0.2.0 + htmlparser2: 9.1.0 + parse5: 7.2.1 + parse5-htmlparser2-tree-adapter: 7.1.0 + parse5-parser-stream: 7.1.2 + undici: 6.21.3 + whatwg-mimetype: 4.0.0 + chokidar@3.6.0: dependencies: anymatch: 3.1.3 @@ -20349,6 +20426,14 @@ snapshots: domutils: 2.8.0 nth-check: 2.1.1 + css-select@5.1.0: + dependencies: + boolbase: 1.0.0 + css-what: 6.1.0 + domhandler: 5.0.3 + domutils: 3.2.2 + nth-check: 2.1.1 + css-what@6.1.0: {} css.escape@1.5.1: {} @@ -20484,18 +20569,34 @@ snapshots: domhandler: 4.3.1 entities: 2.2.0 + dom-serializer@2.0.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + entities: 4.5.0 + domelementtype@2.3.0: {} domhandler@4.3.1: dependencies: domelementtype: 2.3.0 + domhandler@5.0.3: + dependencies: + domelementtype: 2.3.0 + domutils@2.8.0: dependencies: dom-serializer: 1.4.1 domelementtype: 2.3.0 domhandler: 4.3.1 + domutils@3.2.2: + dependencies: + dom-serializer: 2.0.0 + domelementtype: 2.3.0 + domhandler: 5.0.3 + dot-case@3.0.4: dependencies: no-case: 3.0.4 @@ -20539,6 +20640,11 @@ snapshots: encodeurl@2.0.0: {} + encoding-sniffer@0.2.0: + dependencies: + iconv-lite: 0.6.3 + whatwg-encoding: 3.1.1 + end-of-stream@1.4.4: dependencies: once: 1.4.0 @@ -21493,6 +21599,10 @@ snapshots: html-entities@2.5.2: {} + html-link-extractor@1.0.5: + dependencies: + cheerio: 1.0.0 + html-minifier-terser@6.1.0: dependencies: camel-case: 4.1.2 @@ -21523,6 +21633,13 @@ snapshots: domutils: 2.8.0 entities: 2.2.0 + htmlparser2@9.1.0: + dependencies: + domelementtype: 2.3.0 + domhandler: 5.0.3 + domutils: 3.2.2 + entities: 4.5.0 + http-deceiver@1.2.7: {} http-errors@1.6.3: @@ -22121,6 +22238,11 @@ snapshots: punycode.js: 2.3.1 uc.micro: 2.1.0 + markdown-link-extractor@4.0.2: + dependencies: + html-link-extractor: 1.0.5 + marked: 12.0.2 + marked-terminal@7.3.0(marked@9.1.6): dependencies: ansi-escapes: 7.0.0 @@ -22132,6 +22254,8 @@ snapshots: node-emoji: 2.2.0 supports-hyperlinks: 3.1.0 + marked@12.0.2: {} + marked@9.1.6: {} math-intrinsics@1.1.0: {} @@ -22681,6 +22805,15 @@ snapshots: dependencies: parse5: 6.0.1 + parse5-htmlparser2-tree-adapter@7.1.0: + dependencies: + domhandler: 5.0.3 + parse5: 7.2.1 + + parse5-parser-stream@7.1.2: + dependencies: + parse5: 7.2.1 + parse5@5.1.1: {} parse5@6.0.1: {} @@ -23867,6 +24000,8 @@ snapshots: undici-types@6.20.0: {} + undici@6.21.3: {} + unenv@1.10.0: dependencies: consola: 3.4.0 diff --git a/scripts/verify-links.ts b/scripts/verify-links.ts new file mode 100644 index 0000000000..2297d9814f --- /dev/null +++ b/scripts/verify-links.ts @@ -0,0 +1,133 @@ +import { existsSync, readFileSync, statSync } from 'node:fs' +import path, { resolve } from 'node:path' +import fg from 'fast-glob' +// @ts-ignore +import markdownLinkExtractor from 'markdown-link-extractor' + +function isRelativeLink(link: string) { + return ( + link && + !link.startsWith('/') && + !link.startsWith('http://') && + !link.startsWith('https://') && + !link.startsWith('//') && + !link.startsWith('#') && + !link.startsWith('mailto:') + ) +} + +function normalizePath(p: string): string { + // Remove any trailing .md + p = p.replace(`${path.extname(p)}`, '') + return p +} + +function fileExistsForLink( + link: string, + markdownFile: string, + errors: Array, +): boolean { + // Remove hash if present + const filePart = link.split('#')[0] + // If the link is empty after removing hash, it's not a file + if (!filePart) return false + + // Normalize the markdown file path + markdownFile = normalizePath(markdownFile) + + // Normalize the path + const normalizedPath = normalizePath(filePart) + + // Resolve the path relative to the markdown file's directory + let absPath = resolve(markdownFile, normalizedPath) + + // Ensure the resolved path is within /docs + const docsRoot = resolve('docs') + if (!absPath.startsWith(docsRoot)) { + errors.push({ + link, + markdownFile, + resolvedPath: absPath, + reason: 'navigates above /docs, invalid', + }) + return false + } + + // Check if this is an example path + const isExample = absPath.includes('/examples/') + + let exists = false + + if (isExample) { + // Transform /docs/framework/{framework}/examples/ to /examples/{framework}/ + absPath = absPath.replace( + /\/docs\/framework\/([^/]+)\/examples\//, + '/examples/$1/', + ) + // For examples, we want to check if the directory exists + exists = existsSync(absPath) && statSync(absPath).isDirectory() + } else { + // For non-examples, we want to check if the .md file exists + if (!absPath.endsWith('.md')) { + absPath = `${absPath}.md` + } + exists = existsSync(absPath) + } + + if (!exists) { + errors.push({ + link, + markdownFile, + resolvedPath: absPath, + reason: 'not found', + }) + } + return exists +} + +async function findMarkdownLinks() { + // Find all markdown files in docs directory + const markdownFiles = await fg('docs/**/*.md', { + ignore: ['**/node_modules/**'], + }) + + console.log(`Found ${markdownFiles.length} markdown files\n`) + + const errors: Array = [] + + // Process each file + for (const file of markdownFiles) { + const content = readFileSync(file, 'utf-8') + const links: Array = markdownLinkExtractor(content) + + const filteredLinks = links.filter((link: any) => { + if (typeof link === 'string') { + return isRelativeLink(link) + } else if (link && typeof link.href === 'string') { + return isRelativeLink(link.href) + } + return false + }) + + if (filteredLinks.length > 0) { + filteredLinks.forEach((link: any) => { + const href = typeof link === 'string' ? link : link.href + fileExistsForLink(href, file, errors) + }) + } + } + + if (errors.length > 0) { + console.log(`\n❌ Found ${errors.length} broken links:`) + errors.forEach((err) => { + console.log( + `${err.link}\n in: ${err.markdownFile}\n path: ${err.resolvedPath}\n why: ${err.reason}\n`, + ) + }) + process.exit(1) + } else { + console.log('\nβœ… No broken links found!') + } +} + +findMarkdownLinks().catch(console.error) From ef01673dc69ebec82cbda71874d09c294816f927 Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Sat, 24 May 2025 11:01:44 +0200 Subject: [PATCH 23/47] fix: handle Symbol properties and non-enumerable properties in `replaceEqualDeep` (#4237) Opening this PR for discussion, I'm very open to scope changes. This PR tackles two problems with `defaultStructuralSharing: true`: 1. symbol properties are not taken into account for "object equality" and are not copied over when creating a new copy 2. non-enumerable properties are not taken into account for "object equality" and are not copied over when creating a new copy Point 1. actually is causing some of our users a headache, see https://github.com/apollographql/apollo-client/issues/12619 and https://community.apollographql.com/t/preloadquery-with-tanstack-router-loader/9100 . Users expect that they're able to pass an object with symbol properties over from a loader into components, but when having `defaultStructuralSharing` enabled, from the second object that is passed over, it creates a copy and strips off symbol properties. That new object without the expected symbol properties will then crash our `useReadQuery` hook. In other words, the first loader call returns ```js { refObject: { toPromise: Function1, [secretSymbol]: ImplementationDetail1 } } ``` the component receives ```js { refObject: { toPromise: Function1, [secretSymbol]: ImplementationDetail1 } } ``` and the second loader call returns ```js { refObject: { toPromise: Function2, [secretSymbol]: ImplementationDetail2 } } ``` but the component receives ```js { refObject: { toPromise: Function2 } } ``` `toPromise` is a different function, so it goes into the "clone" path, but skips the `secretSymbol` property. If we wouldn't have that `toPromise` property on there (and we're considering removing it!), it would even be worse to debug - users would always stay on the first `refObject` and never get the second, since both objects would be considered equal. On our side, passing these objects from loaders to components is actually an intended pattern, so this is causing quite a bit of problems - see this example from our docs (see [Initiating queries outside React](https://www.apollographql.com/docs/react/data/suspense#initiating-queries-outside-react)): ```ts import { useLoaderData } from 'react-router-dom'; export function loader() { return preloadQuery(GET_DOGS_QUERY); } export function RouteComponent() { const queryRef = useLoaderData(); const { data } = useReadQuery(queryRef); return ( // ... ); } ``` Problem 2. is purely hypothetical and we haven't encountered it - but it should probably be handled in some way. Both of these problems can be handled in two ways: * take these "special properties" into account for comparisons and copy them over (my naive approach here would lose the "non-enumerability" of these properties, more code would be necessary to keep that) * in `isPlainObject` just return `false` if an object has non-enumerable or symbol properties. This would opt out of structural sharing for these objects (which is probably perfectly fine) I'd be open for either of those solutions, and also for completely dropping the "non-enumerable" case for simplicity, but I would be very happy if we could get *something* in to help with symbol properties. In React Query, these values can be assumed to be serializable JSON, so the current implementation is perfectly fine, but with client-side loaders, users can just pass anything, and here it's causing quite the problem. Telling our users to situationally turn off structural sharing would be an educational nightmare. --- packages/router-core/src/utils.ts | 27 +++++++++++++++-- packages/router-core/tests/utils.test.ts | 38 ++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 3 deletions(-) diff --git a/packages/router-core/src/utils.ts b/packages/router-core/src/utils.ts index 1df674e8b9..5033dbfe9e 100644 --- a/packages/router-core/src/utils.ts +++ b/packages/router-core/src/utils.ts @@ -213,10 +213,18 @@ export function replaceEqualDeep(prev: any, _next: T): T { const array = isPlainArray(prev) && isPlainArray(next) - if (array || (isPlainObject(prev) && isPlainObject(next))) { - const prevItems = array ? prev : Object.keys(prev) + if (array || (isSimplePlainObject(prev) && isSimplePlainObject(next))) { + const prevItems = array + ? prev + : (Object.keys(prev) as Array).concat( + Object.getOwnPropertySymbols(prev), + ) const prevSize = prevItems.length - const nextItems = array ? next : Object.keys(next) + const nextItems = array + ? next + : (Object.keys(next) as Array).concat( + Object.getOwnPropertySymbols(next), + ) const nextSize = nextItems.length const copy: any = array ? [] : {} @@ -245,6 +253,19 @@ export function replaceEqualDeep(prev: any, _next: T): T { return next } +/** + * A wrapper around `isPlainObject` with additional checks to ensure that it is not + * only a plain object, but also one that is "clone-friendly" (doesn't have any + * non-enumerable properties). + */ +function isSimplePlainObject(o: any) { + return ( + // all the checks from isPlainObject are more likely to hit so we perform them first + isPlainObject(o) && + Object.getOwnPropertyNames(o).length === Object.keys(o).length + ) +} + // Copied from: https://github.com/jonschlinkert/is-plain-object export function isPlainObject(o: any) { if (!hasObjectPrototype(o)) { diff --git a/packages/router-core/tests/utils.test.ts b/packages/router-core/tests/utils.test.ts index 486ccf0410..562716b231 100644 --- a/packages/router-core/tests/utils.test.ts +++ b/packages/router-core/tests/utils.test.ts @@ -29,6 +29,44 @@ describe('replaceEqualDeep', () => { expect(result).toStrictEqual(obj2) }) + describe('symbol properties', () => { + it('should look at symbol properties in the object comparison', () => { + const propertyKey = Symbol('property') + const obj1 = { a: 1, [propertyKey]: 2 } + const obj2 = { a: 1, [propertyKey]: 3 } + const result = replaceEqualDeep(obj1, obj2) + expect(result).toStrictEqual(obj2) + }) + + it('should copy over symbol properties when creating a new object', () => { + const propertyKey = Symbol('property') + const obj1 = { a: 1, [propertyKey]: 2 } + const obj2 = { a: 3, [propertyKey]: 2 } + const result = replaceEqualDeep(obj1, obj2) + expect(result).toStrictEqual(obj2) + }) + }) + + describe('non-enumerable properties', () => { + it('should treat objects with non-enumerable properties as non-plain (no need for property comparisons)', () => { + const obj1: { a: number; b?: number } = { a: 1 } + Object.defineProperty(obj1, 'b', { enumerable: false, value: 2 }) + const obj2: { a: number; b?: number } = { a: 1 } + Object.defineProperty(obj2, 'b', { enumerable: false, value: 3 }) + const result = replaceEqualDeep(obj1, obj2) + expect(result).toBe(obj2) + }) + + it("should treat objects with non-enumerable properties as non-plain (copying doesn't happen)", () => { + const obj1: { a: number; b?: number } = { a: 1 } + Object.defineProperty(obj1, 'b', { enumerable: false, value: 2 }) + const obj2: { a: number; b?: number } = { a: 3 } + Object.defineProperty(obj2, 'b', { enumerable: false, value: 2 }) + const result = replaceEqualDeep(obj1, obj2) + expect(result).toBe(obj2) + }) + }) + it('should properly handle non-existent keys', () => { const obj1 = { a: 2, c: 123 } const obj2 = { a: 2, c: 123, b: undefined } From 790016d14116ba83b96bf9b8f8ab9a8ce56d3025 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sat, 24 May 2025 09:16:38 +0000 Subject: [PATCH 24/47] release: v1.120.10 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index c2efbd544d..d6c0a3c52b 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index a2923df0c0..7ee09ac853 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index e7e07959a6..fd141588a8 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 86da1d4c52..64acb6d0e9 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 54158cdecd..caa1381fe3 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index b5e6e6b987..28faefee12 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 96909fc088..13bf4df4af 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index f0eb18f0f9..72b8c2e8a6 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index 57689ec774..c13009e2ea 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index ed27520015..c7e5711bdc 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index d6892f7623..246bf0825e 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index f1b3d37787..09bf3ea7c1 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index ae21d5a9f4..7e5896e71d 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index cf7b09f65e..897854bc3b 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 226226aa2e..d77a0c2904 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 2c080f9c30..c3d3361783 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 4a084e04e8..666bad0c7a 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 1cbf540f48..3ef8f759ff 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 86885b3d9f..88f9801472 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index a6d0a90de9..edab22de0d 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index df9f4404da..50bb6f3de5 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 54faef976a..29e0a63e92 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index f25276f520..233661bc5b 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index d88d1dd0b6..ede755fe8f 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index cc6bb0f657..5aab94ba81 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index df88d6f8a2..830759c1fa 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 7d1287277b..458d0c9770 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index 475ef4b720..ffb391ae53 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.10", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index 7fc4df4773..f57e22fb78 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index d54db63269..2c40ed2abe 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 6d71d027bb..f85013d00c 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.10", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 847e075973..3b4cc6fc4d 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 192f04f146..f47a418264 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index ded81d400f..4388c24210 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.10", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 5407711adb..3278d17334 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index f5add15474..f4c5064d69 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", + "@tanstack/react-router": "^1.120.10", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index a3e95ae632..b790a451ca 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.9", + "@tanstack/arktype-adapter": "^1.120.10", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", - "@tanstack/valibot-adapter": "^1.120.9", - "@tanstack/zod-adapter": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", + "@tanstack/valibot-adapter": "^1.120.10", + "@tanstack/zod-adapter": "^1.120.10", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index c4da6c3be7..cb9776d337 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 586f01c4c5..e841a62d3a 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index 6f37728125..c7ab0d3261 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-with-query": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-with-query": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 94eb649264..7975deea23 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 32524346de..179ce6c128 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index c369cdf47e..f8ab0f70a3 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index d2b04f056c..bda98042c0 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index 16ca2b3a2c..08072dcafc 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-with-query": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-with-query": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index fb9e2f4107..aafd3cf2cb 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 1465637ecd..9485079bb4 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 1421e2ebe7..436a0327b6 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-start": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index b924776e23..b3e5d915b5 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 0506474feb..af23d7426e 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-with-query": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-with-query": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 5c1fb8fec3..995a7747fc 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 1ee7ef9788..9eb2c41ace 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 1f609816d5..f1980b2e80 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index 827b541323..b4a7a040f7 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 2086221cf7..88e3565c48 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.9", - "@tanstack/react-router-devtools": "^1.120.9", - "@tanstack/router-plugin": "^1.120.9", - "@tanstack/react-start": "^1.120.9", + "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-start": "^1.120.10", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index a803c27c01..ce0aa71d5a 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 1d3d1a8cad..574c417eeb 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 5adf47a5e4..f5f793709b 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index ccfa647bcf..aa8ac07232 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index ebf31aa641..e4c3eb9803 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index 18abcf7291..c8ea9d265f 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 808f60ef73..40028eb2ec 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 986606b912..3664ad6e03 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.9", + "@tanstack/router-plugin": "^1.120.10", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 04008d67dd..473c6e372b 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", - "@tanstack/solid-start": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-start": "^1.120.10", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index e8836009be..d80946ad6f 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.9", - "@tanstack/solid-router-devtools": "^1.120.9", - "@tanstack/solid-start": "^1.120.9", + "@tanstack/solid-router": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-start": "^1.120.10", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index b81d995e71..9636fc238d 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 1d4770e362..89bb527db9 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index dc8630c39a..7986782f24 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index c20deec680..6ab8e43503 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index f28241d32c..a493a9a5bc 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index ea78c129c2..cdaa4b615a 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index bab3a4bea7..b22bf6df32 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index e8a3009556..a4e02e90fa 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index b5b5abcfc4..2d4047e677 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index c2ff4a4d90..fd9c1fcf4d 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index fa95feb15f..16fff75119 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index 4b8c82236d..b31632f0b8 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index 6400b82b33..fa4c3442e1 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 2785971e97..4ac3765c9e 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 9fc738e854..742722893f 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 1dd0ad8a2e..03d81a4587 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index ba83ff0ed8..7035b85ade 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index 5af7c3638c..da6c9e5f08 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 76f108cfc4..c367a791e0 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 56c523560a..cc607cc618 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index 430466293e..fd8496bdfb 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index fb171bfcc4..9c6682c548 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index c1df9ee17b..0ce3a5f385 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index 2aa9fb1d14..e33a1b2eba 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index 06415e2de2..7beefdaed0 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 10cda95a48..4117e82878 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index b58686c348..30f91f6529 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index 697f304ccd..f038c3c94c 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index 5975202db8..90355cdbb0 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index 1895f71808..d8c880dcc6 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index 31b1e98962..8fe2941714 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 58d01d4846..cae91d604c 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 333435b978..2713b3c75b 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index cd7d59ac6b..65166cef2a 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.9", + "version": "1.120.10", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d54b53c808..e41fe3051a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5250,7 +5250,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5290,7 +5290,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5324,7 +5324,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5364,7 +5364,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5410,7 +5410,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5453,7 +5453,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5493,7 +5493,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5536,7 +5536,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5576,7 +5576,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5625,7 +5625,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.9 + specifier: ^1.120.10 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From bdea54ddf37584a9878756d92b6c3a6881d91f24 Mon Sep 17 00:00:00 2001 From: Lleyton W Morris <42259073+ViewableGravy@users.noreply.github.com> Date: Mon, 26 May 2025 22:03:48 +1000 Subject: [PATCH 25/47] docs(router): add `route.tsx` in directory vs flat routing guide (#4257) Co-authored-by: Lleyton Morris --- docs/router/framework/react/routing/file-based-routing.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/router/framework/react/routing/file-based-routing.md b/docs/router/framework/react/routing/file-based-routing.md index e4095e2b00..99d22d1cfb 100644 --- a/docs/router/framework/react/routing/file-based-routing.md +++ b/docs/router/framework/react/routing/file-based-routing.md @@ -47,6 +47,9 @@ See the example below: | β”„ Κ¦ `route-b.tsx` | `/route-b` | `` | | πŸ“‚ `files` | | | | β”„ Κ¦ `$.tsx` | `/files/$` | `` | +| πŸ“‚ `account` | | | +| β”„ Κ¦ `route.tsx` | `/account` | `` | +| β”„ Κ¦ `overview.tsx` | `/account/overview` | `` | ## Flat Routes @@ -72,6 +75,8 @@ See the example below: | Κ¦ `_pathlessLayout.route-a.tsx` | `/route-a` | `` | | Κ¦ `_pathlessLayout.route-b.tsx` | `/route-b` | `` | | Κ¦ `files.$.tsx` | `/files/$` | `` | +| Κ¦ `account.tsx` | `/account` | `` | +| Κ¦ `account.overview.tsx` | `/account/overview` | `` | ## Mixed Flat and Directory Routes @@ -92,6 +97,8 @@ See the example below: | Κ¦ `settings.tsx` | `/settings` | `` | | Κ¦ `settings.profile.tsx` | `/settings/profile` | `` | | Κ¦ `settings.notifications.tsx` | `/settings/notifications` | `` | +| Κ¦ `account.tsx` | `/account` | `` | +| Κ¦ `account.overview.tsx` | `/account/overview` | `` | Both flat and directory routes can be mixed together to create a route tree that uses the best of both worlds where it makes sense. From dca754ef8b0b6248d1e02ab93feef3f5fae8278f Mon Sep 17 00:00:00 2001 From: Matthew Struble Date: Mon, 26 May 2025 20:20:20 +0200 Subject: [PATCH 26/47] fix(react-router): fix custom link type ref inference (#4121) Custom links created by `createLink` would incorrectly infer `ref` values for non-intrinsic components (such as those with their own `ref` prop like the [documented example](https://tanstack.com/router/latest/docs/framework/react/guide/custom-link#basic-example)), which would result in the ref being "double-wrapped". That is: Before: ```typescript { // Effective LinkComponentReactProps // ... ref?: React.Ref | undefined> | undefined // notice the ref has been "ref'ed" twice } ``` After fix: ```typescript { // Effective LinkComponentReactProps // ... ref?: React.Ref | undefined> } ``` This patch, the equivilant applied directly to `link.d.ts` via `yarn patch`, has been our workaround and it appears to work well:
@tanstack-react-router-npm-1.120.3-f6c72d7c75.patch ```patch diff --git a/dist/esm/link.d.ts b/dist/esm/link.d.ts index f7a4dfc2678f3669ee48b97c22e4c69d2f3ff195..be0adda3bf4302466c3c4b4d73ff6c78474a237f 100644 --- a/dist/esm/link.d.ts +++ b/dist/esm/link.d.ts @@ -4,9 +4,9 @@ import { ValidateLinkOptions, ValidateLinkOptionsArray } from './typePrimitives. import * as React from 'react'; export declare function useLinkProps(options: UseLinkPropsOptions, forwardedRef?: React.ForwardedRef): React.ComponentPropsWithRef<'a'>; type UseLinkReactProps = TComp extends keyof React.JSX.IntrinsicElements ? React.JSX.IntrinsicElements[TComp] : React.PropsWithoutRef ? TProps : never> & React.RefAttributes; }> | React.Component<{ - ref: infer TRef; + ref: React.Ref; }> ? TRef : never>; export type UseLinkPropsOptions | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & UseLinkReactProps<'a'>; export type ActiveLinkOptions = LinkOptions & ActiveLinkOptionProps; ```
--------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- packages/react-router/src/link.tsx | 4 +-- packages/react-router/tests/link.test-d.tsx | 35 +++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/packages/react-router/src/link.tsx b/packages/react-router/src/link.tsx index 3023a10288..301f381a86 100644 --- a/packages/react-router/src/link.tsx +++ b/packages/react-router/src/link.tsx @@ -364,8 +364,8 @@ type UseLinkReactProps = TComp extends keyof React.JSX.IntrinsicElements > & React.RefAttributes< TComp extends - | React.FC<{ ref: infer TRef }> - | React.Component<{ ref: infer TRef }> + | React.FC<{ ref: React.Ref }> + | React.Component<{ ref: React.Ref }> ? TRef : never > diff --git a/packages/react-router/tests/link.test-d.tsx b/packages/react-router/tests/link.test-d.tsx index 7c58c25837..84491a2c92 100644 --- a/packages/react-router/tests/link.test-d.tsx +++ b/packages/react-router/tests/link.test-d.tsx @@ -1,4 +1,5 @@ import { expectTypeOf, test } from 'vitest' +import React from 'react' import { Link, createLink, @@ -9,6 +10,7 @@ import { } from '../src' import type { CreateLinkProps, + LinkComponent, ResolveRelativePath, SearchSchemaInput, } from '../src' @@ -4005,6 +4007,39 @@ test('when passing a component with props to createLink and navigating to the ro createLink((props) => expectTypeOf(props).toEqualTypeOf()) }) +test('that createLink refs forward correctly', () => { + // copied from: https://tanstack.com/router/latest/docs/framework/react/guide/custom-link#basic-example + interface BasicLinkProps + extends React.AnchorHTMLAttributes {} + const BasicLinkComponent = React.forwardRef< + HTMLAnchorElement, + BasicLinkProps + >((props, ref) => { + return ( +
+ ) + }) + const CreatedLinkComponent = createLink(BasicLinkComponent) + const CustomLink: LinkComponent = (props) => { + return + } + + expectTypeOf(BasicLinkComponent) + .parameter(0) + .toHaveProperty('ref') + .toEqualTypeOf | undefined>() + + expectTypeOf(CreatedLinkComponent) + .parameter(0) + .toHaveProperty('ref') + .toEqualTypeOf[0]['ref']>() + + expectTypeOf(CustomLink) + .parameter(0) + .toHaveProperty('ref') + .toEqualTypeOf[0]['ref']>() +}) + test('ResolveRelativePath', () => { expectTypeOf>().toEqualTypeOf<'/posts'>() From 52f06b46a08c1e3dc0c6794b44620579fe3c81eb Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Mon, 26 May 2025 22:30:22 +0000 Subject: [PATCH 27/47] release: v1.120.11 --- .../react/authenticated-routes-firebase/package.json | 6 +++--- examples/react/authenticated-routes/package.json | 6 +++--- .../react/basic-default-search-params/package.json | 4 ++-- examples/react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../react/basic-non-nested-devtools/package.json | 4 ++-- .../react/basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- examples/react/basic-ssr-file-based/package.json | 8 ++++---- .../basic-ssr-streaming-file-based/package.json | 8 ++++---- examples/react/basic-virtual-file-based/package.json | 6 +++--- .../basic-virtual-inside-file-based/package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- examples/react/kitchen-sink-file-based/package.json | 6 +++--- .../kitchen-sink-react-query-file-based/package.json | 6 +++--- examples/react/kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- examples/react/navigation-blocking/package.json | 4 ++-- .../react/quickstart-esbuild-file-based/package.json | 6 +++--- examples/react/quickstart-file-based/package.json | 6 +++--- .../react/quickstart-rspack-file-based/package.json | 6 +++--- .../react/quickstart-webpack-file-based/package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../react/router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- examples/react/router-monorepo-simple/package.json | 6 +++--- .../router-monorepo-simple/packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- examples/react/scroll-restoration/package.json | 4 ++-- .../react/search-validator-adapters/package.json | 12 ++++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- examples/react/start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- examples/react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- examples/react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- examples/react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- examples/react/with-framer-motion/package.json | 4 ++-- examples/react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- examples/solid/basic-file-based/package.json | 2 +- .../solid/basic-solid-query-file-based/package.json | 2 +- examples/solid/basic-solid-query/package.json | 2 +- examples/solid/kitchen-sink-file-based/package.json | 2 +- examples/solid/quickstart-file-based/package.json | 2 +- examples/solid/start-bare/package.json | 2 +- examples/solid/start-basic/package.json | 2 +- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-start-config/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- 81 files changed, 179 insertions(+), 179 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index d6c0a3c52b..4a8f304bed 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 7ee09ac853..cf0378bc6d 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index fd141588a8..9eea7d7d30 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 64acb6d0e9..36d8d7ace8 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index caa1381fe3..7b517b1a5b 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 28faefee12..fe96593fbb 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 13bf4df4af..0787e80e9e 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index 72b8c2e8a6..ebeab5ad81 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index c13009e2ea..21a7a8a67a 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index c7e5711bdc..dea195080a 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 246bf0825e..d972bac45e 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 09bf3ea7c1..1d4e17bc36 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 7e5896e71d..150669fb98 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index 897854bc3b..ba579e3077 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index d77a0c2904..463bea2e30 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index c3d3361783..5b19b8a402 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 666bad0c7a..8e6e64c6bd 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 3ef8f759ff..6ed0272bb8 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 88f9801472..33fa136f81 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index edab22de0d..32ed0b6715 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index 50bb6f3de5..c63ac965a5 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 29e0a63e92..0e12d52dde 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 233661bc5b..86c2a19f5e 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index ede755fe8f..5c6353952d 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 5aab94ba81..4803014c5f 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index 830759c1fa..3e8f14ee3d 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 458d0c9770..a88c126666 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index ffb391ae53..f72e3aef2c 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.11", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index f57e22fb78..3eef5f8c05 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 2c40ed2abe..c2a81d5194 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index f85013d00c..3e25f9f916 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.11", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 3b4cc6fc4d..0f402a1e08 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index f47a418264..1f13d4d4e3 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 4388c24210..5cd403fcd0 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.11", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 3278d17334..47190e1970 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index f4c5064d69..187ee3b6f9 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", + "@tanstack/react-router": "^1.120.11", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index b790a451ca..6191aee233 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.10", + "@tanstack/arktype-adapter": "^1.120.11", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", - "@tanstack/valibot-adapter": "^1.120.10", - "@tanstack/zod-adapter": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", + "@tanstack/valibot-adapter": "^1.120.11", + "@tanstack/zod-adapter": "^1.120.11", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index cb9776d337..de117cf8db 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index e841a62d3a..6ad26ce13c 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index c7ab0d3261..59cbc87a76 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-with-query": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-with-query": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 7975deea23..848b549c34 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 179ce6c128..357ca6f811 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index f8ab0f70a3..64234df92e 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index bda98042c0..b45259cf56 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index 08072dcafc..501c953e82 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-with-query": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-with-query": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index aafd3cf2cb..d7456793f2 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 9485079bb4..d79206e844 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 436a0327b6..907cf5a451 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-start": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index b3e5d915b5..7fb958b739 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index af23d7426e..4d890ee2b8 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-with-query": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-with-query": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 995a7747fc..52e52aa1a4 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 9eb2c41ace..e2272d0983 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index f1980b2e80..0896998fc0 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index b4a7a040f7..616d4ee00a 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 88e3565c48..35cdb8fe4a 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.10", - "@tanstack/react-router-devtools": "^1.120.10", - "@tanstack/router-plugin": "^1.120.10", - "@tanstack/react-start": "^1.120.10", + "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-start": "^1.120.11", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 574c417eeb..fddb7c07da 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index aa8ac07232..334c877c54 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index e4c3eb9803..055809fff4 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 40028eb2ec..5790632b2c 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 3664ad6e03..5101401613 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.10", + "@tanstack/router-plugin": "^1.120.11", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 473c6e372b..935cbc0e16 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/solid-router": "^1.120.10", "@tanstack/solid-router-devtools": "^1.120.10", - "@tanstack/solid-start": "^1.120.10", + "@tanstack/solid-start": "^1.120.11", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index d80946ad6f..ef0f2d33cc 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/solid-router": "^1.120.10", "@tanstack/solid-router-devtools": "^1.120.10", - "@tanstack/solid-start": "^1.120.10", + "@tanstack/solid-start": "^1.120.11", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index 9636fc238d..19e70cabaa 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 89bb527db9..1a7a1cc015 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index 7986782f24..0d37a9d584 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 6ab8e43503..ba8efbf1d6 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index a493a9a5bc..4f7da62203 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index cdaa4b615a..2f4260ade8 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index a4e02e90fa..0bf87be861 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index 2d4047e677..c882a944f9 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index fd9c1fcf4d..c34654137b 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index fa4c3442e1..88d7c6448e 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 4ac3765c9e..f2a25490c4 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 742722893f..21f0f0a684 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 03d81a4587..64eabf05e7 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index cc607cc618..cc2b66fcaa 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 0ce3a5f385..947750b967 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 4117e82878..0f10eed18b 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index cae91d604c..99636f0517 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 2713b3c75b..e1af376bb2 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 65166cef2a..c9f03d3d61 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.10", + "version": "1.120.11", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", From 64eb2c14257ef40a6f3c663af2c6d17251af4132 Mon Sep 17 00:00:00 2001 From: Matt Anderson Date: Wed, 28 May 2025 16:35:40 -0400 Subject: [PATCH 28/47] docs: Update RouteOptionsType doc to reflect correct Loader opts (#4265) --- .../framework/react/api/router/RouteOptionsType.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/router/framework/react/api/router/RouteOptionsType.md b/docs/router/framework/react/api/router/RouteOptionsType.md index 33fd10fe00..9c429554b8 100644 --- a/docs/router/framework/react/api/router/RouteOptionsType.md +++ b/docs/router/framework/react/api/router/RouteOptionsType.md @@ -124,15 +124,15 @@ type beforeLoad = ( ```tsx type loader = ( opts: RouteMatch & { - search: TFullSearchSchema abortController: AbortController - preload: boolean - params: TAllParams + cause: 'enter' | 'stay' context: TAllContext + deps: TLoaderDeps location: ParsedLocation + params: TAllParams + preload: boolean + parentMatchPromise: Promise> navigate: NavigateFn // @deprecated - buildLocation: BuildLocationFn - cause: 'enter' | 'stay' }, ) => Promise | TLoaderData | void ``` @@ -142,6 +142,7 @@ type loader = ( - This async function is called when a route is matched and passed the route's match object. If an error is thrown here, the route will be put into an error state and the error will be thrown during render. If thrown during a navigation, the navigation will be canceled and the error will be passed to the `onError` function. If thrown during a preload event, the error will be logged to the console and the preload will fail. - If this function returns a promise, the route will be put into a pending state and cause rendering to suspend until the promise resolves. If this route's pendingMs threshold is reached, the `pendingComponent` will be shown until it resolves. If the promise rejects, the route will be put into an error state and the error will be thrown during render. - If this function returns a `TLoaderData` object, that object will be stored on the route match until the route match is no longer active. It can be accessed using the `useLoaderData` hook in any component that is a child of the route match before another `` is rendered. +- Deps must be returned by your `loaderDeps` function in order to appear. > 🚧 `opts.navigate` has been deprecated and will be removed in the next major release. Use `throw redirect({ to: '/somewhere' })` instead. Read more about the `redirect` function [here](../redirectFunction.md). @@ -292,7 +293,7 @@ interface RemountDepsOptions< - The return value needs to be JSON serializable. - By default, a route component will not be remounted if it stays active after a navigation. -Example: +Example: If you want to configure to remount a route component upon `params` change, use: ```tsx From 1f3468771396f2253c4781d15bc9b7e7c6d4228f Mon Sep 17 00:00:00 2001 From: Chung Date: Thu, 29 May 2025 16:20:59 +1000 Subject: [PATCH 29/47] docs: Update code-splitting.md (#4267) Fix code-based splitting example. Change file name from `// src/posts.tsx` to `// src/posts.lazy.tsx` --- docs/router/framework/react/guide/code-splitting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/framework/react/guide/code-splitting.md b/docs/router/framework/react/guide/code-splitting.md index 985452f2a9..fd47e8b277 100644 --- a/docs/router/framework/react/guide/code-splitting.md +++ b/docs/router/framework/react/guide/code-splitting.md @@ -217,7 +217,7 @@ If you are using code-based routing, you can still code-split your routes using Create a lazy route using the `createLazyRoute` function. ```tsx -// src/posts.tsx +// src/posts.lazy.tsx export const Route = createLazyRoute('/posts')({ component: MyComponent, }) From fdf31ff7c36d66b51be09195cff5c7dd687ca669 Mon Sep 17 00:00:00 2001 From: Maxx Coffee Date: Thu, 29 May 2025 15:24:47 -0400 Subject: [PATCH 30/47] fix: Fix devtools when using shadowdom (#4212) Co-authored-by: Joshua Coffee Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../src/TanStackRouterDevtoolsCore.tsx | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx b/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx index a342d01e4d..4fcd27c931 100644 --- a/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx +++ b/packages/router-devtools-core/src/TanStackRouterDevtoolsCore.tsx @@ -1,5 +1,6 @@ import { createSignal, lazy } from 'solid-js' import { render } from 'solid-js/web' +import { ShadowDomTargetContext } from './context' import type { AnyRouter } from '@tanstack/router-core' import type { Signal } from 'solid-js' @@ -104,17 +105,19 @@ class TanStackRouterDevtoolsCore { } return ( - + + + ) }, el) From 000b4f385a3272d925fe8377aae2936a35bd8664 Mon Sep 17 00:00:00 2001 From: Jack Herrington Date: Thu, 29 May 2025 12:25:27 -0700 Subject: [PATCH 31/47] chore: support vibe-rules in react-router (#4263) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .gitignore | 4 +- docs/router/framework/react/installation.md | 16 ++ packages/react-router/package.json | 13 +- pnpm-lock.yaml | 25 +++ scripts/llms-generate.mjs | 159 ++++++++++++++++++++ 5 files changed, 214 insertions(+), 3 deletions(-) create mode 100755 scripts/llms-generate.mjs diff --git a/.gitignore b/.gitignore index 5cc3e94113..b0ecaffa4b 100644 --- a/.gitignore +++ b/.gitignore @@ -76,4 +76,6 @@ app.config.ts.timestamp_* # Handling VSCode settings /.vscode/ -!/examples/react/**/.vscode/settings.json \ No newline at end of file +!/examples/react/**/.vscode/settings.json + +**/llms diff --git a/docs/router/framework/react/installation.md b/docs/router/framework/react/installation.md index 2ece19f70e..909b5aa0ad 100644 --- a/docs/router/framework/react/installation.md +++ b/docs/router/framework/react/installation.md @@ -33,3 +33,19 @@ TypeScript is _optional_, but **HIGHLY** recommended! If you are using it, pleas > [!IMPORTANT] > We aim to support the last five minor versions of TypeScript. If you are using an older version, you may run into issues. Please upgrade to the latest version of TypeScript to ensure compatibility. We may drop support for older versions of TypeScript, outside of the range mentioned above, without warning in a minor or patch release. + +### Vibe Coding Support + +All of our documentation for TanStack React Router is integrated into the NPM module and can be easily installed as Vibe coding rules. You can integrate Vibe coding rules into the editor of your choice using [vibe-rules](https://www.npmjs.com/package/vibe-rules). + +```bash +pnpm add -g vibe-rules +``` + +Then run `vibe-rules` with the editor of your choice. Here is an example for Cursor: + +```bash +vibe-rules install cursor +``` + +But you can also use `windsurf`, `claude-code`, etc. Check the [vibe-rules](https://www.npmjs.com/package/vibe-rules) documentation for more information. diff --git a/packages/react-router/package.json b/packages/react-router/package.json index ba8efbf1d6..8bd0cc16e7 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -38,7 +38,9 @@ "test:perf": "vitest bench", "test:perf:dev": "pnpm run test:perf --watch --hideSkippedTests", "test:build": "publint --strict && attw --ignore-rules no-resolution --pack .", - "build": "vite build" + "build": "pnpm run build:lib && pnpm run build:llm", + "build:lib": "vite build", + "build:llm": "node ../../scripts/llms-generate.mjs react-router && tsc -p ./llms/tsconfig.json" }, "type": "module", "types": "dist/esm/index.d.ts", @@ -55,7 +57,13 @@ "default": "./dist/cjs/index.cjs" } }, - "./package.json": "./package.json" + "./package.json": "./package.json", + "./llms": { + "import": { + "types": "./dist/llms/index.d.ts", + "default": "./dist/llms/index.js" + } + } }, "sideEffects": false, "files": [ @@ -81,6 +89,7 @@ "combinate": "^1.1.11", "react": "^19.0.0", "react-dom": "^19.0.0", + "vibe-rules": "^0.2.55", "zod": "^3.24.2" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e41fe3051a..e4ab865540 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5801,6 +5801,9 @@ importers: react-dom: specifier: ^19.0.0 version: 19.0.0(react@19.0.0) + vibe-rules: + specifier: ^0.2.55 + version: 0.2.55 zod: specifier: ^3.24.2 version: 3.24.2 @@ -11493,6 +11496,10 @@ packages: resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==} engines: {node: '>=14'} + commander@11.1.0: + resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==} + engines: {node: '>=16'} + commander@13.1.0: resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==} engines: {node: '>=18'} @@ -15113,6 +15120,10 @@ packages: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + vibe-rules@0.2.55: + resolution: {integrity: sha512-2CdweOc2B6U5ML2XhMMdS/s0mvJggHWkdZykJFth80N0mlrg0XTVL8vUYBbyiF1VJFQfzOVcInhv6lOoG6f2qg==} + hasBin: true + vinxi@0.5.1: resolution: {integrity: sha512-jvl2hJ0fyWwfDVQdDDHCJiVxqU4k0A6kFAnljS0kIjrGfhdTvKEWIoj0bcJgMyrKhxNMoZZGmHZsstQgjDIL3g==} hasBin: true @@ -15497,6 +15508,9 @@ packages: zod@3.24.2: resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==} + zod@3.25.32: + resolution: {integrity: sha512-OSm2xTIRfW8CV5/QKgngwmQW/8aPfGdaQFlrGoErlgg/Epm7cjb6K6VEyExfe65a3VybUOnu381edLb0dfJl0g==} + snapshots: '@adobe/css-tools@4.4.1': {} @@ -20275,6 +20289,8 @@ snapshots: commander@10.0.1: {} + commander@11.1.0: {} + commander@13.1.0: {} commander@2.20.3: {} @@ -24162,6 +24178,13 @@ snapshots: vary@1.1.2: {} + vibe-rules@0.2.55: + dependencies: + chalk: 4.1.2 + commander: 11.1.0 + fs-extra: 11.3.0 + zod: 3.25.32 + vinxi@0.5.1(@types/node@22.13.4)(db0@0.2.3)(ioredis@5.4.2)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(tsx@4.19.2)(typescript@5.8.2)(yaml@2.7.0): dependencies: '@babel/core': 7.26.8 @@ -24790,3 +24813,5 @@ snapshots: readable-stream: 4.7.0 zod@3.24.2: {} + + zod@3.25.32: {} diff --git a/scripts/llms-generate.mjs b/scripts/llms-generate.mjs new file mode 100755 index 0000000000..e3f5b6155d --- /dev/null +++ b/scripts/llms-generate.mjs @@ -0,0 +1,159 @@ +#!/usr/bin/env node +import fs from 'node:fs' +import path from 'node:path' + +const DOCS_DIR = '../../docs' +const LLMS_DIR = './llms' +const RULES_DIR = './llms/rules' + +const packages = { + 'react-router': [ + { + paths: [`${DOCS_DIR}/router/framework/react/api/router`], + description: 'TanStack Router: API', + name: 'api', + globs: ['src/**/*.ts', 'src/**/*.tsx'], + }, + { + paths: [`${DOCS_DIR}/router/framework/react/guide`], + description: 'TanStack Router: Guide', + name: 'guide', + globs: ['src/**/*.ts', 'src/**/*.tsx'], + }, + { + paths: [`${DOCS_DIR}/router/framework/react/routing`], + description: 'TanStack Router: Routing', + name: 'routing', + globs: ['src/**/*.ts', 'src/**/*.tsx'], + }, + { + paths: [ + `${DOCS_DIR}/router/framework/react/overview.md`, + `${DOCS_DIR}/router/framework/react/quick-start.md`, + `${DOCS_DIR}/router/framework/react/devtools.md`, + `${DOCS_DIR}/router/framework/react/migrate-from-react-router.md`, + `${DOCS_DIR}/router/framework/react/migrate-from-react-location.md`, + `${DOCS_DIR}/router/framework/react/faq.md`, + ], + description: 'TanStack Router: Setup and Architecture', + name: 'setup-and-architecture', + globs: [ + 'package.json', + 'vite.config.ts', + 'tsconfig.json', + 'src/**/*.ts', + 'src/**/*.tsx', + ], + }, + ], +} + +const pkg = process.argv[2] +if (!pkg) { + console.error('Usage: node scripts/llms-generate.mjs ') + process.exit(1) +} +if (!packages[pkg]) { + console.error(`Package '${pkg}' not found`) + process.exit(1) +} + +function camelCase(str) { + return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase()) +} + +function extractFrontMatter(content) { + const frontMatterEndIndex = content.indexOf('---', 3) + 3 + const frontMatter = content.slice(0, frontMatterEndIndex) + const bodyContent = content.slice(frontMatterEndIndex).trim() + return { frontMatter, bodyContent } +} + +function convertMarkdownToTypeScript(markdownContent) { + const sanitizedContent = markdownContent + .replace(/`/g, '\\`') + .replace(/\$\{/g, '\\${') + return `const content = \`${sanitizedContent}\`;\n\nexport default content;\n` +} + +function mergeFiles(files, outputFile) { + let mergedContent = '' + for (const file of files) { + const content = fs.readFileSync(file, 'utf-8') + const { frontMatter, bodyContent } = extractFrontMatter(content) + const title = frontMatter.match(/title:\s*(.+)/)[1].trim() + mergedContent += `# ${title}\n\n${bodyContent}\n\n` + } + fs.writeFileSync( + outputFile, + convertMarkdownToTypeScript(mergedContent), + 'utf-8', + ) +} + +if (!fs.existsSync(RULES_DIR)) { + fs.mkdirSync(RULES_DIR, { recursive: true }) +} + +// Create the rules files +const imports = [] +const rules = [] +for (const { paths, name, description, globs } of packages[pkg]) { + const files = [] + for (const p of paths) { + if (fs.existsSync(p) && fs.statSync(p).isDirectory()) { + files.push( + ...fs + .readdirSync(p) + .filter((file) => file.endsWith('.md')) + .map((file) => path.join(p, file)), + ) + } else { + files.push(p) + } + } + mergeFiles(files.flat(), path.join(RULES_DIR, `${name}.ts`)) + imports.push(`import ${camelCase(name)} from './rules/${name}.js'`) + rules.push(`{ + name: '${name}', + description: '${description}', + rule: ${camelCase(name)}, + alwaysApply: false, + globs: [${globs.map((glob) => `'${glob}'`).join(', ')}], +}`) +} + +// Create the index.ts file +const indexFile = path.join(LLMS_DIR, 'index.ts') +const indexContent = `${imports.join('\n')} + +import type { PackageRuleItem } from 'vibe-rules' + +const rules: Array = [ + ${rules.join(',\n')} +] + +export default rules +` +fs.writeFileSync(indexFile, indexContent, 'utf-8') + +fs.writeFileSync( + path.join(LLMS_DIR, 'tsconfig.json'), + JSON.stringify( + { + compilerOptions: { + module: 'ESNext', + moduleResolution: 'bundler', + target: 'ESNext', + lib: ['ESNext', 'DOM'], + declaration: true, + outDir: '../dist/llms', + }, + include: ['./index.ts', './rules/*.ts'], + exclude: ['node_modules', 'dist'], + }, + null, + 2, + ), + 'utf-8', +) From d91e63a23d0ba4595d56940279dd8f3d40b48afc Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Thu, 29 May 2025 19:30:33 +0000 Subject: [PATCH 32/47] release: v1.120.12 --- .../react/authenticated-routes-firebase/package.json | 6 +++--- examples/react/authenticated-routes/package.json | 6 +++--- .../react/basic-default-search-params/package.json | 4 ++-- examples/react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../react/basic-non-nested-devtools/package.json | 4 ++-- .../react/basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- examples/react/basic-ssr-file-based/package.json | 8 ++++---- .../basic-ssr-streaming-file-based/package.json | 8 ++++---- examples/react/basic-virtual-file-based/package.json | 6 +++--- .../basic-virtual-inside-file-based/package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- examples/react/kitchen-sink-file-based/package.json | 6 +++--- .../kitchen-sink-react-query-file-based/package.json | 6 +++--- examples/react/kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- examples/react/navigation-blocking/package.json | 4 ++-- .../react/quickstart-esbuild-file-based/package.json | 6 +++--- examples/react/quickstart-file-based/package.json | 6 +++--- .../react/quickstart-rspack-file-based/package.json | 6 +++--- .../react/quickstart-webpack-file-based/package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../react/router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- examples/react/router-monorepo-simple/package.json | 6 +++--- .../router-monorepo-simple/packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- examples/react/scroll-restoration/package.json | 4 ++-- .../react/search-validator-adapters/package.json | 12 ++++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- examples/react/start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- examples/react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- examples/react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- examples/react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- examples/react/with-framer-motion/package.json | 4 ++-- examples/react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- examples/solid/basic-devtools-panel/package.json | 2 +- examples/solid/basic-file-based/package.json | 4 ++-- .../solid/basic-non-nested-devtools/package.json | 2 +- .../solid/basic-solid-query-file-based/package.json | 4 ++-- examples/solid/basic-solid-query/package.json | 4 ++-- examples/solid/basic/package.json | 2 +- examples/solid/kitchen-sink-file-based/package.json | 4 ++-- examples/solid/quickstart-file-based/package.json | 4 ++-- examples/solid/start-bare/package.json | 4 ++-- examples/solid/start-basic/package.json | 4 ++-- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-start-config/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- 86 files changed, 191 insertions(+), 191 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 4a8f304bed..38a10dfaa2 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index cf0378bc6d..82b4a8e375 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index 9eea7d7d30..647ff9f690 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 36d8d7ace8..6ef2b7236c 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 7b517b1a5b..83f80476d6 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index fe96593fbb..43a761fc61 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 0787e80e9e..c41223a3ac 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index ebeab5ad81..4c01531b96 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index 21a7a8a67a..cad03cebb3 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index dea195080a..b41a0d3ddc 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index d972bac45e..9ca3f4c494 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 1d4e17bc36..634f6f1146 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 150669fb98..248e329ff9 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index ba579e3077..d615165083 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 463bea2e30..4dcdd3eb78 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index 5b19b8a402..e62a55d9fd 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 8e6e64c6bd..a68355a5d6 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index 6ed0272bb8..ab8ffcf423 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 33fa136f81..529634814f 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 32ed0b6715..76e187be15 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index c63ac965a5..c07f04a206 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 0e12d52dde..348e221bf6 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 86c2a19f5e..91ca8a45cb 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index 5c6353952d..d46c5ce3eb 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 4803014c5f..4a0784862e 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index 3e8f14ee3d..5560a4542b 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index a88c126666..40ee544526 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index f72e3aef2c..0625b5f1d8 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.12", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index 3eef5f8c05..ace161bb6f 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index c2a81d5194..b16abde35a 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 3e25f9f916..2736e21d85 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.12", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 0f402a1e08..42938cfc17 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 1f13d4d4e3..209a4b56ae 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 5cd403fcd0..a42358376b 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.12", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 47190e1970..c0ef24bacf 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index 187ee3b6f9..be5e34c1cc 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", + "@tanstack/react-router": "^1.120.12", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 6191aee233..6b302706a4 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.11", + "@tanstack/arktype-adapter": "^1.120.12", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", - "@tanstack/valibot-adapter": "^1.120.11", - "@tanstack/zod-adapter": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", + "@tanstack/valibot-adapter": "^1.120.12", + "@tanstack/zod-adapter": "^1.120.12", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index de117cf8db..e008dbbe71 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 6ad26ce13c..0987b2e644 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index 59cbc87a76..203e6aa86e 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-with-query": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-with-query": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 848b549c34..b591f5fbb3 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 357ca6f811..e31d861380 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index 64234df92e..971d350de1 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index b45259cf56..025bea0ac9 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index 501c953e82..db2dd9b1a7 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-with-query": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-with-query": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index d7456793f2..f30ad1f043 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index d79206e844..24d5b1d52d 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 907cf5a451..2b73a068ae 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-start": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index 7fb958b739..2a2f46593b 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 4d890ee2b8..09e2fa99bd 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-with-query": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-with-query": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 52e52aa1a4..5fcf8fb72a 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index e2272d0983..1fd105bac7 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 0896998fc0..3a031298a6 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index 616d4ee00a..74ddb50d7a 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 35cdb8fe4a..4091ae6355 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.11", - "@tanstack/react-router-devtools": "^1.120.11", - "@tanstack/router-plugin": "^1.120.11", - "@tanstack/react-start": "^1.120.11", + "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-start": "^1.120.12", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index ce0aa71d5a..101e6b988e 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index fddb7c07da..8f7addff68 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index f5f793709b..48a373f7c8 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 334c877c54..1295db4788 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -13,7 +13,7 @@ "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 055809fff4..84e379c50f 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -12,7 +12,7 @@ "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index c8ea9d265f..bf22dc986c 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 5790632b2c..5046c2c845 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 5101401613..747c1dfbaf 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", + "@tanstack/solid-router-devtools": "^1.120.12", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.11", + "@tanstack/router-plugin": "^1.120.12", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 935cbc0e16..0ec48eb6eb 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", - "@tanstack/solid-start": "^1.120.11", + "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-start": "^1.120.12", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index ef0f2d33cc..32553d71c0 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.10", - "@tanstack/solid-start": "^1.120.11", + "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-start": "^1.120.12", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index 19e70cabaa..d9fb37819f 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 1a7a1cc015..db4a6b869d 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index 0d37a9d584..c1ad6f8bfc 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 8bd0cc16e7..b1a3290c90 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index 4f7da62203..1dfb4c5091 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index 2f4260ade8..48c3096537 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index 0bf87be861..a2c5cd1034 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index c882a944f9..67565c9229 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index c34654137b..4ec2bed9fe 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index b31632f0b8..c39854685e 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.10", + "version": "1.120.12", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index 88d7c6448e..e26b70a94f 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index f2a25490c4..1563896330 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 21f0f0a684..7896be1ba2 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 64eabf05e7..706a02660e 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index 7035b85ade..eefa4f0255 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.10", + "version": "1.120.12", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index cc2b66fcaa..07c61de6a7 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 947750b967..d41823a993 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 0f10eed18b..af358788cb 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 99636f0517..73b044176b 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index e1af376bb2..b3fe2b70dd 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index c9f03d3d61..9c08b4591f 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.11", + "version": "1.120.12", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", From a5208e48b6a3198da27f496a21cf5fa3daa67b76 Mon Sep 17 00:00:00 2001 From: Neeraj Dalal Date: Fri, 30 May 2025 06:50:46 +0530 Subject: [PATCH 33/47] docs(start): add migration guide from Next.js (#4260) Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com> --- docs/start/config.json | 4 + .../framework/react/migrate-from-next-js.md | 385 ++++++++++++++++++ 2 files changed, 389 insertions(+) create mode 100644 docs/start/framework/react/migrate-from-next-js.md diff --git a/docs/start/config.json b/docs/start/config.json index 76cae14ab8..f7e31b3557 100644 --- a/docs/start/config.json +++ b/docs/start/config.json @@ -76,6 +76,10 @@ { "label": "Path Aliases", "to": "framework/react/path-aliases" + }, + { + "label": "Migrate from Next.js", + "to": "framework/react/migrate-from-next-js" } ] }, diff --git a/docs/start/framework/react/migrate-from-next-js.md b/docs/start/framework/react/migrate-from-next-js.md new file mode 100644 index 0000000000..bd0b9e116b --- /dev/null +++ b/docs/start/framework/react/migrate-from-next-js.md @@ -0,0 +1,385 @@ +--- +id: migrate-from-next-js +title: Migrate from Next.js +--- + +> [!IMPORTANT] +> This guide is based off the upcoming work in the `alpha` branch for **TanStack Start**. We are actively working on super upcoming cool and exciting changes, and the guide will be updated soon. + +This guide provides a step-by-step process to migrate a project from the Next.js App Router to **TanStack Start**. We respect the powerful features of Next.js and aim to make this transition as smooth and professional as possible. + +## Step-by-Step (Basics) + +This step-by-step guide should give you an overview of how to migrate your Next.js App Router project to TanStack Start by migrating a starter template. The goal is to help you understand the basic steps involved in the migration process, so you can adapt them to your specific project needs. + +### Prerequisites + +Let's start off by cloning the following [starter template](https://github.com/nrjdalal/awesome-templates/tree/main/next.js-apps/next.js-start) to follow along with this guide: + +```sh +npx gitpick nrjdalal/awesome-templates/tree/main/next.js-apps/next.js-start next.js-start-er +``` + +This starter is a basic Next.js application using the App Router, which we will migrate to TanStack Start. + +### 1. Remove Next.js + +First, uninstall Next.js and remove adjacent configuration files: + +```sh +npm uninstall @tailwindcss/postcss next +rm postcss.config.* next.config.* +``` + +### 2. Install Required Dependencies + +TanStack Start leverages [Vite](https://vite.dev) and TanStack Router: + +> [!NOTE] +> We're using the `alpha` version of TanStack Start and TanStack Router. This'll change soon once the've been merged into `main`. + +```sh +npm i @tanstack/react-router@alpha @tanstack/react-start@alpha vite +``` + +For TypeScript support and Tailwind CSS: + +```sh +npm i -D @tailwindcss/vite tailwindcss vite-tsconfig-paths +``` + +### 3. Update Project Configuration + +Now that you've installed the necessary dependencies, you need to update your project configuration files to work with TanStack Start. + +- `package.json` + +```json +{ + "type": "module", + "scripts": { + "dev": "vite dev", + "build": "vite build", + "start": "node .output/server/index.mjs" + } +} +``` + +- `vite.config.ts` + +```ts +// vite.config.ts +import tailwindcss from '@tailwindcss/vite' +import { tanstackStart } from '@tanstack/react-start/plugin/vite' +import { defineConfig } from 'vite' +import tsconfigPaths from 'vite-tsconfig-paths' + +export default defineConfig({ + server: { + port: 3000, + }, + plugins: [ + tailwindcss(), + // Enables Vite to resolve imports using path aliases. + tsconfigPaths(), + tanstackStart({ + tsr: { + // Specifies the directory TanStack Router uses for your routes. + routesDirectory: 'src/app', // Defaults to "src/routes" + }, + }), + ], +}) +``` + +By default, `routesDirectory` is set to `src/routes`. If you want to maintain consistency with Next.js App Router conventions, you can set it to `src/app` instead. + +### 4. Adapt the Root Layout + +> TanStack Start uses a routing adjacent to Remix, but with some changes to make compatible with nested structures and support special features using tokens. You can see all on changes in the [Routing Concepts](/router/latest/docs/framework/react/routing/routing-concepts) guide. + +Instead of `layout.tsx`, you will create a file named `__root.tsx` in the `src/app` directory. This file will serve as the root layout for your application. + +- `src/app/layout.tsx` to `src/app/__root.tsx` + +```tsx +- import type { Metadata } from "next" // [!code --] +import { + Outlet, + createRootRoute, + HeadContent, + Scripts, +} from "@tanstack/react-router" +import "./globals.css" + +- export const metadata: Metadata = { // [!code --] +- title: "Create Next App", // [!code --] +- description: "Generated by create next app", // [!code --] +- } // [!code --] +export const Route = createRootRoute({ + head: () => ({ + meta: [ + { charSet: "utf-8" }, + { + name: "viewport", + content: "width=device-width, initial-scale=1", + }, + { title: "TanStack Start Starter" } + ], + }), + component: RootLayout, +}) + +- export default function RootLayout({ // [!code --] +- children, // [!code --] +- }: Readonly<{ // [!code --] +- children: React.ReactNode // [!code --] +- }>) { // [!code --] +- return ( // [!code --] +- // [!code --] +- {children} // [!code --] +- // [!code --] +- ) // [!code --] +- } // [!code --] +function RootLayout() { + return ( + + + + + + + + + + ) +} +``` + +### 5. Adapt the Home Page + +Instead of `page.tsx`, you will create an `index.tsx` file for the `/` route. + +- `src/app/page.tsx` to `src/app/index.tsx` + +```tsx +- export default function Home() { // [!code --] ++ export const Route = createFileRoute({ // [!code ++] ++ component: Home, // [!code ++] ++ }) // [!code ++] + ++ function Home() { // [!code ++] + return ( +
+ TanStack Logo +

+ Next.js TanStack Start +

+
+ Docs + +
+ ) +} +``` + +### 6. Are we migrated yet? + +One last thing before we can run the development server, we need to create a router file that will dictate the behavior of TanStack Router used within TanStack Start. + +- `src/router.tsx` + +```tsx +import { createRouter as createTanStackRouter } from '@tanstack/react-router' +import { routeTree } from './routeTree.gen' + +export function createRouter() { + const router = createTanStackRouter({ + routeTree, + scrollRestoration: true, + }) + + return router +} + +declare module '@tanstack/react-router' { + interface Register { + router: ReturnType + } +} +``` + +> 🧠 Here you can configure everything from the default [preloading functionality](/router/latest/docs/framework/react/guide/preloading) to [caching staleness](/router/latest/docs/framework/react/guide/data-loading). + +Don't worry if you see some TypeScript errors at this point. The next step will fix that. + +### 7. Verify the Migration + +Run the development server: + +```sh +npm run dev +``` + +Then visit `http://localhost:3000`. You should see the TanStack Start welcome page with its logo and documentation link. + +> If you encounter issues, review the steps above and ensure file names and paths match exactly. For reference implementation, see the [after migration repository](https://github.com/nrjdalal/next-to-start). + +## Next Steps (Advanced) + +Now that you have migrated the basic structure of your Next.js application to TanStack Start, you can explore more advanced features and concepts. + +### Routing Concepts + +| Route Example | Next.js | TanStack Start | +| ------------------------------ | ---------------------------------- | ------------------------- | +| Root Layout | `src/app/layout.tsx` | `src/app/__root.tsx` | +| `/` (Home Page) | `src/app/page.tsx` | `src/app/index.tsx` | +| `/posts` (Static Route) | `src/app/posts/page.tsx` | `src/app/posts.tsx` | +| `/posts/[slug]` (Dynamic) | `src/app/posts/[slug]/page.tsx` | `src/app/posts/$slug.tsx` | +| `/posts/[...slug]` (Catch-All) | `src/app/posts/[...slug]/page.tsx` | `src/app/posts/$.tsx` | +| `/api/endpoint` (API Route) | `src/app/api/endpoint/route.ts` | `src/app/api/endpoint.ts` | + +Learn more about the [Routing Concepts](/router/latest/docs/framework/react/routing/routing-concepts). + +### Dynamic and Catch-All Routes + +Getting dynamic route parameters in TanStack Start is straightforward. + +```tsx +- export default async function Page({ // [!code --] +- params, // [!code --] +- }: { // [!code --] +- params: Promise<{ slug: string }> // [!code --] +- }) { // [!code --] ++ export const Route = createFileRoute({ // [!code ++] ++ component: Page, // [!code ++] ++ }) // [!code ++] + ++ function Page() { // [!code ++] +- const { slug } = await params // [!code --] ++ const { slug } = Route.useParams() // [!code ++] + return
My Post: {slug}
+} +``` + +> Note: If you've made a catch-all route (like `src/app/posts/$.tsx`), you can access the parameters via `const { _splat } = Route.useParams()`. + +Similarly, you can get `searchParams` like `const { page, filter, sort } = Route.useSearch()`. + +Learn more about the [Dynamic and Catch-All Routes](/router/latest/docs/framework/react/routing/routing-concepts#dynamic-route-segments). + +### Links + +```tsx +- import Link from "next/link" // [!code --] ++ import { Link } from "@tanstack/react-router" // [!code ++] + +function Component() { +- return Dashboard // [!code --] ++ return Dashboard // [!code ++] +} +``` + +Learn more about the [Links](../learn-the-basics.md#navigation). + +### Server ~Actions~ Functions + +```tsx +- 'use server' // [!code --] ++ import { createServerFn } from "@tanstack/react-start" // [!code ++] + +- export const create = async () => { // [!code --] ++ export const create = createServerFn().handler(async () => { // [!code ++] + return true +- } // [!code --] ++ }) // [!code ++] +``` + +Learn more about the [Server Functions](./server-functions.md). + +### Server Routes ~Handlers~ + +```ts +- export async function GET() { // [!code --] ++ export const ServerRoute = createServerFileRoute().methods({ // [!code ++] ++ GET: async () => { // [!code ++] + return Response.json("Hello, World!") + } ++ }) // [!code ++] +``` + +Learn more about the [Server Routes](./server-routes.md). + +### Fonts + +```tsx +- import { Inter } from "next/font/google" // [!code --] + +- const inter = Inter({ // [!code --] +- subsets: ["latin"], // [!code --] +- display: "swap", // [!code --] +- }) // [!code --] + +- export default function Page() { // [!code --] +- return

Font Sans

// [!code --] +- } // [!code --] +``` + +Instead of `next/font`, use Tailwind CSS’s CSS-first approach. Install fonts (e.g. from [Fontsource](https://github.com/fontsource/fontsource)): + +```sh +npm i -D @fontsource-variable/dm-sans @fontsource-variable/jetbrains-mono +``` + +Add to `src/app/globals.css`: + +```css +@import 'tailwindcss'; + +@import '@fontsource-variable/dm-sans'; /* [!code ++] */ +@import '@fontsource-variable/jetbrains-mono'; /* [!code ++] */ + +@theme inline { + --font-sans: 'DM Sans Variable', sans-serif; /* [!code ++] */ + --font-mono: 'JetBrains Mono Variable', monospace; /* [!code ++] */ + /* ... */ +} + +/* ... */ +``` + +### Fetching Data + +```tsx +- export default async function Page() { // [!code --] ++ export const Route = createFileRoute({ // [!code ++] ++ component: Page, // [!code ++] ++ loader: async () => { // [!code ++] ++ const res = await fetch('https://api.vercel.app/blog') // [!code ++] ++ return res.json() // [!code ++] ++ }, // [!code ++] ++ }) // [!code ++] + ++ function Page() { // [!code ++] +- const data = await fetch('https://api.vercel.app/blog') // [!code --] +- const posts = await data.json() // [!code --] ++ const posts = Route.useLoaderData() // [!code ++] + + return ( +
    + {posts.map((post) => ( +
  • {post.title}
  • + ))} +
+ ) +} +``` From dc1d7b913724f9ad3e8283ed6cd531af6a08bba6 Mon Sep 17 00:00:00 2001 From: Neeraj Dalal Date: Fri, 30 May 2025 09:42:21 +0530 Subject: [PATCH 34/47] docs(start): fix typos in next migration guide (#4276) --- docs/start/framework/react/migrate-from-next-js.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/start/framework/react/migrate-from-next-js.md b/docs/start/framework/react/migrate-from-next-js.md index bd0b9e116b..f63b972202 100644 --- a/docs/start/framework/react/migrate-from-next-js.md +++ b/docs/start/framework/react/migrate-from-next-js.md @@ -4,9 +4,9 @@ title: Migrate from Next.js --- > [!IMPORTANT] -> This guide is based off the upcoming work in the `alpha` branch for **TanStack Start**. We are actively working on super upcoming cool and exciting changes, and the guide will be updated soon. +> This guide is based on the upcoming work in the `alpha` branch of **TanStack Start**. We are actively working on exciting new features, and this guide will be updated soon. -This guide provides a step-by-step process to migrate a project from the Next.js App Router to **TanStack Start**. We respect the powerful features of Next.js and aim to make this transition as smooth and professional as possible. +This guide provides a step-by-step process to migrate a project from the Next.js App Router to **TanStack Start**. We respect the powerful features of Next.js and aim to make this transition as smooth as possible. ## Step-by-Step (Basics) @@ -36,7 +36,7 @@ rm postcss.config.* next.config.* TanStack Start leverages [Vite](https://vite.dev) and TanStack Router: > [!NOTE] -> We're using the `alpha` version of TanStack Start and TanStack Router. This'll change soon once the've been merged into `main`. +> We're using the `alpha` version of TanStack Start and TanStack Router. This will change once they are merged into main. ```sh npm i @tanstack/react-router@alpha @tanstack/react-start@alpha vite @@ -96,7 +96,7 @@ By default, `routesDirectory` is set to `src/routes`. If you want to maintain co ### 4. Adapt the Root Layout -> TanStack Start uses a routing adjacent to Remix, but with some changes to make compatible with nested structures and support special features using tokens. You can see all on changes in the [Routing Concepts](/router/latest/docs/framework/react/routing/routing-concepts) guide. +> TanStack Start uses routing adjacent to Remix, with some changes to make it compatible with nested structures and support special features using tokens. Learn more about it at [Routing Concepts](/router/latest/docs/framework/react/routing/routing-concepts) guide. Instead of `layout.tsx`, you will create a file named `__root.tsx` in the `src/app` directory. This file will serve as the root layout for your application. From 18e24a74a57bc5f9346f811f828aa2e00ad83235 Mon Sep 17 00:00:00 2001 From: Neeraj Dalal Date: Fri, 30 May 2025 16:30:45 +0530 Subject: [PATCH 35/47] docs(start): add project structure to next.js migration guide (#4280) --- .../framework/react/migrate-from-next-js.md | 59 +++++++++++++------ 1 file changed, 41 insertions(+), 18 deletions(-) diff --git a/docs/start/framework/react/migrate-from-next-js.md b/docs/start/framework/react/migrate-from-next-js.md index f63b972202..acf0d4a06d 100644 --- a/docs/start/framework/react/migrate-from-next-js.md +++ b/docs/start/framework/react/migrate-from-next-js.md @@ -10,21 +10,44 @@ This guide provides a step-by-step process to migrate a project from the Next.js ## Step-by-Step (Basics) -This step-by-step guide should give you an overview of how to migrate your Next.js App Router project to TanStack Start by migrating a starter template. The goal is to help you understand the basic steps involved in the migration process, so you can adapt them to your specific project needs. +This step-by-step guide provides an overview of how to migrate your Next.js App Router project to TanStack Start using a starter template. The goal is to help you understand the basic steps involved in the migration process so you can adapt them to your specific project needs. ### Prerequisites -Let's start off by cloning the following [starter template](https://github.com/nrjdalal/awesome-templates/tree/main/next.js-apps/next.js-start) to follow along with this guide: +Before we begin, this guide assumes your project structure looks like this: + +```txt +. +β”œβ”€β”€ next.config.ts +β”œβ”€β”€ package.json +β”œβ”€β”€ postcss.config.mjs +β”œβ”€β”€ public +β”‚ β”œβ”€β”€ file.svg +β”‚ β”œβ”€β”€ globe.svg +β”‚ β”œβ”€β”€ next.svg +β”‚ β”œβ”€β”€ vercel.svg +β”‚ └── window.svg +β”œβ”€β”€ README.md +β”œβ”€β”€ src +β”‚ └── app +β”‚ β”œβ”€β”€ favicon.ico +β”‚ β”œβ”€β”€ globals.css +β”‚ β”œβ”€β”€ layout.tsx +β”‚ └── page.tsx +└── tsconfig.json +``` + +Alternatively, you can follow along by cloning the following [starter template](https://github.com/nrjdalal/awesome-templates/tree/main/next.js-apps/next.js-start): ```sh npx gitpick nrjdalal/awesome-templates/tree/main/next.js-apps/next.js-start next.js-start-er ``` -This starter is a basic Next.js application using the App Router, which we will migrate to TanStack Start. +This structure or starter is a basic Next.js application using the App Router, which we will migrate to TanStack Start. ### 1. Remove Next.js -First, uninstall Next.js and remove adjacent configuration files: +First, uninstall Next.js and remove related configuration files: ```sh npm uninstall @tailwindcss/postcss next @@ -42,7 +65,7 @@ TanStack Start leverages [Vite](https://vite.dev) and TanStack Router: npm i @tanstack/react-router@alpha @tanstack/react-start@alpha vite ``` -For TypeScript support and Tailwind CSS: +For Tailwind CSS and resolving imports using path aliases: ```sh npm i -D @tailwindcss/vite tailwindcss vite-tsconfig-paths @@ -50,7 +73,7 @@ npm i -D @tailwindcss/vite tailwindcss vite-tsconfig-paths ### 3. Update Project Configuration -Now that you've installed the necessary dependencies, you need to update your project configuration files to work with TanStack Start. +Now that you've installed the necessary dependencies, update your project configuration files to work with TanStack Start. - `package.json` @@ -92,13 +115,13 @@ export default defineConfig({ }) ``` -By default, `routesDirectory` is set to `src/routes`. If you want to maintain consistency with Next.js App Router conventions, you can set it to `src/app` instead. +By default, `routesDirectory` is set to `src/routes`. To maintain consistency with Next.js App Router conventions, you can set it to `src/app` instead. ### 4. Adapt the Root Layout -> TanStack Start uses routing adjacent to Remix, with some changes to make it compatible with nested structures and support special features using tokens. Learn more about it at [Routing Concepts](/router/latest/docs/framework/react/routing/routing-concepts) guide. +> TanStack Start uses a routing approach similar to Remix, with some changes to support nested structures and special features using tokens. Learn more about it at [Routing Concepts](/router/latest/docs/framework/react/routing/routing-concepts) guide. -Instead of `layout.tsx`, you will create a file named `__root.tsx` in the `src/app` directory. This file will serve as the root layout for your application. +Instead of `layout.tsx`, create a file named `__root.tsx` in the `src/app` directory. This file will serve as the root layout for your application. - `src/app/layout.tsx` to `src/app/__root.tsx` @@ -158,7 +181,7 @@ function RootLayout() { ### 5. Adapt the Home Page -Instead of `page.tsx`, you will create an `index.tsx` file for the `/` route. +Instead of `page.tsx`, create an `index.tsx` file for the `/` route. - `src/app/page.tsx` to `src/app/index.tsx` @@ -193,7 +216,7 @@ Instead of `page.tsx`, you will create an `index.tsx` file for the `/` route. ### 6. Are we migrated yet? -One last thing before we can run the development server, we need to create a router file that will dictate the behavior of TanStack Router used within TanStack Start. +Before you can run the development server, you need to create a router file that will define the behavior of TanStack Router within TanStack Start. - `src/router.tsx` @@ -219,7 +242,7 @@ declare module '@tanstack/react-router' { > 🧠 Here you can configure everything from the default [preloading functionality](/router/latest/docs/framework/react/guide/preloading) to [caching staleness](/router/latest/docs/framework/react/guide/data-loading). -Don't worry if you see some TypeScript errors at this point. The next step will fix that. +Don't worry if you see some TypeScript errors at this point; the next step will resolve them. ### 7. Verify the Migration @@ -229,9 +252,9 @@ Run the development server: npm run dev ``` -Then visit `http://localhost:3000`. You should see the TanStack Start welcome page with its logo and documentation link. +Then, visit `http://localhost:3000`. You should see the TanStack Start welcome page with its logo and a documentation link. -> If you encounter issues, review the steps above and ensure file names and paths match exactly. For reference implementation, see the [after migration repository](https://github.com/nrjdalal/next-to-start). +> If you encounter issues, review the steps above and ensure that file names and paths match exactly. For a reference implementation, see the [post-migration repository](https://github.com/nrjdalal/next-to-start). ## Next Steps (Advanced) @@ -252,7 +275,7 @@ Learn more about the [Routing Concepts](/router/latest/docs/framework/react/rout ### Dynamic and Catch-All Routes -Getting dynamic route parameters in TanStack Start is straightforward. +Retrieving dynamic route parameters in TanStack Start is straightforward. ```tsx - export default async function Page({ // [!code --] @@ -273,7 +296,7 @@ Getting dynamic route parameters in TanStack Start is straightforward. > Note: If you've made a catch-all route (like `src/app/posts/$.tsx`), you can access the parameters via `const { _splat } = Route.useParams()`. -Similarly, you can get `searchParams` like `const { page, filter, sort } = Route.useSearch()`. +Similarly, you can access `searchParams` using `const { page, filter, sort } = Route.useSearch()`. Learn more about the [Dynamic and Catch-All Routes](/router/latest/docs/framework/react/routing/routing-concepts#dynamic-route-segments). @@ -334,13 +357,13 @@ Learn more about the [Server Routes](./server-routes.md). - } // [!code --] ``` -Instead of `next/font`, use Tailwind CSS’s CSS-first approach. Install fonts (e.g. from [Fontsource](https://github.com/fontsource/fontsource)): +Instead of `next/font`, use Tailwind CSS’s CSS-first approach. Install fonts (for example, from [Fontsource](https://github.com/fontsource/fontsource)): ```sh npm i -D @fontsource-variable/dm-sans @fontsource-variable/jetbrains-mono ``` -Add to `src/app/globals.css`: +Add the following to `src/app/globals.css`: ```css @import 'tailwindcss'; From 3f858cb268379cddf50b1515f19a4046fe785d62 Mon Sep 17 00:00:00 2001 From: Thomas Marnet Date: Fri, 30 May 2025 10:49:42 -0400 Subject: [PATCH 36/47] fix: scroll to top selectors function (#4281) --- .../framework/react/guide/scroll-restoration.md | 13 +++++++++++++ packages/router-core/src/router.ts | 5 +---- packages/router-core/src/scroll-restoration.ts | 10 ++++++++-- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/docs/router/framework/react/guide/scroll-restoration.md b/docs/router/framework/react/guide/scroll-restoration.md index 034b9465a7..ffc1387e10 100644 --- a/docs/router/framework/react/guide/scroll-restoration.md +++ b/docs/router/framework/react/guide/scroll-restoration.md @@ -17,6 +17,19 @@ const router = createRouter({ }) ``` +For complex selectors that cannot be simply resolved using `document.querySelector(selector)`, you can pass functions that return HTML elements to `routerOptions.scrollToTopSelectors`: + +```tsx +const selector = () => + document + .querySelector('#shadowRootParent') + ?.shadowRoot?.querySelector('#main-scrollable-area') + +const router = createRouter({ + scrollToTopSelectors: [selector], +}) +``` + These selectors are handled **in addition to `window`** which cannot be disabled currently. ## Scroll Restoration diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 3899ce384c..5b1157b483 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -390,7 +390,7 @@ export interface RouterOptions< * * @default ['window'] */ - scrollToTopSelectors?: Array + scrollToTopSelectors?: Array Element | null | undefined)> } export interface RouterState< @@ -882,7 +882,6 @@ export class RouterCore< } if ( - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition !this.history || (this.options.history && this.options.history !== this.history) ) { @@ -901,7 +900,6 @@ export class RouterCore< this.buildRouteTree() } - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition if (!this.__store) { this.__store = new Store(getInitialRouterState(this.latestLocation), { onUpdate: () => { @@ -920,7 +918,6 @@ export class RouterCore< if ( typeof window !== 'undefined' && 'CSS' in window && - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition typeof window.CSS?.supports === 'function' ) { this.isViewTransitionTypesSupported = window.CSS.supports( diff --git a/packages/router-core/src/scroll-restoration.ts b/packages/router-core/src/scroll-restoration.ts index 1e3270534f..280df14e6a 100644 --- a/packages/router-core/src/scroll-restoration.ts +++ b/packages/router-core/src/scroll-restoration.ts @@ -105,7 +105,9 @@ export function restoreScroll( key: string | undefined, behavior: ScrollToOptions['behavior'] | undefined, shouldScrollRestoration: boolean | undefined, - scrollToTopSelectors: Array | undefined, + scrollToTopSelectors: + | Array Element | null | undefined)> + | undefined, ) { let byKey: ScrollRestorationByKey @@ -174,7 +176,11 @@ export function restoreScroll( ...(scrollToTopSelectors?.filter((d) => d !== 'window') ?? []), ].forEach((selector) => { const element = - selector === 'window' ? window : document.querySelector(selector) + selector === 'window' + ? window + : typeof selector === 'function' + ? selector() + : document.querySelector(selector) if (element) { element.scrollTo({ top: 0, From c0a6050b89c2a81bb56a1d2c574884866cd6aba9 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Fri, 30 May 2025 15:24:43 +0000 Subject: [PATCH 37/47] release: v1.120.13 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 38a10dfaa2..99a20b70f1 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 82b4a8e375..27b53a1d94 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index 647ff9f690..c44053a663 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 6ef2b7236c..92205a11cb 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 83f80476d6..13a9f7a9c4 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index 43a761fc61..ef6b17c775 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index c41223a3ac..12181ee589 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index 4c01531b96..a3c6c2ff67 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index cad03cebb3..b34bb03897 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index b41a0d3ddc..e928780c9d 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 9ca3f4c494..d6843483e0 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index 634f6f1146..adff0573b3 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 248e329ff9..5a14922f5c 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index d615165083..9f35997df4 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 4dcdd3eb78..3965fc8df0 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index e62a55d9fd..a9b018616f 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index a68355a5d6..709617bf93 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index ab8ffcf423..a2ca7b2a2c 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index 529634814f..dee217cd65 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 76e187be15..1b86a06d2a 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index c07f04a206..b1bbc7fbe9 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 348e221bf6..a1d8bdcfbb 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 91ca8a45cb..0d62957776 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index d46c5ce3eb..00bb864cb9 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 4a0784862e..e1c61083c0 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index 5560a4542b..46895b777a 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 40ee544526..342b3ae4b0 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index 0625b5f1d8..0bc3948c57 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.13", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index ace161bb6f..1ddc19d733 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index b16abde35a..0fa2576245 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 2736e21d85..9c3b88ae10 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.13", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 42938cfc17..4acf5e42c9 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 209a4b56ae..0c8b6ca6be 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index a42358376b..825f5faba8 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.13", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index c0ef24bacf..d5c7eb4e2d 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index be5e34c1cc..efda8a6b9a 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", + "@tanstack/react-router": "^1.120.13", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 6b302706a4..89a1589093 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.12", + "@tanstack/arktype-adapter": "^1.120.13", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", - "@tanstack/valibot-adapter": "^1.120.12", - "@tanstack/zod-adapter": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", + "@tanstack/valibot-adapter": "^1.120.13", + "@tanstack/zod-adapter": "^1.120.13", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index e008dbbe71..0c37e072a1 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index 0987b2e644..f0335c4755 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index 203e6aa86e..d4ace3b37e 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-with-query": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-with-query": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index b591f5fbb3..90e5c9b2de 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index e31d861380..3a4b0cd1f1 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index 971d350de1..c330fce3bb 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 025bea0ac9..0f2d9da19d 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index db2dd9b1a7..d6bd368a28 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-with-query": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-with-query": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index f30ad1f043..16faa3609f 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index 24d5b1d52d..e4faaa5348 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index 2b73a068ae..c2a5c6f5bf 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-start": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-start": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index 2a2f46593b..3a9e0b74f4 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 09e2fa99bd..5b4d3a92b0 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-with-query": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-with-query": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index 5fcf8fb72a..a76329d78e 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 1fd105bac7..75e2d3e686 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 3a031298a6..8897f74cf5 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index 74ddb50d7a..468aa71aad 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 4091ae6355..789e2ebcfb 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.12", - "@tanstack/react-router-devtools": "^1.120.12", - "@tanstack/router-plugin": "^1.120.12", - "@tanstack/react-start": "^1.120.12", + "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/router-plugin": "^1.120.13", + "@tanstack/react-start": "^1.120.13", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index 101e6b988e..5ca6ffb930 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 8f7addff68..2b16ce7929 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 48a373f7c8..34530844e8 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 1295db4788..26cc80292a 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 84e379c50f..57483f47ac 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index bf22dc986c..df4a6d9258 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 5046c2c845..e172cc8172 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 747c1dfbaf..9db945fb93 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.12", + "@tanstack/router-plugin": "^1.120.13", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 0ec48eb6eb..6b139933d7 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", - "@tanstack/solid-start": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-start": "^1.120.13", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index 32553d71c0..feaba213ef 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.10", - "@tanstack/solid-router-devtools": "^1.120.12", - "@tanstack/solid-start": "^1.120.12", + "@tanstack/solid-router": "^1.120.13", + "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-start": "^1.120.13", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index d9fb37819f..af75cdec28 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index db4a6b869d..4e5d3d5a7c 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index c1ad6f8bfc..f2d7bb4404 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index b1a3290c90..a89cd0d61a 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index 1dfb4c5091..ce5f47b6d2 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index 48c3096537..24f2107324 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index b22bf6df32..2627e1bd9e 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index a2c5cd1034..db2d26a544 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index 67565c9229..1a780bb763 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index 4ec2bed9fe..2e17250a3a 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index 16fff75119..75fe988083 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index c39854685e..5591f90ed9 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index e26b70a94f..85842c4834 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index 1563896330..d29398309d 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 7896be1ba2..4788db33df 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 706a02660e..7fe7e300cb 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index eefa4f0255..67338b63fa 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index da6c9e5f08..df2d74c4c6 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index c367a791e0..58269ec142 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 07c61de6a7..0bb009a595 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index fd8496bdfb..28f5a992c3 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index 9c6682c548..d0588db21d 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index d41823a993..5d564541f3 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index e33a1b2eba..50f888c6a7 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index 7beefdaed0..24ae2107f7 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index af358788cb..546ac9e41c 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 30f91f6529..104890d1c7 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index f038c3c94c..8bff28687a 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index 90355cdbb0..f8b85d2212 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index d8c880dcc6..3bf13f5646 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index 8fe2941714..bc6b65c5dd 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.10", + "version": "1.120.13", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index 73b044176b..a38fe3ce94 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index b3fe2b70dd..42b9e3b42a 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 9c08b4591f..2433f77e3d 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.12", + "version": "1.120.13", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e4ab865540..0147dafc74 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5250,7 +5250,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5290,7 +5290,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5324,7 +5324,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5364,7 +5364,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5410,7 +5410,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5453,7 +5453,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5493,7 +5493,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5536,7 +5536,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5576,7 +5576,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5625,7 +5625,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.10 + specifier: ^1.120.13 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From b84e5c77bc4b24d7188572b4d757d598ae632ca6 Mon Sep 17 00:00:00 2001 From: Manuel Schiller Date: Sun, 1 Jun 2025 18:15:26 +0200 Subject: [PATCH 38/47] fix: make route HMR handling robust against route deletion (#4292) --- packages/router-plugin/src/core/route-hmr-statement.ts | 2 +- .../snapshots/react/1-default/development/arrow-function.tsx | 2 +- .../snapshots/react/1-default/development/chinese.tsx | 2 +- .../react/1-default/development/conditional-properties.tsx | 2 +- .../destructured-react-memo-imported-component.tsx | 2 +- .../export-default-component-and-normal-notFound.tsx | 2 +- .../react/1-default/development/function-declaration.tsx | 2 +- .../snapshots/react/1-default/development/importAttribute.tsx | 2 +- .../imported-default-component-destructured-loader.tsx | 2 +- .../1-default/development/imported-default-component.tsx | 2 +- .../react/1-default/development/imported-errorComponent.tsx | 4 ++-- .../1-default/development/imported-notFoundComponent.tsx | 4 ++-- .../react/1-default/development/imported-pendingComponent.tsx | 2 +- .../snapshots/react/1-default/development/imported.tsx | 2 +- .../snapshots/react/1-default/development/inline.tsx | 2 +- .../snapshots/react/1-default/development/random-number.tsx | 2 +- .../react/1-default/development/react-memo-component.tsx | 2 +- .../1-default/development/react-memo-imported-component.tsx | 2 +- .../react/1-default/development/retain-exports-loader.tsx | 2 +- .../development/arrow-function.tsx | 2 +- .../development/chinese.tsx | 2 +- .../development/conditional-properties.tsx | 2 +- .../destructured-react-memo-imported-component.tsx | 2 +- .../export-default-component-and-normal-notFound.tsx | 2 +- .../development/function-declaration.tsx | 2 +- .../development/importAttribute.tsx | 2 +- .../imported-default-component-destructured-loader.tsx | 2 +- .../development/imported-default-component.tsx | 2 +- .../development/imported-errorComponent.tsx | 4 ++-- .../development/imported-notFoundComponent.tsx | 4 ++-- .../development/imported-pendingComponent.tsx | 4 ++-- .../development/imported.tsx | 2 +- .../development/inline.tsx | 2 +- .../development/random-number.tsx | 2 +- .../development/react-memo-component.tsx | 2 +- .../development/react-memo-imported-component.tsx | 2 +- .../development/retain-exports-loader.tsx | 2 +- .../development/arrow-function.tsx | 2 +- .../development/chinese.tsx | 2 +- .../development/conditional-properties.tsx | 2 +- .../destructured-react-memo-imported-component.tsx | 2 +- .../export-default-component-and-normal-notFound.tsx | 2 +- .../development/function-declaration.tsx | 2 +- .../development/importAttribute.tsx | 2 +- .../imported-default-component-destructured-loader.tsx | 2 +- .../development/imported-default-component.tsx | 2 +- .../development/imported-errorComponent.tsx | 4 ++-- .../development/imported-notFoundComponent.tsx | 4 ++-- .../development/imported-pendingComponent.tsx | 4 ++-- .../development/imported.tsx | 2 +- .../development/inline.tsx | 2 +- .../development/random-number.tsx | 2 +- .../development/react-memo-component.tsx | 2 +- .../development/react-memo-imported-component.tsx | 2 +- .../development/retain-exports-loader.tsx | 2 +- .../snapshots/solid/1-default/development/arrow-function.tsx | 2 +- .../development/arrow-function.tsx | 2 +- .../development/arrow-function.tsx | 2 +- 58 files changed, 66 insertions(+), 66 deletions(-) diff --git a/packages/router-plugin/src/core/route-hmr-statement.ts b/packages/router-plugin/src/core/route-hmr-statement.ts index 73e66cf4cb..2815b89272 100644 --- a/packages/router-plugin/src/core/route-hmr-statement.ts +++ b/packages/router-plugin/src/core/route-hmr-statement.ts @@ -4,7 +4,7 @@ export const routeHmrStatement = template.statement( ` if (import.meta.hot) { import.meta.hot.accept((newModule) => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route) } }) diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx index d13fdc0a9a..a2d9da61f4 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/arrow-function.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx index abe95e1645..1d0242f18d 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/chinese.tsx @@ -10,7 +10,7 @@ interface DemoProps { } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx index 45da5048e8..1d93313deb 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/conditional-properties.tsx @@ -10,7 +10,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx index 7b57f3ebd9..2f21f20798 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/destructured-react-memo-imported-component.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx index a0ab6c5ab1..31f5b194df 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/export-default-component-and-normal-notFound.tsx @@ -14,7 +14,7 @@ export default function Home() { } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx index ae10058a91..ca069fa2f5 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/function-declaration.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx index 1207dee6d6..db52ba8d9a 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/importAttribute.tsx @@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx index f33aef1023..62cf180237 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component-destructured-loader.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx index 19b8875997..6bb5d1dd3f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-default-component.tsx @@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx index 21a9069938..ea85b109d8 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-errorComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx index 9f608978f5..dc7a28a287 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-notFoundComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx index 763d8ff26c..2038f1b9eb 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported-pendingComponent.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx index 7baa2e3057..87908a42d6 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/imported.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx index c19e2898d5..63ad73ff1a 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/inline.tsx @@ -9,7 +9,7 @@ Route.addChildren([]); export const test = 'test'; if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx index 8b00e0aa9c..8f4f8d793f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/random-number.tsx @@ -32,7 +32,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx index c5f946a469..c0c93ee373 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-component.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx index 49922c6c9d..4a4531d299 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/react-memo-imported-component.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx index 047970676d..22e3875ec9 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/1-default/development/retain-exports-loader.tsx @@ -16,7 +16,7 @@ export const SIDEBAR_MINI_WIDTH = '80px'; const ASIDE_WIDTH = '250px'; if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx index 99fdcb621a..fcbd9b7ada 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/arrow-function.tsx @@ -10,7 +10,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx index 5dc9c6c39c..01d06fa136 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/chinese.tsx @@ -10,7 +10,7 @@ interface DemoProps { } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx index e59fb6b170..8724f2d0f7 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/conditional-properties.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx index 1a97263515..2c59955a0e 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/destructured-react-memo-imported-component.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx index fc60c1de1c..f5593e1acc 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/export-default-component-and-normal-notFound.tsx @@ -14,7 +14,7 @@ export default function Home() { } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx index 0c2b2f0f7f..1d1c7fcdda 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/function-declaration.tsx @@ -10,7 +10,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx index c189737cc9..c7e907cc2f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/importAttribute.tsx @@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx index 1519ca0183..5b1c3e2573 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component-destructured-loader.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx index 27aa2140f6..44a02f3be3 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-default-component.tsx @@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx index 7111e86e76..24948c383b 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-errorComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx index 5622edf3e8..0ec7ed1f1b 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-notFoundComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx index b01e0aec42..555fd15f64 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported-pendingComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx index f2947f2004..2aced9ac60 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/imported.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx index 12626addb0..8c6d154c5a 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/inline.tsx @@ -9,7 +9,7 @@ Route.addChildren([]); export const test = 'test'; if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx index bb9a25ce5b..deefd430c2 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/random-number.tsx @@ -28,7 +28,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx index f99d37f872..bc089cafdb 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-component.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx index 6f5453d797..8320df5ddb 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/react-memo-imported-component.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx index 9f37f2c2ba..78bc9de29f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/2-components-combined-loader-separate/development/retain-exports-loader.tsx @@ -16,7 +16,7 @@ export const SIDEBAR_MINI_WIDTH = '80px'; const ASIDE_WIDTH = '250px'; if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx index 26e6cb91cf..dc548e7925 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/arrow-function.tsx @@ -10,7 +10,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx index c26129ff26..d1c8625b32 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/chinese.tsx @@ -10,7 +10,7 @@ interface DemoProps { } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx index 6f59f24540..d843c9e66c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/conditional-properties.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx index b0e77520d1..44808e3845 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/destructured-react-memo-imported-component.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx index 027607711c..0caf3ba2e0 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/export-default-component-and-normal-notFound.tsx @@ -14,7 +14,7 @@ export default function Home() { } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx index 41dd964317..f968bb9837 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/function-declaration.tsx @@ -10,7 +10,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx index a79f652e83..b5c4aca679 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/importAttribute.tsx @@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx index abfa009cb3..0d4eafe7ca 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component-destructured-loader.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx index d7af841661..334b09ca21 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-default-component.tsx @@ -6,7 +6,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx index 3fd46aa9ae..d524d0135c 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-errorComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx index 9bfc309859..f12bd5c684 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-notFoundComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx index de977998cf..0c67f5297f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported-pendingComponent.tsx @@ -8,14 +8,14 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); } if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx index a6c20d87ad..a2b6769679 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/imported.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx index b452135b17..0035767b18 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/inline.tsx @@ -9,7 +9,7 @@ Route.addChildren([]); export const test = 'test'; if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx index 769c2b9f63..65b04dc77b 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/random-number.tsx @@ -28,7 +28,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx index 37d9d53304..7d2b882112 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-component.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx index a5c16d16d3..ea123154b3 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/react-memo-imported-component.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx index fec84f0be8..351de845e6 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/react/3-all-combined-errorComponent-separate/development/retain-exports-loader.tsx @@ -16,7 +16,7 @@ export const SIDEBAR_MINI_WIDTH = '80px'; const ASIDE_WIDTH = '250px'; if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx index e2375ceb8b..8e9404d802 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/1-default/development/arrow-function.tsx @@ -8,7 +8,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx index b0356f3d87..86cc7faf7f 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/2-components-combined-loader-separate/development/arrow-function.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); diff --git a/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx b/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx index 8efe2d0465..0a2e167802 100644 --- a/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx +++ b/packages/router-plugin/tests/code-splitter/snapshots/solid/3-all-combined-errorComponent-separate/development/arrow-function.tsx @@ -9,7 +9,7 @@ export const Route = createFileRoute('/posts')({ }); if (import.meta.hot) { import.meta.hot.accept(newModule => { - if (newModule.Route && typeof newModule.Route.clone === 'function') { + if (newModule && newModule.Route && typeof newModule.Route.clone === 'function') { newModule.Route.clone(Route); } }); From 4c2ce49e34bd37f7c18b8b1b365c6c4340526744 Mon Sep 17 00:00:00 2001 From: neko <98599731+nekofuro-dev@users.noreply.github.com> Date: Tue, 3 Jun 2025 00:05:35 +0800 Subject: [PATCH 39/47] fix: handle SSR errors in beforeLoad/loader during client hydration - Add generic error handling to existing redirect/notFound logic; rename handleRedirectAndNotFound to handleRouteError for clarity - Add 'invariantSource' to distinguish missing notFoundComponent invariant error from generic errors --- packages/router-core/src/not-found.ts | 9 +++++ packages/router-core/src/router.ts | 47 ++++++++++++++++----------- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/packages/router-core/src/not-found.ts b/packages/router-core/src/not-found.ts index 370a9c43f9..fcec6c90e0 100644 --- a/packages/router-core/src/not-found.ts +++ b/packages/router-core/src/not-found.ts @@ -27,3 +27,12 @@ export function notFound(options: NotFoundError = {}) { export function isNotFound(obj: any): obj is NotFoundError { return !!obj?.isNotFound } + +export function isVariantNotFoundError(error: any) { + return ( + error && + typeof error === 'object' && + 'invariantSource' in error && + error.invariantSource === 'notFound' + ) +} diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index 5b1157b483..aa7fe29be4 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -24,7 +24,7 @@ import { trimPathLeft, trimPathRight, } from './path' -import { isNotFound } from './not-found' +import { isNotFound, isVariantNotFoundError } from './not-found' import { setupScrollRestoration } from './scroll-restoration' import { defaultParseSearch, defaultStringifySearch } from './searchParams' import { rootRouteId } from './root' @@ -2251,14 +2251,16 @@ export class RouterCore< return !!(allPreload && !this.state.matches.find((d) => d.id === matchId)) } - const handleRedirectAndNotFound = (match: AnyRouteMatch, err: any) => { + const handleRouteError = (match: AnyRouteMatch, err: any) => { if (isResolvedRedirect(err)) { if (!err.reloadDocument) { throw err } } - if (isRedirect(err) || isNotFound(err)) { + const isError = + err && err instanceof Error && !isVariantNotFoundError(err) + if (isRedirect(err) || isNotFound(err) || isError) { updateMatch(match.id, (prev) => ({ ...prev, status: isRedirect(err) @@ -2272,8 +2274,8 @@ export class RouterCore< loaderPromise: undefined, })) - if (!(err as any).routeId) { - ;(err as any).routeId = match.routeId + if (!err.routeId) { + err.routeId = match.routeId } match.beforeLoadPromise?.resolve() @@ -2293,6 +2295,11 @@ export class RouterCore< match: this.getMatch(match.id)!, }) throw err + } else if (isError) { + this.serverSsr?.onMatchSettled({ + router: this, + match: this.getMatch(match.id)!, + }) } } } @@ -2318,13 +2325,13 @@ export class RouterCore< err.routerCode = routerCode firstBadMatchIndex = firstBadMatchIndex ?? index - handleRedirectAndNotFound(this.getMatch(matchId)!, err) + handleRouteError(this.getMatch(matchId)!, err) try { route.options.onError?.(err) } catch (errorHandlerErr) { err = errorHandlerErr - handleRedirectAndNotFound(this.getMatch(matchId)!, err) + handleRouteError(this.getMatch(matchId)!, err) } updateMatch(matchId, (prev) => { @@ -2523,7 +2530,7 @@ export class RouterCore< await prevLoaderPromise const match = this.getMatch(matchId)! if (match.error) { - handleRedirectAndNotFound(match, match.error) + handleRouteError(match, match.error) } } else { const parentMatchPromise = matchPromises[index - 1] as any @@ -2643,10 +2650,7 @@ export class RouterCore< const loaderData = await route.options.loader?.(getLoaderContext()) - handleRedirectAndNotFound( - this.getMatch(matchId)!, - loaderData, - ) + handleRouteError(this.getMatch(matchId)!, loaderData) // Lazy option can modify the route options, // so we need to wait for it to resolve before @@ -2675,13 +2679,13 @@ export class RouterCore< await potentialPendingMinPromise() - handleRedirectAndNotFound(this.getMatch(matchId)!, e) + handleRouteError(this.getMatch(matchId)!, e) try { route.options.onError?.(e) } catch (onErrorError) { error = onErrorError - handleRedirectAndNotFound( + handleRouteError( this.getMatch(matchId)!, onErrorError, ) @@ -2710,7 +2714,7 @@ export class RouterCore< })) executeHead() }) - handleRedirectAndNotFound(this.getMatch(matchId)!, err) + handleRouteError(this.getMatch(matchId)!, err) } } @@ -3088,10 +3092,15 @@ export class RouterCore< } // Ensure we have a notFoundComponent - invariant( - routeCursor.options.notFoundComponent, - 'No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.', - ) + // generic Error instead of a NotFoundError when notFoundComponent doesn't exist, is this a bug? + try { + invariant( + routeCursor.options.notFoundComponent, + 'No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.', + ) + } catch (error) { + ;(error as any).invariantSource = 'notFound' + } // Find the match for this route const matchForRoute = matchesByRouteId[routeCursor.id] From 1c38e8ce91560a316f3f7ea21af68f159564fdea Mon Sep 17 00:00:00 2001 From: neko <98599731+nekofuro-dev@users.noreply.github.com> Date: Tue, 3 Jun 2025 02:01:29 +0800 Subject: [PATCH 40/47] fix: rethrow invariant failed error --- packages/router-core/src/router.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index aa7fe29be4..c4a8f124e5 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -3100,6 +3100,7 @@ export class RouterCore< ) } catch (error) { ;(error as any).invariantSource = 'notFound' + throw error } // Find the match for this route From 894274cd39a3f5bcbf6e5b45c84ec681433b0b91 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Tue, 3 Jun 2025 02:38:31 +0000 Subject: [PATCH 41/47] release: v1.120.14 --- examples/react/authenticated-routes-firebase/package.json | 2 +- examples/react/authenticated-routes/package.json | 2 +- examples/react/basic-file-based/package.json | 2 +- examples/react/basic-react-query-file-based/package.json | 2 +- examples/react/basic-ssr-file-based/package.json | 4 ++-- examples/react/basic-ssr-streaming-file-based/package.json | 4 ++-- examples/react/basic-virtual-file-based/package.json | 2 +- examples/react/basic-virtual-inside-file-based/package.json | 2 +- examples/react/kitchen-sink-file-based/package.json | 2 +- .../react/kitchen-sink-react-query-file-based/package.json | 2 +- examples/react/large-file-based/package.json | 2 +- examples/react/quickstart-esbuild-file-based/package.json | 2 +- examples/react/quickstart-file-based/package.json | 2 +- examples/react/quickstart-rspack-file-based/package.json | 2 +- examples/react/quickstart-webpack-file-based/package.json | 2 +- examples/react/router-monorepo-react-query/package.json | 2 +- .../router-monorepo-react-query/packages/router/package.json | 2 +- examples/react/router-monorepo-simple-lazy/package.json | 2 +- .../router-monorepo-simple-lazy/packages/router/package.json | 2 +- examples/react/router-monorepo-simple/package.json | 2 +- .../react/router-monorepo-simple/packages/router/package.json | 2 +- examples/react/search-validator-adapters/package.json | 2 +- examples/react/start-bare/package.json | 2 +- examples/react/start-basic-auth/package.json | 2 +- examples/react/start-basic-react-query/package.json | 2 +- examples/react/start-basic-rsc/package.json | 2 +- examples/react/start-basic-static/package.json | 2 +- examples/react/start-basic/package.json | 2 +- examples/react/start-clerk-basic/package.json | 2 +- examples/react/start-convex-trellaux/package.json | 2 +- examples/react/start-counter/package.json | 2 +- examples/react/start-large/package.json | 2 +- examples/react/start-material-ui/package.json | 2 +- examples/react/start-supabase-basic/package.json | 2 +- examples/react/start-trellaux/package.json | 2 +- examples/react/start-workos/package.json | 2 +- examples/react/view-transitions/package.json | 2 +- examples/react/with-trpc-react-query/package.json | 4 ++-- examples/react/with-trpc/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 2 +- examples/solid/basic-solid-query-file-based/package.json | 2 +- examples/solid/basic-solid-query/package.json | 2 +- examples/solid/kitchen-sink-file-based/package.json | 2 +- examples/solid/quickstart-file-based/package.json | 2 +- examples/solid/start-bare/package.json | 2 +- examples/solid/start-basic/package.json | 2 +- packages/react-start-config/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-start-config/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start/package.json | 2 +- 54 files changed, 58 insertions(+), 58 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 99a20b70f1..51c08d826e 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 27b53a1d94..4312eff984 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 13a9f7a9c4..6490da8d0f 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index 12181ee589..cd2a65cd82 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -13,7 +13,7 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index b34bb03897..fcdbc16aad 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -13,8 +13,8 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-start": "^1.120.14", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index e928780c9d..7542df2576 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -13,8 +13,8 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-start": "^1.120.14", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index d6843483e0..0ec6c2290c 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index adff0573b3..b1fed53e90 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 3965fc8df0..58b38805b8 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index a9b018616f..be6f3000de 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -13,7 +13,7 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index dee217cd65..c1bdbc582b 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -14,7 +14,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index a1d8bdcfbb..8ace7ad062 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 0d62957776..0d2b0857b5 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index 00bb864cb9..1eb775f77a 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index e1c61083c0..5a381dc603 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -14,7 +14,7 @@ }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index 342b3ae4b0..f38c323c7c 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -14,7 +14,7 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index 1ddc19d733..a73c452b1c 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -11,7 +11,7 @@ "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 0fa2576245..506d614ff4 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -10,7 +10,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 4acf5e42c9..40a7af0261 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -10,7 +10,7 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-router": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index 0c8b6ca6be..e0b6a7c4ee 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -10,7 +10,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index d5c7eb4e2d..890f68ed5c 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -10,7 +10,7 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-router": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 89a1589093..3a5168fa6a 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -14,7 +14,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "@tanstack/valibot-adapter": "^1.120.13", "@tanstack/zod-adapter": "^1.120.13", "arktype": "^2.1.7", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 0c37e072a1..5a4976aa66 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index f0335c4755..e20d17ec39 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -13,7 +13,7 @@ "@prisma/client": "5.22.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index d4ace3b37e..99ac69caef 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -14,7 +14,7 @@ "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-with-query": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 90e5c9b2de..57b2047701 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -12,7 +12,7 @@ "@babel/plugin-syntax-typescript": "^7.25.9", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 3a4b0cd1f1..863142aa40 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index c330fce3bb..f29917529e 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 0f2d9da19d..753144dc93 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -12,7 +12,7 @@ "@clerk/tanstack-react-start": "0.12.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index d6bd368a28..81869c3166 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -17,7 +17,7 @@ "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-with-query": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index 16faa3609f..420b0af810 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index e4faaa5348..f9c75577a4 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -14,7 +14,7 @@ "@tanstack/react-query": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index c2a5c6f5bf..d41d084282 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -15,7 +15,7 @@ "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", "@tanstack/react-router": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "@tanstack/react-router-devtools": "^1.120.13", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index 3a9e0b74f4..1bb1a370d3 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -17,7 +17,7 @@ "@supabase/supabase-js": "^2.48.1", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 5b4d3a92b0..30fc16a4d0 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -14,7 +14,7 @@ "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-with-query": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index a76329d78e..eab37375db 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -16,7 +16,7 @@ "@radix-ui/themes": "^3.2.1", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/react-start": "^1.120.14", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 75e2d3e686..97aed9dbf2 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index 468aa71aad..6ac8b1b2be 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -12,8 +12,8 @@ "@tanstack/react-query-devtools": "^5.66.0", "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-start": "^1.120.14", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 789e2ebcfb..6f962f6c25 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/react-router": "^1.120.13", "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.13", - "@tanstack/react-start": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-start": "^1.120.14", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 2b16ce7929..59ead4b2be 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 26cc80292a..62fe6a23a7 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 57483f47ac..42de62e00d 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index e172cc8172..66b5b7d867 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index 9db945fb93..c8b721c881 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.13", + "@tanstack/router-plugin": "^1.120.14", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 6b139933d7..31663adae9 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/solid-router": "^1.120.13", "@tanstack/solid-router-devtools": "^1.120.13", - "@tanstack/solid-start": "^1.120.13", + "@tanstack/solid-start": "^1.120.14", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index feaba213ef..b06b69ace9 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tanstack/solid-router": "^1.120.13", "@tanstack/solid-router-devtools": "^1.120.13", - "@tanstack/solid-start": "^1.120.13", + "@tanstack/solid-start": "^1.120.14", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index 24f2107324..4d70bbd2ed 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index 1a780bb763..cfa2f7c928 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 4788db33df..61dcd7decc 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 7fe7e300cb..2630446f50 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 0bb009a595..968554bb14 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 5d564541f3..351915b249 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 546ac9e41c..498aadf0e3 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index a38fe3ce94..f5b8484aa9 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.13", + "version": "1.120.14", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", From 492b666cc72a615b6f4008d273d00984976c4f33 Mon Sep 17 00:00:00 2001 From: Vianney Carel Date: Tue, 3 Jun 2025 04:42:17 +0200 Subject: [PATCH 42/47] fix(router-core): double decoding in `qss` (#4300) Co-authored-by: Vianney Carel --- packages/router-core/src/qss.ts | 8 ++------ packages/router-core/src/utils.ts | 17 ----------------- packages/router-core/tests/qss.test.ts | 6 ++++++ 3 files changed, 8 insertions(+), 23 deletions(-) diff --git a/packages/router-core/src/qss.ts b/packages/router-core/src/qss.ts index cb1912b846..2611389f37 100644 --- a/packages/router-core/src/qss.ts +++ b/packages/router-core/src/qss.ts @@ -7,7 +7,6 @@ * (namely URLSearchParams) and TypeScript while still * maintaining the original functionality and interface. */ -import { hasUriEncodedChars } from './utils' /** * Encodes an object into a query string. @@ -42,11 +41,8 @@ export function encode(obj: any, pfx?: string) { * // Example input: toValue("123") * // Expected output: 123 */ -function toValue(mix: any) { - if (!mix) return '' - const str = hasUriEncodedChars(mix) - ? decodeURIComponent(mix) - : decodeURIComponent(encodeURIComponent(mix)) +function toValue(str: unknown) { + if (!str) return '' if (str === 'false') return false if (str === 'true') return true diff --git a/packages/router-core/src/utils.ts b/packages/router-core/src/utils.ts index 5033dbfe9e..5beb9d5bb9 100644 --- a/packages/router-core/src/utils.ts +++ b/packages/router-core/src/utils.ts @@ -446,20 +446,3 @@ export function shallow(objA: T, objB: T) { } return true } - -/** - * Checks if a string contains URI-encoded special characters (e.g., %3F, %20). - * - * @param {string} inputString The string to check. - * @returns {boolean} True if the string contains URI-encoded characters, false otherwise. - * @example - * ```typescript - * const str1 = "foo%3Fbar"; - * const hasEncodedChars = hasUriEncodedChars(str1); // returns true - * ``` - */ -export function hasUriEncodedChars(inputString: string): boolean { - // This regex looks for a percent sign followed by two hexadecimal digits - const pattern = /%[0-9A-Fa-f]{2}/ - return pattern.test(inputString) -} diff --git a/packages/router-core/tests/qss.test.ts b/packages/router-core/tests/qss.test.ts index 8bff5c3a64..ae2516c1fe 100644 --- a/packages/router-core/tests/qss.test.ts +++ b/packages/router-core/tests/qss.test.ts @@ -104,4 +104,10 @@ describe('decode function', () => { const decodedObj = decode(queryString) expect(decodedObj).toEqual({ q: 'red+yellow orange' }) }) + + it('should decode once percent characters (%) encoded twice', () => { + const queryString = 'q=%2540' + const decodedObj = decode(queryString) + expect(decodedObj).toEqual({ q: '%40' }) + }) }) From 6110bbfd8d5b7cdbef4140b850a7a9e5003a503b Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Tue, 3 Jun 2025 02:49:07 +0000 Subject: [PATCH 43/47] release: v1.120.15 --- .../package.json | 6 +++--- .../react/authenticated-routes/package.json | 6 +++--- .../basic-default-search-params/package.json | 4 ++-- .../react/basic-devtools-panel/package.json | 4 ++-- examples/react/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-react-query-file-based/package.json | 6 +++--- examples/react/basic-react-query/package.json | 4 ++-- .../react/basic-ssr-file-based/package.json | 8 ++++---- .../package.json | 8 ++++---- .../basic-virtual-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/basic/package.json | 4 ++-- examples/react/deferred-data/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../package.json | 6 +++--- .../kitchen-sink-react-query/package.json | 4 ++-- examples/react/kitchen-sink/package.json | 4 ++-- examples/react/large-file-based/package.json | 6 +++--- examples/react/location-masking/package.json | 4 ++-- .../react/navigation-blocking/package.json | 4 ++-- .../package.json | 6 +++--- .../react/quickstart-file-based/package.json | 6 +++--- .../quickstart-rspack-file-based/package.json | 6 +++--- .../package.json | 6 +++--- examples/react/quickstart/package.json | 4 ++-- .../router-monorepo-react-query/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../router-monorepo-simple-lazy/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/router-monorepo-simple/package.json | 6 +++--- .../packages/app/package.json | 2 +- .../packages/router/package.json | 4 ++-- .../react/scroll-restoration/package.json | 4 ++-- .../search-validator-adapters/package.json | 12 +++++------ examples/react/start-bare/package.json | 6 +++--- examples/react/start-basic-auth/package.json | 6 +++--- .../start-basic-react-query/package.json | 8 ++++---- examples/react/start-basic-rsc/package.json | 6 +++--- .../react/start-basic-static/package.json | 6 +++--- examples/react/start-basic/package.json | 6 +++--- examples/react/start-clerk-basic/package.json | 6 +++--- .../react/start-convex-trellaux/package.json | 8 ++++---- examples/react/start-counter/package.json | 6 +++--- examples/react/start-large/package.json | 6 +++--- examples/react/start-material-ui/package.json | 6 +++--- .../react/start-supabase-basic/package.json | 6 +++--- examples/react/start-trellaux/package.json | 8 ++++---- examples/react/start-workos/package.json | 6 +++--- examples/react/view-transitions/package.json | 6 +++--- .../react/with-framer-motion/package.json | 4 ++-- .../react/with-trpc-react-query/package.json | 8 ++++---- examples/react/with-trpc/package.json | 8 ++++---- .../solid/basic-devtools-panel/package.json | 4 ++-- examples/solid/basic-file-based/package.json | 6 +++--- .../basic-non-nested-devtools/package.json | 4 ++-- .../basic-solid-query-file-based/package.json | 6 +++--- examples/solid/basic-solid-query/package.json | 6 +++--- examples/solid/basic/package.json | 4 ++-- .../kitchen-sink-file-based/package.json | 6 +++--- .../solid/quickstart-file-based/package.json | 6 +++--- examples/solid/start-bare/package.json | 6 +++--- examples/solid/start-basic/package.json | 6 +++--- packages/arktype-adapter/package.json | 2 +- packages/react-router-devtools/package.json | 2 +- packages/react-router-with-query/package.json | 2 +- packages/react-router/package.json | 2 +- packages/react-start-client/package.json | 2 +- packages/react-start-config/package.json | 2 +- .../react-start-router-manifest/package.json | 2 +- packages/react-start-server/package.json | 2 +- packages/react-start/package.json | 2 +- packages/router-cli/package.json | 2 +- packages/router-core/package.json | 2 +- packages/router-devtools-core/package.json | 2 +- packages/router-devtools/package.json | 2 +- packages/router-generator/package.json | 2 +- packages/router-plugin/package.json | 2 +- packages/router-vite-plugin/package.json | 2 +- packages/solid-router-devtools/package.json | 2 +- packages/solid-router/package.json | 2 +- packages/solid-start-client/package.json | 2 +- packages/solid-start-config/package.json | 2 +- .../solid-start-router-manifest/package.json | 2 +- packages/solid-start-server/package.json | 2 +- packages/solid-start/package.json | 2 +- packages/start-api-routes/package.json | 2 +- packages/start-client-core/package.json | 2 +- packages/start-config/package.json | 2 +- packages/start-server-core/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../start-server-functions-ssr/package.json | 2 +- packages/start/package.json | 2 +- packages/valibot-adapter/package.json | 2 +- packages/zod-adapter/package.json | 2 +- pnpm-lock.yaml | 20 +++++++++---------- 100 files changed, 224 insertions(+), 224 deletions(-) diff --git a/examples/react/authenticated-routes-firebase/package.json b/examples/react/authenticated-routes-firebase/package.json index 51c08d826e..0d1e392234 100644 --- a/examples/react/authenticated-routes-firebase/package.json +++ b/examples/react/authenticated-routes-firebase/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "autoprefixer": "^10.4.20", "firebase": "^11.4.0", "postcss": "^8.5.1", diff --git a/examples/react/authenticated-routes/package.json b/examples/react/authenticated-routes/package.json index 4312eff984..5d2f0b46cf 100644 --- a/examples/react/authenticated-routes/package.json +++ b/examples/react/authenticated-routes/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-default-search-params/package.json b/examples/react/basic-default-search-params/package.json index c44053a663..d8aa50df77 100644 --- a/examples/react/basic-default-search-params/package.json +++ b/examples/react/basic-default-search-params/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-devtools-panel/package.json b/examples/react/basic-devtools-panel/package.json index 92205a11cb..a8094147ef 100644 --- a/examples/react/basic-devtools-panel/package.json +++ b/examples/react/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "@tanstack/react-query-devtools": "^5.67.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-file-based/package.json b/examples/react/basic-file-based/package.json index 6490da8d0f..ba21856b27 100644 --- a/examples/react/basic-file-based/package.json +++ b/examples/react/basic-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-non-nested-devtools/package.json b/examples/react/basic-non-nested-devtools/package.json index ef6b17c775..a52535c634 100644 --- a/examples/react/basic-non-nested-devtools/package.json +++ b/examples/react/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query-file-based/package.json b/examples/react/basic-react-query-file-based/package.json index cd2a65cd82..24c517a6ce 100644 --- a/examples/react/basic-react-query-file-based/package.json +++ b/examples/react/basic-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-react-query/package.json b/examples/react/basic-react-query/package.json index a3c6c2ff67..358505769a 100644 --- a/examples/react/basic-react-query/package.json +++ b/examples/react/basic-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/basic-ssr-file-based/package.json b/examples/react/basic-ssr-file-based/package.json index fcdbc16aad..b18ac41829 100644 --- a/examples/react/basic-ssr-file-based/package.json +++ b/examples/react/basic-ssr-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-ssr-streaming-file-based/package.json b/examples/react/basic-ssr-streaming-file-based/package.json index 7542df2576..cde25b939e 100644 --- a/examples/react/basic-ssr-streaming-file-based/package.json +++ b/examples/react/basic-ssr-streaming-file-based/package.json @@ -11,10 +11,10 @@ "debug": "node --inspect-brk server" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "get-port": "^7.1.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-file-based/package.json b/examples/react/basic-virtual-file-based/package.json index 0ec6c2290c..2f5d324344 100644 --- a/examples/react/basic-virtual-file-based/package.json +++ b/examples/react/basic-virtual-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic-virtual-inside-file-based/package.json b/examples/react/basic-virtual-inside-file-based/package.json index b1fed53e90..67bbb2d32c 100644 --- a/examples/react/basic-virtual-inside-file-based/package.json +++ b/examples/react/basic-virtual-inside-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "@tanstack/virtual-file-routes": "^1.115.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/basic/package.json b/examples/react/basic/package.json index 5a14922f5c..795f71811f 100644 --- a/examples/react/basic/package.json +++ b/examples/react/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/deferred-data/package.json b/examples/react/deferred-data/package.json index 9f35997df4..d269b3cec3 100644 --- a/examples/react/deferred-data/package.json +++ b/examples/react/deferred-data/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/kitchen-sink-file-based/package.json b/examples/react/kitchen-sink-file-based/package.json index 58b38805b8..a4cde92147 100644 --- a/examples/react/kitchen-sink-file-based/package.json +++ b/examples/react/kitchen-sink-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query-file-based/package.json b/examples/react/kitchen-sink-react-query-file-based/package.json index be6f3000de..6ba8d9fc9b 100644 --- a/examples/react/kitchen-sink-react-query-file-based/package.json +++ b/examples/react/kitchen-sink-react-query-file-based/package.json @@ -11,9 +11,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink-react-query/package.json b/examples/react/kitchen-sink-react-query/package.json index 709617bf93..55339a6ed3 100644 --- a/examples/react/kitchen-sink-react-query/package.json +++ b/examples/react/kitchen-sink-react-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/kitchen-sink/package.json b/examples/react/kitchen-sink/package.json index a2ca7b2a2c..981b98a3b3 100644 --- a/examples/react/kitchen-sink/package.json +++ b/examples/react/kitchen-sink/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "immer": "^10.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/large-file-based/package.json b/examples/react/large-file-based/package.json index c1bdbc582b..af80ae8c88 100644 --- a/examples/react/large-file-based/package.json +++ b/examples/react/large-file-based/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/location-masking/package.json b/examples/react/location-masking/package.json index 1b86a06d2a..525409af6c 100644 --- a/examples/react/location-masking/package.json +++ b/examples/react/location-masking/package.json @@ -11,8 +11,8 @@ "dependencies": { "@radix-ui/react-dialog": "^1.1.6", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/navigation-blocking/package.json b/examples/react/navigation-blocking/package.json index b1bbc7fbe9..95ccd28f78 100644 --- a/examples/react/navigation-blocking/package.json +++ b/examples/react/navigation-blocking/package.json @@ -10,8 +10,8 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-esbuild-file-based/package.json b/examples/react/quickstart-esbuild-file-based/package.json index 8ace7ad062..8485c64e08 100644 --- a/examples/react/quickstart-esbuild-file-based/package.json +++ b/examples/react/quickstart-esbuild-file-based/package.json @@ -9,9 +9,9 @@ "start": "dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-file-based/package.json b/examples/react/quickstart-file-based/package.json index 0d2b0857b5..5b28e0cccd 100644 --- a/examples/react/quickstart-file-based/package.json +++ b/examples/react/quickstart-file-based/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/quickstart-rspack-file-based/package.json b/examples/react/quickstart-rspack-file-based/package.json index 1eb775f77a..a32b20c5e7 100644 --- a/examples/react/quickstart-rspack-file-based/package.json +++ b/examples/react/quickstart-rspack-file-based/package.json @@ -8,8 +8,8 @@ "preview": "rsbuild preview" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", @@ -19,7 +19,7 @@ "devDependencies": { "@rsbuild/core": "1.2.4", "@rsbuild/plugin-react": "1.1.0", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "typescript": "^5.6.2" diff --git a/examples/react/quickstart-webpack-file-based/package.json b/examples/react/quickstart-webpack-file-based/package.json index 5a381dc603..480dbcc0a1 100644 --- a/examples/react/quickstart-webpack-file-based/package.json +++ b/examples/react/quickstart-webpack-file-based/package.json @@ -7,14 +7,14 @@ "build": "webpack build && tsc --noEmit" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0" }, "devDependencies": { "@swc/core": "^1.10.15", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "@types/react": "^19.0.8", "@types/react-dom": "^19.0.3", "html-webpack-plugin": "^5.6.3", diff --git a/examples/react/quickstart/package.json b/examples/react/quickstart/package.json index 46895b777a..4c5493056f 100644 --- a/examples/react/quickstart/package.json +++ b/examples/react/quickstart/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/router-monorepo-react-query/package.json b/examples/react/router-monorepo-react-query/package.json index f38c323c7c..9d31da4c45 100644 --- a/examples/react/router-monorepo-react-query/package.json +++ b/examples/react/router-monorepo-react-query/package.json @@ -12,9 +12,9 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-react-query/packages/app/package.json b/examples/react/router-monorepo-react-query/packages/app/package.json index 0bc3948c57..4741472b55 100644 --- a/examples/react/router-monorepo-react-query/packages/app/package.json +++ b/examples/react/router-monorepo-react-query/packages/app/package.json @@ -20,7 +20,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.15", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-react-query/packages/router/package.json b/examples/react/router-monorepo-react-query/packages/router/package.json index a73c452b1c..73cc5a2c84 100644 --- a/examples/react/router-monorepo-react-query/packages/router/package.json +++ b/examples/react/router-monorepo-react-query/packages/router/package.json @@ -10,8 +10,8 @@ "dependencies": { "@tanstack/history": "^1.115.0", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "@router-mono-react-query/post-query": "workspace:*", "redaxios": "^0.5.1", "zod": "^3.24.2", diff --git a/examples/react/router-monorepo-simple-lazy/package.json b/examples/react/router-monorepo-simple-lazy/package.json index 506d614ff4..371c604584 100644 --- a/examples/react/router-monorepo-simple-lazy/package.json +++ b/examples/react/router-monorepo-simple-lazy/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple-lazy/packages/app/package.json b/examples/react/router-monorepo-simple-lazy/packages/app/package.json index 9c3b88ae10..3185f9013a 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/app/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.15", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", "tailwindcss": "^3.4.17", diff --git a/examples/react/router-monorepo-simple-lazy/packages/router/package.json b/examples/react/router-monorepo-simple-lazy/packages/router/package.json index 40a7af0261..a0e2eaebcc 100644 --- a/examples/react/router-monorepo-simple-lazy/packages/router/package.json +++ b/examples/react/router-monorepo-simple-lazy/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/router-monorepo-simple/package.json b/examples/react/router-monorepo-simple/package.json index e0b6a7c4ee..1219700f5d 100644 --- a/examples/react/router-monorepo-simple/package.json +++ b/examples/react/router-monorepo-simple/package.json @@ -8,9 +8,9 @@ "dev": "pnpm router build && pnpm post-feature build && pnpm app dev" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1" diff --git a/examples/react/router-monorepo-simple/packages/app/package.json b/examples/react/router-monorepo-simple/packages/app/package.json index 825f5faba8..7c0e9b3131 100644 --- a/examples/react/router-monorepo-simple/packages/app/package.json +++ b/examples/react/router-monorepo-simple/packages/app/package.json @@ -19,7 +19,7 @@ "@types/react-dom": "^19.0.3", "@vitejs/plugin-react": "^4.3.4", "typescript": "^5.7.2", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.15", "vite": "^6.1.0", "postcss": "^8.5.1", "autoprefixer": "^10.4.20", diff --git a/examples/react/router-monorepo-simple/packages/router/package.json b/examples/react/router-monorepo-simple/packages/router/package.json index 890f68ed5c..bb144d2c64 100644 --- a/examples/react/router-monorepo-simple/packages/router/package.json +++ b/examples/react/router-monorepo-simple/packages/router/package.json @@ -9,8 +9,8 @@ "types": "./dist/index.d.ts", "dependencies": { "@tanstack/history": "^1.115.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "redaxios": "^0.5.1", "zod": "^3.24.2", "react": "^19.0.0", diff --git a/examples/react/scroll-restoration/package.json b/examples/react/scroll-restoration/package.json index efda8a6b9a..1a48183b0f 100644 --- a/examples/react/scroll-restoration/package.json +++ b/examples/react/scroll-restoration/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", + "@tanstack/react-router": "^1.120.15", "@tanstack/react-virtual": "^3.13.0", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "postcss": "^8.5.1", diff --git a/examples/react/search-validator-adapters/package.json b/examples/react/search-validator-adapters/package.json index 3a5168fa6a..0ad9631bf0 100644 --- a/examples/react/search-validator-adapters/package.json +++ b/examples/react/search-validator-adapters/package.json @@ -10,13 +10,13 @@ "test:unit": "vitest" }, "dependencies": { - "@tanstack/arktype-adapter": "^1.120.13", + "@tanstack/arktype-adapter": "^1.120.15", "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", - "@tanstack/valibot-adapter": "^1.120.13", - "@tanstack/zod-adapter": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", + "@tanstack/valibot-adapter": "^1.120.15", + "@tanstack/zod-adapter": "^1.120.15", "arktype": "^2.1.7", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-bare/package.json b/examples/react/start-bare/package.json index 5a4976aa66..4f7d13238f 100644 --- a/examples/react/start-bare/package.json +++ b/examples/react/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-basic-auth/package.json b/examples/react/start-basic-auth/package.json index e20d17ec39..9f66d3cca6 100644 --- a/examples/react/start-basic-auth/package.json +++ b/examples/react/start-basic-auth/package.json @@ -11,9 +11,9 @@ }, "dependencies": { "@prisma/client": "5.22.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "prisma": "^5.22.0", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/start-basic-react-query/package.json b/examples/react/start-basic-react-query/package.json index 99ac69caef..478ddb2ca3 100644 --- a/examples/react/start-basic-react-query/package.json +++ b/examples/react/start-basic-react-query/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-with-query": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-with-query": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-rsc/package.json b/examples/react/start-basic-rsc/package.json index 57b2047701..44e8814d03 100644 --- a/examples/react/start-basic-rsc/package.json +++ b/examples/react/start-basic-rsc/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@babel/plugin-syntax-typescript": "^7.25.9", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic-static/package.json b/examples/react/start-basic-static/package.json index 863142aa40..4b765bd887 100644 --- a/examples/react/start-basic-static/package.json +++ b/examples/react/start-basic-static/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-basic/package.json b/examples/react/start-basic/package.json index f29917529e..4da18d8358 100644 --- a/examples/react/start-basic/package.json +++ b/examples/react/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "tailwind-merge": "^2.6.0", diff --git a/examples/react/start-clerk-basic/package.json b/examples/react/start-clerk-basic/package.json index 753144dc93..85a1657f07 100644 --- a/examples/react/start-clerk-basic/package.json +++ b/examples/react/start-clerk-basic/package.json @@ -10,9 +10,9 @@ }, "dependencies": { "@clerk/tanstack-react-start": "0.12.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-convex-trellaux/package.json b/examples/react/start-convex-trellaux/package.json index 81869c3166..1425abe030 100644 --- a/examples/react/start-convex-trellaux/package.json +++ b/examples/react/start-convex-trellaux/package.json @@ -14,10 +14,10 @@ "@convex-dev/react-query": "0.0.0-alpha.8", "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-with-query": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-with-query": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "concurrently": "^8.2.2", "convex": "^1.19.0", "ky": "^1.7.4", diff --git a/examples/react/start-counter/package.json b/examples/react/start-counter/package.json index 420b0af810..da7c9b84fd 100644 --- a/examples/react/start-counter/package.json +++ b/examples/react/start-counter/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-large/package.json b/examples/react/start-large/package.json index f9c75577a4..8cc9fe2408 100644 --- a/examples/react/start-large/package.json +++ b/examples/react/start-large/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@tanstack/react-query": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/start-material-ui/package.json b/examples/react/start-material-ui/package.json index d41d084282..0df775b69c 100644 --- a/examples/react/start-material-ui/package.json +++ b/examples/react/start-material-ui/package.json @@ -14,9 +14,9 @@ "@emotion/styled": "11.14.0", "@fontsource-variable/roboto": "5.2.5", "@mui/material": "6.4.7", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-start": "^1.120.14", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-start": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3", diff --git a/examples/react/start-supabase-basic/package.json b/examples/react/start-supabase-basic/package.json index 1bb1a370d3..8ad4c032c6 100644 --- a/examples/react/start-supabase-basic/package.json +++ b/examples/react/start-supabase-basic/package.json @@ -15,9 +15,9 @@ "dependencies": { "@supabase/ssr": "^0.5.2", "@supabase/supabase-js": "^2.48.1", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "vinxi": "0.5.3" diff --git a/examples/react/start-trellaux/package.json b/examples/react/start-trellaux/package.json index 30fc16a4d0..f9de19d4db 100644 --- a/examples/react/start-trellaux/package.json +++ b/examples/react/start-trellaux/package.json @@ -11,10 +11,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-with-query": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-with-query": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "ky": "^1.7.4", "msw": "^2.7.0", "react": "^19.0.0", diff --git a/examples/react/start-workos/package.json b/examples/react/start-workos/package.json index eab37375db..d67e8026ef 100644 --- a/examples/react/start-workos/package.json +++ b/examples/react/start-workos/package.json @@ -14,9 +14,9 @@ "license": "ISC", "dependencies": { "@radix-ui/themes": "^3.2.1", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "@workos-inc/node": "^7.45.0", "iron-session": "^8.0.4", "jose": "^6.0.10", diff --git a/examples/react/view-transitions/package.json b/examples/react/view-transitions/package.json index 97aed9dbf2..a12ffe5967 100644 --- a/examples/react/view-transitions/package.json +++ b/examples/react/view-transitions/package.json @@ -9,9 +9,9 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", "react": "^19.0.0", "react-dom": "^19.0.0", "redaxios": "^0.5.1", diff --git a/examples/react/with-framer-motion/package.json b/examples/react/with-framer-motion/package.json index 8897f74cf5..166598dbf2 100644 --- a/examples/react/with-framer-motion/package.json +++ b/examples/react/with-framer-motion/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", "framer-motion": "^11.18.2", "react": "^19.0.0", "react-dom": "^19.0.0", diff --git a/examples/react/with-trpc-react-query/package.json b/examples/react/with-trpc-react-query/package.json index 6ac8b1b2be..5c72a40d4d 100644 --- a/examples/react/with-trpc-react-query/package.json +++ b/examples/react/with-trpc-react-query/package.json @@ -10,10 +10,10 @@ "dependencies": { "@tanstack/react-query": "^5.66.0", "@tanstack/react-query-devtools": "^5.66.0", - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "@trpc/tanstack-react-query": "11.0.0-rc.772", diff --git a/examples/react/with-trpc/package.json b/examples/react/with-trpc/package.json index 6f962f6c25..6150e096c0 100644 --- a/examples/react/with-trpc/package.json +++ b/examples/react/with-trpc/package.json @@ -8,10 +8,10 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/react-router": "^1.120.13", - "@tanstack/react-router-devtools": "^1.120.13", - "@tanstack/router-plugin": "^1.120.14", - "@tanstack/react-start": "^1.120.14", + "@tanstack/react-router": "^1.120.15", + "@tanstack/react-router-devtools": "^1.120.15", + "@tanstack/router-plugin": "^1.120.15", + "@tanstack/react-start": "^1.120.15", "@trpc/client": "11.0.0-rc.772", "@trpc/server": "11.0.0-rc.772", "react": "^19.0.0", diff --git a/examples/solid/basic-devtools-panel/package.json b/examples/solid/basic-devtools-panel/package.json index 5ca6ffb930..b93c8bf545 100644 --- a/examples/solid/basic-devtools-panel/package.json +++ b/examples/solid/basic-devtools-panel/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", diff --git a/examples/solid/basic-file-based/package.json b/examples/solid/basic-file-based/package.json index 59ead4b2be..5d5f1e62ed 100644 --- a/examples/solid/basic-file-based/package.json +++ b/examples/solid/basic-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-non-nested-devtools/package.json b/examples/solid/basic-non-nested-devtools/package.json index 34530844e8..a1ba1ce494 100644 --- a/examples/solid/basic-non-nested-devtools/package.json +++ b/examples/solid/basic-non-nested-devtools/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/basic-solid-query-file-based/package.json b/examples/solid/basic-solid-query-file-based/package.json index 62fe6a23a7..e5f6fee4f6 100644 --- a/examples/solid/basic-solid-query-file-based/package.json +++ b/examples/solid/basic-solid-query-file-based/package.json @@ -12,8 +12,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -22,7 +22,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic-solid-query/package.json b/examples/solid/basic-solid-query/package.json index 42de62e00d..3d59a21210 100644 --- a/examples/solid/basic-solid-query/package.json +++ b/examples/solid/basic-solid-query/package.json @@ -11,8 +11,8 @@ "dependencies": { "@tanstack/solid-query": "^5.71.9", "@tanstack/solid-query-devtools": "^5.71.9", - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "postcss": "^8.5.1", @@ -20,7 +20,7 @@ "tailwindcss": "^3.4.17" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index df4a6d9258..4b82cffef4 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "redaxios": "^0.5.1", "postcss": "^8.5.1", "solid-js": "^1.9.5", diff --git a/examples/solid/kitchen-sink-file-based/package.json b/examples/solid/kitchen-sink-file-based/package.json index 66b5b7d867..4c6600317b 100644 --- a/examples/solid/kitchen-sink-file-based/package.json +++ b/examples/solid/kitchen-sink-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "immer": "^10.1.1", "solid-js": "^1.9.5", "redaxios": "^0.5.1", @@ -20,7 +20,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/quickstart-file-based/package.json b/examples/solid/quickstart-file-based/package.json index c8b721c881..1f08585843 100644 --- a/examples/solid/quickstart-file-based/package.json +++ b/examples/solid/quickstart-file-based/package.json @@ -9,8 +9,8 @@ "start": "vite" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", "autoprefixer": "^10.4.20", "postcss": "^8.5.1", "redaxios": "^0.5.1", @@ -19,7 +19,7 @@ "zod": "^3.24.2" }, "devDependencies": { - "@tanstack/router-plugin": "^1.120.14", + "@tanstack/router-plugin": "^1.120.15", "typescript": "^5.7.2", "vite": "^6.1.0", "vite-plugin-solid": "^2.11.2" diff --git a/examples/solid/start-bare/package.json b/examples/solid/start-bare/package.json index 31663adae9..ce201c9b9c 100644 --- a/examples/solid/start-bare/package.json +++ b/examples/solid/start-bare/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", - "@tanstack/solid-start": "^1.120.14", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", + "@tanstack/solid-start": "^1.120.15", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/examples/solid/start-basic/package.json b/examples/solid/start-basic/package.json index b06b69ace9..c80dd21dd4 100644 --- a/examples/solid/start-basic/package.json +++ b/examples/solid/start-basic/package.json @@ -9,9 +9,9 @@ "start": "vinxi start" }, "dependencies": { - "@tanstack/solid-router": "^1.120.13", - "@tanstack/solid-router-devtools": "^1.120.13", - "@tanstack/solid-start": "^1.120.14", + "@tanstack/solid-router": "^1.120.15", + "@tanstack/solid-router-devtools": "^1.120.15", + "@tanstack/solid-start": "^1.120.15", "solid-js": "^1.9.5", "redaxios": "^0.5.1", "tailwind-merge": "^2.6.0", diff --git a/packages/arktype-adapter/package.json b/packages/arktype-adapter/package.json index af75cdec28..a199a36a9d 100644 --- a/packages/arktype-adapter/package.json +++ b/packages/arktype-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/arktype-adapter", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-devtools/package.json b/packages/react-router-devtools/package.json index 4e5d3d5a7c..5b0b59e923 100644 --- a/packages/react-router-devtools/package.json +++ b/packages/react-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-devtools", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router-with-query/package.json b/packages/react-router-with-query/package.json index f2d7bb4404..1067626364 100644 --- a/packages/react-router-with-query/package.json +++ b/packages/react-router-with-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router-with-query", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index a89cd0d61a..d5afb9f3c0 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-router", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-client/package.json b/packages/react-start-client/package.json index ce5f47b6d2..a0820cbf17 100644 --- a/packages/react-start-client/package.json +++ b/packages/react-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-client", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-config/package.json b/packages/react-start-config/package.json index 4d70bbd2ed..51065635e4 100644 --- a/packages/react-start-config/package.json +++ b/packages/react-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-config", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-router-manifest/package.json b/packages/react-start-router-manifest/package.json index 2627e1bd9e..443df44ddb 100644 --- a/packages/react-start-router-manifest/package.json +++ b/packages/react-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-router-manifest", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start-server/package.json b/packages/react-start-server/package.json index db2d26a544..f358769d62 100644 --- a/packages/react-start-server/package.json +++ b/packages/react-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start-server", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/react-start/package.json b/packages/react-start/package.json index cfa2f7c928..0ab7b07801 100644 --- a/packages/react-start/package.json +++ b/packages/react-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/react-start", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-cli/package.json b/packages/router-cli/package.json index 2e17250a3a..5249b59b71 100644 --- a/packages/router-cli/package.json +++ b/packages/router-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-cli", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-core/package.json b/packages/router-core/package.json index 75fe988083..a10ebb3254 100644 --- a/packages/router-core/package.json +++ b/packages/router-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-core", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools-core/package.json b/packages/router-devtools-core/package.json index 5591f90ed9..a184361472 100644 --- a/packages/router-devtools-core/package.json +++ b/packages/router-devtools-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools-core", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for Web applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-devtools/package.json b/packages/router-devtools/package.json index 85842c4834..5e616aa0cc 100644 --- a/packages/router-devtools/package.json +++ b/packages/router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-devtools", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-generator/package.json b/packages/router-generator/package.json index d29398309d..4e8195af41 100644 --- a/packages/router-generator/package.json +++ b/packages/router-generator/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-generator", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-plugin/package.json b/packages/router-plugin/package.json index 61dcd7decc..f1d91b2f49 100644 --- a/packages/router-plugin/package.json +++ b/packages/router-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-plugin", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/router-vite-plugin/package.json b/packages/router-vite-plugin/package.json index 2630446f50..bd432ebad5 100644 --- a/packages/router-vite-plugin/package.json +++ b/packages/router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/router-vite-plugin", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router-devtools/package.json b/packages/solid-router-devtools/package.json index 67338b63fa..a18b758e95 100644 --- a/packages/solid-router-devtools/package.json +++ b/packages/solid-router-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router-devtools", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-router/package.json b/packages/solid-router/package.json index df2d74c4c6..c7f2836c03 100644 --- a/packages/solid-router/package.json +++ b/packages/solid-router/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-router", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-client/package.json b/packages/solid-start-client/package.json index 58269ec142..614d26614c 100644 --- a/packages/solid-start-client/package.json +++ b/packages/solid-start-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-client", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-config/package.json b/packages/solid-start-config/package.json index 968554bb14..f9d91cefdc 100644 --- a/packages/solid-start-config/package.json +++ b/packages/solid-start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-config", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-router-manifest/package.json b/packages/solid-start-router-manifest/package.json index 28f5a992c3..d318be01d1 100644 --- a/packages/solid-start-router-manifest/package.json +++ b/packages/solid-start-router-manifest/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-router-manifest", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start-server/package.json b/packages/solid-start-server/package.json index d0588db21d..b3673e7c57 100644 --- a/packages/solid-start-server/package.json +++ b/packages/solid-start-server/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start-server", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/solid-start/package.json b/packages/solid-start/package.json index 351915b249..345b89025d 100644 --- a/packages/solid-start/package.json +++ b/packages/solid-start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-start", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for Solid applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-api-routes/package.json b/packages/start-api-routes/package.json index 50f888c6a7..940dfa58a3 100644 --- a/packages/start-api-routes/package.json +++ b/packages/start-api-routes/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-api-routes", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-client-core/package.json b/packages/start-client-core/package.json index 24ae2107f7..f26e2131cf 100644 --- a/packages/start-client-core/package.json +++ b/packages/start-client-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-client-core", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-config/package.json b/packages/start-config/package.json index 498aadf0e3..7fee2fd1b6 100644 --- a/packages/start-config/package.json +++ b/packages/start-config/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-config", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-core/package.json b/packages/start-server-core/package.json index 104890d1c7..c46e2eca5e 100644 --- a/packages/start-server-core/package.json +++ b/packages/start-server-core/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-core", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-client/package.json b/packages/start-server-functions-client/package.json index 8bff28687a..367e3e6bb8 100644 --- a/packages/start-server-functions-client/package.json +++ b/packages/start-server-functions-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-client", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-fetcher/package.json b/packages/start-server-functions-fetcher/package.json index f8b85d2212..3848fef931 100644 --- a/packages/start-server-functions-fetcher/package.json +++ b/packages/start-server-functions-fetcher/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-fetcher", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-handler/package.json b/packages/start-server-functions-handler/package.json index 3bf13f5646..86c8f1d48d 100644 --- a/packages/start-server-functions-handler/package.json +++ b/packages/start-server-functions-handler/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-handler", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start-server-functions-ssr/package.json b/packages/start-server-functions-ssr/package.json index bc6b65c5dd..9bf741faff 100644 --- a/packages/start-server-functions-ssr/package.json +++ b/packages/start-server-functions-ssr/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start-server-functions-ssr", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/start/package.json b/packages/start/package.json index f5b8484aa9..629624b0ee 100644 --- a/packages/start/package.json +++ b/packages/start/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/start", - "version": "1.120.14", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/valibot-adapter/package.json b/packages/valibot-adapter/package.json index 42b9e3b42a..dbdb3a1de2 100644 --- a/packages/valibot-adapter/package.json +++ b/packages/valibot-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/valibot-adapter", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/zod-adapter/package.json b/packages/zod-adapter/package.json index 2433f77e3d..e92788101a 100644 --- a/packages/zod-adapter/package.json +++ b/packages/zod-adapter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/zod-adapter", - "version": "1.120.13", + "version": "1.120.15", "description": "Modern and scalable routing for React applications", "author": "Tanner Linsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0147dafc74..b1cba5e259 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5250,7 +5250,7 @@ importers: examples/solid/basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5290,7 +5290,7 @@ importers: examples/solid/basic-devtools-panel: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5324,7 +5324,7 @@ importers: examples/solid/basic-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5364,7 +5364,7 @@ importers: examples/solid/basic-non-nested-devtools: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5410,7 +5410,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5453,7 +5453,7 @@ importers: specifier: ^5.71.9 version: 5.71.9(@tanstack/solid-query@5.71.9(solid-js@1.9.5))(solid-js@1.9.5) '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5493,7 +5493,7 @@ importers: examples/solid/kitchen-sink-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5536,7 +5536,7 @@ importers: examples/solid/quickstart-file-based: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5576,7 +5576,7 @@ importers: examples/solid/start-bare: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ @@ -5625,7 +5625,7 @@ importers: examples/solid/start-basic: dependencies: '@tanstack/solid-router': - specifier: ^1.120.13 + specifier: ^1.120.15 version: link:../../../packages/solid-router '@tanstack/solid-router-devtools': specifier: workspace:^ From 9db424fb5b0c48a3ca87cf44677ad618778277a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rinc=C3=B3n?= <97266392+diegoarff@users.noreply.github.com> Date: Mon, 2 Jun 2025 23:08:01 -0400 Subject: [PATCH 44/47] docs(router): fix path param name in "data mutation" guide (#4302) --- docs/router/framework/react/guide/data-mutations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/router/framework/react/guide/data-mutations.md b/docs/router/framework/react/guide/data-mutations.md index 64fba2a4cd..53899f51d4 100644 --- a/docs/router/framework/react/guide/data-mutations.md +++ b/docs/router/framework/react/guide/data-mutations.md @@ -87,9 +87,9 @@ Without notifying your mutation management library about the route change, it's Hopefully and hypothetically, the easiest way is for your mutation library to support a keying mechanism that will allow your mutations's state to be reset when the key changes: ```tsx -const routeApi = getRouteApi('/posts/$postId/edit') +const routeApi = getRouteApi('/room/$roomId/chat') -function EditPost() { +function ChatRoom() { const { roomId } = routeApi.useParams() const sendMessageMutation = useCoolMutation({ From d1ed4e1c707341dcb1009f72c32ccaa37ffe69d1 Mon Sep 17 00:00:00 2001 From: Erfan Hosseini <43422324+Erfanhosseini98@users.noreply.github.com> Date: Tue, 3 Jun 2025 20:09:06 +0100 Subject: [PATCH 45/47] docs: Update preloading.md (#4310) --- docs/router/framework/react/guide/preloading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/router/framework/react/guide/preloading.md b/docs/router/framework/react/guide/preloading.md index d72ddc5e59..5695245c75 100644 --- a/docs/router/framework/react/guide/preloading.md +++ b/docs/router/framework/react/guide/preloading.md @@ -21,7 +21,7 @@ Preloading in TanStack Router is a way to load a route before the user actually Preloaded route matches are temporarily cached in memory with a few important caveats: - **Unused preloaded data is removed after 30 seconds by default.** This can be configured by setting the `defaultPreloadMaxAge` option on your router. -- **Obviously, when a a route is loaded, its preloaded version is promoted to the router's normal pending matches state.** +- **Obviously, when a route is loaded, its preloaded version is promoted to the router's normal pending matches state.** If you need more control over preloading, caching and/or garbage collection of preloaded data, you should use an external caching library like [TanStack Query](https://tanstack.com/query). From d9cc457456d8233b3da9e953d687b967297f2f1e Mon Sep 17 00:00:00 2001 From: neko <146620855+meouwu-dev@users.noreply.github.com> Date: Wed, 4 Jun 2025 22:30:24 +0800 Subject: [PATCH 46/47] test: add e2e test for ssr error handling --- e2e/react-start/basic/src/routeTree.gen.ts | 54 +++++++++++++++++++ e2e/react-start/basic/src/routes/__root.tsx | 18 ++++++- .../routes/error-handling/via-beforeLoad.tsx | 23 ++++++++ .../src/routes/error-handling/via-loader.tsx | 23 ++++++++ .../basic/tests/error-handling.spec.ts | 52 ++++++++++++++++++ 5 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 e2e/react-start/basic/src/routes/error-handling/via-beforeLoad.tsx create mode 100644 e2e/react-start/basic/src/routes/error-handling/via-loader.tsx create mode 100644 e2e/react-start/basic/tests/error-handling.spec.ts diff --git a/e2e/react-start/basic/src/routeTree.gen.ts b/e2e/react-start/basic/src/routeTree.gen.ts index 1335898845..e313ca5580 100644 --- a/e2e/react-start/basic/src/routeTree.gen.ts +++ b/e2e/react-start/basic/src/routeTree.gen.ts @@ -30,6 +30,8 @@ import { Route as RedirectTargetImport } from './routes/redirect/$target' import { Route as PostsPostIdImport } from './routes/posts.$postId' import { Route as NotFoundViaLoaderImport } from './routes/not-found/via-loader' import { Route as NotFoundViaBeforeLoadImport } from './routes/not-found/via-beforeLoad' +import { Route as ErrorHandlingViaLoaderImport } from './routes/error-handling/via-loader' +import { Route as ErrorHandlingViaBeforeLoadImport } from './routes/error-handling/via-beforeLoad' import { Route as LayoutLayout2Import } from './routes/_layout/_layout-2' import { Route as RedirectTargetIndexImport } from './routes/redirect/$target/index' import { Route as RedirectTargetViaLoaderImport } from './routes/redirect/$target/via-loader' @@ -157,6 +159,20 @@ const NotFoundViaBeforeLoadRoute = NotFoundViaBeforeLoadImport.update({ getParentRoute: () => NotFoundRouteRoute, } as any) +const ErrorHandlingViaLoaderRoute = ErrorHandlingViaLoaderImport.update({ + id: '/error-handling/via-loader', + path: '/error-handling/via-loader', + getParentRoute: () => rootRoute, +} as any) + +const ErrorHandlingViaBeforeLoadRoute = ErrorHandlingViaBeforeLoadImport.update( + { + id: '/error-handling/via-beforeLoad', + path: '/error-handling/via-beforeLoad', + getParentRoute: () => rootRoute, + } as any, +) + const LayoutLayout2Route = LayoutLayout2Import.update({ id: '/_layout-2', getParentRoute: () => LayoutRoute, @@ -308,6 +324,20 @@ declare module '@tanstack/react-router' { preLoaderRoute: typeof LayoutLayout2Import parentRoute: typeof LayoutImport } + '/error-handling/via-beforeLoad': { + id: '/error-handling/via-beforeLoad' + path: '/error-handling/via-beforeLoad' + fullPath: '/error-handling/via-beforeLoad' + preLoaderRoute: typeof ErrorHandlingViaBeforeLoadImport + parentRoute: typeof rootRoute + } + '/error-handling/via-loader': { + id: '/error-handling/via-loader' + path: '/error-handling/via-loader' + fullPath: '/error-handling/via-loader' + preLoaderRoute: typeof ErrorHandlingViaLoaderImport + parentRoute: typeof rootRoute + } '/not-found/via-beforeLoad': { id: '/not-found/via-beforeLoad' path: '/via-beforeLoad' @@ -548,6 +578,8 @@ export interface FileRoutesByFullPath { '/search-params': typeof SearchParamsRoute '/stream': typeof StreamRoute '/users': typeof UsersRouteWithChildren + '/error-handling/via-beforeLoad': typeof ErrorHandlingViaBeforeLoadRoute + '/error-handling/via-loader': typeof ErrorHandlingViaLoaderRoute '/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute '/not-found/via-loader': typeof NotFoundViaLoaderRoute '/posts/$postId': typeof PostsPostIdRoute @@ -577,6 +609,8 @@ export interface FileRoutesByTo { '/scripts': typeof ScriptsRoute '/search-params': typeof SearchParamsRoute '/stream': typeof StreamRoute + '/error-handling/via-beforeLoad': typeof ErrorHandlingViaBeforeLoadRoute + '/error-handling/via-loader': typeof ErrorHandlingViaLoaderRoute '/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute '/not-found/via-loader': typeof NotFoundViaLoaderRoute '/posts/$postId': typeof PostsPostIdRoute @@ -610,6 +644,8 @@ export interface FileRoutesById { '/stream': typeof StreamRoute '/users': typeof UsersRouteWithChildren '/_layout/_layout-2': typeof LayoutLayout2RouteWithChildren + '/error-handling/via-beforeLoad': typeof ErrorHandlingViaBeforeLoadRoute + '/error-handling/via-loader': typeof ErrorHandlingViaLoaderRoute '/not-found/via-beforeLoad': typeof NotFoundViaBeforeLoadRoute '/not-found/via-loader': typeof NotFoundViaLoaderRoute '/posts/$postId': typeof PostsPostIdRoute @@ -644,6 +680,8 @@ export interface FileRouteTypes { | '/search-params' | '/stream' | '/users' + | '/error-handling/via-beforeLoad' + | '/error-handling/via-loader' | '/not-found/via-beforeLoad' | '/not-found/via-loader' | '/posts/$postId' @@ -672,6 +710,8 @@ export interface FileRouteTypes { | '/scripts' | '/search-params' | '/stream' + | '/error-handling/via-beforeLoad' + | '/error-handling/via-loader' | '/not-found/via-beforeLoad' | '/not-found/via-loader' | '/posts/$postId' @@ -703,6 +743,8 @@ export interface FileRouteTypes { | '/stream' | '/users' | '/_layout/_layout-2' + | '/error-handling/via-beforeLoad' + | '/error-handling/via-loader' | '/not-found/via-beforeLoad' | '/not-found/via-loader' | '/posts/$postId' @@ -736,6 +778,8 @@ export interface RootRouteChildren { SearchParamsRoute: typeof SearchParamsRoute StreamRoute: typeof StreamRoute UsersRoute: typeof UsersRouteWithChildren + ErrorHandlingViaBeforeLoadRoute: typeof ErrorHandlingViaBeforeLoadRoute + ErrorHandlingViaLoaderRoute: typeof ErrorHandlingViaLoaderRoute RedirectTargetRoute: typeof RedirectTargetRouteWithChildren RedirectIndexRoute: typeof RedirectIndexRoute PostsPostIdDeepRoute: typeof PostsPostIdDeepRoute @@ -752,6 +796,8 @@ const rootRouteChildren: RootRouteChildren = { SearchParamsRoute: SearchParamsRoute, StreamRoute: StreamRoute, UsersRoute: UsersRouteWithChildren, + ErrorHandlingViaBeforeLoadRoute: ErrorHandlingViaBeforeLoadRoute, + ErrorHandlingViaLoaderRoute: ErrorHandlingViaLoaderRoute, RedirectTargetRoute: RedirectTargetRouteWithChildren, RedirectIndexRoute: RedirectIndexRoute, PostsPostIdDeepRoute: PostsPostIdDeepRoute, @@ -777,6 +823,8 @@ export const routeTree = rootRoute "/search-params", "/stream", "/users", + "/error-handling/via-beforeLoad", + "/error-handling/via-loader", "/redirect/$target", "/redirect/", "/posts_/$postId/deep" @@ -836,6 +884,12 @@ export const routeTree = rootRoute "/_layout/_layout-2/layout-b" ] }, + "/error-handling/via-beforeLoad": { + "filePath": "error-handling/via-beforeLoad.tsx" + }, + "/error-handling/via-loader": { + "filePath": "error-handling/via-loader.tsx" + }, "/not-found/via-beforeLoad": { "filePath": "not-found/via-beforeLoad.tsx", "parent": "/not-found" diff --git a/e2e/react-start/basic/src/routes/__root.tsx b/e2e/react-start/basic/src/routes/__root.tsx index 1b64b1c468..17a88f34d3 100644 --- a/e2e/react-start/basic/src/routes/__root.tsx +++ b/e2e/react-start/basic/src/routes/__root.tsx @@ -87,7 +87,7 @@ function RootDocument({ children }: { children: React.ReactNode }) { -
+
This Route Does Not Exist + + Error Handling (beforeLoad) + + + Error Handling (loader) +

{children} diff --git a/e2e/react-start/basic/src/routes/error-handling/via-beforeLoad.tsx b/e2e/react-start/basic/src/routes/error-handling/via-beforeLoad.tsx new file mode 100644 index 0000000000..3c60c36951 --- /dev/null +++ b/e2e/react-start/basic/src/routes/error-handling/via-beforeLoad.tsx @@ -0,0 +1,23 @@ +import { createFileRoute } from '@tanstack/react-router' + +export const Route = createFileRoute('/error-handling/via-beforeLoad')({ + component: RouteComponent, + beforeLoad: async () => { + throw new Error('before load error') + }, + errorComponent: () => { + return ( +
+ error component +
+ ) + }, +}) + +function RouteComponent() { + return ( +
+ route component +
+ ) +} diff --git a/e2e/react-start/basic/src/routes/error-handling/via-loader.tsx b/e2e/react-start/basic/src/routes/error-handling/via-loader.tsx new file mode 100644 index 0000000000..5f46ba2101 --- /dev/null +++ b/e2e/react-start/basic/src/routes/error-handling/via-loader.tsx @@ -0,0 +1,23 @@ +import { createFileRoute } from '@tanstack/react-router' + +export const Route = createFileRoute('/error-handling/via-loader')({ + loader: async () => { + throw new Error('Loader error in /error-handling/loader-error-handling') + }, + component: RouteComponent, + errorComponent: () => { + return ( +
+ error component +
+ ) + }, +}) + +function RouteComponent() { + return ( +
+ route component +
+ ) +} diff --git a/e2e/react-start/basic/tests/error-handling.spec.ts b/e2e/react-start/basic/tests/error-handling.spec.ts new file mode 100644 index 0000000000..580d70d139 --- /dev/null +++ b/e2e/react-start/basic/tests/error-handling.spec.ts @@ -0,0 +1,52 @@ +import { expect, test } from '@playwright/test' +import type { Page } from '@playwright/test' + +async function expectBeforeLoadHandledByErrorComponent(page: Page) { + await page.waitForLoadState('networkidle') + await expect( + page.getByTestId('error-handling-before-load-error-component'), + ).toBeVisible() + await expect( + page.getByTestId('error-handling-before-load-route-component'), + ).not.toBeVisible() +} + +test('beforeLoad error should be handled by errorComponent on client navigation', async ({ + page, +}) => { + await page.goto('/') + await page.click('a[href="/error-handling/via-beforeLoad"]') + await expectBeforeLoadHandledByErrorComponent(page) +}) + +test('beforeLoad error should be handled by errorComponent on initial request', async ({ + page, +}) => { + await page.goto('/error-handling/via-beforeLoad') + await expectBeforeLoadHandledByErrorComponent(page) +}) + +async function expectLoaderErrorHandledByErrorComponent(page: Page) { + await page.waitForLoadState('networkidle') + await expect( + page.getByTestId('error-handling-loader-error-component'), + ).toBeVisible() + await expect( + page.getByTestId('error-handling-loader-route-component'), + ).not.toBeVisible() +} + +test('loader error should be handled by errorComponent on client navigation', async ({ + page, +}) => { + await page.goto('/') + await page.click('a[href="/error-handling/via-loader"]') + await expectLoaderErrorHandledByErrorComponent(page) +}) + +test('loader error should be handled by errorComponent on initial request', async ({ + page, +}) => { + await page.goto('/error-handling/via-loader') + await expectLoaderErrorHandledByErrorComponent(page) +}) From 8ed9ee691900492daa64596ac1f0e3284a2a498c Mon Sep 17 00:00:00 2001 From: neko <146620855+meouwu-dev@users.noreply.github.com> Date: Wed, 4 Jun 2025 23:26:19 +0800 Subject: [PATCH 47/47] refactor: extract invariant source constant for not found errors --- packages/router-core/src/not-found.ts | 4 +++- packages/router-core/src/router.ts | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/router-core/src/not-found.ts b/packages/router-core/src/not-found.ts index fcec6c90e0..6415563b75 100644 --- a/packages/router-core/src/not-found.ts +++ b/packages/router-core/src/not-found.ts @@ -28,11 +28,13 @@ export function isNotFound(obj: any): obj is NotFoundError { return !!obj?.isNotFound } +export const INVARIANT_SOURCE_NOT_FOUND = 'notFound' + export function isVariantNotFoundError(error: any) { return ( error && typeof error === 'object' && 'invariantSource' in error && - error.invariantSource === 'notFound' + error.invariantSource === INVARIANT_SOURCE_NOT_FOUND ) } diff --git a/packages/router-core/src/router.ts b/packages/router-core/src/router.ts index c4a8f124e5..d265600894 100644 --- a/packages/router-core/src/router.ts +++ b/packages/router-core/src/router.ts @@ -24,7 +24,11 @@ import { trimPathLeft, trimPathRight, } from './path' -import { isNotFound, isVariantNotFoundError } from './not-found' +import { + INVARIANT_SOURCE_NOT_FOUND, + isNotFound, + isVariantNotFoundError, +} from './not-found' import { setupScrollRestoration } from './scroll-restoration' import { defaultParseSearch, defaultStringifySearch } from './searchParams' import { rootRouteId } from './root' @@ -3099,7 +3103,7 @@ export class RouterCore< 'No notFoundComponent found. Please set a notFoundComponent on your route or provide a defaultNotFoundComponent to the router.', ) } catch (error) { - ;(error as any).invariantSource = 'notFound' + ;(error as any).invariantSource = INVARIANT_SOURCE_NOT_FOUND throw error }