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

1,822 commits

Author SHA1 Message Date
Manuel Schiller
ebc76a9329 createStart 2025-09-14 15:33:19 +02:00
Tanner Linsley
65dcb0cf0c kinda works 2025-09-09 23:14:59 -06:00
Tanner Linsley
bb1c098de2 fix: types 2025-09-05 11:47:31 -06:00
Tanner Linsley
38f51b46be check 2025-09-05 01:22:42 +02:00
Tanner Linsley
fc5fb72e03 check 2025-09-05 01:22:42 +02:00
Tanner Linsley
52f31b7b01 init 2025-09-05 01:22:42 +02:00
Tanner Linsley
92c214c77a release: v1.132.0-alpha.16 2025-09-04 19:55:43 +00:00
Tanner Linsley
379ca0c451 release: v1.132.0-alpha.15 2025-09-03 21:12:15 +00:00
Manuel Schiller
983ff87b20
feat: url rewrites (#5058)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-09-03 23:10:33 +02:00
Tanner Linsley
852b50fdf7 release: v1.132.0-alpha.13 2025-08-31 21:26:18 +00:00
Nico Lynzaad
2356eff3ad merge #5037 into alpha 2025-08-31 14:19:20 +02:00
Tanner Linsley
83962e53b5 release: v1.132.0-alpha.12 2025-08-31 01:01:12 +00:00
Tanner Linsley
840d2802b0 release: v1.132.0-alpha.8 2025-08-28 22:53:41 +00:00
chorobin
581f1e56a6 tests and examples fixed 2025-08-28 23:07:23 +02:00
chorobin
568c485ef0 tests and linting 2025-08-28 00:15:27 +02:00
chorobin
c145e397d8 serialization pls 2025-08-28 00:02:09 +02:00
Nico Lynzaad
d56aa42a8a Merge branch 'relative-routing-to-current-location' into alpha 2025-08-26 23:45:03 +02:00
Tanner Linsley
7c40453eeb Revert "Revert "fix: do not pre-decodeURI before passing to createMemoryHistory (#4893)""
This reverts commit af0cd986c2.
2025-08-26 10:45:57 -06:00
Nico Lynzaad
508ee37b27 Merge branch 'main' into relative-routing-to-current-location 2025-08-26 17:19:58 +02:00
chorobin
b54d056109 "serialization rulez" second attempt 2025-08-24 23:24:19 +02:00
chorobin
9a4efc61ec "serialization rulez" 2025-08-24 23:00:07 +02:00
Flo
9cc216b41c
test(react-router): add more variants to store-updates test (#5019)
Add a few more setup configurations to measure the number of `__store`
updates:
- with caching (`staleTime > 0`)
- when preloading multiple times the same route (simulates hovering a
list of links to the same page w/ different params)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-23 16:26:36 +02:00
Tanner Linsley
517ab4aa38 release: v1.132.0-alpha.4 2025-08-22 04:11:45 +00:00
Manuel Schiller
a1f37a8589 allow dynamic scrollRestoration config 2025-08-21 20:11:28 +02:00
Manuel Schiller
22ad997f1e fix ScriptOnce to cleanup after itself 2025-08-21 20:07:35 +02:00
Manuel Schiller
c3258bfbae fix: scroll restoration on the server 2025-08-21 20:07:35 +02:00
Tanner Linsley
6524f53e3c release: v1.132.0-alpha.3 2025-08-20 17:10:11 +00:00
Manuel Schiller
7f0cc200a6 Merge remote-tracking branch 'origin/custom-transformers' into HEAD 2025-08-20 19:04:46 +02:00
Manuel Schiller
1ab8d26826 Merge remote-tracking branch 'origin/main' into HEAD 2025-08-20 18:32:40 +02:00
Nico Lynzaad
3e664620d6 resolve test failure 2025-08-20 01:42:00 +02:00
autofix-ci[bot]
9c4606045b
ci: apply automated fixes 2025-08-19 23:01:27 +00:00
Nico Lynzaad
29dfcf9b6e refactor based on coderabbit recommendations 2025-08-20 01:00:28 +02:00
autofix-ci[bot]
3d93911259
ci: apply automated fixes 2025-08-19 20:18:46 +00:00
Nico Lynzaad
ab6f27b83b rersolve inconsistency between solid and react implementation 2025-08-19 22:16:41 +02:00
Nico Lynzaad
41481f760a Merge branch 'main' into relative-routing-to-current-location 2025-08-19 12:39:04 +02:00
Flo
3f05c0b16b
test(router-core): fix flakiness of store-updates 'preload then navigate' test (#4995)
It turns out the 'hover preload, then navigate, w/ async loaders' test
in
`packages/react-router/tests/store-updates-during-navigation.test.tsx`
was sometimes (but very rarely) yielding 16 updates instead of the
expected 15. This PR makes minimal changes to this test so that it's now
reliably 14.

I'm not exactly sure where we lost that 1 update, so we might not be
measuring exactly the same thing. But it's still worth it to have a
robust test suite.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Tests**
* Improved reliability of hover preloading and navigation behavior tests
by introducing realistic loader delays and aligning interaction timing,
reducing flakiness.
* Updated assertions for store updates during navigation to reflect
observed behavior, ensuring more stable and predictable test outcomes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-08-19 09:18:47 +02:00
Tanner Linsley
83ab17331b release: v1.131.27 2025-08-19 06:53:58 +00:00
Flo
a7504ae79e
refactor(router-core): simplify defaultParseSearch & defaultStringifySearch (#4985)
Wait for this PR before merging:
https://github.com/TanStack/router/pull/4987. It adds unit tests that
should help make sure we're not breaking anything here.

--- 

The functions used to serialize and deserialize search params are called
*a lot*, but they are creating many unnecessary objects. This PR
refactors
- `encode` to be only as generic as what we need => in practice we only
need to handle 1 value per key (i.e. `.set()` and not `.append()`) so we
don't need a special case for arrays
- `decode` can avoid creating many arrays
- `stringifySearchWith` (and `defaultStringifySearch`) don't need to
pre-stringify the input into a `<string,string>` dictionary as `encode`
now accepts a stringifier function


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- Breaking Changes
- Removed encode and decode from React Router and Solid Router public
exports.
  - Query string prefix support removed in encode/decode.
- Refactor
- Updated query string handling: arrays encode as comma-separated
values; duplicate keys decode into arrays.
- Streamlined error handling and avoided input mutation; consistent
leading “?” management.
- Tests
- Updated tests to match new encoding/decoding behavior and removed
prefix-related cases.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-19 08:42:53 +02:00
autofix-ci[bot]
452f876729
ci: apply automated fixes 2025-08-19 03:32:37 +00:00
Nico Lynzaad
d3391ea501 Merge branch 'main' into relative-routing-to-current-location 2025-08-19 03:37:00 +02:00
Nico Lynzaad
de884b8e97 consolidate from logic 2025-08-19 03:34:31 +02:00
Nico Lynzaad
8f41f218f5 cleanup tests 2025-08-19 00:12:47 +02:00
Manuel Schiller
43c01fb9d2 rename 2025-08-18 19:37:35 +02:00
Tanner Linsley
f2190d77ba release: v1.131.26 2025-08-18 07:56:53 +00:00
Manuel Schiller
a75e1913bf custom transformers 2025-08-18 00:52:23 +02:00
autofix-ci[bot]
ad7eea5006
ci: apply automated fixes 2025-08-17 22:12:12 +00:00
Nico Lynzaad
0ae150e41e reactivity and code cleanup 2025-08-18 00:10:32 +02:00
autofix-ci[bot]
723540c4c1
ci: apply automated fixes 2025-08-17 20:12:41 +00:00
Nico Lynzaad
983b7cee5c Merge branch 'main' into relative-routing-to-current-location 2025-08-17 22:10:55 +02:00
Nico Lynzaad
0c9b67a0fb apply code rabbit suggestions 2025-08-17 22:06:44 +02:00