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

6,711 commits

Author SHA1 Message Date
Sagar Dwivedi
fa1bd0d3bc
docs: add installation commands for all package managers (#2099)
* docs: add command to install using bun

* added support for all package manager

* added support for all package manager in quick-start.md
2024-08-07 20:30:11 +12:00
Tanner Linsley
462e7df867 release: v1.46.8 v1.46.8 2024-08-07 07:32:10 +00:00
Sean Cassiere
703ce9e357
fix(react-router): set a default transformer during router instantiation when not supplied (#2097)
* test: check for the transformer functions

* fix(react-router): set a default transformer during router instantiation

* chore: remove the `.only` call during tests
2024-08-07 19:30:47 +12:00
Sean Cassiere
2423d02ce2
docs: remove the invalid context and location arguments from being shown as "available" in the loaderDeps route method (#2091) 2024-08-06 20:18:17 +12:00
Tanner Linsley
43d92007d0 release: v1.46.7 v1.46.7 2024-08-06 08:08:17 +00:00
Sean Cassiere
cc4da69c15
fix(react-router): use routeId to stabilize the memoized route component to prevent from remounting when on the same route (#2090)
* fix(react-router): stabilize the memoized route component remounting when on the same route by using `routeId` as the key instead of `matchId`

* test: add a check to make sure we do not regress this change in the future

* chore: clean up the weird import that was bothering eslint
2024-08-06 20:06:04 +12:00
Tanner Linsley
6ae3c7016a release: v1.46.6 v1.46.6 2024-08-06 00:14:56 +00:00
Sean Cassiere
c3cfd953b8
fix(react-router): activeProps and inactiveProps on Link to accept data-attributes (#2088)
* types: `activeProps` and `inactiveProps` on `Link` to accept data-attributes

* test: cleanup imports
2024-08-06 12:13:57 +12:00
renovate[bot]
8a994d2cdf
chore(deps): update all non-major dependencies (#2083)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 03:22:28 +00:00
Tanner Linsley
4d465a87ed release: v1.46.5 v1.46.5 2024-08-04 00:17:30 +00:00
Leonardo Montini
00fb02c8a1
fix(router-devtools): align right masked path (#2080) 2024-08-04 02:13:45 +02:00
Tanner Linsley
7d6ebcf5f0 release: v1.46.4 v1.46.4 2024-08-03 09:59:22 +00:00
Honza Hrubý
dc12274fd8
fix(react-router): enforcing the types for staticData in on the createFileRoute function (#2074)
Resolves #1978
2024-08-03 21:55:48 +12:00
Tanner Linsley
18e89603db release: v1.46.3 v1.46.3 2024-08-02 16:22:33 +00:00
Manuel Schiller
07190f9c25
fix(react-router): update match in effect instead of during render (#2075)
* fix(react-router): update match in effect instead of during render

fixes #2031
fixes #2053
2024-08-02 18:21:02 +02:00
Tanner Linsley
1962e7d5df release: v1.46.2 v1.46.2 2024-08-02 05:03:43 +00:00
Sean Cassiere
af354295b1
refactor(react-router): better API surface for the useIntersectionObserver hook (#2073)
The previous interface for the useIntersectionObserver hook didn't account for the fact that the two important parts of the hook was to accept a `ref` and a `callback`. This also lets the `intersectionObserverOptions` and `options` truly be _optional_.
2024-08-02 17:02:40 +12:00
Tanner Linsley
159d81cd33 release: v1.46.1 v1.46.1 2024-08-02 00:26:22 +00:00
Tom Ballinger
19838f8959
fix(react-router-with-query): accept queryKeyHashFn from _experimental_beforeQuery and add Convex DB example (#1988)
* Add a Convex database trellaux example

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-02 12:21:47 +12:00
Sean Cassiere
84f4076cd9
chore: cleanup the old with-trpc and with-framer-motion examples (#2068)
* chore: fixup the example

* chore: rename from `wip-with-framer-motion` to `with-framer-motion`

* chore: remove the `wip-with-bling` example

* chore: remove the `wip-waku-rsc` example

* chore: fixup the `with-trpc` example

* chore: remove the `kitchen-sink-react-query` example

* Revert "chore: remove the `kitchen-sink-react-query` example"

This reverts commit 2fd8af97ad.
2024-08-01 12:09:23 +12:00
Tanner Linsley
87ece2466d release: v1.46.0 v1.46.0 2024-07-31 22:49:11 +00:00
Sean Cassiere
84605c035c
feat(react-router): support for preload='viewport' (#2062)
* feat(react-router): expand the types to allow the preload setting of "viewport"

* feat(react-router): add the `useIntersectionObserver` and `useForwardedRef` hooks

* feat(react-router): add the configuration to use `preload='viewport'`

* chore(react-router): cleanup `console.log`

* chore(react-router): types I can be happy with

* refactor(react-router): make the `useIntersectionObserver` hook testing compatible

* test(react-router): testing for preload='viewport'

* test(react-router): move the `IntersectionObserver` mock into the utils

* docs: update the preloading guide

* docs: api reference

* chore: apply suggestions from code review
2024-08-01 10:48:06 +12:00
Rijk van Wel
cd21b290af
docs: missing comma in the Start Vinxi scripts (#2067)
* docs: fixed missing comma in Start Vinxi scripts

Also opted to change the `// ...` into a normal comment to avoid confusion.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-01 10:43:10 +12:00
Tanner Linsley
11e39f4d3b release: v1.45.16 v1.45.16 2024-07-31 16:06:38 +00:00
Christopher Horobin
93b148d0f9
fix(react-router): when navigating from a index it route it should resolve to a valid route (#2066) 2024-07-31 18:05:31 +02:00
Loyale
12c10d523a
docs: fix a grammar error in the "code-splitting" guide (#2064) 2024-07-31 23:10:40 +12:00
Tom Ballinger
1c1673206e
examples(start-trellaux): fix re-ordering columns (#2061) 2024-07-31 19:00:21 +12:00
Tanner Linsley
dea126c82a release: v1.45.15 v1.45.15 2024-07-30 20:27:16 +00:00
Leonardo Montini
50045a4e1a
fix: expose unmaskOnReload on createRouteMask (#2060) 2024-07-30 22:23:00 +02:00
Manuel Schiller
08bbb333c2 docs: fix typos 2024-07-30 22:20:26 +02:00
Manuel Schiller
f0794aeea7
docs: link to useRouterState 2024-07-30 20:35:03 +02:00
Manuel Schiller
70148fc2ef
fix formatting in useRouterHook.md 2024-07-30 20:34:42 +02:00
Manuel Schiller
6bbdc7cbee
docs: warn that router.state is not reactive in the useRouter doc 2024-07-30 20:32:50 +02:00
Manuel Schiller
60c346baf0
docs: fix useLoaderDepsHook doc 2024-07-30 20:29:59 +02:00
Manuel Schiller
f5e011cb8f
Update useLoaderDataHook.md 2024-07-30 20:22:57 +02:00
Tanner Linsley
e2cd48537e release: v1.45.14 v1.45.14 2024-07-29 21:31:59 +00:00
Manuel Schiller
06c3a6923d
fix(react-router): memoize Match, MatchInner as well as route components to prevent unnecessary re-renders (#2056) 2024-07-29 23:30:06 +02:00
Tanner Linsley
12ad68f26d release: v1.45.13 v1.45.13 2024-07-29 20:19:15 +00:00
Manuel Schiller
49f413e24e
fix(react-router): correct typing of useLoaderData (#2055) 2024-07-29 22:18:12 +02:00
renovate[bot]
a1438ee99c
chore(deps): update all non-major dependencies (#2051)
* chore(deps): update all non-major dependencies

* Fix typescript-eslint rules

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-29 19:30:05 +10:00
renovate[bot]
18d2efc2bd
chore(deps): update all non-major dependencies (#2047)
* chore(deps): update all non-major dependencies

* Update renovate config

* pnpm dedupe

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-29 12:02:53 +10:00
Sean Cassiere
3f6ffa5a21
test(examples): validation of layout route functionality by running e2e testing on the basic examples (#2042)
* chore: unify the layout ui across all the basic examples

* chore: more unification

* test(examples): e2e validation of layout routes
2024-07-28 00:12:15 +12:00
Sean Cassiere
3b9976d0a8
chore(react-router): cleanup unused imports (#2041)
* chore(react-router): cleanup unused imports

* chore(react-router): explicit exports for the index barrell file
2024-07-27 23:12:11 +12:00
Sean Cassiere
98d95d6c0a
test(react-router): move the SSR redirect tests to the correct test file (#2039)
* test(react-router): move SSR redirect tests to the `redirect.test.tsx` file from `index.test.tsx`

* chore(react-router): make this a dummy file since we may want to grab the commented out tests from here
2024-07-27 20:50:48 +12:00
Sean Cassiere
03b05999c5
docs: cleanup the Reference API page having the hooks being suffixed with (.md) (#2038) 2024-07-27 14:39:58 +12:00
Tanner Linsley
4556d7d887 release: v1.45.12 v1.45.12 2024-07-27 00:31:45 +00:00
Sean Cassiere
8d4c9c8e80
build(react-router-with-query): add @tanstack/react-router-with-query to the publish list (#2037) 2024-07-27 12:30:15 +12:00
Julius Marminge
2c94fa0ee8
fix(router-with-query): do not restrict router context to only queryClient (#2007) 2024-07-27 00:54:15 +02:00
Tanner Linsley
bfba3ede23 release: v1.45.11 v1.45.11 2024-07-26 03:54:21 +00:00
Sean Cassiere
6981a3a711
fix(react-router): retain path parameters that are falsy but still valid (#2027)
* test(react-router): check for falsy values

* test(react-router): interpolatePath

* test(react-router): beef up the link test

* fix(react-router): only strip out `undefined` in the `joinPaths` function
2024-07-26 15:52:56 +12:00