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

227 commits

Author SHA1 Message Date
Manuel Schiller
ac7eee1341 chore(route-modules): include the stand-ins in the example and benchmark builds
The large example's modules and the benchmark's modules use other modules;
their declaration builds now include `.tanstack/route-types-stubs.d.ts` as
documented, so they need no order among the modules. The example ignores the
generated namespace files and client views.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-11 14:33:25 +01:00
Manuel Schiller
cdf03e1cc9 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-11 14:33:24 +01:00
Manuel Schiller
762f949606 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-11 14:31:50 +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
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
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
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
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
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
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
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
Flo
d83a8964c2
ci: improve bundle size PR table (#8148) 2026-08-22 05:45:16 +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
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
Manuel Schiller
88f366ab8e
chore: migrate to typescript 7 (#7887) 2026-07-23 23:10:51 +02:00
Manuel Schiller
edf55759d8
ci: omit unchanged bundle size scenarios (#7856) 2026-07-19 22:34:06 +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
Birk Skyum
e2896b5051
ci: fix release notes diff range after Release PR flow (#7456) 2026-05-21 02:22:39 +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
Manuel Schiller
2387a2eea0
feat(start): add inline CSS runtime controls and asset URL templates (#7380) 2026-05-16 00:38:42 +02:00
Manuel Schiller
a04d5e46a7
update bundlesize benchmark (#7356) 2026-05-07 00:46:13 +02: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
Nicolas Beaussart
cbf9ecfc69
fix(nx): align playwright mode build target naming (#7223) 2026-04-18 23:41:37 +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
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
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
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
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
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
Birk Skyum
215cab47e8
chore: inlcude build in github changelog 2026-03-15 00:50:04 +01: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
Birk Skyum
daa2ab9886
use semantic commit for improved github release changelog (#6909) 2026-03-12 21:47:17 +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
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
Birk Skyum
97cee95647
Migrate repo to changesets (#6837) 2026-03-11 00:00:51 +01:00