0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
Commit graph

668 commits

Author SHA1 Message Date
github-actions[bot]
69b2205999
ci: Version Packages (pre) (#7894)
ci: changeset release (pre)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-24 19:08:48 +02:00
Manuel Schiller
2d639e1707
Merge branch 'main' into fix-router-core-lane-match-loader 2026-07-24 00:14:25 +02:00
Manuel Schiller
88f366ab8e
chore: migrate to typescript 7 (#7887) 2026-07-23 23:10:51 +02:00
Flo
3a5575627d
test: add regression coverage for existing router behavior (#7886) 2026-07-23 22:13:21 +02:00
Flo
baa18cd913
fix(router): final-review regressions, changeset, and byte recovery (#7883)
* fix(router): final-review regressions, changeset, and byte recovery

Fixes the regressions vs main found in the final review of #7805:

- restore history-subscription cleanup on router provider unmount in all
  three adapters (react returns the unsubscribe unconditionally, solid
  uses onCleanup, vue uses onUnmounted), pinned by new
  transitioner-remount tests — a discarded router could previously keep
  loading on back/forward as a zombie
- same-destination navigations now join the in-flight transaction
  instead of aborting and restarting it (double-click no longer reruns
  loaders); reloads and same-location redirects keep restart semantics
- commitMatches cache retention can no longer resurrect a
  one-generation-old loaderData when a newer committed success exists
  for the same match id
- same-location dedup keeps __tempLocation/__tempKey so masked vs real
  same-href navigations commit their state again

Adds the missing release changeset enumerating the removed/changed
public API with migration hints.

Byte recovery: merges rendered-matches.ts, route-chunks.ts and
hydrate.ts into load-client.ts so the client bundle shares gzip
dictionary context across what were separate module boundaries
(-104..-186 gzip B per start scenario; plain router scenarios remain
net-negative vs main and hydration still tree-shakes out of them).

The solid/vue store-update-count pins were re-adjusted after verifying
the published update sequences are byte-identical: the counts only
shifted because a one-microtask timing change moves the tests'
waitFor-sampled window boundary (5 of 7 counts decreased).

* test(router-devtools-core): keep panel chunk warm-up out of the test budget

The cache-replacement test warmed Vite's lazy transform of
BaseTanStackRouterDevtoolsPanel inside the test body, so on slow CI
runners the transform alone could blow the 5s test timeout (observed at
5.89s). Move the warm-up to a beforeAll with its own generous timeout
and give the test itself explicit headroom. Pre-existing flake on the
lane branch tip, surfaced by this PR's CI being the first to run on it.

* refactor(router-core): extend lane typestate to matches and commits

The lane pipeline already carried phase brands at lane granularity
(Lane<'matched'|'contextualized'|'reduced'|'projected'>); this finishes
the pattern at the two granularities it was missing, at zero runtime
cost (all emitted dist JS verified byte-identical):

- settleInto becomes the sole granter of a SettledMatch brand via an
  assertion signature, and cacheLoaderMatch requires it — the
  loader -> settle -> cache ordering is now compiler-enforced. The one
  legitimate phase jump (hydration cache-seeding of already-settled
  dehydrated data) is a single named, commented boundary cast.
- commitMatches/commitRefreshMatches only accept a projected lane's
  matches (LaneMatches<'projected'>), so committing an earlier-phase
  lane no longer compiles.
- LoadTransaction's dev-only refresh triple collapses into one optional
  slot [presentation, handoff?], making a half-armed refresh state
  unrepresentable and shrinking the clear/read sites.
2026-07-23 15:35:11 +02:00
Flo
90a7f3923c
fix(router): address lane loader regressions (#7880)
* fix(router): address lane loader regressions

* perf(router-core): shave asset-prefix bookkeeping bytes

- rename the internal `_dataOnlyAssetEnd` match field to `_assetEnd`:
  property keys survive minification, so the shorter internal name saves
  bytes at every site in every bundle
- reduce the `_getAssetMatches` guard to a presence check: the field is
  only ever set on hydration presentation clones that already satisfy
  the pending/data-only/error-free/not-not-found conditions, and commits
  clear it (invariant documented at the guard)
- clone-then-patch the hydration handoff splice instead of spreading a
  conditional object per element, and drop the unreachable zero guard in
  `_getAssetMatches`

Measured (gzip, vs PR tip): react-router.full -43 B, vue-router.full
-35 B, react-router.minimal -8 B. All unit suites green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(router-devtools): preload lazy panel

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 09:57:37 +02:00
Flo
03a1fde261
perf(router): reduce SSR lane loading overhead (#7875)
* perf(router): reduce SSR lane loading overhead

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-22 08:56:43 +02:00
Flo
1f271022b5
fix(router-core): harden lane loading lifecycle (#7869)
* fix(router-core): harden lane loading lifecycle

* ci: apply automated fixes

* fix(router-core): optimize lane loading followups

* fix(router-core): simplify redirect limit handling

* refactor(router-core): clarify loader state and caches

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-22 00:43:31 +02:00
Flo
423f905df8
fix(router-core): complete lane match loader rewrite (#7858)
* fix(router-core): complete lane match loader rewrite

* fix(router-core): harden match loading lifecycle

* fix(router-core): preserve hydrated context handoff

* bench(memory): accept expected abort errors

* perf(ssr): reduce request cancellation overhead (#7862)
2026-07-20 18:52:47 +02:00
Sheraff
e7322f86da
simplify Transitioner based on having a unique transitioner per router 2026-07-15 15:43:27 +02:00
Sheraff
125b13f4fc
minor byte shave in Match 2026-07-15 13:43:05 +02:00
Sheraff
3ecc24bdb1
update tests 2026-07-14 20:35:11 +02:00
Sheraff
f54bf4bc41
fix #7673 2026-07-14 13:10:50 +02:00
Sheraff
af0f0c742f
tests 2026-07-14 12:45:51 +02:00
Sheraff
3a5687810f
Merge branch 'main' into fix-router-core-lane-match-loader 2026-07-14 00:32:18 +02:00
github-actions[bot]
58c005fcb1
ci: Version Packages (#7811) 2026-07-13 23:31:08 +02:00
Sheraff
fb21a428b0
fix: solid Transitionner unsub cleanup before early return 2026-07-13 17:28:49 +02:00
Sheraff
f4b893487c
fix adoption of server data 2026-07-13 15:13:57 +02:00
Sheraff
ceaa4d26f2
fix: lane match loader rewrite 2026-07-13 09:29:38 +02:00
github-actions[bot]
ecbbd9a8ec
ci: Version Packages (#7676)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-01 23:33:19 +02:00
github-actions[bot]
f23ed0fe73
ci: Version Packages (#7576) 2026-06-17 00:12:54 +02:00
Flo
41e7a24f69
refactor(solid-router): remove unnecessary setTimeout from Match components (#7584) 2026-06-07 23:05:20 +02:00
github-actions[bot]
10a7ff833c
ci: Version Packages (#7563) 2026-06-06 11:49:34 +02:00
github-actions[bot]
996b9bee38
ci: Version Packages (#7561) 2026-06-06 10:45:35 +02:00
github-actions[bot]
65ad9062ea
ci: Version Packages (#7556) 2026-06-06 01:01:21 +02:00
github-actions[bot]
a8647d20a1
ci: Version Packages (#7554) 2026-06-05 22:11:34 +02:00
Ulrich Stark
fee0b58c51
refactor: remove unused dependencies (#7541) 2026-06-04 22:47:41 +02:00
Ulrich Stark
bb99f66a47
refactor: remove unnecessary any assertions (#7542) 2026-06-04 22:12:45 +02:00
github-actions[bot]
7fc7c346dc
ci: Version Packages (#7525)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-06-02 22:50:10 +02:00
github-actions[bot]
0ac831bdf7
ci: Version Packages (#7508) 2026-05-30 02:44:11 +02:00
github-actions[bot]
8b3659143f
ci: Version Packages (#7504)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-29 02:32:18 +02:00
Manuel Schiller
d1997b66d7
fix: fix streaming (#7497) 2026-05-29 02:27:23 +02:00
github-actions[bot]
658c224145
ci: Version Packages (#7478) 2026-05-24 02:15:23 +02:00
Manuel Schiller
51a97a167f
feat(start): support rsbuild iife client output (#7477) 2026-05-24 02:02:05 +02:00
github-actions[bot]
b47b338d15
ci: Version Packages (#7467) 2026-05-21 23:05:25 +02:00
github-actions[bot]
35a7d9cd5a
ci: Version Packages (#7452) 2026-05-20 23:32:04 +02:00
Manuel Schiller
0300f87ec5
fix: fix scroll restoration issues (#7447)
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-05-20 23:12:12 +02:00
github-actions[bot]
254cb8834e
ci: Version Packages (#7435)
ci: changeset release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-05-20 12:00:06 +02:00
Flo
9f6258f23e
chore: update zod to v4.4.3 (#7441)
* chore: update zod to v4.4.3

* fix(start): preserve route path defaults

* fix(examples): resolve zod 4 build failures
2026-05-20 08:41:45 +02:00
Manuel Schiller
5fa9e555f3
feat: deferred hydration (#7362)
* feat: deferred hydration

* fix

* tests

* solid tests

* Changes before error encountered

Agent-Logs-Url: https://github.com/TanStack/router/sessions/5263c469-75c2-4470-bd4c-86f9b43964f4

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

* chore: address hydration review follow-ups

Agent-Logs-Url: https://github.com/TanStack/router/sessions/16e27113-ff01-4de8-aded-b9be9f6dd4ff

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

* fix(start-client-core): correct import order in hydrateStart.ts

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

* chore: remove tracked nx self-healing artifacts

Agent-Logs-Url: https://github.com/TanStack/router/sessions/95750760-1348-437c-8f73-cc45e899003a

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>
Co-authored-by: nx-cloud[bot] <71083854+nx-cloud[bot]@users.noreply.github.com>
Co-authored-by: schiller-manuel <schiller-manuel@users.noreply.github.com>
2026-05-19 18:43:00 +02:00
github-actions[bot]
ee8a6753da
ci: Version Packages (#7423) 2026-05-17 13:43:38 +02:00
github-actions[bot]
d1dc4ae7c0
ci: Version Packages (#7417) 2026-05-16 21:17:56 +02:00
github-actions[bot]
4e42422f28
ci: Version Packages (#7413) 2026-05-16 16:32:00 +02:00
github-actions[bot]
13432ad9ff
ci: Version Packages (#7407) 2026-05-16 00:55:45 +02:00
github-actions[bot]
ae64839145
ci: Version Packages (#7405)
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
github-actions[bot]
ee96e25d14 ci: changeset release 2026-05-05 20:37:25 +00:00
Sarah Gerrard
9902eb4c61
remove old intent artifacts (#7333) 2026-05-03 18:34:20 +02:00
dfedoryshchev
f08ef9db97
chore: fix duplicate "the" typo across router packages (#7323) 2026-05-02 16:38:17 +02:00
github-actions[bot]
2c9f5c0e24 ci: changeset release 2026-05-01 00:07:18 +00:00
github-actions[bot]
dad0ec8f41 ci: changeset release 2026-04-30 17:51:48 +00:00