From 8a2ff3161ae3e572c599a6bc34a1bdcc3ee1fc8d Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 24 Feb 2026 00:03:31 -0800 Subject: [PATCH] Resolve a deprecation warning during the build. --- common/config/rush/pnpm-config.json | 3 +- common/config/rush/pnpm-lock.yaml | 7 +++- .../react-loadable-ssr-addon-v5-slorber.patch | 37 +++++++++++++++++++ 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 common/pnpm-patches/react-loadable-ssr-addon-v5-slorber.patch diff --git a/common/config/rush/pnpm-config.json b/common/config/rush/pnpm-config.json index b2094a60e..b24e53743 100644 --- a/common/config/rush/pnpm-config.json +++ b/common/config/rush/pnpm-config.json @@ -361,7 +361,8 @@ "globalPatchedDependencies": { "typesense-docsearch-react@0.2.3": "patches/typesense-docsearch-react@0.2.3.patch", "@docusaurus/theme-classic@2.3.1": "patches/@docusaurus__theme-classic@2.3.1.patch", - "docusaurus-theme-search-typesense@0.9.0": "patches/docusaurus-theme-search-typesense@0.9.0.patch" + "docusaurus-theme-search-typesense@0.9.0": "patches/docusaurus-theme-search-typesense@0.9.0.patch", + "react-loadable-ssr-addon-v5-slorber": "patches/react-loadable-ssr-addon-v5-slorber.patch" }, /** diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 658429e55..3ec34f05c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13,6 +13,9 @@ patchedDependencies: docusaurus-theme-search-typesense@0.9.0: hash: bacec88553f7670a6840ec01ffee4d08589139f4bc50e66891387f9430dbfd97 path: patches/docusaurus-theme-search-typesense@0.9.0.patch + react-loadable-ssr-addon-v5-slorber: + hash: 56abf3e0d4c9c2387f4743787ffaedef1028d5e5f5a96273a70386ab7847929a + path: patches/react-loadable-ssr-addon-v5-slorber.patch typesense-docsearch-react@0.2.3: hash: 6db27f943d0bac4504cc19fa3601afb661193d83c93f8625fb724f635b3269c4 path: patches/typesense-docsearch-react@0.2.3.patch @@ -8689,7 +8692,7 @@ snapshots: react-dom: 17.0.2(react@17.0.2) react-helmet-async: 1.3.0(react-dom@17.0.2(react@17.0.2))(react@17.0.2) react-loadable: '@docusaurus/react-loadable@5.5.2(react-dom@17.0.2(react@17.0.2))(react@17.0.2)' - react-loadable-ssr-addon-v5-slorber: 1.0.1(@docusaurus/react-loadable@5.5.2(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(webpack@5.105.2) + react-loadable-ssr-addon-v5-slorber: 1.0.1(patch_hash=56abf3e0d4c9c2387f4743787ffaedef1028d5e5f5a96273a70386ab7847929a)(@docusaurus/react-loadable@5.5.2(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(webpack@5.105.2) react-router: 5.3.4(react@17.0.2) react-router-config: 5.1.1(react-router@5.3.4(react@17.0.2))(react@17.0.2) react-router-dom: 5.3.4(react@17.0.2) @@ -15005,7 +15008,7 @@ snapshots: react-lifecycles-compat@3.0.4: {} - react-loadable-ssr-addon-v5-slorber@1.0.1(@docusaurus/react-loadable@5.5.2(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(webpack@5.105.2): + react-loadable-ssr-addon-v5-slorber@1.0.1(patch_hash=56abf3e0d4c9c2387f4743787ffaedef1028d5e5f5a96273a70386ab7847929a)(@docusaurus/react-loadable@5.5.2(react-dom@17.0.2(react@17.0.2))(react@17.0.2))(webpack@5.105.2): dependencies: '@babel/runtime': 7.26.10 react-loadable: '@docusaurus/react-loadable@5.5.2(react-dom@17.0.2(react@17.0.2))(react@17.0.2)' diff --git a/common/pnpm-patches/react-loadable-ssr-addon-v5-slorber.patch b/common/pnpm-patches/react-loadable-ssr-addon-v5-slorber.patch new file mode 100644 index 000000000..44180f273 --- /dev/null +++ b/common/pnpm-patches/react-loadable-ssr-addon-v5-slorber.patch @@ -0,0 +1,37 @@ +diff --git a/lib/ReactLoadableSSRAddon.js b/lib/ReactLoadableSSRAddon.js +index 80b1d3e073351c0ef78c408de9fa50f66dcdb363..9a744db26769d8e64636b5db6efa5792bb152613 100644 +--- a/lib/ReactLoadableSSRAddon.js ++++ b/lib/ReactLoadableSSRAddon.js +@@ -13,8 +13,6 @@ var _fs = _interopRequireDefault(require("fs")); + + var _path = _interopRequireDefault(require("path")); + +-var _url = _interopRequireDefault(require("url")); +- + var _utils = require("./utils"); + + var PLUGIN_NAME = 'ReactLoadableSSRAddon'; +@@ -219,10 +217,19 @@ var ReactLoadableSSRAddon = function () { + currentAsset[_this2.options.integrityPropertyName] = (0, _utils.computeIntegrity)(_this2.options.integrityAlgorithms, currentAsset.source()); + } + ++ // Simple concatenation avoids the deprecated url.resolve() API. ++ // Ensure publicPath has a trailing separator before appending the file. ++ var base = _this2.options.publicPath || ''; ++ if (base && !base.endsWith('/')) { ++ base += '/'; ++ } ++ ++ const publicPath = base + file; ++ + assets[id][ext].push({ + file: file, + hash: hash, +- publicPath: _url["default"].resolve(_this2.options.publicPath || '', file), ++ publicPath, + integrity: currentAsset[_this2.options.integrityPropertyName] + }); + } +diff --git a/package-lock.json b/package-lock.json +deleted file mode 100644 +index bfe36bbbe7fb95b07f43e099a45edc88acf15592..0000000000000000000000000000000000000000