0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Update dependency react-router to v7.4.1 (#22565)

This PR contains the following updates:

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

---

### Release Notes

<details>
<summary>remix-run/react-router (react-router)</summary>

###
[`v7.4.1`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#741)

[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.4.0...react-router@7.4.1)

##### Patch Changes

- Fix types on `unstable_MiddlewareFunction` to avoid type errors when a
middleware doesn't return a value
([#&#8203;13311](https://redirect.github.com/remix-run/react-router/pull/13311))
- Dedupe calls to `route.lazy` functions
([#&#8203;13260](https://redirect.github.com/remix-run/react-router/pull/13260))
- Add support for `route.unstable_lazyMiddleware` function to allow lazy
loading of middleware logic.
([#&#8203;13210](https://redirect.github.com/remix-run/react-router/pull/13210))

    **Breaking change for `unstable_middleware` consumers**

The `route.unstable_middleware` property is no longer supported in the
return value from `route.lazy`. If you want to lazily load middleware,
you must use `route.unstable_lazyMiddleware`.

###
[`v7.4.0`](https://redirect.github.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#740)

[Compare
Source](https://redirect.github.com/remix-run/react-router/compare/react-router@7.3.0...react-router@7.4.0)

##### Patch Changes

- Fix root loader data on initial load redirects in SPA mode
([#&#8203;13222](https://redirect.github.com/remix-run/react-router/pull/13222))
- Load ancestor pathless/index routes in lazy route discovery for
upwards non-eager-discoery routing
([#&#8203;13203](https://redirect.github.com/remix-run/react-router/pull/13203))
- Fix `shouldRevalidate` behavior for `clientLoader`-only routes in
`ssr:true` apps
([#&#8203;13221](https://redirect.github.com/remix-run/react-router/pull/13221))
- UNSTABLE: Fix `RequestHandler` `loadContext` parameter type when
middleware is enabled
([#&#8203;13204](https://redirect.github.com/remix-run/react-router/pull/13204))
- UNSTABLE: Update `Route.unstable_MiddlewareFunction` to have a return
value of `Response | undefined` instead of `Response | void` becaue you
should not return anything if you aren't returning the `Response`
([#&#8203;13199](https://redirect.github.com/remix-run/react-router/pull/13199))
- UNSTABLE(BREAKING): If a middleware throws an error, ensure we only
bubble the error itself via `next()` and are no longer leaking the
`MiddlewareError` implementation detail
([#&#8203;13180](https://redirect.github.com/remix-run/react-router/pull/13180))

</details>

---

### Configuration

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

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
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/TryGhost/Ghost).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMDcuMSIsInVwZGF0ZWRJblZlciI6IjM5LjIwNy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2025-03-31 20:59:12 +00:00 committed by GitHub
parent 2dbc324e35
commit 7f9c0da1f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -91,7 +91,7 @@
"@vitejs/plugin-react": "4.2.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router": "7.3.0",
"react-router": "7.4.1",
"vite": "4.5.3",
"vite-plugin-css-injected-by-js": "^3.3.0",
"vite-plugin-svgr": "3.3.0",

View file

@ -27796,10 +27796,10 @@ react-remove-scroll@^2.6.1, react-remove-scroll@^2.6.3:
use-callback-ref "^1.3.3"
use-sidecar "^1.1.3"
react-router@7.3.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-7.3.0.tgz#14fb630f088d919386e97f91199a2bc4abcdd85d"
integrity sha512-466f2W7HIWaNXTKM5nHTqNxLrHTyXybm7R0eBlVSt0k/u55tTCDO194OIx/NrYD4TS5SXKTNekXfT37kMKUjgw==
react-router@7.4.1:
version "7.4.1"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-7.4.1.tgz#0e6af1eefb8370d2cd79c961b87708afdb50fe64"
integrity sha512-Vmizn9ZNzxfh3cumddqv3kLOKvc7AskUT0dC1prTabhiEi0U4A33LmkDOJ79tXaeSqCqMBXBU/ySX88W85+EUg==
dependencies:
"@types/cookie" "^0.6.0"
cookie "^1.0.1"