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

183 commits

Author SHA1 Message Date
Sheraff
f980d8f74c
fix Match SSR error catching behavior 2026-03-11 13:46:00 +01:00
Flo
f1da079763
refactor(solid-router): detached signals finalization registry (#6885) 2026-03-11 12:56:12 +01:00
Flo
ab32d92e67
fix: (slightly) performant href/isActive Link resolution during navigations (#6880) 2026-03-10 22:42:10 +01:00
Sheraff
b289fce844
Merge branch 'main' into refactor-signals 2026-03-09 23:02:07 +01:00
Flo
065e4ec11e
fix(solid-router,vue-router): re-build next location on params,search,hash changes (#6865) 2026-03-09 22:51:44 +01:00
Manuel Schiller
31ed0a9648
fix: don't re-execute stale loaders on unrelated location changes (#6867)
* fix: don't re-execute stale loaders on unrelated location changes

* lint

* remove loaderKeyChanged

* from last

* inline staleMatchShouldReload

* update tests

* add test

* fix

* revert
2026-03-09 20:02:35 +01:00
Flo
9252a5aaa7
refactor: replace package router.state reads with granular stores (#6863) 2026-03-08 18:49:59 +01:00
Flo
dbc1745496
refactor(solid-router): replaceEqualDeep replaces deepEqual and shallo comparison methods (#6861) 2026-03-08 17:45:14 +01:00
Flo
4a410d8e85
refactor(solid-router): replace useMatch __pick with equals (#6849) 2026-03-07 22:06:50 +01:00
Sheraff
39ae29f5d1
lint fix 2026-03-07 16:58:39 +01:00
Flo
cd8158c3df
refactor(solid-router): signals performance 2 (#6843) 2026-03-07 16:21:57 +01:00
Flo
2447a596e7
refactor: solid link perf (#6836) 2026-03-07 14:35:28 +01:00
Flo
3ab801823b
fix: handle weird 'suddenly undefined' useMatch edge-case in solid (#6835) 2026-03-06 18:03:10 +01:00
autofix-ci[bot]
61ff754cf8
ci: apply automated fixes 2026-03-06 12:04:10 +00:00
Sheraff
929ca0c7da
addressing minor QA comments 2026-03-06 13:02:54 +01:00
Sheraff
8145c5cae0
update comment, i understand now 2026-03-05 23:39:32 +01:00
Flo
e394618615
Adapter-injected router stores (no core default) + native Solid stores (#6730) 2026-03-04 22:20:57 +01:00
Manuel Schiller
9c81d5ac57
fix: handle beforeLoad throwing notFound correctly (#6811) 2026-03-04 21:34:28 +01:00
Sheraff
4243c25fc1
Merge branch 'main' into refactor-signals 2026-03-03 12:19:58 +01:00
Flo
f58d457542
fix(react-router,solid-router,vue-router): correct preload triggers for "intent" option (#6747) 2026-02-24 13:48:43 +01:00
Flo
09405b22cc
fix: delay focus intent preload and clear on blur across adapters (#6744) 2026-02-23 23:03:46 +01:00
Flo
9a53a7669b
Merge branch 'main' into refactor-signals 2026-02-23 17:27:53 +01:00
Flo
343f8a8ff9
refactor(router-core,react-router,solid-router,vue-router): Remove long strings from production bundle (#6740) 2026-02-23 17:23:46 +01:00
Manuel Schiller
d6af3a28c3
chore: cleanup unused exports (#6735) 2026-02-23 00:19:06 +01:00
Manuel Schiller
eeb8c5594b
fix: remove router context caching (#6734) 2026-02-22 23:48:33 +01:00
Flo
95c3fe8fc9
Merge branch 'main' into refactor-signals 2026-02-21 20:37:31 +01:00
Ulrich Stark
ad0beaf95b
chore: remove unnecessary type assertions (#6365)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-21 11:29:18 +01:00
Sheraff
759d3f7b87 extract signals into builder function 2026-02-21 00:41:22 +01:00
Sheraff
2c6a321d67 fix solid Match 2026-02-20 14:49:37 +01:00
Sheraff
7c625ab53e fix solid 2026-02-20 13:43:49 +01:00
Sheraff
f81cdf7f91 some stuff 2026-02-20 11:58:30 +01:00
Sheraff
b62b74d8ba useMatch simplification and performance improvement in solid and vue 2026-02-20 08:15:58 +01:00
Sheraff
e3ba0a94b9 fix perf regression 2026-02-19 19:38:28 +01:00
Sheraff
865a601df4 WIP signals refactor 2026-02-19 13:06:25 +01:00
Flo
6ddb5867cc
feat(router-core, react-router, solid-router, vue-router): isDangerousProtocol uses customizable allowlist (#6542) 2026-02-15 08:04:28 +01:00
nikuscs
fb139e8c70
fix: preserve data script content during client hydration (#6653)
* fix: preserve data script content during client hydration

The Script component renders all <script> tags with empty content on
the client side, then uses useEffect to recreate them via DOM
manipulation. While necessary for executable scripts (they need
document.createElement to trigger execution), this causes data-only
scripts like application/ld+json to briefly flash empty during
hydration.

Per the HTML spec, any script with a type that isn't a JavaScript MIME
type or "module" is a "data block" that the browser never executes.
These can safely render their content directly via innerHTML on both
server and client, just like <style> tags already do in the same file.

Changes across react-router, solid-router, and vue-router:
- Detect non-executable script types via the type attribute
- Early-return in the client-side effect for data scripts
- Render data script content directly instead of emptying it

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-02-14 02:08:07 +01:00
Birk Skyum
641720f969
perf: revert to Response, and add docs regarding for FastResponse (#6618) 2026-02-09 14:06:44 +01:00
Birk Skyum
7927dcd329
perf(start): use FastResponse from srvx (#6616) 2026-02-08 21:06:21 +01:00
huseeiin
a90d46418b
perf(solid-start): use srvx FastResponse (#6615)
* perf(solid-start): 51% improvement

* patch response

* install srvx

* import order

---------

Co-authored-by: Birk Skyum <birk.skyum@pm.me>
2026-02-08 15:09:08 +01:00
Nico Lynzaad
972d347b8e
fix(solid-start): make Link active class reactive for include hash (#6607)
solid-start: make Link active class reactive for include hash
2026-02-07 04:06:41 +02:00
hokkyss
0f41a3c647
fix: re-export SerializableExtensions in react-router (#6536)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-30 23:13:04 +01:00
Manuel Schiller
8f525a80a6
performance: no reactivity on the server (#6497)
* performance: don't use `replaceEqualDeep` on the server

* performance: do not subscribe to store on the server

* lint

* simple store on the server

* vue + solid
2026-01-25 02:34:39 +01:00
Manuel Schiller
0fc75f29e4
fix: re-export correctly (#6489)
* fix: re-export correctly

* fix

* fix

* lint
2026-01-24 17:55:28 +01:00
Flo
cfbbcd556c
refactor(router-core): skip URL constructor in buildLocation (#6447) 2026-01-24 11:42:55 +01:00
Manuel Schiller
e79ad7e052
feat: add isServer (#4648)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-24 11:28:54 +01:00
Flo
f054c0c921
fix: revert "refactor: don't reparse upon navigation (#6398)" (#6468)
Revert "refactor: don't reparse upon navigation (#6398)"

This reverts commit 6cbd96e357.
2026-01-23 16:50:10 +01:00
Flo
ef3486cd63
fix(solid-router): skip URL parsing for safe 'to' props (#6453) 2026-01-22 18:04:07 +01:00
Nico Lynzaad
60a30fc59a
fix(react-start): Apply Link active properties correctly on SSR when including hash (#6421)
* react: fix link active hash reactivity on SSR

* update and align tests

* remove unnecessary change

* better address react re-renders and update tests

* add tests for vue

* react: add comment on reason for useSyncExternalStore usage

* solid: revert prior fix and update tests

* react: revert unnecessary change

* react: use useHydrated

* react: cleanup
2026-01-22 00:55:28 +02:00
Manuel Schiller
6cbd96e357
refactor: don't reparse upon navigation (#6398) 2026-01-19 23:00:21 +01:00
Nico Lynzaad
3da0227067
fix: encoded url hash fragment matching (#6416)
* decode hash

* ci: apply automated fixes

* cleanup

* revert change to basic-rsc

* add note in docs about hash fragment

* ci: apply automated fixes

* code rabbit suggestion

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-19 16:39:48 +02:00