From 5fb6d5e92e9fd64789b7c65bcbfcb5a993f547ae Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 29 Nov 2022 11:11:00 +0000 Subject: [PATCH 1/2] Update dependency @react-hookz/web to v19 Signed-off-by: Renovate Bot --- .changeset/renovate-61ad428.md | 8 +++++++ packages/core-components/package.json | 2 +- plugins/gcp-projects/package.json | 2 +- plugins/scaffolder/package.json | 2 +- .../package.json | 2 +- yarn.lock | 24 +++++++++++++++---- 6 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 .changeset/renovate-61ad428.md diff --git a/.changeset/renovate-61ad428.md b/.changeset/renovate-61ad428.md new file mode 100644 index 0000000000..95e4e27baf --- /dev/null +++ b/.changeset/renovate-61ad428.md @@ -0,0 +1,8 @@ +--- +'@backstage/core-components': patch +'@backstage/plugin-gcp-projects': patch +'@backstage/plugin-scaffolder': patch +'@backstage/plugin-techdocs-module-addons-contrib': patch +--- + +Updated dependency `@react-hookz/web` to `^19.0.0`. diff --git a/packages/core-components/package.json b/packages/core-components/package.json index 46a63cec46..3618f4660d 100644 --- a/packages/core-components/package.json +++ b/packages/core-components/package.json @@ -41,7 +41,7 @@ "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.57", - "@react-hookz/web": "^15.0.0", + "@react-hookz/web": "^19.0.0", "@types/react-sparklines": "^1.7.0", "@types/react-text-truncate": "^0.14.0", "ansi-regex": "^6.0.1", diff --git a/plugins/gcp-projects/package.json b/plugins/gcp-projects/package.json index eb0cebacfe..2574d015b9 100644 --- a/plugins/gcp-projects/package.json +++ b/plugins/gcp-projects/package.json @@ -39,7 +39,7 @@ "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.57", - "@react-hookz/web": "^15.0.0" + "@react-hookz/web": "^19.0.0" }, "peerDependencies": { "react": "^16.13.1 || ^17.0.0", diff --git a/plugins/scaffolder/package.json b/plugins/scaffolder/package.json index 7973363805..6096cc51d0 100644 --- a/plugins/scaffolder/package.json +++ b/plugins/scaffolder/package.json @@ -53,7 +53,7 @@ "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.57", - "@react-hookz/web": "^15.0.0", + "@react-hookz/web": "^19.0.0", "@rjsf/core": "^3.2.1", "@rjsf/core-v5": "npm:@rjsf/core@^5.0.0-beta.12", "@rjsf/material-ui": "^3.2.1", diff --git a/plugins/techdocs-module-addons-contrib/package.json b/plugins/techdocs-module-addons-contrib/package.json index beb5a8ddf1..e73914ad72 100644 --- a/plugins/techdocs-module-addons-contrib/package.json +++ b/plugins/techdocs-module-addons-contrib/package.json @@ -42,7 +42,7 @@ "@material-ui/core": "^4.9.13", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.57", - "@react-hookz/web": "^15.0.0", + "@react-hookz/web": "^19.0.0", "git-url-parse": "^13.0.0", "react-use": "^17.2.4" }, diff --git a/yarn.lock b/yarn.lock index f1dc751b2a..27d01d9daf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3951,7 +3951,7 @@ __metadata: "@material-ui/core": ^4.12.2 "@material-ui/icons": ^4.9.1 "@material-ui/lab": 4.0.0-alpha.57 - "@react-hookz/web": ^15.0.0 + "@react-hookz/web": ^19.0.0 "@testing-library/jest-dom": ^5.10.1 "@testing-library/react": ^12.1.3 "@testing-library/react-hooks": ^8.0.0 @@ -6181,7 +6181,7 @@ __metadata: "@material-ui/core": ^4.12.2 "@material-ui/icons": ^4.9.1 "@material-ui/lab": 4.0.0-alpha.57 - "@react-hookz/web": ^15.0.0 + "@react-hookz/web": ^19.0.0 "@testing-library/jest-dom": ^5.10.1 "@testing-library/react": ^12.1.3 "@testing-library/user-event": ^14.0.0 @@ -7460,7 +7460,7 @@ __metadata: "@material-ui/core": ^4.12.2 "@material-ui/icons": ^4.9.1 "@material-ui/lab": 4.0.0-alpha.57 - "@react-hookz/web": ^15.0.0 + "@react-hookz/web": ^19.0.0 "@rjsf/core": ^3.2.1 "@rjsf/core-v5": "npm:@rjsf/core@^5.0.0-beta.12" "@rjsf/material-ui": ^3.2.1 @@ -8124,7 +8124,7 @@ __metadata: "@material-ui/core": ^4.9.13 "@material-ui/icons": ^4.9.1 "@material-ui/lab": 4.0.0-alpha.57 - "@react-hookz/web": ^15.0.0 + "@react-hookz/web": ^19.0.0 "@testing-library/jest-dom": ^5.10.1 "@testing-library/react": ^12.1.3 "@testing-library/user-event": ^14.0.0 @@ -12407,6 +12407,22 @@ __metadata: languageName: node linkType: hard +"@react-hookz/web@npm:^19.0.0": + version: 19.2.0 + resolution: "@react-hookz/web@npm:19.2.0" + dependencies: + "@react-hookz/deep-equal": ^1.0.3 + peerDependencies: + js-cookie: ^3.0.1 + react: ^16.8 || ^17 || ^18 + react-dom: ^16.8 || ^17 || ^18 + peerDependenciesMeta: + js-cookie: + optional: true + checksum: 0fda3d3a0f967b6b38817f1e72d111711fc01036a8e6d0850bd4e3b3fa41af8635b260babf19e384402ac6d2dfa7db779585c0c8b16700cc0f568df9662ca517 + languageName: node + linkType: hard + "@remix-run/router@npm:1.0.3": version: 1.0.3 resolution: "@remix-run/router@npm:1.0.3" From 95c85f5b5a72ea471bd9658aacfa843320fd54ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Tue, 29 Nov 2022 14:52:07 +0100 Subject: [PATCH 2/2] fixup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- packages/core-components/src/layout/Sidebar/Intro.tsx | 2 +- .../src/ExpandableNavigation/ExpandableNavigation.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core-components/src/layout/Sidebar/Intro.tsx b/packages/core-components/src/layout/Sidebar/Intro.tsx index 91e188b203..5cc6bbdcd5 100644 --- a/packages/core-components/src/layout/Sidebar/Intro.tsx +++ b/packages/core-components/src/layout/Sidebar/Intro.tsx @@ -151,7 +151,7 @@ export function SidebarIntro(_props: {}) { starredItemsDismissed: false, recentlyViewedItemsDismissed: false, }; - const [dismissedIntro, setDismissedIntro] = + const { value: dismissedIntro, set: setDismissedIntro } = useLocalStorageValue(SIDEBAR_INTRO_LOCAL_STORAGE); const { starredItemsDismissed, recentlyViewedItemsDismissed } = diff --git a/plugins/techdocs-module-addons-contrib/src/ExpandableNavigation/ExpandableNavigation.tsx b/plugins/techdocs-module-addons-contrib/src/ExpandableNavigation/ExpandableNavigation.tsx index 5ef76187e3..802e377f42 100644 --- a/plugins/techdocs-module-addons-contrib/src/ExpandableNavigation/ExpandableNavigation.tsx +++ b/plugins/techdocs-module-addons-contrib/src/ExpandableNavigation/ExpandableNavigation.tsx @@ -61,10 +61,10 @@ type expandableNavigationLocalStorage = { */ export const ExpandableNavigationAddon = () => { const defaultValue = { expandAllNestedNavs: false }; - const [expanded, setExpanded] = + const { value: expanded, set: setExpanded } = useLocalStorageValue( EXPANDABLE_NAVIGATION_LOCAL_STORAGE, - defaultValue, + { defaultValue }, ); const [hasNavSubLevels, setHasNavSubLevels] = useState(false);