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

6,718 commits

Author SHA1 Message Date
Nicolas Beaussart
53c6a8c17f
test: reproduce circular route module references 2026-11-04 23:01:34 +01:00
Manuel Schiller
5a87486046 fix(router-generator): name the namespace file callback type
Its declaration referenced the namespace type through import('.'),
which Node16 ESM resolution rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:51:24 +01:00
Manuel Schiller
07aed5fe99 test(router-generator): read generated files by their absolute path
Joining an absolute Windows path onto '/' produced 'D:\C:\...'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:34:19 +01:00
Manuel Schiller
a2ac4775ed chore(changeset): mention the namespace file layout option
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:27:37 +01:00
Manuel Schiller
7593e793a1 perf(route-modules): no Link or useNavigate cost without route modules
`Link` and `useNavigate` added the nearest route to every navigation,
read the match context and listed the route-module options, although
only the route-module translation reads them. They now do so only when
route-module code installed that translation, which it does before an
application renders, and the framework links learn the internal scope
options (`_module`, `_fromRoute`) from route-module code. Without route
modules the branches fold away, as do the not-found boundary's module
resolution and `buildLocation`'s options alias.

With Vite, react-router.minimal, react-start.minimal and the minimal
Solid scenarios now match main byte for byte. Rsbuild does not fold the
never-assigned hooks and keeps the module branches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:27:21 +01:00
Manuel Schiller
899c7c9128 feat(router-generator): configurable route-module namespace files
`routeScopeNamespaceFiles` places the generated namespace files of a
route scope: 'indexed' (default, `routeScope.gen.namespace<N>.ts`),
'named' (`routeScope.gen.<namespace>.ts`), 'folder'
(`routeScope.gen/<namespace>.ts`) or a function returning the path
relative to the route tree's directory.

Namespace files import the route tree from their own location. Paths
must stay inside the generated directory and outside the routes
directory, and differ in more than letter case. Changing the layout
removes the files of the previous one, which the previous scope file
lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:27:21 +01:00
Manuel Schiller
1e2e680573 test(bundle-size): measure apps with a mounted route module
Add `react-router.route-modules` and `react-start.route-modules`: the
minimal application with a small workspace route module mounted at
`/feature`, linked through its namespace and reading the router through
the module's scope. Each scenario generates the module before building.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 02:25:51 +01:00
Manuel Schiller
b5de7587c0 perf(route-modules): ship route-module behavior only with route modules
Applications without route modules still bundled the module branches of
the core and the framework route APIs: `buildLocation`'s module-local
translation, `getRouteNavigationScope` in every route's `redirect`,
`useNavigate` and `Link`, and the module-root id in route init.

- router-core: route-module code installs these as hooks
  (`route-module-hooks.ts`) from `mountRouteModule`, module roots and
  scoped options. They are never assigned without route modules, so
  bundlers drop every branch that reads them. The per-module check of
  the translation reports a module that is used but not installed.
- useNavigate passes its route-module defaults through without naming
  them; Link no longer lists the constant `_fromRoute` as a dependency.
- router-generator: scopes export the framework's own APIs where the
  scope binds nothing (`useMatches`, `useLocation`, `useRouterState`,
  `useBlocker`, ... and the id-based APIs outside one installation of a
  module installed several times) instead of calling a binder.

react-router.minimal: -87 B gzip, react-start.minimal: -122 B gzip
against the previous head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 02:25:51 +01:00
Manuel Schiller
51d00d1830 fix(ci): unify Vite's sass peer instead of deduping the lockfile
The workspace-wide `pnpm dedupe` also upgraded unrelated tooling: Rsbuild
and Rspack for the bundle-size benchmark, and @typescript-eslint/utils
apart from its rule tester, which broke the eslint plugin's build.
Restore the previous resolution and give Vite's optional sass peer one
version from the workspace root, the one the Start plugins already used,
so every application shares their Vite instance.

Also look up mounted module route files by their forward-slash keys in
the remaining generator tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:49:03 +01:00
Manuel Schiller
5960ab43ab test(route-modules): run Start build tests downstream and fix CI setup
- Move the route-module bundler tests out of start-plugin-core into
  react-start, solid-start and vue-start, which test their own public
  Vite and Rsbuild plugins against their build. Upstream packages no
  longer need downstream builds.
- Move the Start namespace alias test from router-generator into the
  React Start route-modules fixture, which publishes real Start modules.
