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

6,692 commits

Author SHA1 Message Date
Agus Setya R
6b1f3c163e
fix(docs): Update link for the The Router Configuration: Preloading & Caching (#3833)
There are broken links in the Tanstack Start "Build from Scratch: The
Router Configuration" section.
I believe this should goes into Tanstack Router documentation.
2025-03-26 17:13:53 +01:00
Matthew Sperry
025ef40748
docs: fix create-tsrouter-app command (#3829)
I ran into errors trying to use the npm and yarn commands listed here,
so I looked at https://github.com/TanStack/create-tsrouter-app and it
appears you should use npx with the `--package-manager` option to
specify npm/yarn/etc.

I see the doc was updated in
https://github.com/TanStack/router/pull/3759/files#diff-32b91344fa0565552fb394a3166cbdebd81afa9d02ffec1ed2c1d055ebad46a9,
I assume that was the old way to create a project but feel free to edit
or close this PR if there's a better way to document this, thanks.
2025-03-26 17:12:50 +01:00
Robert Soriano
8f2ddedd9f
chore(examples): Use new TanStack React Start + Clerk package name (#3858) 2025-03-26 16:14:26 +01:00
Masum Gökyüz
51cecf9387
chore(examples,e2e): incorrect label value for "email" (#3851)
Change label from "Username" to "Email"
2025-03-26 20:54:26 +13:00
renovate[bot]
8833c1be63
chore(deps): update dependency vite to v6.1.2 [security] (#3857)
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [vite](https://vite.dev)
([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite))
| [`6.1.0` ->
`6.1.2`](https://renovatebot.com/diffs/npm/vite/6.1.0/6.1.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.0/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.0/6.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-30208](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w)

### Summary
The contents of arbitrary files can be returned to the browser.

### Impact
Only apps explicitly exposing the Vite dev server to the network (using
`--host` or [`server.host` config
option](https://vitejs.dev/config/server-options.html#server-host)) are
affected.

### Details
`@fs` denies access to files outside of Vite serving allow list. Adding
`?raw??` or `?import&raw??` to the URL bypasses this limitation and
returns the file content if it exists. This bypass exists because
trailing separators such as `?` are removed in several places, but are
not accounted for in query string regexes.

### PoC
```bash
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev

$ echo "top secret content" > /tmp/secret.txt

# expected behaviour
$ curl "http://localhost:5173/@​fs/tmp/secret.txt"

    <body>
      <h1>403 Restricted</h1>
      <p>The request url &quot;/tmp/secret.txt&quot; is outside of Vite serving allow list.

# security bypassed
$ curl "http://localhost:5173/@&#8203;fs/tmp/secret.txt?import&raw??"
export default "top secret content\n"
//# sourceMappingURL=data:application/json;base64,eyJ2...
```

---

### Release Notes

<details>
<summary>vitejs/vite (vite)</summary>

###
[`v6.1.2`](https://redirect.github.com/vitejs/vite/releases/tag/v6.1.2)

[Compare
Source](https://redirect.github.com/vitejs/vite/compare/v6.1.1...v6.1.2)

Please refer to
[CHANGELOG.md](https://redirect.github.com/vitejs/vite/blob/v6.1.2/packages/vite/CHANGELOG.md)
for details.

###
[`v6.1.1`](https://redirect.github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small611-2025-02-19-small)

[Compare
Source](https://redirect.github.com/vitejs/vite/compare/v6.1.0...v6.1.1)

- fix: ensure `.[cm]?[tj]sx?` static assets are JS mime
([#&#8203;19453](https://redirect.github.com/vitejs/vite/issues/19453))
([e7ba55e](e7ba55e7d5)),
closes
[#&#8203;19453](https://redirect.github.com/vitejs/vite/issues/19453)
- fix: ignore `*.ipv4` address in cert
([#&#8203;19416](https://redirect.github.com/vitejs/vite/issues/19416))
([973283b](973283bf84)),
closes
[#&#8203;19416](https://redirect.github.com/vitejs/vite/issues/19416)
- fix(css): run rewrite plugin if postcss plugin exists
([#&#8203;19371](https://redirect.github.com/vitejs/vite/issues/19371))
([bcdb51a](bcdb51a1ac)),
closes
[#&#8203;19371](https://redirect.github.com/vitejs/vite/issues/19371)
- fix(deps): bump tsconfck
([#&#8203;19375](https://redirect.github.com/vitejs/vite/issues/19375))
([746a583](746a583d42)),
closes
[#&#8203;19375](https://redirect.github.com/vitejs/vite/issues/19375)
- fix(deps): update all non-major dependencies
([#&#8203;19392](https://redirect.github.com/vitejs/vite/issues/19392))
([60456a5](60456a54fe)),
closes
[#&#8203;19392](https://redirect.github.com/vitejs/vite/issues/19392)
- fix(deps): update all non-major dependencies
([#&#8203;19440](https://redirect.github.com/vitejs/vite/issues/19440))
([ccac73d](ccac73d9d0)),
closes
[#&#8203;19440](https://redirect.github.com/vitejs/vite/issues/19440)
- fix(html): ignore malformed src attrs
([#&#8203;19397](https://redirect.github.com/vitejs/vite/issues/19397))
([aff7812](aff7812f0a)),
closes
[#&#8203;19397](https://redirect.github.com/vitejs/vite/issues/19397)
- fix(worker): fix web worker type detection
([#&#8203;19462](https://redirect.github.com/vitejs/vite/issues/19462))
([edc65ea](edc65eafa3)),
closes
[#&#8203;19462](https://redirect.github.com/vitejs/vite/issues/19462)
- refactor: remove custom .jxl mime
([#&#8203;19457](https://redirect.github.com/vitejs/vite/issues/19457))
([0c85464](0c854645bd)),
closes
[#&#8203;19457](https://redirect.github.com/vitejs/vite/issues/19457)
- feat: add support for injecting debug IDs
([#&#8203;18763](https://redirect.github.com/vitejs/vite/issues/18763))
([0ff556a](0ff556a6d9)),
closes
[#&#8203;18763](https://redirect.github.com/vitejs/vite/issues/18763)
- chore: update 6.1.0 changelog
([#&#8203;19363](https://redirect.github.com/vitejs/vite/issues/19363))
([fa7c211](fa7c211bf3)),
closes
[#&#8203;19363](https://redirect.github.com/vitejs/vite/issues/19363)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "" (UTC), Automerge - At any time (no
schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/TanStack/router).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 03:11:35 +00:00
Sean Cassiere
21dad9fbad
test(e2e): add "generator-cli-only" and "js-only-file-based" sandboxes (#3852)
Adding this in ahead of the `devinxi` branch to ensure functionality with the upcoming changes to `createFileRoute` when using file-based routing.
2025-03-26 02:23:09 +13:00
SeanCassiere
291667dea9
docs(react-router,solid-router): add missing hash to the faq 2025-03-21 17:05:46 +13:00
Sean Cassiere
bfa90f7403
docs(react-router,solid-router): add a FAQ section (#3822) 2025-03-21 16:50:56 +13:00
Tanner Linsley
c49d8a2eea release: v1.114.27 v1.114.27 2025-03-21 03:13:09 +00:00
Sean Cassiere
0c667bf12c
fix(react-router): missing Symbol declaration for HMR (#3821)
As part of the move to `router-core` in
https://github.com/TanStack/router/pull/3803, we accidentally removed
the `Symbol` declaration that was being performed in the constructor of
the `Route` class. This had a downstream effect on the HMR functionality
provided by `@vitejs/plugin-react`.

Fixes #3815
2025-03-21 16:11:55 +13:00
Sean Cassiere
906525964d
docs(start): move router configuration note to the top (#3819) 2025-03-21 11:38:26 +13:00
Tanner Linsley
7dfee394c2 release: v1.114.26 v1.114.26 2025-03-20 14:15:32 +00:00
Brenley Dueck
cf0f2a7ca9
fix(solid-router): nav flickering and view transitions (#3813)
I think this should fix the nav flicker some people have brought up.
This also seems to fix the view transitions issue

Basically a tweak of this pr
https://github.com/TanStack/router/pull/3589/files
2025-03-20 15:08:23 +01:00
Rijk van Wel
49a7a51e06
chore(examples): fix "board update" in start-convex-trellaux (#3802) 2025-03-19 14:55:01 +13:00
seab
020c4c2d1d
docs: typo fix (#3806) 2025-03-18 21:44:40 +00:00
Tanner Linsley
7c229b3539 release: v1.114.25 v1.114.25 2025-03-18 18:27:26 +00:00
Birk Skyum
27b02830b0
refactor(router-core): moving internals of Router to router core (#3800) 2025-03-18 19:26:13 +01:00
Tanner Linsley
4190c07628 release: v1.114.24 v1.114.24 2025-03-18 12:06:26 +00:00
Birk Skyum
647949522a
refactor(router-core): move internals of Route to router-core (#3803)
Similar to #3800 , this use base classes to contain shared methods of
the solid/react-router Route in the router-core package.
2025-03-18 13:04:59 +01:00
Daniel
3a0c6dd019
docs(start): fix broken url to the start-counter example (#3795)
Fix wrong url for start-counter example

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-18 05:16:08 +13:00
Alex D'Elia
bf5005f17d
docs(react-router): add view transitions example (#3791)
React example showing off view transitions at work.

---

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-03-17 14:25:29 +13:00
Tanner Linsley
4d675074b0 release: v1.114.23 v1.114.23 2025-03-16 23:20:07 +00:00
Thibaut Rousseau
6ad6ee1801
refactor(router-core): decorate with JSDoc comments for NavigateOptionProps, ActiveOptions, MatchRouteOptions and Redirect (#3792)
Following up on https://github.com/TanStack/router/discussions/3790 I added some JSDoc on a few uncommented types I encountered in my project.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-17 12:13:30 +13:00
Alex Tirim
c1baf7733c
[DOCS] : Fix wrong getting started command (#3788) 2025-03-16 10:41:11 +00:00
SeanCassiere
5412a9414c
chore(root): script for cleaning up packages 2025-03-16 14:35:50 +13:00
Sean Cassiere
790904852b
chore(e2e): move hash related test utils to the shared package (#3782) 2025-03-16 14:24:39 +13:00
Tanner Linsley
f02a7bcecf release: v1.114.22 v1.114.22 2025-03-15 22:54:39 +00:00
Alex
176514f11e
fix(history): double / being added in hash routing (#3779)
This more cleanly and safely constructs a href with search parameters
and prevents incorrectly adding a double slash to the start of the URL
that was introduced in #3644.

Fixes #3739
Fixes #3699

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-16 11:47:33 +13:00
James Chung
4568b38b69
docs: typo in the "external-data-loading" guide (#3772) 2025-03-15 18:01:48 +13:00
branko-slavkov
869ec3baa6
docs: Update useBlockerHook.md (#3767) 2025-03-13 23:56:02 +01:00
Tanner Linsley
2b64b789e1 release: v1.114.21 v1.114.21 2025-03-13 21:50:11 +00:00
Birk Skyum
0e37676bd6
fix(react-router-devtools): remove console warnings from useRouter (#3770)
Closes https://github.com/TanStack/router/issues/3723

The hooks rules makes it impossible to have the same conditional logic
for the useRouter call as the solid-router-devtools has, so this mutes
the warning to avoid flooding the browser console, because the setup
here is intentional.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-13 22:49:00 +01:00
Birk Skyum
83783cbe97
fix(router-docs): update notes on devtools in quickstart guide (#3769)
Closes https://github.com/TanStack/router/issues/3756
2025-03-13 22:13:58 +01:00
Tanner Linsley
f735529343 release: v1.114.20 v1.114.20 2025-03-13 19:45:27 +00:00
Birk Skyum
f005d35b7b
fix(router-devtools-core): propagate toggleButtonProps properly (#3768)
Closes https://github.com/TanStack/router/issues/3746

With this change, setting on the DevTools the properties:
- panelProps
- closeButtonProps
- toggleButtonProps

Will propagate those values, such as `style` or `class` correctly to the
respective DOM elements.
2025-03-13 20:42:21 +01:00
Tanner Linsley
1f320113ed release: v1.114.19 v1.114.19 2025-03-13 12:48:59 +00:00
Birk Skyum
629995879e
fix(start-server-core): move h3 wrapper tests to shared packages and enable them (#3765) 2025-03-13 13:43:23 +01:00
Tanner Linsley
02a4f79ade release: v1.114.18 v1.114.18 2025-03-13 06:29:56 +00:00
Luca
4e79261534
fix(react-router-devtools): remove router devtools duplicate peer dependency (#3758)
Fixes duplicate dependency (both in dependencies and peerDependencies).

Closes #3755
2025-03-13 07:25:04 +01:00
Birk Skyum
378720862a
docs(quickstart): use create-tsrouter-app for scaffolding a tsrouter app (#3759)
This use the new create-tsrouter-app to scaffold tsrouter apps.

On this quickstart page
https://tanstack.com/router/latest/docs/framework/react/quick-start
https://tanstack.com/router/latest/docs/framework/solid/quick-start
2025-03-12 23:31:28 +01:00
autofix-ci[bot]
a73dcdcec3
ci: apply automated fixes 2025-03-12 15:50:19 +00:00
Aleksander
5975a398af
docs: Add "response" option details to server-functions.md (#3753)
Added information about "response" option and returning non-standard
return types
2025-03-12 16:49:04 +01:00
Rolf Timmermans
92763e3ce3
Add example for virtualization for the whole window. (#3752)
Based on
https://github.com/TanStack/router/pull/3191#issuecomment-2717415282
2025-03-12 15:55:38 +01:00
Birk Skyum
5ee4d310c4
chore(tanstack-solid-start-example-basic): add example (#3751) 2025-03-12 15:48:44 +01:00
Tanner Linsley
11a4d9d96f release: v1.114.17 v1.114.17 2025-03-12 12:55:31 +00:00
Birk Skyum
dfdb9f467d
fix(router-core): move ThrowConstraint to core utils (#3749) 2025-03-12 13:54:05 +01:00
Tanner Linsley
bf5bd47225 release: v1.114.16 v1.114.16 2025-03-12 12:32:10 +00:00
Birk Skyum
215d6f5202
fix(router-core): move typePrimitives to shared package (#3748)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-12 13:30:19 +01:00
Tanner Linsley
b90b3f2c83 release: v1.114.15 v1.114.15 2025-03-11 17:48:06 +00:00
Birk Skyum
032dc2f49e
fix(router-core): agnostic scroll restoration (#3740)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-11 18:46:51 +01:00