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

4,125 commits

Author SHA1 Message Date
github-actions[bot]
bcdd73ac20 ci: changeset release 2026-03-19 23:22:10 +00:00
Birk Skyum
f5023cac3d
chore: use solid-query v6.0.0-alpha.0 (#6989) 2026-03-20 00:19:53 +01:00
github-actions[bot]
0ee267165d ci: changeset release 2026-03-19 03:05:40 +00:00
Birk Skyum
da2b8d9e96
fix: use solid v2 query pre-release (#6977) 2026-03-19 04:01:40 +01:00
Birk Skyum
9ece9ccc56
Merge remote-tracking branch 'origin/main' into solid-router-v2-pre 2026-03-19 02:50:06 +01:00
Birk Skyum
b03c955a84
update vite-plugin-solid to 3.0.0-next.3 2026-03-19 02:41:28 +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]
033df222ae ci: changeset release 2026-03-18 01:38:12 +00:00
Brenley Dueck
69da50126a
feat: integrate solid v2 query (#6938) 2026-03-18 02:35:55 +01:00
github-actions[bot]
988e3f710e ci: changeset release 2026-03-18 01:06:23 +00: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
Brenley Dueck
c3e19322e3
fix: Upgrade to solid v2 beta.3 (#6943)
* Upgrade to solid beta.3

* Fix tests

* Fix streaming test
2026-03-17 01:51:54 +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]
bbc14badd2 ci: changeset release 2026-03-16 00:04:09 +00:00
Birk Skyum
b95b1061d3
build: bundle packages with rolldown (#6931) 2026-03-16 01:00:28 +01:00
Birk Skyum
d9e6c3179a
Merge remote-tracking branch 'origin/main' into solid-router-v2-pre 2026-03-16 00:22:34 +01:00
Birk Skyum
1376d0ffc1
Merge remote-tracking branch 'origin/main' into solid-router-v2-pre 2026-03-16 00:15:07 +01: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
174136a3fe
Merge remote-tracking branch 'origin/main' into solid-router-v2-pre 2026-03-13 01:07:01 +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]
5fb8739ecd ci: changeset release 2026-03-12 23:18:58 +00:00
Brenley Dueck
9ce7f97ef2
chore: bump solid-refresh, fix deepEqual (#6910) 2026-03-13 00:16:32 +01:00
github-actions[bot]
cde6e61eed ci: changeset release 2026-03-12 15:19:00 +00:00
github-actions[bot]
c818bf608c ci: changeset release 2026-03-12 14:54:02 +00:00
Brenley Dueck
9385220ab5 Work on getting build to pass 2026-03-12 07:30:30 -05:00
autofix-ci[bot]
5b5c57e288
ci: apply automated fixes 2026-03-12 11:45:15 +00:00
Brenley Dueck
5bfd39b26f Fix router tests 2026-03-12 06:43:51 -05:00
Brenley Dueck
033ea00a20 Merge branch 'main' into solid-v2 2026-03-12 06:05:28 -05:00
Brenley Dueck
3d130d5730 Fix tests 2026-03-11 17:42:47 -05:00
Brenley Dueck
fdc5346ac1 Down the 3 failing tests 2026-03-11 16:08:09 -05: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
Brenley Dueck
dcb9ed4ec3 fixes 2026-03-10 20:53:02 -05:00
Birk Skyum
c6934747ea
2.0.0-beta.2 2026-03-11 01:54:53 +01:00