- Generate into each temporary workspace's own tmpDir: renaming from the
  cwd-relative default failed across devices on CI.
- React Router route-modules fixture: declare that the web build needs
  the modules' generate and emit-types tasks, and depend on the web
  package so its tools are built before the fixture's tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:24:54 +01:00
Manuel Schiller
fc208125cd fix(route-modules): keep HMR updates and Windows lookups for mounted modules
- start-plugin-core: the client route tree plugin sent a full reload on
  every route tree change, so adding or removing a route option such as
  `loader` or `beforeLoad` discarded client state instead of hot updating.
  Reload only when the routes the client keeps change: the application's
  pruned tree, the provider tree mapping or a provider's client tree.
- router-generator: key mounted module route files with forward slashes
  like the package's own route files. The router plugin looks them up by
  normalized module id, so on Windows module routes missed HMR and code
  splitting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:24:49 +01:00
Manuel Schiller
6ea1ab6659 fix(e2e): serve the Start route-modules dev app from one Vite copy
The route-modules importers resolved Vite with a different optional
sass peer than the Start plugins, so the dev server got a second Vite
instance, failed the RunnableDevEnvironment check and never installed
the SSR middleware: every page answered "Cannot GET". Dedupe the
lockfile so all importers share one Vite, keeping prettier and
tinyglobby at their previous versions.

