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) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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 ([#​13311](https://redirect.github.com/remix-run/react-router/pull/13311)) - Dedupe calls to `route.lazy` functions ([#​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. ([#​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 ([#​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 ([#​13203](https://redirect.github.com/remix-run/react-router/pull/13203)) - Fix `shouldRevalidate` behavior for `clientLoader`-only routes in `ssr:true` apps ([#​13221](https://redirect.github.com/remix-run/react-router/pull/13221)) - UNSTABLE: Fix `RequestHandler` `loadContext` parameter type when middleware is enabled ([#​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` ([#​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 ([#​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:
parent
2dbc324e35
commit
7f9c0da1f8
2 changed files with 5 additions and 5 deletions
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue