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

6,685 commits

Author SHA1 Message Date
Manuel Schiller
2d0ff561cc
feat(react-router): added router option search.strict (#2552)
Configures how unknown search params (= not returned by any `validateSearch`) are treated.
2024-10-16 18:27:52 +02:00
Tanner Linsley
c2fe66db93 release: v1.69.3 v1.69.3 2024-10-16 03:34:43 +00:00
Manuel Schiller
c5da3207b4
fix(start): revert status codes for redirect/not found (#2555) 2024-10-16 05:32:43 +02:00
Tanner Linsley
8536b7396a release: v1.69.2 v1.69.2 2024-10-15 22:31:33 +00:00
Manuel Schiller
77fe390ec3
fix(start): correctly handle custom response status codes (#2553)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-16 00:30:17 +02:00
stevenlyd
ac61e8ee38
test: Add test cases for route id consistency (#2401)
* tweaked the fallback order

* added getLastPathSegment util function

* removed unused import

* added test case for getLastPathSegment()

* trim parent id prefix when creating lazy routes

* added test cases

* removed unused import

* made test case more strict

* use it.each

* Added test for route id uniqueness

* added test cases to check if the option.id for lazyRoute is trimmed

* revert changes, keep only the tests

* removed unused import

---------

Co-authored-by: Yidong Liu <yliu@plexxis.com>
2024-10-15 21:35:04 +02:00
Tanner Linsley
b1abb3629c release: v1.69.1 v1.69.1 2024-10-15 19:32:55 +00:00
Manuel Schiller
8c7f14b15b
fix: correctly handle route groups (#2550)
* fix: correctly handle route groups

do not remove route groups from ids as we need them to ensure uniqueness of ids at runtime.

fixes #2501



---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-15 21:31:38 +02:00
Tanner Linsley
c9298f0ada release: v1.69.0 v1.69.0 2024-10-15 18:44:01 +00:00
Manuel Schiller
86df9e77b0
feat(react-router): allow to retain all search params via retainSearchParams (#2549) 2024-10-15 20:42:46 +02:00
Leonardo Juriolli
d9a97e2693
docs: add missing import for retainSearchParams (#2545) 2024-10-15 01:03:30 +02:00
Tanner Linsley
668fa3c9de release: v1.68.0 v1.68.0 2024-10-14 22:17:21 +00:00
Manuel Schiller
62e4944186
feat(start): expose all customizable vite options (#2544) 2024-10-15 00:12:40 +02:00
Tanner Linsley
f78f6d71bd release: v1.67.0 v1.67.0 2024-10-14 19:30:50 +00:00
Manuel Schiller
a185048697
feat(create-router): support IDE choice (#2530) 2024-10-14 21:26:21 +02:00
Manuel Schiller
60b3f37e32
feat(react-router) add search middleware (#2521)
* feat(react-router) add search middleware

* add `retainSearchParams` middleware

* simplified types

* added docs
2024-10-14 20:34:35 +02:00
Tanner Linsley
f80f719eb7 release: v1.66.1 v1.66.1 2024-10-14 16:28:17 +00:00
Manuel Schiller
de80d2f989
fix(start): eliminate dead code after vinxi's transform for createServerFn (#2542) 2024-10-14 18:25:21 +02:00
Manuel Schiller
5f1fd8f85f
fix(react-router): correctly handle hashes in redirect (#2543)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-14 18:25:13 +02:00
renovate[bot]
b7facfe13d
chore(deps): update all non-major dependencies (#2538)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 08:13:07 +00:00
Tanner Linsley
ed07f048a8 release: v1.66.0 v1.66.0 2024-10-13 11:13:15 +00:00
Manuel Schiller
9637366922
feat(start): expose optimizeDeps config option (#2531) 2024-10-13 13:11:57 +02:00
autofix-ci[bot]
f829d5afa5
ci: apply automated fixes 2024-10-13 06:07:42 +00:00
narangkay
78f3ea1c05
Remove trailing comma to make json happy (#2527) 2024-10-13 08:06:47 +02:00
Tanner Linsley
3cc0c97c86 release: v1.65.0 v1.65.0 2024-10-12 21:15:34 +00:00
Manuel Schiller
d2b28c3b02
feat(generator): check if route configuration contains duplicate paths (#2525) 2024-10-12 23:14:12 +02:00
Manuel Schiller
6b52c3689c docs: remove outdated section 2024-10-12 22:09:33 +02:00
Manuel Schiller
8d3d1091c3
chore: add eslint rule for unused imports (#2523) 2024-10-12 22:06:33 +02:00
Manuel Schiller
cf61cd4e41
chore(start): cleanup dependencies (#2522) 2024-10-12 21:48:37 +02:00
Tanner Linsley
5eb3ae05cd release: v1.64.3 v1.64.3 2024-10-12 16:16:34 +00:00
Manuel Schiller
581bd1dda8
fix(react-router): populate result of validateSearch into URL when navigating (#2518)
fixes #2496
2024-10-12 18:12:32 +02:00
Tanner Linsley
2851c835e8 release: v1.64.2 v1.64.2 2024-10-12 08:44:40 +00:00
Manuel Schiller
05fa363458
perf(react-router): early exit for Link's isActive (#2517) 2024-10-12 10:40:46 +02:00
Tanner Linsley
f106d98ae4 release: v1.64.1 v1.64.1 2024-10-12 08:37:13 +00:00
Manuel Schiller
da102e5bf5
perf(react-router): improve location building performance (#2516) 2024-10-12 10:35:46 +02:00
Bardur
63562e8553
docs: add missing spaces for comments in the installation guide (#2502) 2024-10-10 14:16:22 +13:00
Tanner Linsley
75c048b76e release: v1.64.0 v1.64.0 2024-10-09 20:20:06 +00:00
Manuel Schiller
a82bfa1e11
feat(router-generator): allow virtual file routes without file names (#2500) 2024-10-09 22:17:19 +02:00
Sean Cassiere
ac39caa8db
docs: less disruptive file-based routing guide regarding virtual routes (#2497) 2024-10-09 22:09:05 +13:00
Manuel Schiller
1a714f1346
fix(router-generator): html files per bundler (#2494)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-08 22:57:31 +02:00
Thomas Aunvik
ecd9a17b06
fix(create-router): Specify html template used by rspack (#2493) 2024-10-08 22:20:08 +02:00
Tanner Linsley
5da8c9b1c6 release: v1.63.5 v1.63.5 2024-10-08 19:55:42 +00:00
Manuel Schiller
5888b06eb0
fix(router-generator): do not log emojis when process.env.CI is set (#2492) 2024-10-08 21:53:12 +02:00
Tanner Linsley
7ff37871e6 release: v1.63.4 v1.63.4 2024-10-08 17:52:56 +00:00
Manuel Schiller
d16a5364bf
fix(react-router): only execute context when params or loader deps change (#2482)
* fix(react-router): only execute `context` when params or loader deps change

also do not pass search params into `context`, only `loaderDeps` (in analogy to `loader`)

* fix(eslint-plugin-router): update rule `create-route-property-order` to reflect `context` being dependent on `loaderDeps`

* fix(react-router): only execute `context` when necessary

* add tests
2024-10-08 19:24:18 +02:00
Manuel Schiller
70bce305cc
fix(react-router): do not copy id from lazy route over to non-lazy route (#2490)
fixes #2400
2024-10-08 19:23:41 +02:00
Tanner Linsley
77c1acdcd9 release: v1.63.3 v1.63.3 2024-10-08 09:47:15 +00:00
Miguel O. Carvajal
37b3194098
fix(start): allow specifying vinxi experimental options (#2491) 2024-10-08 22:41:15 +13:00
Tanner Linsley
b361d147b7 release: v1.63.2 v1.63.2 2024-10-07 22:50:39 +00:00
Izzy Chen
5edf465850
fix(react-router): fix matchPathname with basepath (#2443) 2024-10-08 00:46:20 +02:00