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

6,473 commits

Author SHA1 Message Date
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
Christopher Horobin
99f735251f
fix(react-router): use current matches for fromMatches and only build new matches when location overridden (#1968)
* fix: use current matches for `fromMatches` and only build new matches when location overridden

* fix: use current matches for `fromMatches` and only build new matches when location overridden

* style(react-router): prettier on `router.ts`

---------

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-07-18 20:48:57 +02:00
Sean Cassiere
7452f23f22
test(react-router): reducing the React.act warnings during unit tests (#1975)
* test(react-router): loaders

* chore(react-router): act does not need to be awaited here

* test(react-router): createLazyRoute

* test(react-router): useMatch

* test(react-router): add a setupTests file

* test(react-router): router

* test(react-router): renable these tests 😅

* refactor(react-router): move to the waitFor flow

* refactor(react-router): link
2024-07-18 00:16:44 +12:00
Tanner Linsley
da9d52a9e7 release: v1.45.4 v1.45.4 2024-07-16 19:33:12 +00:00
Sean Cassiere
adcdb4cf43
style: prettier across the codebase (#1973) 2024-07-17 07:31:42 +12:00
Tanner Linsley
50aec3fe5b examples: fix trellaux example 2024-07-16 13:01:24 -06:00
Tanner Linsley
65fab472e7 fix: Clear pending timeouts on cancelMatch
Fixes an issue where rapid navigations could cause a pending timeout to fire for an outdated route match and erroneously trigger a pending state on the latest match version.
2024-07-16 12:55:13 -06:00
Tanner Linsley
9cdef82809 fix: useMatchRoute now subscribes to pending and location states
Fixes an issue where the pending option would get stuck and the component or hook parent component would never rerender since it wasn't listening to the pending state or location/resolvedLocation states.
2024-07-16 12:53:41 -06:00
Tanner Linsley
82ef303c9a release: v1.45.3 v1.45.3 2024-07-16 17:35:51 +00:00
Tanner Linsley
3003d986c6
fix(router): fixed a lot of context related issues (#1907) 2024-07-16 19:34:14 +02:00
Sean Cassiere
cd85ca1de1
chore: cleanup styles and eslint errors in the spa examples (#1971)
* style(examples): kitchen sink examples

* style(examples): more kitchen sink examples

* style(examples): basic examples

* style(examples): authenticated routes example

* style(examples): authentication routes example

* style(examples): scroll restoration

* style(examples): navigation blocking

* style(examples): defered data example

* style(examples): location masking example

* style(examples): quickstart examples
2024-07-17 02:28:39 +12:00