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

6,608 commits

Author SHA1 Message Date
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 release-2026-03-16-2309 @tanstack/react-router@1.167.4 @tanstack/react-start-client@1.166.13 @tanstack/react-start-server@1.166.13 @tanstack/react-start@1.166.15 @tanstack/router-cli@1.166.12 @tanstack/router-core@1.167.4 @tanstack/router-generator@1.166.12 @tanstack/router-plugin@1.166.13 @tanstack/router-vite-plugin@1.166.13 @tanstack/solid-router@1.167.4 @tanstack/solid-start-client@1.166.12 @tanstack/solid-start-server@1.166.12 @tanstack/solid-start@1.166.15 @tanstack/start-client-core@1.166.12 @tanstack/start-plugin-core@1.166.15 @tanstack/start-server-core@1.166.12 @tanstack/start-static-server-functions@1.166.14 @tanstack/start-storage-context@1.166.12 @tanstack/virtual-file-routes@1.161.7 @tanstack/vue-router@1.167.4 @tanstack/vue-start-client@1.166.12 @tanstack/vue-start-server@1.166.12 @tanstack/vue-start@1.166.15 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 release-2026-03-15-2315 @tanstack/react-router@1.167.3 @tanstack/react-start-client@1.166.12 @tanstack/react-start-server@1.166.12 @tanstack/react-start@1.166.14 @tanstack/router-cli@1.166.11 @tanstack/router-core@1.167.3 @tanstack/router-generator@1.166.11 @tanstack/router-plugin@1.166.12 @tanstack/router-vite-plugin@1.166.12 @tanstack/solid-router@1.167.3 @tanstack/solid-start-client@1.166.11 @tanstack/solid-start-server@1.166.11 @tanstack/solid-start@1.166.14 @tanstack/start-client-core@1.166.11 @tanstack/start-plugin-core@1.166.14 @tanstack/start-server-core@1.166.11 @tanstack/start-static-server-functions@1.166.13 @tanstack/start-storage-context@1.166.11 @tanstack/vue-router@1.167.3 @tanstack/vue-start-client@1.166.11 @tanstack/vue-start-server@1.166.11 @tanstack/vue-start@1.166.14 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 release-2026-03-15-2243 @tanstack/arktype-adapter@1.166.9 @tanstack/eslint-plugin-router@1.161.6 @tanstack/history@1.161.6 @tanstack/nitro-v2-vite-plugin@1.154.9 @tanstack/react-router-devtools@1.166.9 @tanstack/react-router-ssr-query@1.166.9 @tanstack/react-router@1.167.2 @tanstack/react-start-client@1.166.11 @tanstack/react-start-server@1.166.11 @tanstack/react-start@1.166.13 @tanstack/router-cli@1.166.10 @tanstack/router-core@1.167.2 @tanstack/router-devtools-core@1.166.9 @tanstack/router-devtools@1.166.9 @tanstack/router-generator@1.166.10 @tanstack/router-plugin@1.166.11 @tanstack/router-ssr-query-core@1.166.9 @tanstack/router-utils@1.161.6 @tanstack/router-vite-plugin@1.166.11 @tanstack/solid-router-devtools@1.166.9 @tanstack/solid-router-ssr-query@1.166.9 @tanstack/solid-router@1.167.2 @tanstack/solid-start-client@1.166.10 @tanstack/solid-start-server@1.166.10 @tanstack/solid-start@1.166.13 @tanstack/start-client-core@1.166.10 @tanstack/start-fn-stubs@1.161.6 @tanstack/start-plugin-core@1.166.13 @tanstack/start-server-core@1.166.10 @tanstack/start-static-server-functions@1.166.12 @tanstack/start-storage-context@1.166.10 @tanstack/valibot-adapter@1.166.9 @tanstack/virtual-file-routes@1.161.6 @tanstack/vue-router-devtools@1.166.9 @tanstack/vue-router-ssr-query@1.166.9 @tanstack/vue-router@1.167.2 @tanstack/vue-start-client@1.166.10 @tanstack/vue-start-server@1.166.10 @tanstack/vue-start@1.166.13 @tanstack/zod-adapter@1.166.9 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 release-2026-03-15-1530 @tanstack/arktype-adapter@1.166.8 @tanstack/eslint-plugin-router@1.161.5 @tanstack/history@1.161.5 @tanstack/nitro-v2-vite-plugin@1.154.8 @tanstack/react-router-devtools@1.166.8 @tanstack/react-router-ssr-query@1.166.8 @tanstack/react-router@1.167.1 @tanstack/react-start-client@1.166.10 @tanstack/react-start-server@1.166.10 @tanstack/react-start@1.166.12 @tanstack/router-cli@1.166.9 @tanstack/router-core@1.167.1 @tanstack/router-devtools-core@1.166.8 @tanstack/router-devtools@1.166.8 @tanstack/router-generator@1.166.9 @tanstack/router-plugin@1.166.10 @tanstack/router-ssr-query-core@1.166.8 @tanstack/router-utils@1.161.5 @tanstack/router-vite-plugin@1.166.10 @tanstack/solid-router-devtools@1.166.8 @tanstack/solid-router-ssr-query@1.166.8 @tanstack/solid-router@1.167.1 @tanstack/solid-start-client@1.166.9 @tanstack/solid-start-server@1.166.9 @tanstack/solid-start@1.166.12 @tanstack/start-client-core@1.166.9 @tanstack/start-fn-stubs@1.161.5 @tanstack/start-plugin-core@1.166.12 @tanstack/start-server-core@1.166.9 @tanstack/start-static-server-functions@1.166.11 @tanstack/start-storage-context@1.166.9 @tanstack/valibot-adapter@1.166.8 @tanstack/virtual-file-routes@1.161.5 @tanstack/vue-router-devtools@1.166.8 @tanstack/vue-router-ssr-query@1.166.8 @tanstack/vue-router@1.167.1 @tanstack/vue-start-client@1.166.9 @tanstack/vue-start-server@1.166.9 @tanstack/vue-start@1.166.12 @tanstack/zod-adapter@1.166.8 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 release-2026-03-14-1126 @tanstack/react-start@1.166.11 @tanstack/solid-start@1.166.11 @tanstack/start-plugin-core@1.166.11 @tanstack/vue-start@1.166.11 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 @tanstack/react-router@1.167.0 @tanstack/react-start-client@1.166.9 @tanstack/react-start-server@1.166.9 @tanstack/react-start@1.166.10 @tanstack/router-cli@1.166.8 @tanstack/router-core@1.167.0 @tanstack/router-generator@1.166.8 @tanstack/router-plugin@1.166.9 @tanstack/router-vite-plugin@1.166.9 @tanstack/solid-router@1.167.0 @tanstack/solid-start-client@1.166.8 @tanstack/solid-start-server@1.166.8 @tanstack/solid-start@1.166.10 @tanstack/start-client-core@1.166.8 @tanstack/start-plugin-core@1.166.10 @tanstack/start-server-core@1.166.8 @tanstack/start-static-server-functions@1.166.10 @tanstack/start-storage-context@1.166.8 @tanstack/vue-router@1.167.0 @tanstack/vue-start-client@1.166.8 @tanstack/vue-start-server@1.166.8 @tanstack/vue-start@1.166.10 release-2026-03-14-0751 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 release-2026-03-13-2027 @tanstack/react-router@1.166.8 @tanstack/react-start-client@1.166.8 @tanstack/react-start-server@1.166.8 @tanstack/react-start@1.166.9 @tanstack/router-plugin@1.166.8 @tanstack/router-vite-plugin@1.166.8 @tanstack/solid-start@1.166.9 @tanstack/start-plugin-core@1.166.9 @tanstack/vue-start@1.166.9 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 release-2026-03-12-2345 @tanstack/start-static-server-functions@1.166.9 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 @tanstack/react-start@1.166.8 @tanstack/solid-start@1.166.8 @tanstack/start-plugin-core@1.166.8 @tanstack/start-static-server-functions@1.166.8 @tanstack/vue-start@1.166.8 release-2026-03-11-1937 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 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