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

6,473 commits

Author SHA1 Message Date
Manuel Schiller
8146db7e54
fix(router-plugin): detect typed root route context for HMR (#7420) 2026-05-17 00:42:32 +02:00
github-actions[bot]
d1dc4ae7c0
ci: Version Packages (#7417) release-2026-05-16-1922 @tanstack/react-router@1.170.3 @tanstack/react-start-client@1.167.3 @tanstack/react-start-rsc@0.1.4 @tanstack/react-start-server@1.167.3 @tanstack/react-start@1.168.4 @tanstack/router-cli@1.167.4 @tanstack/router-core@1.171.1 @tanstack/router-generator@1.167.4 @tanstack/router-plugin@1.168.4 @tanstack/router-vite-plugin@1.167.4 @tanstack/solid-router@1.170.3 @tanstack/solid-start-client@1.167.3 @tanstack/solid-start-server@1.167.3 @tanstack/solid-start@1.168.4 @tanstack/start-client-core@1.169.3 @tanstack/start-plugin-core@1.170.4 @tanstack/start-server-core@1.168.3 @tanstack/start-static-server-functions@1.167.3 @tanstack/start-storage-context@1.167.3 @tanstack/vue-router@1.170.3 @tanstack/vue-start-client@1.167.3 @tanstack/vue-start-server@1.167.3 @tanstack/vue-start@1.168.4 2026-05-16 21:17:56 +02:00
Manuel Schiller
d9cf9331b8
fix(router-core): hydrate before initial client route match (#7416) 2026-05-16 21:10:08 +02:00
github-actions[bot]
4e42422f28
ci: Version Packages (#7413) release-2026-05-16-1436 @tanstack/react-router@1.170.2 @tanstack/react-start-client@1.167.2 @tanstack/react-start-rsc@0.1.3 @tanstack/react-start-server@1.167.2 @tanstack/react-start@1.168.3 @tanstack/router-cli@1.167.3 @tanstack/router-core@1.171.0 @tanstack/router-generator@1.167.3 @tanstack/router-plugin@1.168.3 @tanstack/router-vite-plugin@1.167.3 @tanstack/solid-router@1.170.2 @tanstack/solid-start-client@1.167.2 @tanstack/solid-start-server@1.167.2 @tanstack/solid-start@1.168.3 @tanstack/start-client-core@1.169.2 @tanstack/start-plugin-core@1.170.3 @tanstack/start-server-core@1.168.2 @tanstack/start-static-server-functions@1.167.2 @tanstack/start-storage-context@1.167.2 @tanstack/vue-router@1.170.2 @tanstack/vue-start-client@1.167.2 @tanstack/vue-start-server@1.167.2 @tanstack/vue-start@1.168.3 2026-05-16 16:32:00 +02:00
Flo
d533f87976
feat(router-core): params.priority route option as tie breaker in matching algorithm (#7411)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-16 16:20:12 +02:00
github-actions[bot]
b3f2ab809e
ci: Version Packages (#7409) release-2026-05-16-0506 @tanstack/react-start-rsc@0.1.2 @tanstack/react-start@1.168.2 @tanstack/router-cli@1.167.2 @tanstack/router-generator@1.167.2 @tanstack/router-plugin@1.168.2 @tanstack/router-vite-plugin@1.167.2 @tanstack/solid-start@1.168.2 @tanstack/start-plugin-core@1.170.2 @tanstack/vue-start@1.168.2
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-16 07:02:58 +02:00
Manuel Schiller
742941e2f1
fix: Fix literal underscore paths under pathless layouts (#7408) 2026-05-16 04:08:22 +02:00
github-actions[bot]
13432ad9ff
ci: Version Packages (#7407) release-2026-05-15-2300 @tanstack/react-router@1.170.1 @tanstack/react-start-client@1.167.1 @tanstack/react-start-rsc@0.1.1 @tanstack/react-start-server@1.167.1 @tanstack/react-start@1.168.1 @tanstack/router-cli@1.167.1 @tanstack/router-core@1.170.1 @tanstack/router-generator@1.167.1 @tanstack/router-plugin@1.168.1 @tanstack/router-vite-plugin@1.167.1 @tanstack/solid-router@1.170.1 @tanstack/solid-start-client@1.167.1 @tanstack/solid-start-server@1.167.1 @tanstack/solid-start@1.168.1 @tanstack/start-client-core@1.169.1 @tanstack/start-plugin-core@1.170.1 @tanstack/start-server-core@1.168.1 @tanstack/start-static-server-functions@1.167.1 @tanstack/start-storage-context@1.167.1 @tanstack/vue-router@1.170.1 @tanstack/vue-start-client@1.167.1 @tanstack/vue-start-server@1.167.1 @tanstack/vue-start@1.168.1 2026-05-16 00:55:45 +02:00
Manuel Schiller
2387a2eea0
feat(start): add inline CSS runtime controls and asset URL templates (#7380) 2026-05-16 00:38:42 +02:00
github-actions[bot]
ae64839145
ci: Version Packages (#7405) release-2026-05-15-1930 @tanstack/arktype-adapter@1.167.0 @tanstack/eslint-plugin-router@1.162.0 @tanstack/eslint-plugin-start@0.1.0 @tanstack/history@1.162.0 @tanstack/nitro-v2-vite-plugin@1.155.0 @tanstack/react-router-devtools@1.167.0 @tanstack/react-router-ssr-query@1.167.0 @tanstack/react-router@1.170.0 @tanstack/react-start-client@1.167.0 @tanstack/react-start-rsc@0.1.0 @tanstack/react-start-server@1.167.0 @tanstack/react-start@1.168.0 @tanstack/router-cli@1.167.0 @tanstack/router-core@1.170.0 @tanstack/router-devtools-core@1.168.0 @tanstack/router-devtools@1.167.0 @tanstack/router-generator@1.167.0 @tanstack/router-plugin@1.168.0 @tanstack/router-ssr-query-core@1.169.0 @tanstack/router-utils@1.162.0 @tanstack/router-vite-plugin@1.167.0 @tanstack/solid-router-devtools@1.167.0 @tanstack/solid-router-ssr-query@1.167.0 @tanstack/solid-router@1.170.0 @tanstack/solid-start-client@1.167.0 @tanstack/solid-start-server@1.167.0 @tanstack/solid-start@1.168.0 @tanstack/start-client-core@1.169.0 @tanstack/start-fn-stubs@1.162.0 @tanstack/start-plugin-core@1.170.0 @tanstack/start-server-core@1.168.0 @tanstack/start-static-server-functions@1.167.0 @tanstack/start-storage-context@1.167.0 @tanstack/valibot-adapter@1.167.0 @tanstack/virtual-file-routes@1.162.0 @tanstack/vue-router-devtools@1.167.0 @tanstack/vue-router-ssr-query@1.167.0 @tanstack/vue-router@1.170.0 @tanstack/vue-start-client@1.167.0 @tanstack/vue-start-server@1.167.0 @tanstack/vue-start@1.168.0 @tanstack/zod-adapter@1.167.0
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-15 21:24:23 +02:00
Birk Skyum
14520e5eb5
ci: align release workflow to query (#7404) 2026-05-15 21:12:35 +02:00
Flo
9f9f371e59
fix: revert plugin changes, createCsrfMiddleware compilation, fix HMR tests (#7400)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2026-05-15 16:35:59 +02:00
Corbin Crutchley
1f7b3188e2
chore: add CODEOWNERS file (#7394)
* chore: add CODEOWNERS file

* chore: add Nx and NPMRC

* Update .github/CODEOWNERS

---------

Co-authored-by: Nicolas Beaussart <nic.beaussart@gmail.com>
2026-05-14 07:40:56 +02:00
Harry Whorlow
dfcffab661
chore(pnpm): update pnpm to v11 (#7392) 2026-05-14 00:20:53 +02:00
Flo
e16bb6b2c5
ci: zizmor (#7389) 2026-05-14 00:01:57 +02:00
Flo
201e150bd1
minor semver bump to all packages (#7395) 2026-05-13 22:46:39 +02:00
renovate[bot]
bb5f3cc93c
chore(deps): pin dependencies (#7388)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-12 23:32:33 +10:00
Lachlan Collins
68d5f318e4
ci: add pinGitHubActionDigests (#7387) 2026-05-12 22:51:36 +10:00
Tanner Linsley
5d92d5aea3
Update bundle-size.yml 2026-05-11 16:03:38 -06:00
Tanner Linsley
861870ffb1
Update labeler.yml 2026-05-11 16:02:40 -06:00
Tanner Linsley
3ee179f0d9
Update bundle-size.yml 2026-05-11 16:02:10 -06:00
Manuel Schiller
038cd123b7
fix: fix jiti usage for tsconfig paths (#7382)
* Enable jiti tsconfig path aliases

Agent-Logs-Url: https://github.com/TanStack/router/sessions/0a481c9b-eb97-4543-acc5-71d43b97d386

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Use fixture for jiti tsconfig aliases

Agent-Logs-Url: https://github.com/TanStack/router/sessions/182b9baa-9e54-4813-a322-c33a1da5417d

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Track fixture path alias helper

Agent-Logs-Url: https://github.com/TanStack/router/sessions/182b9baa-9e54-4813-a322-c33a1da5417d

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Add router-generator changeset

Agent-Logs-Url: https://github.com/TanStack/router/sessions/ab1a42cc-7326-4e36-a656-f01179221cee

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Format virtual config fixture

Agent-Logs-Url: https://github.com/TanStack/router/sessions/22194166-b3a7-431e-b723-ad594d4b0405

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
2026-05-11 21:16:18 +02:00
Shkumbin Hasani
b1c061aff9
fix(router-core): fix missing closing paren in CSS.supports check for view transition types (#7369) 2026-05-10 00:11:51 +02:00
Flo
5ae2ae5e0f
feat(start): CSRF middleware (#7373) 2026-05-09 18:34:24 +02:00
Copilot
4eed408f12
Document server function strict serialization options (#7358)
* Document server function strict option

Agent-Logs-Url: https://github.com/TanStack/router/sessions/8deabe7a-7412-455e-9111-97a13cb4582e

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

* Refine strict docs wording

Agent-Logs-Url: https://github.com/TanStack/router/sessions/e2857d6e-314e-496c-b99b-78c207c28c77

Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
2026-05-07 03:19:26 +02:00
github-actions[bot]
1523612270 ci: changeset release @tanstack/react-start@1.167.65 @tanstack/router-cli@1.166.43 @tanstack/router-generator@1.166.42 @tanstack/router-plugin@1.167.35 @tanstack/router-vite-plugin@1.166.50 @tanstack/solid-start@1.167.62 @tanstack/start-plugin-core@1.169.20 @tanstack/vue-start@1.167.58 release-2026-05-06-2303 @tanstack/react-start-rsc@0.0.44 2026-05-06 23:03:16 +00:00
autofix-ci[bot]
90492109f1
ci: apply automated fixes 2026-05-06 22:49:36 +00:00
Copilot
c5811aacb5
fix: Bump jiti to 2.7.0 (#7355)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: schiller-manuel <6340397+schiller-manuel@users.noreply.github.com>
2026-05-07 00:48:14 +02:00
Manuel Schiller
a04d5e46a7
update bundlesize benchmark (#7356) 2026-05-07 00:46:13 +02:00
github-actions[bot]
ee96e25d14 ci: changeset release release-2026-05-05-2037 @tanstack/react-router@1.169.2 @tanstack/react-start-client@1.166.48 @tanstack/react-start-rsc@0.0.43 @tanstack/react-start-server@1.166.52 @tanstack/react-start@1.167.64 @tanstack/router-cli@1.166.42 @tanstack/router-core@1.169.2 @tanstack/router-generator@1.166.41 @tanstack/router-plugin@1.167.34 @tanstack/router-vite-plugin@1.166.49 @tanstack/solid-router@1.169.2 @tanstack/solid-start-client@1.166.47 @tanstack/solid-start-server@1.166.51 @tanstack/solid-start@1.167.61 @tanstack/start-client-core@1.168.2 @tanstack/start-plugin-core@1.169.19 @tanstack/start-server-core@1.167.30 @tanstack/start-static-server-functions@1.166.41 @tanstack/start-storage-context@1.166.35 @tanstack/vue-router@1.169.2 @tanstack/vue-start-client@1.166.43 @tanstack/vue-start-server@1.166.47 @tanstack/vue-start@1.167.57 2026-05-05 20:37:25 +00:00
Manuel Schiller
35e88f0499
fix: update deps (#7340) 2026-05-05 22:27:21 +02:00
Manuel Schiller
fdeb3f3e0c
fix: disable rsbuild server compression (#7348) 2026-05-05 22:11:46 +02:00
github-actions[bot]
bcefc84d7e ci: changeset release @tanstack/react-start@1.167.63 @tanstack/router-cli@1.166.41 @tanstack/router-generator@1.166.40 @tanstack/router-plugin@1.167.33 @tanstack/router-utils@1.161.8 @tanstack/router-vite-plugin@1.166.48 @tanstack/solid-start@1.167.60 @tanstack/start-plugin-core@1.169.18 @tanstack/vue-start@1.167.56 release-2026-05-05-0000 @tanstack/react-start-rsc@0.0.42 2026-05-05 00:00:04 +00:00
Manuel Schiller
056337ef02
fix: fix plain TypeScript parser handling (#7342) 2026-05-05 01:57:21 +02:00
Manuel Schiller
ed3152af20
test: reproducer for #2547 (#7337) 2026-05-04 00:42:55 +02:00
Manuel Schiller
19f496bf6f
test: add reproducer for #2514 (#7336) 2026-05-04 00:35:10 +02:00
github-actions[bot]
15df770b56 ci: changeset release release-2026-05-03-1708 @tanstack/react-start-rsc@0.0.41 @tanstack/react-start-server@1.166.51 @tanstack/react-start@1.167.62 @tanstack/solid-start-server@1.166.50 @tanstack/solid-start@1.167.59 @tanstack/start-plugin-core@1.169.17 @tanstack/start-server-core@1.167.29 @tanstack/vue-start-server@1.166.46 @tanstack/vue-start@1.167.55 2026-05-03 17:08:04 +00:00
Zelys
afa40ef46c
fix(start-server-core): fall back to GET handler for HEAD requests (RFC 9110 §9.3.2) (#7325)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-03 18:54:24 +02:00
Sarah Gerrard
9902eb4c61
remove old intent artifacts (#7333) 2026-05-03 18:34:20 +02:00
Tanner Linsley
3526194849
docs(skills): address 8 agent failure modes from user feedback (#7314)
* docs(skills): address 8 agent failure modes from external feedback

Adds new start-core/auth-server-primitives skill (sessions, cookies,
OAuth+PKCE, password-reset enumeration defense, CSRF, rate limiting,
session rotation) and updates 8 existing skills + matching docs to fix
patterns where agents produce insecure or wrong-framework output.

Skill changes:
- new: start-core/auth-server-primitives (server half of auth)
- router-core/auth-and-guards: route guard != RPC guard
- start-core/server-functions: wrong import path, RPC auth required,
  Cache-Control public is a cross-tenant leak, wrong-framework patterns
- start-core/middleware: wrong import path, sendContext shape vs access
  (3-layer wrong/still-wrong/correct), authMiddleware framing
- start-core/execution-model: file markers (server-only/client-only),
  module-level process.env is undefined under Worker SSR
- start-core/deployment: cloudflare env-at-request-time
- router-core/ssr: wrong file structures (next.js, react-router-dom)
- router-core/type-safety: wrong-framework imports + structures

Docs updated to mirror each skill change so source-of-truth and the
intent-indexed skill stay in sync. New authentication-server-primitives
guide is the long-form companion to the new skill.

intent validate: 30 skill files pass (was 29).

* ci: apply automated fixes

* docs(skills): address coderabbit review feedback

- Fix internal docs links to use correct relative paths instead of an
  absolute /start/latest/... URL and missing one ../ segment
- Remove blank line inside auth-and-guards blockquote (markdownlint MD028)
- Restore overload pattern in type-safety ValidateNavigateOptions and
  ValidateRedirectOptions examples; the casts I had introduced stripped
  generic context and contradicted the skill's own no-cast rule
- Add db.sessions.revokeAllForUser before create in login rotation
  snippets so the example matches the prose
- Soften useServerFn guidance: it's required only when the server
  function throws redirect/notFound; plain-data calls work directly and
  via useMutation/useQuery

* ci: apply automated fixes

* docs(skills): compress type-safety to stay under 500-line cap

Prettier's autofix expanded my single-line overload signatures across
multiple lines, pushing the file over the 500-line limit. Drop the
redundant fetchOrRedirect example (same pattern as useDelayedNavigate)
and describe ValidateRedirectOptions usage in prose instead.

* docs(skills): CSRF origin check should compare full origin, not host alone

Comparing only new URL(origin).host against APP_HOST silently accepts a
mismatched scheme — http://example.com would pass a check meant for
https://example.com. Compare the full origin (scheme + host + port)
against APP_ORIGIN instead. Same fix in skill and docs.

* docs(skills): make useDelayedNavigate callback truly return void

The callback returned the result of setTimeout (a timer handle), not
void as the public overload's return type implied. Wrap in a block so
the example matches the declared return type.

Skipped the related nitpick to add a separate redirect example — the
existing prose already describes the same overload pattern, and a
duplicate example would push the file close to the 500-line cap that
prettier autofix has been bumping us against.

* docs(skills): fix two real bugs in auth-server-primitives examples

1. Cookie parser truncated values containing '='. Signed cookies, JWTs,
   and base64-padded values all use '='. Use indexOf to split on the
   FIRST '=' only.

2. Login example short-circuited verifyPasswordHash on user-not-found,
   contradicting the prose's "same time, same error" claim — the
   no-user branch returned instantly while wrong-password spent ~100ms
   hashing, leaking account existence over the wire. Always verify
   against a hash; use a precomputed DUMMY_PASSWORD_HASH when the user
   is missing, then combine with the user-exists bit for the final ok.

Same fixes in the SKILL.md and the docs companion.

* docs(skills): address manuel's review on react-specific guides

- middleware.md, server-functions.md: drop cross-framework <framework>
  placeholders; this is the React-specific guide, just say
  @tanstack/react-start
- execution-model.md: drop the same trailing line about solid-start /
  vue-start paths
- hosting.md: remove the Cloudflare env-handling subsection — the
  general per-request rule lives in environment-variables.md and
  doesn't need to be repeated under a specific host
- environment-variables.md: mention the cloudflare:workers env binding
  as the canonical Cloudflare way to read env (including module scope),
  per Manuel's link to the Cloudflare docs
- deployment skill: same upgrade — show the cloudflare:workers env
  pattern alongside the per-request handler approach

* docs(skills): drop redundant server-only marker in session example

The file already imports from @tanstack/react-start/server, which is
on import protection's default client-deny specifier list. The
side-effect marker is redundant — drop it. Same fix in skill and docs.

* docs(skills): drop wrong-import-path mistakes — TS already catches them

Manuel pointed out that TypeScript catches both common wrong paths:
'@tanstack/react-router' has no exported member createServerFn /
createMiddleware, and '@tanstack/start' is "Cannot find module". Skill
space is precious; the items don't earn their slot if tsc handles them.

Removed:
- Common Mistake "Wrong import path" from server-functions and
  middleware skills (renumbered the remaining mistakes)
- The matching top-of-file CRITICAL line in both skills
- The "Import path" callouts in the middleware and server-functions
  docs

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-02 23:11:30 -06:00
github-actions[bot]
b470b48111 ci: changeset release release-2026-05-02-2350 @tanstack/react-start-rsc@0.0.40 @tanstack/react-start-server@1.166.50 @tanstack/react-start@1.167.61 @tanstack/solid-start-server@1.166.49 @tanstack/solid-start@1.167.58 @tanstack/start-plugin-core@1.169.16 @tanstack/start-server-core@1.167.28 @tanstack/vue-start-server@1.166.45 @tanstack/vue-start@1.167.54 2026-05-02 23:50:32 +00:00
Manuel Schiller
709627f3db
feat: Link header (#7327)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
2026-05-03 01:25:30 +02:00
github-actions[bot]
e0fb8ec460 ci: changeset release release-2026-05-02-2139 @tanstack/react-start-rsc@0.0.39 @tanstack/react-start-server@1.166.49 @tanstack/react-start@1.167.60 @tanstack/solid-start-server@1.166.48 @tanstack/solid-start@1.167.57 @tanstack/start-plugin-core@1.169.15 @tanstack/start-server-core@1.167.27 @tanstack/vue-start-server@1.166.44 @tanstack/vue-start@1.167.53 2026-05-02 21:38:53 +00:00
Manuel Schiller
238ea4a499
feat: early hints (#7324) 2026-05-02 23:35:52 +02:00
dfedoryshchev
f08ef9db97
chore: fix duplicate "the" typo across router packages (#7323) 2026-05-02 16:38:17 +02:00
github-actions[bot]
1de2537bc1 ci: changeset release release-2026-05-02-1156 2026-05-02 11:56:01 +00:00
Manuel Schiller
5eb6911a20
Revise bug report template for clarity and requirements
Updated the bug report template to clarify the requirements for a reproducer project and modified some labels and descriptions for better clarity.
2026-05-02 13:54:40 +02:00
Tom Smithhisler
51029a0df9
fix(deps): move fetchdts from devDependencies to dependencies (#7317) 2026-05-02 08:10:18 +02:00
Abhishek Raj
d2e8c2aba2
docs: Improve key differences b/w Start Server Functions and Next.js Server Actions (#7312) 2026-05-02 00:16:31 +02:00
github-actions[bot]
12c50ed332 ci: changeset release release-2026-05-01-1910 @tanstack/react-start-rsc@0.0.38 @tanstack/react-start@1.167.59 @tanstack/router-plugin@1.167.32 @tanstack/router-vite-plugin@1.166.47 @tanstack/solid-start@1.167.56 @tanstack/start-plugin-core@1.169.14 @tanstack/vue-start@1.167.52 2026-05-01 19:09:44 +00:00