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

6,488 commits

Author SHA1 Message Date
github-actions[bot]
21e39bde08 ci: changeset release release-2026-03-20-1036 @tanstack/react-router@1.168.1 @tanstack/react-start-client@1.166.16 @tanstack/react-start-server@1.166.16 @tanstack/react-start@1.167.1 @tanstack/router-cli@1.166.16 @tanstack/router-core@1.168.1 @tanstack/router-generator@1.166.15 @tanstack/router-plugin@1.167.1 @tanstack/router-vite-plugin@1.166.16 @tanstack/solid-router@1.168.1 @tanstack/solid-start-client@1.166.15 @tanstack/solid-start-server@1.166.15 @tanstack/solid-start@1.167.1 @tanstack/start-client-core@1.167.1 @tanstack/start-plugin-core@1.167.4 @tanstack/start-server-core@1.167.1 @tanstack/start-static-server-functions@1.166.17 @tanstack/start-storage-context@1.166.15 @tanstack/vue-router@1.168.1 @tanstack/vue-start-client@1.166.15 @tanstack/vue-start-server@1.166.15 @tanstack/vue-start@1.167.1 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
Antony Garand
80de7a9cd7
Tanstack start docs: fix nodejs link for bun (#6992) 2026-03-20 10:51:12 +01:00
github-actions[bot]
423be8af4b ci: changeset release release-2026-03-20-0936 @tanstack/start-plugin-core@1.167.3 @tanstack/react-router-ssr-query@1.166.10 @tanstack/react-router@1.168.0 @tanstack/react-start-client@1.166.15 @tanstack/react-start-server@1.166.15 @tanstack/react-start@1.167.0 @tanstack/router-cli@1.166.15 @tanstack/router-core@1.168.0 @tanstack/router-devtools-core@1.167.0 @tanstack/router-devtools@1.166.10 @tanstack/router-generator@1.166.14 @tanstack/router-plugin@1.167.0 @tanstack/router-ssr-query-core@1.167.0 @tanstack/router-vite-plugin@1.166.15 @tanstack/solid-router-devtools@1.166.10 @tanstack/solid-router-ssr-query@1.166.10 @tanstack/solid-router@1.168.0 @tanstack/solid-start-client@1.166.14 @tanstack/solid-start-server@1.166.14 @tanstack/solid-start@1.167.0 @tanstack/start-client-core@1.167.0 @tanstack/react-router-devtools@1.166.10 @tanstack/start-server-core@1.167.0 @tanstack/start-static-server-functions@1.166.16 @tanstack/start-storage-context@1.166.14 @tanstack/vue-router-devtools@1.166.10 @tanstack/vue-router-ssr-query@1.166.10 @tanstack/vue-router@1.168.0 @tanstack/vue-start-client@1.166.14 @tanstack/vue-start-server@1.166.14 @tanstack/vue-start@1.167.0 2026-03-20 09:35:55 +00:00
Flo
054523900b
refactor: signal based reactivity (#6704) 2026-03-20 10:33:28 +01:00
Flo
7f38aac99b
chore: migrate benchmarks to Vite 8 (#6986) 2026-03-19 20:03:32 +01:00
github-actions[bot]
4fd92fd717 ci: changeset release release-2026-03-19-1810 @tanstack/start-plugin-core@1.167.2 @tanstack/solid-start@1.166.18 @tanstack/vue-start@1.166.18 @tanstack/react-start@1.166.18 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 release-2026-03-19-1410 @tanstack/router-cli@1.166.14 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
Ahmed Zougari
8d9988a054
docs: update the scratch guide to be compatible with Vite 8 (#6976) 2026-03-19 02:38:54 +01:00
github-actions[bot]
86ea33c476 ci: changeset release release-2026-03-18-1713 @tanstack/react-router@1.167.5 @tanstack/react-start-client@1.166.14 @tanstack/react-start-server@1.166.14 @tanstack/react-start@1.166.17 @tanstack/router-cli@1.166.13 @tanstack/router-core@1.167.5 @tanstack/router-generator@1.166.13 @tanstack/router-plugin@1.166.14 @tanstack/router-vite-plugin@1.166.14 @tanstack/solid-router@1.167.5 @tanstack/solid-start-client@1.166.13 @tanstack/solid-start-server@1.166.13 @tanstack/solid-start@1.166.17 @tanstack/start-client-core@1.166.13 @tanstack/start-plugin-core@1.167.1 @tanstack/start-server-core@1.166.13 @tanstack/start-static-server-functions@1.166.15 @tanstack/start-storage-context@1.166.13 @tanstack/vue-router@1.167.5 @tanstack/vue-start-client@1.166.13 @tanstack/vue-start-server@1.166.13 @tanstack/vue-start@1.166.17 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
Birk Skyum
aaf764bcee
docs: @tailwindcss/vite to 4.2.2 in examples (#6974) 2026-03-18 17:40:04 +01:00
Birk Skyum
3b8ab0fa6b
docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
Birk Skyum
ea6bd001ea
docs: add devcontainer to solid/start-basic example (#6971) 2026-03-18 15:16:48 +01:00
Birk Skyum
dc1eb04fc2
docs: add devcontainer config (#6970) 2026-03-18 15:10:30 +01: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
3a32ad6cfb
ci: pnpm changeset pre enter pre (#6964) 2026-03-18 01:38:02 +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
Birk Skyum
75686c6123
docs: add tutorial section for solid (#6961) 2026-03-17 23:29:59 +01:00
Birk Skyum
6db686a37e
docs: fix start cli create commands (#6959) 2026-03-17 22:50:06 +01:00
Birk Skyum
7d936c6c36
docs: update examples/e2e to vite 8 (#6958) 2026-03-17 20:37:11 +01:00
github-actions[bot]
ba95e2cc66 ci: changeset release release-2026-03-17-1737 @tanstack/react-start@1.166.16 @tanstack/solid-start@1.166.16 @tanstack/start-plugin-core@1.167.0 @tanstack/vue-start@1.166.16 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
Lachlan Collins
3bc18d4623
ci: bump @tanstack/vite-config (#6951) 2026-03-17 23:55:48 +11:00
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