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

6,628 commits

Author SHA1 Message Date
Tanner Linsley
2862eaaf8d fix: use jsesc for dehydrated data 2024-03-21 23:07:00 -06:00
Tanner Linsley
a542861cf4 release: v1.22.0 v1.22.0 2024-03-21 10:26:37 +00:00
Dominik Dorfmeister
8d9ad6dec9
feat: add useNavigate to RouteApi (#1350) 2024-03-21 11:25:28 +01:00
Tanner Linsley
bc4d3c71a0 release: v1.21.1 v1.21.1 2024-03-21 09:08:08 +00:00
Dominik Dorfmeister
a96713532c
fix: make sure useMatch errors with a better error message (#1345)
* fix(react): make sure useMatch errors with a proper message when using `strict`

before this fix, it was dying with a ReferenceError when accessing match!.route

* refactor(react): build `useParams` on top of `useMatch`

so that we get the same error reporting from useMatch

* fix: more generic error message
2024-03-21 10:07:02 +01:00
Tanner Linsley
a6b7cfef53 release: v1.21.0 v1.21.0 2024-03-20 21:40:48 +00:00
Christopher Horobin
e8aef4e868
tests: add basic type tests for Link (#1346) 2024-03-20 15:37:55 -06:00
Tanner Linsley
3bf1bef84e feat: move createServerFn to react-router-server, add headers to redirects 2024-03-20 15:36:23 -06:00
Tanner Linsley
98f6dfc9a7 release: v1.20.6 v1.20.6 2024-03-20 21:31:11 +00:00
Tanner Linsley
b0dbc36eac fix: bring back abort controller
Fixes #1339
2024-03-20 15:27:58 -06:00
Tanner Linsley
4b443d04db release: v1.20.5 v1.20.5 2024-03-20 05:53:13 +00:00
Christopher Horobin
67e6aafab4
fix: allow '..' aswell as string for Link (#1340)
* fix: allow '..' aswell as string for Link

* fix: type error in react router
2024-03-20 06:52:01 +01:00
Sean Cassiere
f84848f5a1
test(router-generator): add tests to check the generated output of the router-generator (#1337)
* chore: ignore the `*.gen.ts` outputs from the `tests` folder in `packges/router-generator`

* chore: add the test script

* test: add tests for 'single-level' routing

* test: add tests for 'flat' routing

* test: amend the 'flat' routing test to include a `route`-level config

* test: add tests for 'nested' routing

* test: match the dir structure between the 'flat' and 'nested' test cases

* test: add tests for complex 'nested-layouts' routing

* chore: disable logging from the `router-generator` package when testing

* chore: space that wasn't supposed to be there

* test: use `routeTree.expected.ts` for storing the expected outputs

* chore: remove comment

* test: run all the generator tests against all its subfolders
2024-03-19 13:09:58 +01:00
Tanner Linsley
b09caf4b5e release: v1.20.4 v1.20.4 2024-03-19 08:45:34 +00:00
Christopher Horobin
195fc8dacc
fix: allow 'to' to be a string (#1334) 2024-03-19 09:43:30 +01:00
Tanner Linsley
0b6c5ad6ad release: v1.20.3 v1.20.3 2024-03-19 08:21:52 +00:00
Sean Cassiere
b8c6fd0236
fix(router-devtools): non-nested usage of TanStackRouterDevtools and missing context with the usage of TanStackRouterDevtoolsPanel (#1336)
* fix: `<TanStackRouterDevtools>` not working when not nested in `<RouterProvider>`

the `<TanStackRouterDevtools` component threw errors when it wasn't rendered inside the `<RouterProvider>` due to some of its calls that relied on this nesting.

* fix: `<TanStackRouterDevtoolsPanel>` not working because of the reliance on `DevtoolsOnCloseContext`

the `<TanStackRouterDevtoolsPanel>` component threw errors on render due to its reliance on the `DevtoolsOnCloseContext` which it wasn't wrapped with
2024-03-19 09:20:44 +01:00
Tanner Linsley
b016d32dd6 release: v1.20.2 v1.20.2 2024-03-18 10:00:27 +00:00
kinqdos
c636b5ce60
fix: root path to line up with router-generator (#1259) 2024-03-18 10:58:25 +01:00
Tanner Linsley
5f97b660e8 release: v1.20.1 v1.20.1 2024-03-17 05:41:46 +00:00
Christopher Horobin
de79ca3083
fix: improve performance of Link when navigating to unique routes (#1326) 2024-03-17 06:40:40 +01:00
Tanner Linsley
3ab40f98c0 release: v1.20.0 v1.20.0 2024-03-15 11:28:18 +00:00
Manuel Schiller
e35e72e4de chore: fix lockfile 2024-03-15 12:24:07 +01:00
Ryan Staniforth
8aee08b530
fix: Type error when passing props to Link via destructured LinkProps. (#1316)
* fix: Type error when passing props to Link via destructed LinkOptions.

* Swap LinkOptions for LinkProps.

* Rename variable.
2024-03-15 12:20:07 +01:00
GoldFrosch
03f82c6bb2
feat: add routeFileIgnorePattern option to generator (#1310) 2024-03-15 12:17:07 +01:00
Tanner Linsley
dfe1e0f313 release: v1.19.15 v1.19.15 2024-03-14 19:57:30 +00:00
Nirjhor Nath
b0619d58ac
fix: add to path when syncing url (#1314) 2024-03-14 20:56:16 +01:00
Tanner Linsley
9a7b568249 release: v1.19.14 v1.19.14 2024-03-14 18:38:12 +00:00
Ryan Staniforth
af2b7dcbcc
fix: Fix Link children type when passing a function. (#1307) 2024-03-14 12:36:28 -06:00
Christopher Horobin
5b64be47d3
examples: add example to generate large routes for typescript diagnostics (#1308)
* chore: add large file based routing example to test peformance

- ensure each Link points to a different route to make test realistic
- support absolute and relative pathing for now

* chore: remove posts

* chore: update pnpm lock file

* chore: rename to relative and absolute

* chore: add content to README
2024-03-14 19:07:03 +01:00
Tanner Linsley
443ead202d release: v1.19.13 v1.19.13 2024-03-13 17:04:32 +00:00
Nirjhor Nath
ff47268e2f
fix: use transformer to parse data (#1306) 2024-03-13 18:03:18 +01:00
thomas-ndlss
9920aab9e1
chore: fix formatting issue on router provider (#1305)
Co-authored-by: Thomas ACCHIARDO <thomas.acchiardo@bigbagngo.com>
2024-03-13 10:43:49 +01:00
Tanner Linsley
f7b04a3797 release: v1.19.12 v1.19.12 2024-03-12 23:39:36 +00:00
Nirjhor Nath
cafae10557
fix: don't hydrate assets for notFound or redirected matches (#1303) 2024-03-12 17:37:21 -06:00
Rui Saraiva
89bacc3341
docs: fix TanStack & TypeScript typos (#1291)
* docs: fix TanStack & TypeScript typos

* docs: fix TanStack & TypeScript typos

---------

Co-authored-by: Rui Saraiva <ruisaraiva@mbp-14.lan>
2024-03-12 22:41:15 +01:00
Tanner Linsley
e60c016d69 release: v1.19.11 v1.19.11 2024-03-12 20:44:15 +00:00
Tanner Linsley
091c00cb40 fix: force release 2024-03-12 14:42:33 -06:00
thomas-ndlss
d988fb7821
(fix) routers - update url search params according to validate search (#1293)
Co-authored-by: Thomas ACCHIARDO <thomas.acchiardo@bigbagngo.com>
2024-03-12 14:41:21 -06:00
Tanner Linsley
0c7bdf4c24 release: v1.19.10 v1.19.10 2024-03-12 20:29:16 +00:00
Nirjhor Nath
a4f0f5681a
fix: deserialize notFound errors (#1300)
* fix: deserialize notFound errors

* chore: format
2024-03-12 21:27:42 +01:00
Efstratios Bektasiadis
74f570832e
docs: fixed broken authenticated routes example url (#1298) 2024-03-12 21:17:58 +01:00
Doug Richar
7b2b155d43
docs: fix router.invalidate() example in Data Mutations guide (#1299) 2024-03-12 21:16:40 +01:00
Tanner Linsley
930b027717 release: v1.19.9 v1.19.9 2024-03-12 17:07:10 +00:00
Tanner Linsley
3cde4c01ff fix: redirects
Fixes #1295
2024-03-12 11:04:13 -06:00
Lachlan Collins
7995d0a123
docs: Update docs/config.json (#1294)
* docs: Update docs/config.json

* Update schema
2024-03-12 20:42:45 +11:00
Tanner Linsley
7a18e00580 release: v1.19.8 v1.19.8 2024-03-12 07:05:47 +00:00
Tanner Linsley
d73ee82566 fix: default strict:false for getRouteApi instances 2024-03-12 01:01:59 -06:00
Tanner Linsley
d64f0c00de fix: ResolvedRedirect 2024-03-12 01:01:59 -06:00
Tanner Linsley
0629fe0c5f release: v1.19.7 v1.19.7 2024-03-11 22:52:32 +00:00