TanStack/router
 Watch   
 Star   
 Fork   
12 hours ago
router

Release 2026-11-19 10:24

Release 2026-11-19 10:24

Changes

Features

  • router-devtools: add a trustedTypesPolicy option (#8959) (bb11d90332) by @schiller-manuel

Fix

  • router-devtools-core: replace goober with a static stylesheet (#8954) (e75f0ffb2d) by @schiller-manuel
  • react-start-rsc: bump RSC bundler deps for RSC (#8919) (e7358c36d8) by @DogPawHat
  • start-plugin-core: restore the build of the Rsbuild virtual modules (#8907) (70bbd11025) by @Sheraff
  • start-plugin-core: Rsbuild manifests list only a route's own chunks (#8876) (c156097786) by @Sheraff
  • start-plugin-core: write Rsbuild virtual modules under the app's root, not the working directory (#8868) (df6ac30406) by @Sheraff
  • start-plugin-core: refuse custom server-fn ids that never worked over HTTP, deprecate the rest outside the unreserved set (#8858) (2ebc0f3586) by @Sheraff
  • start-plugin-core: find Start libraries from Vite's root, not the working directory (#8866) (3cc054c374) by @Sheraff

Performance

  • start-plugin-core: count imported modules once in the Rsbuild manifest pass (#8926) (0b6d4f3f6b) by @Sheraff

Refactor

  • router-devtools-core: migrate to Solid 2 (#8957) (30aaa94e7c) by @schiller-manuel

Chore

  • deps: update vite to 8.3.8 for GHSA-p4f5-76q4-ffq7 (#8955) (11b3bcb36d) by @DogPawHat
  • pnpm: upgrade to pnpm 12 (#8912) (113b1a1f08) by @schiller-manuel

Packages

  • @tanstack/react-router-devtools@1.167.4
  • @tanstack/react-start@1.169.7
  • @tanstack/react-start-rsc@0.1.68
  • @tanstack/router-devtools@1.167.4
  • @tanstack/router-devtools-core@1.168.4
  • @tanstack/solid-router-devtools@1.167.4
  • @tanstack/solid-start@1.169.7
  • @tanstack/start-plugin-core@1.172.0
  • @tanstack/vue-router-devtools@1.167.4
  • @tanstack/vue-start@1.169.7
12 hours ago
router

@tanstack/start-plugin-core@1.172.0

Minor Changes

  • #8858 2ebc0f3 - A server function id that a custom serverFns.generateFunctionId returns and that never worked over HTTP now fails the build, with an error naming the file, the function and the id: whitespace, a control or non-ASCII character, any of ", #, /, <, >, ?, \, ^, `, {, }, the ids . and .., and a percent-encoding the server reads as another id (%41, lowercase hex, %2E) or rejects. The client puts the id in the URL unencoded, so a # or ? ended the path and a / cut the id short (the call silently ran another server function of the file or none), and the other characters reached the server percent-encoded and matched no function. An id embedding a non-ASCII functionName is one of these. One case did work and now fails the build: such an id on a server function only SSR code called.

    Ids with % or the other characters URLs allow (such as :, @, +, =, ,, ;, !, *, (, ), &, ', |, [, ]) still build and reach their handler, with a deprecation warning (from the Vite plugin; the Rsbuild plugin does not print compiler warnings yet): the next major version rejects them, since proxies and servers may decode or rewrite them (hash the inputs instead, as the documented example does). An id with ' no longer breaks the server bundle.

Patch Changes

  • #8926 0b6d4f3 - Rsbuild: the Start manifest pass that runs after every client compilation (builds and each dev update) reads an imported module's chunks once per compilation and counts the module once per importing chunk, instead of once per import connection. The manifest is unchanged; the pass takes about 40 % less time (on a 333-route app, tens of milliseconds less per HMR update).

  • #8876 c156097 - Rsbuild: a route's client manifest entry lists only its own chunks and CSS. When two routes shared a module in a chunk of its own, each route's entry also listed the other route's chunk as a preload and its stylesheet.

  • #8890 f870933 - fix: the Rsbuild RSC integration skips falsy entries in a rule's use array (Rspack's conditionally disabled loaders) instead of treating them as loaders.

  • #8907 70bbd11 - Rsbuild: fix the Rsbuild plugin build after two changes to its virtual modules crossed. Without this fix the package does not build, so no release could ship it. The Rsbuild dev manifest is written to its virtual module under the app's root.

  • #8868 df6ac30 - Rsbuild: Start writes its virtual modules under the app's root, not the working directory. An app built or served from another directory (rsbuild build --root <app> from a monorepo root) no longer fails with "Module not found" on the packages they import, such as RSC's serialization adapters.

  • #8866 3cc054c - Vite: Start finds the Start libraries it bundles in the SSR build from Vite's root, not the working directory. A vite build <app> run from another directory (a monorepo root, a script) no longer leaves them external and uncompiled, where their server fns returned undefined.

12 hours ago
router

@tanstack/solid-router-devtools@1.167.4

Patch Changes

  • #8959 bb11d90 - Add a trustedTypesPolicy option, so the devtools render on pages that enforce require-trusted-types-for 'script'.

  • Updated dependencies [30aaa94, e75f0ff, bb11d90]:

    • @tanstack/router-devtools-core@1.168.4
12 hours ago
router

@tanstack/vue-start@1.169.7

Patch Changes

12 hours ago
router

@tanstack/router-devtools-core@1.168.4

Patch Changes

  • #8957 30aaa94 - The devtools now use Solid 2 internally. They bundle their own copy of Solid, so apps are not affected by the Solid version.

  • #8954 e75f0ff - The devtools no longer use goober. Their styles are now a static stylesheet adopted into the document or shadow root the devtools render in, instead of a <style> element in <head>. This means:

    • The devtools are styled on pages with a Content Security Policy that blocks inline <style> elements, without a nonce.
    • Devtools rendered inside a shadow root are styled without passing shadowDOMTarget.
    • The devtools no longer write to the shared #_goober style element.
    • Browsers without adoptable stylesheets (before Safari 16.4 and Firefox 101) show the devtools unstyled.
  • #8959 bb11d90 - Add a trustedTypesPolicy option, so the devtools render on pages that enforce require-trusted-types-for 'script'.

12 hours ago
router

@tanstack/react-start-rsc@0.1.68

Patch Changes

  • #8919 e7358c3 - Raise the minimum RSC bundler peer dependencies to versions with the React Server Components fixes for GHSA-xqc2-xf4c-x3h3 (CVE-2026-126187, unauthenticated RCE) and GHSA-h3gv-c5rc-p453 (server function DoS):

    • @vitejs/plugin-rsc to >=0.5.38 (GHSA-59pf-q495-3c99), which vendors a fixed react-server-dom-webpack.
    • react-server-dom-rspack to >=0.1.1, the first release built from React sources that include the fix.
  • Updated dependencies [0b6d4f3, c156097, f870933, 70bbd11, df6ac30, 2ebc0f3, 3cc054c]:

    • @tanstack/start-plugin-core@1.172.0
12 hours ago
router

@tanstack/react-start@1.169.7

Patch Changes

12 hours ago
router

@tanstack/vue-router-devtools@1.167.4

Patch Changes

  • #8959 bb11d90 - Add a trustedTypesPolicy option, so the devtools render on pages that enforce require-trusted-types-for 'script'.

  • Updated dependencies [30aaa94, e75f0ff, bb11d90]:

    • @tanstack/router-devtools-core@1.168.4
12 hours ago
router

@tanstack/solid-start@1.169.7

Patch Changes

12 hours ago
router

@tanstack/react-router-devtools@1.167.4

Patch Changes

  • #8959 bb11d90 - Add a trustedTypesPolicy option, so the devtools render on pages that enforce require-trusted-types-for 'script'.

  • Updated dependencies [30aaa94, e75f0ff, bb11d90]:

    • @tanstack/router-devtools-core@1.168.4