From e6aed76f53505eea80ae7e36b01f7d103ff8b5de Mon Sep 17 00:00:00 2001 From: Lucas Tortora Date: Thu, 1 Feb 2024 11:57:26 -0300 Subject: [PATCH 1/3] installed infima package to fix CSS warnings --- package.json | 1 + src/utils/pluginConfigGenerators.js | 5 ----- yarn.lock | 3 ++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 6101264fe8f..852e1894665 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ "globby": "^13.1.4", "hast-util-is-element": "1.1.0", "humanize-duration": "^3.30.0", + "infima": "^0.2.0-alpha.43", "plugin-image-zoom": "flexanalytics/plugin-image-zoom", "raw-loader": "^4.0.2", "react": "18.2.0", diff --git a/src/utils/pluginConfigGenerators.js b/src/utils/pluginConfigGenerators.js index 7ae1b031693..f3ad9342b28 100644 --- a/src/utils/pluginConfigGenerators.js +++ b/src/utils/pluginConfigGenerators.js @@ -85,11 +85,6 @@ function createVersionRedirects(versionedConfig) { to: '/' + routeBasePath, }); - // Redirect to main IOTA version - redirects.push({ - from: '/' + routeBasePath + '/iota', - to: '/' + routeBasePath, - }); } if (mainShimmerVersion && mainShimmerVersion !== mainVersion) diff --git a/yarn.lock b/yarn.lock index 5e148270449..3f138ead15f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2853,6 +2853,7 @@ __metadata: globby: ^13.1.4 hast-util-is-element: 1.1.0 humanize-duration: ^3.30.0 + infima: ^0.2.0-alpha.43 plugin-image-zoom: flexanalytics/plugin-image-zoom prettier: ^2.8.8 raw-loader: ^4.0.2 @@ -10985,7 +10986,7 @@ __metadata: languageName: node linkType: hard -"infima@npm:0.2.0-alpha.43": +"infima@npm:0.2.0-alpha.43, infima@npm:^0.2.0-alpha.43": version: 0.2.0-alpha.43 resolution: "infima@npm:0.2.0-alpha.43" checksum: fc5f79240e940eddd750439511767092ccb4051e5e91d253ec7630a9e7ce691812da3aa0f05e46b4c0a95dbfadeae5714fd0073f8d2df12e5aaff0697a1d6aa2 From 1c399735c58a4ed07a4f4fb0f0b5173be51d353a Mon Sep 17 00:00:00 2001 From: Lucas Tortora Date: Thu, 1 Feb 2024 12:28:10 -0300 Subject: [PATCH 2/3] included ws bufferutil utf-8-validate --- package.json | 6 +++++- yarn.lock | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 852e1894665..4d1ea9e5120 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "@popperjs/core": "^2.11.5", "@saucelabs/theme-github-codeblock": "^0.2.3", "@svgr/webpack": "^5.5.0", + "bufferutil": "^4.0.8", "clsx": "^1.2.1", "docusaurus-plugin-openapi-docs": "dr-electron/docusaurus-openapi-docs#head=tmp-fix-type&workspace=docusaurus-plugin-openapi-docs", "docusaurus-theme-openapi-docs": "dr-electron/docusaurus-openapi-docs#head=tmp-fix-type&workspace=docusaurus-theme-openapi-docs", @@ -73,7 +74,10 @@ "remark-math": "^3.0.1", "remark-remove-comments": "^0.2.0", "url-loader": "^4.1.1", - "webpack": "^5.89.0" + "utf-8-validate": "^6.0.3", + "webpack": "^5.89.0", + "webpack-node-externals": "^3.0.0", + "ws": "^8.16.0" }, "resolutions": { "@types/react": "18.2.46", diff --git a/yarn.lock b/yarn.lock index 3f138ead15f..28f125908cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2840,6 +2840,7 @@ __metadata: "@types/webpack-env": ^1.18.3 "@typescript-eslint/eslint-plugin": ^5.62.0 "@typescript-eslint/parser": ^5.9.1 + bufferutil: ^4.0.8 clsx: ^1.2.1 docusaurus-plugin-openapi-docs: "dr-electron/docusaurus-openapi-docs#head=tmp-fix-type&workspace=docusaurus-plugin-openapi-docs" docusaurus-theme-openapi-docs: "dr-electron/docusaurus-openapi-docs#head=tmp-fix-type&workspace=docusaurus-theme-openapi-docs" @@ -2875,7 +2876,10 @@ __metadata: svgo: ^2.8.0 typescript: ^4.5.4 url-loader: ^4.1.1 + utf-8-validate: ^6.0.3 webpack: ^5.89.0 + webpack-node-externals: ^3.0.0 + ws: ^8.16.0 languageName: unknown linkType: soft @@ -6709,6 +6713,16 @@ __metadata: languageName: node linkType: hard +"bufferutil@npm:^4.0.8": + version: 4.0.8 + resolution: "bufferutil@npm:4.0.8" + dependencies: + node-gyp: latest + node-gyp-build: ^4.3.0 + checksum: 7e9a46f1867dca72fda350966eb468eca77f4d623407b0650913fadf73d5750d883147d6e5e21c56f9d3b0bdc35d5474e80a600b9f31ec781315b4d2469ef087 + languageName: node + linkType: hard + "builtin-status-codes@npm:^3.0.0": version: 3.0.0 resolution: "builtin-status-codes@npm:3.0.0" @@ -13616,6 +13630,17 @@ __metadata: languageName: node linkType: hard +"node-gyp-build@npm:^4.3.0": + version: 4.8.0 + resolution: "node-gyp-build@npm:4.8.0" + bin: + node-gyp-build: bin.js + node-gyp-build-optional: optional.js + node-gyp-build-test: build-test.js + checksum: b82a56f866034b559dd3ed1ad04f55b04ae381b22ec2affe74b488d1582473ca6e7f85fccf52da085812d3de2b0bf23109e752a57709ac7b9963951c710fea40 + languageName: node + linkType: hard + "node-gyp@npm:latest": version: 10.0.1 resolution: "node-gyp@npm:10.0.1" @@ -18883,6 +18908,16 @@ plugin-image-zoom@flexanalytics/plugin-image-zoom: languageName: node linkType: hard +"utf-8-validate@npm:^6.0.3": + version: 6.0.3 + resolution: "utf-8-validate@npm:6.0.3" + dependencies: + node-gyp: latest + node-gyp-build: ^4.3.0 + checksum: 5e21383c81ff7469c1912119ca69d07202d944c73ddd8a54b84dddcc546b939054e5101c78c294e494d206fe93bd43428adc635a0660816b3ec9c8ec89286ac4 + languageName: node + linkType: hard + "util-deprecate@npm:^1.0.1, util-deprecate@npm:^1.0.2, util-deprecate@npm:~1.0.1": version: 1.0.2 resolution: "util-deprecate@npm:1.0.2" @@ -19618,6 +19653,13 @@ plugin-image-zoom@flexanalytics/plugin-image-zoom: languageName: node linkType: hard +"webpack-node-externals@npm:^3.0.0": + version: 3.0.0 + resolution: "webpack-node-externals@npm:3.0.0" + checksum: 355080c35c821115b97dda8c93d9d0565a90a6012a532324eb0d6a64f8f0d609431fd29504fc7ce414755841ac14f601f3eef99472c2c5dc00233b504ebe73f2 + languageName: node + linkType: hard + "webpack-sources@npm:^3.2.2, webpack-sources@npm:^3.2.3": version: 3.2.3 resolution: "webpack-sources@npm:3.2.3" @@ -19919,6 +19961,21 @@ plugin-image-zoom@flexanalytics/plugin-image-zoom: languageName: node linkType: hard +"ws@npm:^8.16.0": + version: 8.16.0 + resolution: "ws@npm:8.16.0" + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ">=5.0.2" + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + checksum: feb3eecd2bae82fa8a8beef800290ce437d8b8063bdc69712725f21aef77c49cb2ff45c6e5e7fce622248f9c7abaee506bae0a9064067ffd6935460c7357321b + languageName: node + linkType: hard + "xdg-basedir@npm:^4.0.0": version: 4.0.0 resolution: "xdg-basedir@npm:4.0.0" From d65c521b50098986fff193f6b8108583d2ab9980 Mon Sep 17 00:00:00 2001 From: Lucas Tortora Date: Thu, 1 Feb 2024 12:57:21 -0300 Subject: [PATCH 3/3] format --- src/utils/pluginConfigGenerators.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/pluginConfigGenerators.js b/src/utils/pluginConfigGenerators.js index f3ad9342b28..864841a20a6 100644 --- a/src/utils/pluginConfigGenerators.js +++ b/src/utils/pluginConfigGenerators.js @@ -84,7 +84,6 @@ function createVersionRedirects(versionedConfig) { from: '/' + routeBasePath + '/iota', to: '/' + routeBasePath, }); - } if (mainShimmerVersion && mainShimmerVersion !== mainVersion)