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

6,683 commits

Author SHA1 Message Date
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
Tom Ballinger
02f934c643
docs: Warn against DOM-rendering elements in Wrap and InnerWrap (#2017)
* Warn against DOM-rendering elements in Wrap and InnerWrap

* update docs

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-25 20:20:15 +02:00
Manuel Schiller
f7c74bc2d9
tests: consolidate duplicate tests (#2022) 2024-07-25 00:13:43 +02:00
Tanner Linsley
a7296947db release: v1.45.10 v1.45.10 2024-07-24 21:34:19 +00:00
Manuel Schiller
dadc0ebc95
fix: correctly resolve paths when basepath is set (#2021)
fixes #2019
2024-07-24 23:33:19 +02:00
Tanner Linsley
a8970eaccb release: v1.45.9 v1.45.9 2024-07-24 21:03:01 +00:00
Manuel Schiller
b212862c22
fix: correct typing for Route.useNavigate (#1940) 2024-07-24 23:01:49 +02:00
Tom Ballinger
789c4660ef
docs: add more installation details to getting started with TanStack Start guide (#2016)
* Add details to getting started with Start.

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-07-24 18:22:15 +12:00
Baqir Khan
2c5452e8fa
docs: typos in the "data loading" and "deferred data loading" guides (#2015)
* Fix minor typo in data loading docs

* Fix typo in deferred data loading
2024-07-24 13:22:20 +12:00
Lachlan Collins
086af9902d
ci: enable renovate automerge, pin actions (#2012)
* ci: enable renovate automerge, pin actions

* Remove test:format from Nx

* Use config@main

* Simplify publish.js

* Remove prettier from Nx
2024-07-23 11:13:39 +10:00
Sean Cassiere
eece47d155
chore: prettier and the start-basic example to ignore the "test-results" folder (#2013)
* chore(examples): gitignore the test-results folder

* chore(workspace): prettierignore the test-results folder
2024-07-23 13:04:47 +12:00
Tanner Linsley
6d2a39e190 release: v1.45.8 v1.45.8 2024-07-23 00:48:37 +00:00
Sean Cassiere
63018c2242
fix(start): expose "vercel" and "netlify" as target deployment presets (#2002)
* expose netlify as a deployment option

* add "cloudflare-pages" as an option

* add "static" as a deployment option

* add route pre-rendering

* add "node" as an option

* whoops put this back in

* correctly label the comments

* warn the user when using a problematic deployment preset
2024-07-23 12:46:37 +12:00
renovate[bot]
a8d50aceec
chore(deps): update all non-major dependencies (#2004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-23 00:12:17 +10:00
dli9431
7087c4bb01
docs: typo in an import statement within the code-splitting guide (#2005)
typo on import
2024-07-22 19:51:48 +12:00
Tanner Linsley
7de7ede6dc release: v1.45.7 v1.45.7 2024-07-21 20:44:13 +00:00
Sean Cassiere
ac439bdef1
fix(router-generator): parse the experimental flags at the generator (#2001)
* fix(router-generator): experimental flags to be inheritted from the router-generator

* fix(router-cli): patch to work with new getConfig function

* fix(router-plugin): patch to work with new getConfig function

* fix(start): patch to work with new getConfig function
2024-07-22 08:42:44 +12:00
Sean Cassiere
b5eabe19f5
docs: native markdown relative hyperlinks (#1998)
* docs: reference docs

* docs: guides

* docs: top-level

* docs: missed the route-trees

* docs: fixing routing-concepts
2024-07-20 18:23:45 +12:00
Sean Cassiere
7c0133b74e
docs: remove component as a supported throw area for the notFound utility (#1997) 2024-07-20 17:15:28 +12:00
Lachlan Collins
d35a6cdfcf
ci: Add autofix.yml (#1991) 2024-07-19 19:32:00 +10:00
Sean Cassiere
66c9dcd349
test(examples): add e2e testing to ensure the basic examples work across releases (#1990)
* test(examples): add e2e to basic

* test(examples): add e2e to basic-file-based

* test(examples): add e2e to basic-react-query

* test(examples): add e2e to basic-react-query-file-based

* chore(examples): delete the test-results folder and content

* chore(examples): update gitignores
2024-07-19 16:09:11 +12:00
Sean Cassiere
c5e6ae3a6a
ci: use distributed Nx agents for e2e tests (#1987)
* workflow

* nx

* scripts

* remove replay script

* - replay

* - dotenv

* style(examples): eslint sorting

* Update nx.json

* add playwright to root

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-07-19 13:44:42 +10:00
Sean Cassiere
e3450ebd4f
test(react-router): cleanup the todo in routeContext.test.tsx (#1989) 2024-07-19 14:40:59 +12:00
Sean Cassiere
b109ce5ae7
test(react-router): correct usage of act and waitFor (#1986)
* test(react-router): reduce `act` and `waitFor`

* test: remove unncessary waitFor

* test(react-router): remove waitFor and act

* test(react-router): act and waitFor

* loaders

* link.test.tsx
2024-07-19 10:42:40 +12:00
Sean Cassiere
7ad94a5021
test(react-router): correct use act in routeContext.test.tsx (#1985)
* test(react-router): correct use `act` in `routeContext.test.tsx`

* test(react-router): another removal

* test(react-router): reduce `act` on `fireEvent`
2024-07-19 09:48:09 +12:00
Sean Cassiere
99a0820853
test(react-router): active state for <Link> is correct when a search parameter value is set to undefined (#1969)
* fix(react-router): add util to remove undefined values in objects

* test(react-router): add test cases to make sure the util works

* test(react-router): import sorting

* test(react-router): check the search params with the value undefined

* fix(react-router): fix the active/inactive states being wrong when a search value is set to `undefined`

* chore(react-router): remove unused `useMatch` import in `link.tsx`

* test(react-router): better naming of the index exact link selector

* refactor(react-router): `deepEqual` to use `deepRemoveUndefinedFromObject` under the hood

* fix(react-router): handling null in the `deepRemoveUndefinedFromObject` function

* test(react-router): expanding the test-suite for `deepRemoveUndefinedFromObject`

* fix(react-router): remove that typeof check I added

* test(react-router): amend the tests from #1975

* refactor(react-router): remove `deepRemoveUndefinedFromObject`
2024-07-19 09:05:06 +12:00
Tanner Linsley
2212a540a4 release: v1.45.6 v1.45.6 2024-07-18 20:52:26 +00:00
Manuel Schiller
522bc12a3f
fix(react-router): deepEqual correctly handles undefined properties (#1984) 2024-07-19 08:48:59 +12:00
Tanner Linsley
adea0c2e2b release: v1.45.5 v1.45.5 2024-07-18 18:52:43 +00:00