0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/packages/solid-router/tests
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.
History 2026-11-02 00:02:35 +01:00
..
lazy fix(router): handle redirected lazy pending matches (#7137) 2026-04-10 21:17:37 +02:00
server feat: experimental route modules for file-based routing 2026-11-02 00:02:35 +01:00
Await.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
blocker-server.test.tsx feat: experimental route modules for file-based routing 2026-11-02 00:02:35 +01:00
blocker.test.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
CatchBoundary.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
ClientOnly.test.tsx tests(solid-router): enable ClientOnly SSR test (#4666) 2025-07-16 19:58:35 +02:00
component-preload-retry.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
createLazyRoute.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
disableGlobalCatchBoundary.test.tsx feat(react-router): add disableGlobalCatchBoundary option (#4765) 2025-07-26 22:45:20 +02:00
errorBoundary.test-d.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
errorComponent.test.tsx fix(router): handle unknown error boundary values (#8209) 2026-09-05 14:48:44 +02:00
fileRoute.test-d.tsx fix: server middleware type in solid-router (#7260) 2026-04-25 19:23:05 +02:00
fileRoute.test.ts Create file routes directly (#7970) 2026-08-06 13:38:43 +02:00
hydration-terminal-lane.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
index.test.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
issue-4467-lazy-route-pending.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-7367-pending-min-redirect.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-7964-param-parsing-loader.test.tsx fix(router): preserve raw params for match identity (#7966) 2026-08-05 21:41:42 +02:00
issue-7986-retained-pending.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
issue-8115-context.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
jest-dom.setup.ts chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
lazyRouteComponent.production.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
link-departing-scope.test.tsx perf(router): skip Link work for routes a navigation leaves (#8602) 2026-10-05 21:27:33 +02:00
link-destination.test.tsx perf(router): skip Link work for routes a navigation leaves (#8602) 2026-10-05 21:27:33 +02:00
link-element-props.test.tsx perf(solid-router): let mergeProps memoize the Link's own props (#8619) 2026-10-06 10:36:08 +02:00
link-href-cases.ts fix: harden URL handling across Router and Start (#8308) 2026-09-09 23:03:49 +02:00
link-href-safety.test.tsx test: cover existing navigation and redirect behavior (#8286) 2026-09-07 21:35:15 +02:00
link-path-cases.ts test: cover existing navigation and redirect behavior (#8286) 2026-09-07 21:35:15 +02:00
link-path-matching.test.tsx test: cover existing navigation and redirect behavior (#8286) 2026-09-07 21:35:15 +02:00
link-style.test.tsx perf(router): optimize Link state props across frameworks (#8318) 2026-09-13 13:55:01 +02:00
link.bench.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
link.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
link.test.tsx perf(router): skip Link work for routes a navigation leaves (#8602) 2026-10-05 21:27:33 +02:00
loaders.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
Matches.test-d.tsx fix: MatchRoute types (#7139) 2026-04-10 21:35:42 +02:00
Matches.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
navigate-options-parity.test.tsx feat: experimental route modules for file-based routing 2026-11-02 00:02:35 +01:00
navigate.test.tsx fix(router-core): null prototype input/output objects (#6882) 2026-03-10 20:22:35 +01:00
not-found.test.tsx fix: preserve render-thrown notFound errors (#7077) 2026-03-31 01:09:27 +02:00
optional-path-params.test-d.tsx test(solid-router): sync unit tests from react-router (#5614) 2025-10-25 19:21:19 +02:00
optional-path-params.test.tsx refactor(router-core): interpolatePath skips optional segments w/ nullish param value (#5934) 2025-11-21 23:55:16 +01:00
Outlet.test.tsx fix(router): warn when Outlet is rendered in fallback components (#8045) 2026-08-12 09:53:15 +02:00
pending-fallback-promise-replacement.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
public-presentation-lane-contract.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
redirect.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
redirects.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
remountDeps.test.tsx Fix default route component remounting (#8002) 2026-08-12 14:53:17 +02:00
renderRouterToStream.test.tsx optimize streaming (#8204) 2026-09-16 22:38:25 +02:00
route.test-d.tsx feat: pass routeId into context/beforeLoad (#6579) 2026-02-03 00:59:12 +01:00
route.test.tsx fix(solid-router): make useLoaderDeps return Accessor for reactivity (#5348) 2025-10-07 01:42:53 +02:00
routeApi.test-d.tsx feat: experimental route modules for file-based routing 2026-11-02 00:02:35 +01:00
routeContext.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
router-client-stream-cleanup.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
router.test-d.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
router.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
RouterProvider.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
RouterProvider.test.tsx fix(solid-router): RouteProvider Wrap and Match InnerWrap support propagating context to their children (#5033) 2025-08-29 21:24:38 +02:00
routeScopedShouldThrow.test.tsx fix: preserve shouldThrow in route-scoped hooks (#8169) 2026-08-27 23:54:34 +02:00
same-route-pending-blank.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
Scripts.test.tsx perf: lower manifest script preload priority (#8212) 2026-10-16 15:35:33 +02:00
searchMiddleware.test.tsx refactor(router-core): move AnyRoute and AnyRouter to router-core (#3640) 2025-03-04 21:48:58 +01:00
setupTests.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
store-updates-during-navigation.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
transitioner-listener-errors.test.tsx fix(router-core): lane match loader rewrite (#7805) 2026-08-04 20:28:11 +02:00
transitioner-remount.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
transitioner-render-ack.test.tsx fix(router-core): preserve pending UI across retained routes (#8084) 2026-08-18 14:09:36 +02:00
Transitioner.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
use-match-outgoing-transition.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
useBlocker.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useBlocker.test.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
useCanGoBack.test.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useLoaderData.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useLocation.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useMatch.test-d.tsx refactor(router-core): migrate matches and route options to core (#3552) 2025-02-24 23:17:58 +01:00
useMatch.test.tsx test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
useNavigate.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useNavigate.test.tsx chore(deps): upgrade Vitest to 5 and migrate benchmarks to the bench fixture (#8723) 2026-10-16 00:41:32 +02:00
useParams.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useParams.test.tsx feat: match params (#7263) 2026-04-30 19:47:07 +02:00
useRouteContext.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useRouterState.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
useSearch.test-d.tsx feat(solid-router): Add a SolidJS driver for TanStack Router (#3276) 2025-02-20 17:11:39 +01:00
utils.ts fix(router): apply preload delay to viewport links (#8044) 2026-08-12 09:52:36 +02:00