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

4,079 commits

Author SHA1 Message Date
Manuel Schiller
baa1c16dde feat: throwOnError for preloadRoute 2026-03-25 00:24:29 +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
Birk Skyum
b1c0f4602d
chore: upgrade tooling to typescript 6 (#7024) 2026-03-23 22:59:52 +01:00
github-actions[bot]
bb3b8e4b06 ci: changeset release 2026-03-23 15:26:46 +00: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
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
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
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
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
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
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
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
github-actions[bot]
66637b25dd ci: changeset release 2026-03-14 11:26:02 +00: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
github-actions[bot]
ec7e8c5f6a ci: changeset release 2026-03-14 07:51:21 +00: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
Birk Skyum
32497be9c8
test: migrate lint from tanstack/config to tanstack/eslint-config (#6915) 2026-03-13 03:02:00 +01:00
Birk Skyum
6da5c64100
fix(start-static-server-functions): adjust start peerDeps to workspace:^ (#6913) 2026-03-13 00:42:42 +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
Tanner Linsley
7706e3f540 release: v1.166.7 2026-03-10 19:25:59 +00:00