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

284 commits

Author SHA1 Message Date
Manuel Schiller
fdd00e9ded
feat: add experimental nitro-v2-vite-plugin (#5143)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-09-12 23:15:27 +02:00
Manuel Schiller
4d205d7fb8 move createServerRpc into start-server-core 2025-08-20 18:26:46 +02:00
Manuel Schiller
29df9cba3c move client server function handling into start-client-core 2025-08-18 22:59:40 +02:00
Manuel Schiller
f436579232 Merge remote-tracking branch 'origin/main' into HEAD 2025-08-09 12:13:50 +02:00
Manuel Schiller
7084afd6e5 bump vitest 2025-08-09 01:55:57 +02:00
Manuel Schiller
e078c8a443 bump vite 2025-08-09 00:12:51 +02:00
Manuel Schiller
63879f7de3 move static server functions into middleware in separate package 2025-08-09 00:12:38 +02:00
Manuel Schiller
570f3db4da merge react/solid-start-vite with react/solid-start packages
avoids a circular dep
2025-08-09 00:12:14 +02:00
Manuel Schiller
c0265b5f56 fix package.json 2025-08-09 00:11:58 +02:00
Manuel Schiller
8812cb2661 bump vite version to 7 2025-08-09 00:11:58 +02:00
Manuel Schiller
90adfe919e
feat: restructure query-integration (#4643)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-08 23:52:29 +02:00
Manuel Schiller
4e2605a26d
chore: bump typescript version (#4853) 2025-08-01 22:30:02 +02:00
Manuel Schiller
4318992ab8
chore: fix build in CI (#4790) 2025-07-26 21:28:55 +02:00
Lachlan Collins
a89408affd
chore: sync TanStack repo changes (#4784)
## 🎯 Changes

- Update Prettier and use experimental CLI
- Update Nx to v21
- Fix bug in test exposed by new prettier version
- Sync issues template

## ✅ Checklist

- [x] I have followed the steps listed in the [Contributing
guide](https://github.com/TanStack/config/blob/main/CONTRIBUTING.md).
- [x] I have tested and linted this code locally.
2025-07-26 21:55:38 +10:00
Manuel Schiller
748a4be5a0
fix: fix start vite plugin during dev and prod (#4736) 2025-07-21 22:34:41 +02:00
Manuel Schiller
f9dfb3121f
feat: pass in router instance in client function middleware (#4723)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-21 01:09:46 +02:00
Sean Cassiere
a0d9811d90
ci: upgrade to labeler v5 (#4406) 2025-06-13 10:02:29 +12:00
Manuel Schiller
8b5accb27c
feat: Merge alpha to main (#4365)
Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Iha Shin (신의하) <me@xiniha.dev>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: MoeedDar <moeed.dar@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Saša Šijak <me@ssijak.com>
Co-authored-by: Christopher Horobin <chrishorobin@hotmail.com>
Co-authored-by: Ryan Gillie <gillie.ryan@hotmail.com>
Co-authored-by: Jaga Santagostino <jagasantagostino@gmail.com>
Co-authored-by: Birk Skyum <birk.skyum@pm.me>
Co-authored-by: Yeoh Joer <yeoh.joer@outlook.com>
Co-authored-by: Dane Grant <danecando@gmail.com>
Co-authored-by: Birk Skyum <74932975+birkskyum@users.noreply.github.com>
Co-authored-by: Luis Merino <mail@luismerino.name>
Co-authored-by: ThaumRystra <9525416+ThaumRystra@users.noreply.github.com>
Co-authored-by: Adam Hunter <arhunter@gmail.com>
Co-authored-by: Leonardo Montini <lion.48m@gmail.com>
Co-authored-by: Joel Tannas <jtannas@gmail.com>
Co-authored-by: scarf <greenscarf005@gmail.com>
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: Iñaki Larramendi <30437204+ilarramendi@users.noreply.github.com>
Co-authored-by: Hiển Đào Vinh <neo.go.vn@gmail.com>
Co-authored-by: Lleyton W Morris <42259073+ViewableGravy@users.noreply.github.com>
Co-authored-by: Lleyton Morris <lmorris@nexigen.digital>
Co-authored-by: Matthew Struble <matt@vevox.io>
Co-authored-by: Matt Anderson <matt@mattdev.ca>
Co-authored-by: Chung <chungwong@users.noreply.github.com>
Co-authored-by: Maxx Coffee <josh@joshcoffee.dev>
Co-authored-by: Joshua Coffee <joshcoffee@gannett.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Neeraj Dalal <admin@nrjdalal.com>
Co-authored-by: Thomas Marnet <thomas.marnet@gmail.com>
Co-authored-by: Vianney Carel <vcarel@users.noreply.github.com>
Co-authored-by: Vianney Carel <vianney.carel@logfuse.fr>
Co-authored-by: Diego Rincón <97266392+diegoarff@users.noreply.github.com>
Co-authored-by: Erfan Hosseini <43422324+Erfanhosseini98@users.noreply.github.com>
Co-authored-by: IderAghbal <3328396+IderAghbal@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jefferson <8148776+eastlondoner@users.noreply.github.com>
2025-06-10 23:19:32 +02:00
Tanner Linsley
63c623b169 docs: fix links 2025-05-24 01:37:04 -06:00
Manuel Schiller
13f8559b8d
bump deps (#4057) 2025-04-26 23:26:09 +02:00
renovate[bot]
1bb39b96ad
chore(deps): update dependency vite to v6.1.4 [security] (#3939)
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.3` ->
`6.1.4`](https://renovatebot.com/diffs/npm/vite/6.1.3/6.1.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.3/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.3/6.1.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-31486](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-xcj6-pq6g-qj4x)

### 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

#### `.svg`

Requests ending with `.svg` are loaded at this line.

037f801075/packages/vite/src/node/plugins/asset.ts (L285-L290)
By adding `?.svg` with `?.wasm?init` or with `sec-fetch-dest: script`
header, the restriction was able to bypass.

This bypass is only possible if the file is smaller than
[`build.assetsInlineLimit`](https://vite.dev/config/build-options.html#build-assetsinlinelimit)
(default: 4kB) and when using Vite 6.0+.

#### relative paths

The check was applied before the id normalization. This allowed requests
to bypass with relative paths (e.g. `../../`).

### PoC

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

send request to read `etc/passwd`

```bash
curl 'http://127.0.0.1:5173/etc/passwd?.svg?.wasm?init'
```

```bash
curl 'http://127.0.0.1:5173/@&#8203;fs/x/x/x/vite-project/?/../../../../../etc/passwd?import&?raw'
```

---

### Release Notes

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

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

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

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

</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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMjcuMyIsInVwZGF0ZWRJblZlciI6IjM5LjIyNy4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 21:59:55 +00:00
renovate[bot]
d0bbf662e5
chore(deps): update dependency vite to v6.1.3 [security] (#3900)
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.2` ->
`6.1.3`](https://renovatebot.com/diffs/npm/vite/6.1.2/6.1.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/vite/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/6.1.2/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/6.1.2/6.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

### GitHub Vulnerability Alerts

####
[CVE-2025-31125](https://redirect.github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8)

### 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

- base64 encoded content of non-allowed files is exposed using
`?inline&import` (originally reported as `?import&?inline=1.wasm?init`)
- content of non-allowed files is exposed using `?raw?import`

`/@&#8203;fs/` isn't needed to reproduce the issue for files inside the
project root.

### PoC

Original report (check details above for simplified cases):

The ?import&?inline=1.wasm?init ending allows attackers to read
arbitrary files and returns the file content if it exists. Base64
decoding needs to be performed twice
```
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev
```

Example full URL
`http://localhost:5173/@&#8203;fs/C:/windows/win.ini?import&?inline=1.wasm?init`

---

### Release Notes

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

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

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

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

</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-31 22:02:41 +00:00
Birk Skyum
739362f1f9
release experimental @tanstack/solid-start package (#3864)
Mentions of this being experimental in
- overview page (first in the docs)
- readme of solid-start package

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-27 01:19:57 +01: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/@&#8203;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
SeanCassiere
5412a9414c
chore(root): script for cleaning up packages 2025-03-16 14:35:50 +13:00
Birk Skyum
df1ff398ca
refactor: make start-server-functions packages agnostic (#3729)
Removes
- react-start-server-functions-fetcher/handler/client/ssr
- solid-start-server-functions-fetcher/handler/client/ssr

Introduces (as they were called in the past)
- start-server-functions-fetcher/handler/client/ssr
2025-03-10 11:52:43 +01:00
Birk Skyum
1b402d502f
chore(start-api-routes): make agnostic package (#3722)
The API routes only rely on h3, which is in start-server-core, so the
entire start-api-routes package can now be agnostic.

Removes
- react-start-api-routes
- solid-start-api-routes

Introduces
- start-api-routes
2025-03-10 06:22:00 +01:00
Birk Skyum
2d2551bf92
chore(start-server-core): agnostic package (#3720) 2025-03-10 05:12:07 +01:00
Birk Skyum
398458e16d
chore(start-client-core): move mergeHeaders and startSerializer to shared package (#3709)
Move the 100% duplicates:
- ./headers.ts
- ./serializer.ts
- ./tests/transformer.test.tsx

From solid/react-start-client to start-client-core.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-03-10 00:09:53 +01:00
Birk Skyum
e313a1c5a7
feat(router-devtools-core): consolidate devtools logic in core and distributed with framework-specific bindings (#3636)
The original `@tanstack/router-devtools` package still work - it's not
touch by this PR in any way, apart from a migration note saying:

>[@tanstack/router-devtools] Warning: This package has moved to
@tanstack/react-router-devtools. Please switch to the new package, as
this package will be dropped soon.

This introduce three new packages
- @tanstack/router-devtools-core : This is a SolidJS port of the UI

And two adapters on top, that mount this solid app and forward
router/routerState into it.
- @tanstack/solid-router-devtools
- @tanstack/router-router-devtools

For use of devtools in production, a `TanStackRouterDevtoolsInProd` can
be imported instead of the standard `TanStackRouterDevtools` that'll be
tree shaken away in prod.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2025-03-08 13:20:26 +01:00
Manuel Schiller
30e869042d
chore: add script to bump typescript version and bump it to 5.8 (#3618)
Co-authored-by: chorobin <chrishorobin@hotmail.com>
2025-03-06 21:06:32 +01:00
Sean Cassiere
f96a102347
chore(root): bump tinyglobby to 0.2.12 (#3596) 2025-02-28 09:10:37 +13:00
Birk Skyum
0cf5e3e846
refactor(react-start): move start packages to react-start (#3563)
move start -> react-start, and keep start as proxy packages for
backwards compat.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-25 22:05:25 +01:00
Birk Skyum
e6be53d017
chore(react-cross-context,solid-cross-context): remove unused cross-context (#3549) 2025-02-24 16:36:15 +01:00
Birk Skyum
ad20a68491
feat(solid-router): Add a SolidJS driver for TanStack Router (#3276)
* copy react-router

* update

* Move forward branch

* cleanup

* cleanup

* add publish

* bump deps

* ci: apply automated fixes

* remove unused imports

* ci: apply automated fixes

* bump  vite plugin solid

* fix imports

* ci: apply automated fixes

* remove react lint from solid-router

* fix types

* ci: apply automated fixes

* add structuralSharing

* downgrade vite plugin solid

* fix scroll-restoration in solid-router

* fix Transitioner

* fix imports from ScrollRestoration

* Fix tests

* Fix more tests

* Remove the react $$typeof

* add accessors to useLocation

* add remountDeps

* cleanup

* remove tanstack/store

* format

* add missing call to setupScrollRestoration

* format

* add optional

* align match component

* make matches a signal

* Bump vite-plugin-solid to stable

* add missing await

* Fix unknown error

* Tweak the tests to call functions

* remove unused vars

* fix lockfile

* Down to 25 failures

* Remove .only

* call search()

* remove the structuralSharing

* fix type test

* fix structuralSharing

* comment out structured sharing validation check

* fix typings

* comment out serialization check

* comment out serialization check

* cleanup

* improve types of useSearch

* fix "when setting search params with 2 parallel navigate calls"

* fix useParams

* fix types

* fix useParams types

* cleanup debug

* fix link data loader

* fix data loader signal

* fix type test

* fix Link "when navigating away from a route with a loader that errors"

* setup on() simpler

* make initial load a createRenderEffect

* Fix some link preload tests

* add accessor to UseMatchRoute

* fix: when navigating to /posts with a beforeLoad that returns context

* call parentRouteId

* re-enable invariant

* fix when navigating from /invoices to ./invoiceId and the current route is /posts/$postId/details

* use memo for prev

* remove browserhistory  workaround

* fix  "after a navigation, should have emitted the "onResolved" event twice"

* skip remount

* add types to useSearch

* fix search middleware

* don't need a getter

* sync react-router

* solid kitchen sink

* add the example to workspace

* lockfile

* fix solid kitchensink name

* add solid template

* fix example

* rename react to solid

* work on example

* add accessor

* fix type tests

* Fix login in example

* Don't destructure

* Fix stuck on pending component

* Fix where loaderData can be undefined

* Use For component

* More refactor

* Hacky way to fix loading spinner

* Fix one test

* Better MatchRoute fix

* Down to 1 failing test

* Fix last test

* cleanup subscription

* lockfile

* eslint

* ci: apply automated fixes

* fix router-core lint

* ci: apply automated fixes

* add e2e test for solid-router

* ci: apply automated fixes

* work on solid-router e2e suites

* fix comment

* use solid-virtualizer

* work on scroll-restauration

* work on scroll-restauration

* skip react-specific useRenderEffect test

* fix errorcomponent being used before it's defined

* set solid target for esbuild

* ci: apply automated fixes

* fix rspack tests

* fix query tets

* add solid-query example

* use memo for post

* add memo for posts

* fix example

* add jsx compiler flags to esbuild commands

* add esbuild-plugin-solid

* Fix some e2e

* ci: apply automated fixes

* port #3423 from react-router

* fix useLoaderData test-d

* add codeSplitGroupings

* Scroll restoration fixes

* add asset headcontent script

* remove solid-router-copy

* fix react use

* fix scroll restoration test

* skip esbuild because it's broken in react-router

* wait for timeout

* update scroll-restoration to match react

* useLocation

* use on() in match

* align useNavigate with react-router

* lockfile

* fix Scripts test

* align __TSR_SSR__ in ScriptOnce

* remove solid-router from publish

* lint

* ci: apply automated fixes

* align to react-router

* port over "exclude props from state equality check to prevent history push for equal url and state"

* align with react-router

* add shouldThrow

* fix typePrimitives

* use searchStr to fix the search middleware

* ci: add solid-router to the labeler

* use patched vite-plugin-solid

* eslint

* ci: apply automated fixes

* use vite-plugin-solid 2.11.2

* remove only modifier

* move vite-plugin-solid peerDep to router-plugin

* use latest vite-plugin-solid

* move vitest to root

* bump vitest

* revert onRendered

* lint

* add to publish

* fix scroll restoration

* ci: apply automated fixes

* align version with react-router

* sync to react-router

* sync with react-router

* sync navigate tests to react-router

* ci: apply automated fixes

* use Solid.JSX.Element consistently instead of Solid.JSXElement

* remove irrelevant test

* ci: apply automated fixes

* remove unused suite

* lint

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Brenley Dueck <brenleydueck@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-02-20 17:11:39 +01:00
renovate[bot]
c1c943c5ef
chore(deps): update all non-major dependencies (#3379)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-10 02:03:23 +00:00
Nicolas Beaussart
9adf45bc47
fix(examples): upgrade nx and remove implicitDependencies (#3346) 2025-02-06 20:03:16 +01:00
Manuel Schiller
a00686cd57
chore: pin nx to fix CI (#3332) 2025-02-04 19:57:31 +01:00
Sean Cassiere
55d14e9e50
ci(root): add automatic labeler workflow (#3251) 2025-02-03 15:28:45 +13:00
renovate[bot]
d771619d32
chore(deps): update all non-major dependencies (#3311)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-03 02:23:19 +00:00
Manuel Schiller
090485bff2
refactor: router-utils for common utils (#3287) 2025-01-31 00:58:20 +01:00
Nicolas Beaussart
2a90490821
chore(examples): fix nx graph detection (#3271)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-30 19:18:16 +13:00
Manuel Schiller
9c987839a9
examples: remove dep (#3270) 2025-01-29 01:48:02 +01:00
Sean Cassiere
8662b4cdfa
chore(root): upgrade nx to 20.4.0 (#3259) 2025-01-28 15:33:10 +13:00
Sean Cassiere
588ec74b23
chore(root): upgrade vitest to 3.0.4 (#3257) 2025-01-28 15:25:01 +13:00
renovate[bot]
266f5cc863
chore(deps): update all non-major dependencies (#3250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 05:44:46 +00:00
Birk Skyum
a3e0899e2d
refactor(router-core): move router-core into a separate package (#3171)
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-01-26 14:06:35 +13:00
renovate[bot]
b9f44bc038
chore(deps): update all non-major dependencies (#3018)
* chore(deps): update all non-major dependencies

* fix eslint issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-01-25 17:52:11 +01:00
Manuel Schiller
55505a114a
fix: make react-19 the default (#3226)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-25 03:16:46 +01:00
Tanner Linsley
bb1a14ae82
fix: router stream injection (#3216)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-24 23:47:41 +01:00