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

6,614 commits

Author SHA1 Message Date
Cong-Cong Pan
37877da166
perf(start): optimize Rsbuild import protection reporting (#8164)
* perf(start): avoid parsing original source in Rsbuild import protection

* perf(start): avoid filesystem reads in Rsbuild import protection reporting

* perf(start): remove redundant module survival checks

* perf(start): ignore inactive Rspack import connections

* perf(start): lazily build Rsbuild import protection diagnostics

* chore: remove test case

* add changeset

* fix(start): persist Rsbuild import protection markers in buildInfo

* fix: normalize file path in getModuleResource

* fix(start): restore Rsbuild diagnostics for inactive imports

* fix(start): improve Rsbuild import protection diagnostics

* refactor(start): clarify Rsbuild violation scanner state

* update readme

* fix(start-plugin-core): avoid dependency locations in Rsbuild diagnostics

* fix(start): respect importer scope for Rsbuild markers

* refactor(start): move Rsbuild import protection transform to loader

* test(start): type Rsbuild import protection mocks

* fix(start): close Rsbuild import protection reporting gaps

* fix(start): skip errored Rsbuild import protection modules
2026-08-31 18:48:41 +02:00
Manuel Schiller
65d565c946
fix route trees (#8197) 2026-08-31 01:34:33 +02:00
Nicolas Stepien
3c6c959e56
Tweak a few NODE_ENV placements (#8196) 2026-08-31 01:34:24 +02:00
Kenji Mizuguchi
0caf6b9a2b
fix: preserve shouldThrow in route-scoped hooks (#8169)
* fix(react-router): forward shouldThrow in Route.useMatch

Co-authored-by: Cursor <cursoragent@cursor.com>

* ci: apply automated fixes

* fix(react-router,solid-router,vue-router): preserve shouldThrow in route-scoped hooks

Co-authored-by: Cursor <cursoragent@cursor.com>

* test: simplify route-scoped shouldThrow coverage

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sheraff <me@florianpellet.com>
2026-08-27 23:54:34 +02:00
github-actions[bot]
0dbb77f726
ci: Version Packages (#8177) release-2026-08-26-2336 @tanstack/react-router-ssr-query@1.167.2 @tanstack/router-ssr-query-core@1.169.2 @tanstack/solid-router-ssr-query@1.167.2 @tanstack/vue-router-ssr-query@1.167.2
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-27 01:33:18 +02:00
Manuel Schiller
79e35335b4
optimize query integration (#8175)
* optimize query integration

* fix
2026-08-27 01:28:24 +02:00
Manuel Schiller
ebf13ed517
add react-start-query-integration bundlesize benchmark scenario (#8153)
* add react-start-query-integration bundlesize benchmark scenario

* bump query
2026-08-25 19:43:21 +02:00
Kevin Van Cott
3dee5b2e94
docs: clarify contribution guidelines (#8163)
* docs: clarify contribution guidelines

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-25 05:14:16 +02:00
Flo
9f8990b515
test(router-core): assert sequential asset projection (#8152) 2026-08-23 11:43:22 +02:00
github-actions[bot]
a5a5bacc8f
ci: Version Packages (#8133) release-2026-08-22-2258 @tanstack/react-router@1.170.32 @tanstack/react-start-client@1.168.30 @tanstack/react-start-rsc@0.1.48 @tanstack/react-start-server@1.167.37 @tanstack/react-start@1.168.49 @tanstack/router-cli@1.167.33 @tanstack/router-core@1.171.27 @tanstack/router-generator@1.167.33 @tanstack/router-plugin@1.168.35 @tanstack/router-vite-plugin@1.167.35 @tanstack/solid-router@1.170.30 @tanstack/solid-start-client@1.168.29 @tanstack/solid-start-server@1.167.36 @tanstack/solid-start@1.168.47 @tanstack/start-client-core@1.170.27 @tanstack/start-plugin-core@1.171.39 @tanstack/start-server-core@1.169.31 @tanstack/start-static-server-functions@1.167.32 @tanstack/start-storage-context@1.167.29 @tanstack/vue-router@1.170.29 @tanstack/vue-start-client@1.167.32 @tanstack/vue-start-server@1.167.36 @tanstack/vue-start@1.168.46
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-23 00:53:08 +02:00
Flo
0eb45738c0
fix(router-core): reject overlapping parameter affixes (#8154)
* fix(router-core): reject overlapping parameter affixes

* perf(router-core): reduce affix overlap check size

* test(router-core): assert affix match parameters

* ci: apply automated fixes

* perf(router-core): normalize route affixes

* ci: apply automated fixes

* add test case

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-22 21:47:42 +02:00
Flo
eb9ddac3e2
test(router-core): document U+0130 affix limitation (#8149)
* fix(router-core): match Unicode wildcard suffixes

* ci: apply automated fixes

* refactor(router-core): clarify wildcard suffix boundaries

* fix(router-core): handle Unicode parameter affixes

* test(router-core): document U+0130 affix limitation

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-22 18:16:43 +02:00
Flo
81e4a79da2
perf(router-core): reduce client loader bundle size (#8150)
* perf(router-core): reduce client loader bundle size

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-22 17:42:10 +02:00
Jiahan Chen
aab01dec75
chore(start): remove redundant splitChunks config from React plugin (#8136) 2026-08-22 09:48:38 +02:00
Jiahan Chen
a0041bb36e
fix(start): migrate to Rsbuild splitChunks config (#8135) 2026-08-22 09:48:30 +02:00
Flo
d83a8964c2
ci: improve bundle size PR table (#8148) 2026-08-22 05:45:16 +02:00
Flo
cb281d70c1
fix(router-core): preserve context during reloads (#8130)
* fix(router-core): preserve context during reloads

* ci: apply automated fixes

* test(router): consolidate issue 8115 coverage

* fix(vue-router): react to provider context changes

* fix(router-core): refine context reconstruction

* bytes

* type fixes

* context + immediate UI on load

* coderabbit is happy

* no context in pending/error/notFound components

* changesets

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-20 23:34:06 +02:00
Manuel Schiller
fa65287281
perf(router): remove prebuilt preload locations (#8132) 2026-08-20 23:17:16 +02:00
Flo
e9f63a6c69
ci: add timeout-minutes to codspeed step in benchmarks (#8122)
* ci: add timeout-minutes to codspeed step in benchmarks

* add concurrency w/ queue:single
2026-08-19 19:16:25 +02:00
Flo
7557415669
test(router-core): assert state structural sharing (#8121) 2026-08-19 13:48:51 +02:00
github-actions[bot]
4fcbcde90d
ci: Version Packages (#8119) release-2026-08-19-1138 @tanstack/react-router@1.170.31 @tanstack/react-start-client@1.168.29 @tanstack/react-start-rsc@0.1.47 @tanstack/react-start-server@1.167.36 @tanstack/react-start@1.168.48 @tanstack/router-cli@1.167.32 @tanstack/router-core@1.171.26 @tanstack/router-generator@1.167.32 @tanstack/router-plugin@1.168.34 @tanstack/router-vite-plugin@1.167.34 @tanstack/solid-router@1.170.29 @tanstack/solid-start-client@1.168.28 @tanstack/solid-start-server@1.167.35 @tanstack/solid-start@1.168.46 @tanstack/start-client-core@1.170.26 @tanstack/start-plugin-core@1.171.38 @tanstack/start-server-core@1.169.30 @tanstack/start-static-server-functions@1.167.31 @tanstack/start-storage-context@1.167.28 @tanstack/vue-router@1.170.28 @tanstack/vue-start-client@1.167.31 @tanstack/vue-start-server@1.167.35 @tanstack/vue-start@1.168.45
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-19 13:22:14 +02:00
Flo
3e016ac84f
perf(router-core): buildLocation optimizations (#8117) 2026-08-19 11:28:52 +02:00
Flo
92749aba6e
perf(router-core): cache route mask misses (#8111)
* perf(router-core): cache route mask misses

* test(router-core): restore route mask cache spy
2026-08-19 11:24:35 +02:00
Flo
128757113e
perf(router-core): skip impossible state sharing (#8110)
* perf(router-core): skip impossible state sharing

* fix(router-core): preserve custom state handling

* perf(router-core): simplify state sharing guard

* perf(router-core): inline state property reads
2026-08-19 11:24:26 +02:00
Flo
a1c3674d3b
perf(router-core): skip disabled search validation (#8112)
* perf(router-core): skip disabled search validation

* test(router-core): cover validation middleware ordering

* test(router-core): assert search validation execution
2026-08-19 11:24:18 +02:00
Flo
6be202cde4
perf(router-core): optimize buildLocation path resolution (#8108)
* perf(router-core): optimize buildLocation path resolution

* perf(router-core): remove unreachable absolute path handling

* fix(router-core): normalize relative path bases

* perf(router-core): skip redundant relative path cleanup
2026-08-19 11:24:08 +02:00
github-actions[bot]
a78f2af5b4
ci: Version Packages (#8079) release-2026-08-18-1518 @tanstack/react-router@1.170.30 @tanstack/react-start-client@1.168.28 @tanstack/react-start-rsc@0.1.46 @tanstack/react-start-server@1.167.35 @tanstack/react-start@1.168.47 @tanstack/router-cli@1.167.31 @tanstack/router-core@1.171.25 @tanstack/router-generator@1.167.31 @tanstack/router-plugin@1.168.33 @tanstack/router-vite-plugin@1.167.33 @tanstack/solid-router@1.170.28 @tanstack/solid-start-client@1.168.27 @tanstack/solid-start-server@1.167.34 @tanstack/solid-start@1.168.45 @tanstack/start-client-core@1.170.25 @tanstack/start-plugin-core@1.171.37 @tanstack/start-server-core@1.169.29 @tanstack/start-static-server-functions@1.167.30 @tanstack/start-storage-context@1.167.27 @tanstack/vue-router@1.170.27 @tanstack/vue-start-client@1.167.30 @tanstack/vue-start-server@1.167.34 @tanstack/vue-start@1.168.44
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-18 17:12:28 +02:00
Flo
63d2cc9155
fix(router-core): remove navigation rollback (#8092)
* fix(router-core): remove navigation rollback

* test(react-start): update failed HMR refresh expectation
2026-08-18 14:09:37 +02:00
Flo
5d3785dcc3
fix(router-core): preserve pending UI across retained routes (#8084)
* fix(router-core): preserve pending UI across retained routes

* fix(router-core): harden pending session ownership

* fix(router): align pending presentation across Solid and Vue (#8097)

fix(router): align pending presentation across frameworks

* changesets

* test: align hydration fake timers
2026-08-18 14:09:36 +02:00
Flo
f97188fdb4
chore: localize package dependencies (#8078) 2026-08-15 13:42:24 +02:00
Flo
f75cada017
perf(react-router): direct export of CatchBoundary class component, remove function wrapper (#8068)
bundle(react-router): direct export of CatchBoundary class component, remove function wrapper
2026-08-15 08:52:06 +02:00
github-actions[bot]
11dfc93669
ci: Version Packages (#8075) release-2026-08-14-2214 @tanstack/react-router@1.170.29 @tanstack/react-start-client@1.168.27 @tanstack/react-start-rsc@0.1.45 @tanstack/react-start-server@1.167.34 @tanstack/react-start@1.168.46 @tanstack/router-cli@1.167.30 @tanstack/router-core@1.171.24 @tanstack/router-generator@1.167.30 @tanstack/router-plugin@1.168.32 @tanstack/router-vite-plugin@1.167.32 @tanstack/solid-router@1.170.27 @tanstack/solid-start-client@1.168.26 @tanstack/solid-start-server@1.167.33 @tanstack/solid-start@1.168.44 @tanstack/start-client-core@1.170.24 @tanstack/start-plugin-core@1.171.36 @tanstack/start-server-core@1.169.28 @tanstack/start-static-server-functions@1.167.29 @tanstack/start-storage-context@1.167.26 @tanstack/vue-router@1.170.26 @tanstack/vue-start-client@1.167.29 @tanstack/vue-start-server@1.167.33 @tanstack/vue-start@1.168.43
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-15 00:08:52 +02:00
Flo
bdaf73a406
perf(router-core): inline buildWithMatches inside buildLocation (#8070)
* perf(router-core): inline buildWithMatches inside buildLocation

* better cleanup
2026-08-14 22:47:45 +02:00
Flo
cf6ab178b3
perf(router-core): inline isFunction utility (#8069) 2026-08-14 21:03:47 +02:00
Flo
4c89b15dd2
perf(router-core): inline getOpenAndCloseBraces in parseSegment (#8071) 2026-08-14 21:03:20 +02:00
Flo
0fdf9ff16f
perf: inline isCtrlKey utility inside all Link components (#8073) 2026-08-14 21:02:47 +02:00
github-actions[bot]
53b63cf6fb
ci: Version Packages (#8052) release-2026-08-14-1210 @tanstack/react-router@1.170.28 @tanstack/react-start-client@1.168.26 @tanstack/react-start-rsc@0.1.44 @tanstack/react-start-server@1.167.33 @tanstack/react-start@1.168.45 @tanstack/router-cli@1.167.29 @tanstack/router-core@1.171.23 @tanstack/router-generator@1.167.29 @tanstack/router-plugin@1.168.31 @tanstack/router-vite-plugin@1.167.31 @tanstack/solid-router@1.170.26 @tanstack/solid-start-client@1.168.25 @tanstack/solid-start-server@1.167.32 @tanstack/solid-start@1.168.43 @tanstack/start-client-core@1.170.23 @tanstack/start-plugin-core@1.171.35 @tanstack/start-server-core@1.169.27 @tanstack/start-static-server-functions@1.167.28 @tanstack/start-storage-context@1.167.25 @tanstack/vue-router@1.170.25 @tanstack/vue-start-client@1.167.28 @tanstack/vue-start-server@1.167.32 @tanstack/vue-start@1.168.42
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-14 14:05:28 +02:00
Flo
0c25a7b43b
fix(react-router): avoid Suspense above root documents (#8055)
* fix(react-router): avoid suspense above root documents

* test(react-start): cover root document hydration

* test(react-router): remove indirect hydration assertion

* perf(react-router): reduce suspense wrapper bundle size

* test(react-start): isolate root hydration regression

* fix(react-router): preserve root suspense in CSR

* refactor(react-router): simplify root suspense checks

* fix(react-router): preserve functional ssr classification
2026-08-14 13:34:08 +02:00
Flo
31882c7fa8
fix(router): reuse resolved lazy route components (#8054)
* fix(router): reuse resolved lazy route components

* fix vue inconsistency

* fix(router): clear resolved lazy component preload
2026-08-14 13:30:20 +02:00
Flo
0ad38a710c
fix(router): reject superseded Solid and Vue render acknowledgements (#8065)
* fix(router): reject superseded render acknowledgements

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-14 09:38:09 +02:00
Flo
38485038c5
Fix default route component remounting (#8002)
* Fix default route component remounting

* Optimize reactive Vue Link props

* fix(vue-router): address reactive Link review feedback
2026-08-12 14:53:17 +02:00
github-actions[bot]
dc5a404eb9
ci: Version Packages (#8048) release-2026-08-12-0919 @tanstack/react-router@1.170.27 @tanstack/react-start-client@1.168.25 @tanstack/react-start-rsc@0.1.43 @tanstack/react-start-server@1.167.32 @tanstack/react-start@1.168.44
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-12 11:15:35 +02:00
Flo
b0817f50cc
fix(react-router): useMatchRoute w/ React Compiler (changeset) (#8047) 2026-08-12 10:47:05 +02:00
Flo
31355ae92c
fix(react-router): useMatchRoute w/ React Compiler (#8015)
* fix(react-router): useMatchRoute w/ React Compiler

* test(react-router): add React Compiler E2E

Co-authored-by: Kamal Bennani <kamal.bennani@aircall.io>

* disable eslint react-hooks/exhaustive-deps for known static condition w/ DCE

* test(react-router): cover useMatchRoute callback identity

Co-authored-by: Sarah Gerrard <98355961+LadyBluenotes@users.noreply.github.com>

* test(react-router): rely on useMatchRoute subscription

* test(react-router): exercise compiler-generated memoization

* no useCallback during SSR

* update docs

---------

Co-authored-by: Kamal Bennani <kamal.bennani@aircall.io>
Co-authored-by: Sarah Gerrard <98355961+LadyBluenotes@users.noreply.github.com>
2026-08-12 10:35:50 +02:00
github-actions[bot]
e15bda5c4d
ci: Version Packages (#8040) release-2026-08-12-0839 @tanstack/react-router@1.170.26 @tanstack/react-start-client@1.168.24 @tanstack/react-start-rsc@0.1.42 @tanstack/react-start-server@1.167.31 @tanstack/react-start@1.168.43 @tanstack/router-cli@1.167.28 @tanstack/router-core@1.171.22 @tanstack/router-generator@1.167.28 @tanstack/router-plugin@1.168.30 @tanstack/router-vite-plugin@1.167.30 @tanstack/solid-router@1.170.25 @tanstack/solid-start-client@1.168.24 @tanstack/solid-start-server@1.167.31 @tanstack/solid-start@1.168.42 @tanstack/start-client-core@1.170.22 @tanstack/start-plugin-core@1.171.34 @tanstack/start-server-core@1.169.26 @tanstack/start-static-server-functions@1.167.27 @tanstack/start-storage-context@1.167.24 @tanstack/vue-router@1.170.24 @tanstack/vue-start-client@1.167.27 @tanstack/vue-start-server@1.167.31 @tanstack/vue-start@1.168.41
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-08-12 10:33:33 +02:00
Flo
f5007607d6
fix(router): warn when Outlet is rendered in fallback components (#8045) 2026-08-12 09:53:15 +02:00
Flo
aa10b6589e
fix(router): apply preload delay to viewport links (#8044)
* fix(router): apply preload delay to viewport links

* fix(router): cancel delayed viewport preloads on exit

* fix(router): process queued viewport transitions in order

* fix(router): use latest queued viewport state

* refactor(router): inline viewport observer options

* fix(router): stabilize viewport preload timers

* cleaner timeout map key
2026-08-12 09:52:36 +02:00
Flo
1aafca9b45
refactor: remove Link transition state (#8043) 2026-08-12 09:52:10 +02:00
Flo
7e93431ae9
fix(router-core): load-client can cache settled abandoned loader work without preload authority (#8039)
* fix(router-core): load-client can cache settles abandonned loader work without preload authority

* changeset

* update INTERNALS.md
2026-08-11 12:17:44 +02:00
Flo
783f883ac1
ci: migrate CodSpeed to v5 (#8033) 2026-08-10 22:11:29 +02:00