Also import the route-modules config with its extension, which Vite's
native config loader requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 00:34:59 +01:00
Manuel Schiller
b2ad239b6b test(route-modules): tidy the settings profile fixture pages
Group the profile page's API probes into labeled Match, Links and
Navigation sections and give them spacing. Point the framework Link
probes and the React deferred members link at orgs the fixtures
actually use instead of arbitrary ids, and style the installation
switcher in the React fixture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 00:21:37 +01:00
Manuel Schiller
99df5ae424 feat: experimental route modules for file-based routing
Route modules are workspace packages that own a subtree of file-based routes and are mounted into applications or other modules. A package declares `tanstack.router.module` in its package.json. The generator gives it qualified route ids (`<pkg>:<path>`), a generated route scope (`routeScope.gen.ts` plus one namespace file per included or used module), a public contract (`routeContract.gen.ts`, exported as `./route-types` after the package's own declaration build), a runtime entry (`routeModule.gen.ts`, exported as `./route-module`) and a topology manifest (`.tanstack/route-module.json`). Includers mount modules with the `routeModules` option: `includes` chooses the host route and mount path, optionally under path params, `uses` references modules mounted elsewhere, and an application installs a module several times by including it once per installation named with `as`, each with its own namespace and route ids (`<pkg>#<as>:<path>`). Matches of module routes carry `localRouteId`, and the generated `isScopedMatch` guard narrows whole-router matches by module id prefix.

Runtime: the generated host tree mounts module roots with the internal `mountRouteModule`; module-local ids, destinations, redirects and not-found errors resolve to the installation of the route that uses them; `HostedRouter` types the links of code that mounts modules under path params. Type composition is contract-based through `./route-types`; the framework packages augment `@tanstack/router-core/extensions` and export `RouteCore`.

Start: modules get `createServerFn`, `createMiddleware` and `createStartModule` in their scope, declare required context by augmenting `StartModuleRequirements`, and contribute fragments that applications install with `createStart(() => ({ extends: startModules }))`; `startModules.gen.ts` type-checks installation and requirements. The Start plugin lists module routes in the routes manifest, selects the providers' client tree views, discovers prerenderable module pages and extends import protection to module packages.

Build and tooling: the host bundler compiles, code-splits and hot-updates module routes, including every installation; `tsr generate` and `tsr watch` are the only commands and packages own their declaration builds; the devtools show modules; the `route-module-imports` ESLint rule enforces scope imports. Fixtures cover React, Solid, Vue and Start with Vite and Rsbuild, and a large example measures builds.
2026-11-02 00:02:35 +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) release-2026-10-22-2011 @tanstack/start-static-server-functions@1.167.44 @tanstack/start-storage-context@1.167.41 @tanstack/solid-start@1.169.4 @tanstack/solid-start-client@1.168.42 @tanstack/start-server-core@1.169.45 @tanstack/vue-start-server@1.167.50 @tanstack/solid-router@1.170.43 @tanstack/vue-start-client@1.167.45 @tanstack/start-client-core@1.170.39 @tanstack/start-plugin-core@1.171.55 @tanstack/solid-start-server@1.167.50 @tanstack/vue-router@1.170.42 @tanstack/vue-start@1.169.4 @tanstack/react-start@1.169.4 @tanstack/router-cli@1.167.46 @tanstack/react-start-server@1.167.52 @tanstack/react-start-rsc@0.1.65 @tanstack/react-start-client@1.168.44 @tanstack/router-core@1.171.39 @tanstack/router-generator@1.167.46 @tanstack/router-plugin@1.168.48 @tanstack/router-vite-plugin@1.167.48 @tanstack/react-router@1.170.46
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) release-2026-10-16-2111 @tanstack/react-router@1.170.45 @tanstack/react-start-client@1.168.43 @tanstack/react-start-rsc@0.1.64 @tanstack/react-start-server@1.167.51 @tanstack/react-start@1.169.3 @tanstack/router-cli@1.167.45 @tanstack/router-core@1.171.38 @tanstack/router-generator@1.167.45 @tanstack/router-plugin@1.168.47 @tanstack/router-vite-plugin@1.167.47 @tanstack/solid-router@1.170.42 @tanstack/solid-start-client@1.168.41 @tanstack/solid-start-server@1.167.49 @tanstack/solid-start@1.169.3 @tanstack/start-client-core@1.170.38 @tanstack/start-plugin-core@1.171.54 @tanstack/start-server-core@1.169.44 @tanstack/start-static-server-functions@1.167.43 @tanstack/start-storage-context@1.167.40 @tanstack/vue-router@1.170.41 @tanstack/vue-start-client@1.167.44 @tanstack/vue-start-server@1.167.49 @tanstack/vue-start@1.169.3
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) release-2026-10-14-1451 @tanstack/react-start-rsc@0.1.63 @tanstack/react-start-server@1.167.50 @tanstack/react-start@1.169.2 @tanstack/router-cli@1.167.44 @tanstack/router-generator@1.167.44 @tanstack/router-plugin@1.168.46 @tanstack/router-utils@1.162.4 @tanstack/router-vite-plugin@1.167.46 @tanstack/solid-start-server@1.167.48 @tanstack/solid-start@1.169.2 @tanstack/start-plugin-core@1.171.53 @tanstack/start-server-core@1.169.43 @tanstack/vue-start-server@1.167.48 @tanstack/vue-start@1.169.2
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) release-2026-10-12-2358 @tanstack/react-router@1.170.44 @tanstack/react-start-client@1.168.42 @tanstack/react-start-rsc@0.1.62 @tanstack/react-start-server@1.167.49 @tanstack/react-start@1.169.1 @tanstack/router-cli@1.167.43 @tanstack/router-core@1.171.37 @tanstack/router-generator@1.167.43 @tanstack/router-plugin@1.168.45 @tanstack/router-vite-plugin@1.167.45 @tanstack/solid-router@1.170.41 @tanstack/solid-start-client@1.168.40 @tanstack/solid-start-server@1.167.47 @tanstack/solid-start@1.169.1 @tanstack/start-client-core@1.170.37 @tanstack/start-plugin-core@1.171.52 @tanstack/start-server-core@1.169.42 @tanstack/start-static-server-functions@1.167.42 @tanstack/start-storage-context@1.167.39 @tanstack/vue-router@1.170.40 @tanstack/vue-start-client@1.167.43 @tanstack/vue-start-server@1.167.47 @tanstack/vue-start@1.169.1
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) release-2026-10-12-2321 @tanstack/react-router@1.170.43 @tanstack/react-start-client@1.168.41 @tanstack/react-start-rsc@0.1.61 @tanstack/react-start-server@1.167.48 @tanstack/react-start@1.169.0 @tanstack/router-cli@1.167.42 @tanstack/router-core@1.171.36 @tanstack/router-generator@1.167.42 @tanstack/router-plugin@1.168.44 @tanstack/router-vite-plugin@1.167.44 @tanstack/solid-router@1.170.40 @tanstack/solid-start-client@1.168.39 @tanstack/solid-start-server@1.167.46 @tanstack/solid-start@1.169.0 @tanstack/start-client-core@1.170.36 @tanstack/start-plugin-core@1.171.51 @tanstack/start-server-core@1.169.41 @tanstack/start-static-server-functions@1.167.41 @tanstack/start-storage-context@1.167.38 @tanstack/vue-router@1.170.39 @tanstack/vue-start-client@1.167.42 @tanstack/vue-start-server@1.167.46 @tanstack/vue-start@1.169.0
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