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
Tanner Linsley
1f92ff086d release: v1.55.0 v1.55.0 2024-09-05 11:24:03 +00:00
Sean Cassiere
93fb3dfb13
test(router-generator): add tests to the utils (#2270) 2024-09-05 23:22:12 +12:00
SeanCassiere
5f791faae8
docs: linking to the virtual files routes page 2024-09-05 10:03:07 +12:00
Manuel Schiller
72b1eac979
feat: publish virtual-file-routes (#2266) 2024-09-04 23:41:26 +02:00
Tanner Linsley
b15d310fa7 release: v1.54.0 v1.54.0 2024-09-04 21:38:14 +00:00
Manuel Schiller
a941696174
feat(router-generator): custom route tree configuration based on virtual file routes (#2265) 2024-09-04 23:37:02 +02:00
Tanner Linsley
0250d89721 release: v1.53.1 v1.53.1 2024-09-04 09:21:12 +00:00
Binbin
c984aa1e9f
fix(react-router): do not decode already escaped URL path segments (#2261)
Closes #2046
2024-09-04 21:16:43 +12:00
Tanner Linsley
10abfc747c release: v1.53.0 v1.53.0 2024-09-03 21:50:23 +00:00
Sean Cassiere
0d75025bb9
refactor(start): return JSON response when 'content-type' matches (#2259)
* refactor(start): returning a JSON server error when content-type matches

* refactor(start): reuse the isJson stuff
2024-09-04 09:46:30 +12:00
Manuel Schiller
7ffdf93a9e
feat: pass matches into context() and beforeLoad() (#2258)
this will allow typesafe access to the matches so something like this can be done:

```tsx
const leafMatch = c.matches[c.matches.length - 1];
if (leafMatch.fullPath === '/dashboard/invoices/$invoiceId') {
   if (leafMatch.params.invoiceId === '1') {
        throw notFound();
   }
}
```
2024-09-03 23:46:21 +02:00
Tanner Linsley
2e6a54354f release: v1.52.5 v1.52.5 2024-09-03 04:34:48 +00:00
Maciej Garncarski
fe08fb5301
fix(react-router): pendingComponent not rendering with preload='intent' (#2247)
* fix(router): pendingComponent not showing

* remove unused variable

* tests: add test
2024-09-03 06:30:52 +02:00
Luca Lee
82404056ac
docs(react): add missing .md extension to link paths in route-trees.md (#2252) 2024-09-03 04:30:53 +02:00
Luca Lee
ae8c33af5f
docs(react): remove reference to deleted examples in route-trees.md (#2250)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-09-03 11:23:39 +12:00
Luca Lee
12fd81129d
docs(router): fix broken links in route-trees.md and routing-concepts.md (#2249) 2024-09-03 11:20:07 +12:00
NekoChan
f32b01daab
docs(start): fix tsconfig (#2246) 2024-09-03 11:18:28 +12:00
Tanner Linsley
71c5ceae43 release: v1.52.4 v1.52.4 2024-09-02 17:16:43 +00:00
Langa Cristian
17d9885977
fix(react-router): reset error boundary after the new matches are ready (#2244)
* fix(react-router)(issue-2162): reset error boundary after the new matches are ready

* tests: reproducer for #2043

---------

Co-authored-by: Cristian Langa <cristian.langa@flywire.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-09-02 19:12:27 +02:00
Sean Cassiere
bbc5148399
chore: update the issue template to ask for Start or Router (#2242)
* chore: issue template to ask for start or router

* make the selection required

* update the label and description
2024-09-02 08:47:30 +12:00
Tanner Linsley
16ca2ac837 release: v1.52.3 v1.52.3 2024-09-01 06:41:59 +00:00
Manuel Schiller
1e64284b1d
fix(react-router): disable route properties check until HMR bug is fixed (#2240) 2024-09-01 08:40:53 +02:00
Tanner Linsley
01d5efd1c2 release: v1.52.2 v1.52.2 2024-09-01 00:54:32 +00:00
Manuel Schiller
2c93e4bbcf
fix(react-router): if loader is running async for revalidation, do not overwrite isFetching (#2239) 2024-09-01 02:52:59 +02:00
Tanner Linsley
a57398e1c4 release: v1.52.1 v1.52.1 2024-08-31 21:10:34 +00:00
Manuel Schiller
55a272721d
fix(react-router): do not use routeId as key when rendering route component (#2237)
this avoids re-mounting
2024-08-31 23:07:17 +02:00
Tanner Linsley
5340eda583 release: v1.52.0 v1.52.0 2024-08-31 20:40:37 +00:00
Manuel Schiller
6dbe4b0eed
feat(router-generator): allow to customize index and route token (#2203)
* feat(router-generator): allow to customize `index` and `route` token

* semantically validate generator config in a single place

* ci: apply automated fixes

* remove usage of CHECK_USER_FLAGS_TO_BE_CHANGED

* check indexToken / routeToken before determining isLayout status

* use tokens with leading and trailing slashes

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-31 22:36:58 +02:00
Brian
0d77cbf2e3
docs(react): remove duplicated line in overview.md (#2236) 2024-08-31 19:42:51 +02:00
Tanner Linsley
7f51877da0 release: v1.51.9 v1.51.9 2024-08-31 17:39:18 +00:00
Manuel Schiller
e5cfb31a5a
fix(react-router): throw invariant exception when trying to access route properties prior to initialization (#2235)
* fix(react-router): throw invariant exception when trying to access route properties prior to initialization

closes #2231

* remove outdated / commented out tests

* tests for invariants

* do not throw if path is undefined for pathless routes
2024-08-31 19:38:03 +02:00
Tanner Linsley
665e0bf7a6 release: v1.51.8 v1.51.8 2024-08-31 13:37:12 +00:00
kshramt
d39d0fd15a
fix(react-router): decode search keys (#2227)
* fix: Decode search keys

* chore: Add a few more tests for search param key decoding

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-31 15:33:20 +02:00
Tanner Linsley
e945089570 release: v1.51.7 v1.51.7 2024-08-31 05:50:56 +00:00
Manuel Schiller
1504f8d6e7
fix: make stacked navigations use latest search params (#2057)
* tests: failing test to show that parallel navigate calls are not combined

* fix: do not flush immediately in tests

* tests: fix test regression from history change

* fix: Always use the most up to date search params when building URLs

---------

Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
2024-08-31 07:49:37 +02:00
Tom Ballinger
dc40904b44
Update convex version (#2232) 2024-08-30 14:13:34 -06:00
Tanner Linsley
a8703f017d docs: update api-routes and server-function to use vinxi 2024-08-30 10:20:40 -06:00
Lachlan Collins
14477ec3fb
chore(deps): update to @tanstack/config 0.13.1 (#2230) 2024-08-30 19:44:22 +10:00
Lachlan Collins
46534e5b02
chore(deps): use ESLint v9 (#2228) 2024-08-30 18:36:46 +10:00
Tanner Linsley
513408927d release: v1.51.6 v1.51.6 2024-08-29 23:01:07 +00:00
Manuel Schiller
3fb722676e
fix(start): correctly generate .d.ts files (#2225)
* chore: upgrade to latest config version to generate correct .d.ts files

see #2223

* chore: added arethetypeswrong (attw)

since attw will report a node10 related issue we want to ignore (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports) and cannot (yet) be configured to skip node10 (see https://github.com/arethetypeswrong/arethetypeswrong.github.io/issues/112), the `no-resolution` rule is skipped

* fix(start): correctly reference client

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-30 00:59:17 +02:00
Sean Cassiere
0948389a78
chore: fix start-basic-auth example to pass playwright test (#2226) 2024-08-30 09:31:35 +12:00
Tanner Linsley
14b6042d61 examples: swap remix cookies for vinxi/http 2024-08-29 14:28:58 -06:00
Tanner Linsley
bf092b6956 docs: fix route trees 2024-08-29 14:01:01 -06:00
Tanner Linsley
1dfd7d604b release: v1.51.5 v1.51.5 2024-08-29 19:31:48 +00:00
Christopher Horobin
7219e50b2e
fix: export more types to allow declaration: true or composite (#2222) 2024-08-29 21:30:12 +02:00
Tanner Linsley
823c4091fa release: v1.51.4 v1.51.4 2024-08-29 17:59:13 +00:00
Manuel Schiller
bac62c5dd9
fix(react-router): remove groups when using createLazyFileRoute (#2220)
fixes #2219
2024-08-29 19:58:09 +02:00
Lachlan Collins
c6a80d637c
chore(deps): update select dependencies (#2215)
* chore(deps): update select dependencies

* More updates

* More deps

* Sync vinxi
2024-08-29 17:06:35 +10:00
Tanner Linsley
1b0678f103 release: v1.51.3 v1.51.3 2024-08-29 06:12:36 +00:00