From b61267e71375da49076b44b2d8778642a47c05b8 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Wed, 28 Dec 2022 21:50:42 +0000
Subject: [PATCH] chore(deps): update react-router monorepo to v6.6.1 (#2762)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [react-router](https://togithub.com/remix-run/react-router) | [`6.4.5`
-> `6.6.1`](https://renovatebot.com/diffs/npm/react-router/6.4.5/6.6.1)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router/6.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router/6.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router/6.6.1/compatibility-slim/6.4.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router/6.6.1/confidence-slim/6.4.5)](https://docs.renovatebot.com/merge-confidence/)
|
| [react-router-dom](https://togithub.com/remix-run/react-router) |
[`6.4.5` ->
`6.6.1`](https://renovatebot.com/diffs/npm/react-router-dom/6.4.5/6.6.1)
|
[![age](https://badges.renovateapi.com/packages/npm/react-router-dom/6.6.1/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/react-router-dom/6.6.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/react-router-dom/6.6.1/compatibility-slim/6.4.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/react-router-dom/6.6.1/confidence-slim/6.4.5)](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
remix-run/react-router (react-router)
###
[`v6.6.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#661)
[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.6.0...react-router@6.6.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/router@1.2.1`
###
[`v6.6.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#660)
[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.5.0...react-router@6.6.0)
##### Patch Changes
- Prevent `useLoaderData` usage in `errorElement`
([#9735](https://togithub.com/remix-run/react-router/pull/9735))
- Updated dependencies:
- `@remix-run/router@1.2.0`
###
[`v6.5.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router/CHANGELOG.md#650)
[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router@6.4.5...react-router@6.5.0)
This release introduces support for [Optional Route
Segments](https://togithub.com/remix-run/react-router/issues/9546). Now,
adding a `?` to the end of any path segment will make that entire
segment optional. This works for both static segments and dynamic
parameters.
**Optional Params Examples**
- `` will match:
- `/multistep`
- `/multistep/:widget1`
- `/multistep/:widget1/:widget2`
- `/multistep/:widget1/:widget2/:widget3`
**Optional Static Segment Example**
- `` will match:
- `/`
- `/home`
- `` will match:
- `/about`
- `/fr/about`
##### Minor Changes
- Allows optional routes and optional static segments
([#9650](https://togithub.com/remix-run/react-router/pull/9650))
##### Patch Changes
- Stop incorrectly matching on partial named parameters, i.e. ``, to align with how splat parameters work. If you
were previously relying on this behavior then it's recommended to
extract the static portion of the path at the `useParams` call site:
([#9506](https://togithub.com/remix-run/react-router/pull/9506))
```jsx
// Old behavior at URL /prefix-123
}>
function Comp() {
let params = useParams(); // { id: '123' }
let id = params.id; // "123"
...
}
// New behavior at URL /prefix-123
}>
function Comp() {
let params = useParams(); // { id: 'prefix-123' }
let id = params.id.replace(/^prefix-/, ''); // "123"
...
}
```
- Updated dependencies:
- `@remix-run/router@1.1.0`
remix-run/react-router (react-router-dom)
###
[`v6.6.1`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#661)
[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.6.0...react-router-dom@6.6.1)
##### Patch Changes
- Updated dependencies:
- `@remix-run/router@1.2.1`
- `react-router@6.6.1`
###
[`v6.6.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#660)
[Compare
Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.5.0...react-router-dom@6.6.0)
##### Minor Changes
- Add `useBeforeUnload()` hook
([#9664](https://togithub.com/remix-run/react-router/pull/9664))
- Remove `unstable_` prefix from
`createStaticHandler`/`createStaticRouter`/`StaticRouterProvider`
([#9738](https://togithub.com/remix-run/react-router/pull/9738))
##### Patch Changes
- Proper hydration of `Error` objects from `StaticRouterProvider`
([#9664](https://togithub.com/remix-run/react-router/pull/9664))
- Support uppercase `
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
frontend/package.json | 2 +-
frontend/yarn.lock | 30 +++++++++++++++---------------
website/package.json | 2 +-
website/yarn.lock | 18 +++++++++---------
4 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/frontend/package.json b/frontend/package.json
index 7957be8d49..c9edd7414d 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -86,7 +86,7 @@
"react-error-boundary": "3.1.4",
"react-hooks-global-state": "2.1.0",
"react-markdown": "^8.0.4",
- "react-router-dom": "6.4.5",
+ "react-router-dom": "6.6.1",
"react-table": "7.8.0",
"react-test-renderer": "17.0.2",
"react-timeago": "7.1.0",
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index 9b6bc28eac..297445f467 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -2220,10 +2220,10 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.6.tgz#cee20bd55e68a1720bdab363ecf0c821ded4cd45"
integrity sha512-50/17A98tWUfQ176raKiOGXuYpLyyVMkxxG6oylzL3BPOlA6ADGdK7EYunSa4I064xerltq9TGXs8HmOk5E+vw==
-"@remix-run/router@1.0.5":
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.0.5.tgz#d5c65626add4c3c185a89aa5bd38b1e42daec075"
- integrity sha512-my0Mycd+jruq/1lQuO5LBB6WTlL/e8DTCYWp44DfMTDcXz8DcTlgF0ISaLsGewt+ctHN+yA8xMq3q/N7uWJPug==
+"@remix-run/router@1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.2.1.tgz#812edd4104a15a493dda1ccac0b352270d7a188c"
+ integrity sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ==
"@rollup/pluginutils@^5.0.2":
version "5.0.2"
@@ -6967,20 +6967,20 @@ react-refresh@^0.14.0:
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.14.0.tgz#4e02825378a5f227079554d4284889354e5f553e"
integrity sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==
-react-router-dom@6.4.5:
- version "6.4.5"
- resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.4.5.tgz#4fdb12efef4f3848c693a76afbeaed1f6ca02047"
- integrity sha512-a7HsgikBR0wNfroBHcZUCd9+mLRqZS8R5U1Z1mzLWxFXEkUT3vR1XXmSIVoVpxVX8Bar0nQYYYc9Yipq8dWwAA==
+react-router-dom@6.6.1:
+ version "6.6.1"
+ resolved "https://registry.yarnpkg.com/react-router-dom/-/react-router-dom-6.6.1.tgz#1b96ec0b2cefa7319f1251383ea5b41295ee260d"
+ integrity sha512-u+8BKUtelStKbZD5UcY0NY90WOzktrkJJhyhNg7L0APn9t1qJNLowzrM9CHdpB6+rcPt6qQrlkIXsTvhuXP68g==
dependencies:
- "@remix-run/router" "1.0.5"
- react-router "6.4.5"
+ "@remix-run/router" "1.2.1"
+ react-router "6.6.1"
-react-router@6.4.5:
- version "6.4.5"
- resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.4.5.tgz#73f382af2c8b9a86d74e761a7c5fc3ce7cb0024d"
- integrity sha512-1RQJ8bM70YEumHIlNUYc6mFfUDoWa5EgPDenK/fq0bxD8DYpQUi/S6Zoft+9DBrh2xmtg92N5HMAJgGWDhKJ5Q==
+react-router@6.6.1:
+ version "6.6.1"
+ resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.6.1.tgz#17de6cf285f2d1c9721a3afca999c984e5558854"
+ integrity sha512-YkvlYRusnI/IN0kDtosUCgxqHeulN5je+ew8W+iA1VvFhf86kA+JEI/X/8NqYcr11hCDDp906S+SGMpBheNeYQ==
dependencies:
- "@remix-run/router" "1.0.5"
+ "@remix-run/router" "1.2.1"
react-shallow-renderer@^16.13.1:
version "16.15.0"
diff --git a/website/package.json b/website/package.json
index 8d96d1e1a8..33f28f67f4 100644
--- a/website/package.json
+++ b/website/package.json
@@ -78,7 +78,7 @@
"@tsconfig/docusaurus": "1.0.6",
"babel-loader": "9.1.0",
"enhanced-resolve": "5.12.0",
- "react-router": "6.4.5",
+ "react-router": "6.6.1",
"replace-in-file": "6.3.5",
"storybook-addon-root-attribute": "1.0.2",
"typescript": "4.8.4"
diff --git a/website/yarn.lock b/website/yarn.lock
index e77ba2a888..097169ddc8 100644
--- a/website/yarn.lock
+++ b/website/yarn.lock
@@ -2241,10 +2241,10 @@
redux-thunk "^2.4.2"
reselect "^4.1.7"
-"@remix-run/router@1.0.5":
- version "1.0.5"
- resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.0.5.tgz#d5c65626add4c3c185a89aa5bd38b1e42daec075"
- integrity sha512-my0Mycd+jruq/1lQuO5LBB6WTlL/e8DTCYWp44DfMTDcXz8DcTlgF0ISaLsGewt+ctHN+yA8xMq3q/N7uWJPug==
+"@remix-run/router@1.2.1":
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.2.1.tgz#812edd4104a15a493dda1ccac0b352270d7a188c"
+ integrity sha512-XiY0IsyHR+DXYS5vBxpoBe/8veTeoRpMHP+vDosLZxL5bnpetzI0igkxkLZS235ldLzyfkxF+2divEwWHP3vMQ==
"@sideway/address@^4.1.3":
version "4.1.4"
@@ -11931,12 +11931,12 @@ react-router@5.3.4, react-router@^5.3.3:
tiny-invariant "^1.0.2"
tiny-warning "^1.0.0"
-react-router@6.4.5:
- version "6.4.5"
- resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.4.5.tgz#73f382af2c8b9a86d74e761a7c5fc3ce7cb0024d"
- integrity sha512-1RQJ8bM70YEumHIlNUYc6mFfUDoWa5EgPDenK/fq0bxD8DYpQUi/S6Zoft+9DBrh2xmtg92N5HMAJgGWDhKJ5Q==
+react-router@6.6.1:
+ version "6.6.1"
+ resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.6.1.tgz#17de6cf285f2d1c9721a3afca999c984e5558854"
+ integrity sha512-YkvlYRusnI/IN0kDtosUCgxqHeulN5je+ew8W+iA1VvFhf86kA+JEI/X/8NqYcr11hCDDp906S+SGMpBheNeYQ==
dependencies:
- "@remix-run/router" "1.0.5"
+ "@remix-run/router" "1.2.1"
react-textarea-autosize@^8.3.2:
version "8.4.0"