From f5f7526f53a79cd8804e6dc95129b11b166a52fd Mon Sep 17 00:00:00 2001 From: gaoyuan Date: Mon, 6 Nov 2023 10:56:24 +0800 Subject: [PATCH] chore(builder): update rspack to 0.3.10 and fix deprecate warning (#4908) --- .changeset/late-cows-judge.md | 7 + .../builder-rspack-provider/package.json | 6 +- .../src/core/rspackConfig.ts | 5 +- .../src/plugins/react.ts | 23 +- .../__snapshots__/default.test.ts.snap | 36 ++-- .../builder/builder-shared/src/apply/hmr.ts | 2 +- .../builder/builder-shared/src/types/hooks.ts | 1 + .../src/core/webpackConfig.ts | 3 +- .../builder/plugin-node-polyfill/src/index.ts | 32 +-- pnpm-lock.yaml | 204 +++--------------- 10 files changed, 83 insertions(+), 236 deletions(-) create mode 100644 .changeset/late-cows-judge.md diff --git a/.changeset/late-cows-judge.md b/.changeset/late-cows-judge.md new file mode 100644 index 000000000000..5072fff36fe1 --- /dev/null +++ b/.changeset/late-cows-judge.md @@ -0,0 +1,7 @@ +--- +'@modern-js/builder-rspack-provider': patch +--- + +chore(builder): update rspack to 0.3.10 and fix deprecate warning + +chore(builder): 升级 rspack 到 0.3.10 并修复 deprecate warning diff --git a/packages/builder/builder-rspack-provider/package.json b/packages/builder/builder-rspack-provider/package.json index 0c3e9fc6dbd5..cb8f4da2c283 100644 --- a/packages/builder/builder-rspack-provider/package.json +++ b/packages/builder/builder-rspack-provider/package.json @@ -56,9 +56,9 @@ "@modern-js/types": "workspace:*", "@modern-js/utils": "workspace:*", "@babel/preset-typescript": "^7.22.15", - "@rspack/core": "0.3.8", - "@rspack/dev-client": "0.3.8", - "@rspack/plugin-html": "0.3.8", + "@rspack/core": "0.3.10", + "@rspack/dev-client": "0.3.10", + "@rspack/plugin-html": "0.3.10", "@swc/helpers": "0.5.1", "rspack-manifest-plugin": "5.0.0-alpha0", "caniuse-lite": "^1.0.30001520", diff --git a/packages/builder/builder-rspack-provider/src/core/rspackConfig.ts b/packages/builder/builder-rspack-provider/src/core/rspackConfig.ts index a2b4f0e32f4b..db8f74da4f64 100644 --- a/packages/builder/builder-rspack-provider/src/core/rspackConfig.ts +++ b/packages/builder/builder-rspack-provider/src/core/rspackConfig.ts @@ -124,13 +124,16 @@ export async function generateRspackConfig({ context: Context; }) { const chainUtils = await getChainUtils(target); - const { BannerPlugin, DefinePlugin } = await import('@rspack/core'); + const { BannerPlugin, DefinePlugin, ProvidePlugin } = await import( + '@rspack/core' + ); const chain = await modifyBundlerChain(context, { ...chainUtils, bundler: { BannerPlugin, DefinePlugin, + ProvidePlugin, }, }); diff --git a/packages/builder/builder-rspack-provider/src/plugins/react.ts b/packages/builder/builder-rspack-provider/src/plugins/react.ts index cd724e493786..d9fd74458c78 100644 --- a/packages/builder/builder-rspack-provider/src/plugins/react.ts +++ b/packages/builder/builder-rspack-provider/src/plugins/react.ts @@ -16,13 +16,24 @@ export const builderPluginReact = (): BuilderPlugin => ({ // https://swc.rs/docs/configuration/compilation#jsctransformreactruntime runtime: 'automatic', }); + }); - setConfig(rspackConfig, 'builtins.provide', { - ...(rspackConfig.builtins?.provide || {}), - $ReactRefreshRuntime$: [ - require.resolve('@rspack/dev-client/react-refresh'), - ], - }); + api.modifyBundlerChain(async (chain, utils) => { + const config = api.getNormalizedConfig(); + + const usingHMR = isUsingHMR(config, utils); + + const { bundler } = utils; + + if (usingHMR) { + chain.plugin('ReactRefreshRuntime').use(bundler.ProvidePlugin, [ + { + $ReactRefreshRuntime$: [ + require.resolve('@rspack/dev-client/react-refresh'), + ], + }, + ]); + } }); }, }); diff --git a/packages/builder/builder-rspack-provider/tests/plugins/__snapshots__/default.test.ts.snap b/packages/builder/builder-rspack-provider/tests/plugins/__snapshots__/default.test.ts.snap index 9d9aa3a450db..8fe3a762c770 100644 --- a/packages/builder/builder-rspack-provider/tests/plugins/__snapshots__/default.test.ts.snap +++ b/packages/builder/builder-rspack-provider/tests/plugins/__snapshots__/default.test.ts.snap @@ -41,11 +41,6 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = ` "not op_mini all", ], }, - "provide": { - "$ReactRefreshRuntime$": [ - "/node_modules//@rspack/dev-client/src/reactRefresh.js", - ], - }, "react": { "development": true, "refresh": true, @@ -702,6 +697,14 @@ exports[`applyDefaultPlugins > should apply default plugins correctly 1`] = ` }, "name": "ProgressPlugin", }, + Plugin { + "_options": { + "$ReactRefreshRuntime$": [ + "/node_modules//@rspack/dev-client/src/reactRefresh.js", + ], + }, + "name": "ProvidePlugin", + }, ], "resolve": { "alias": { @@ -765,11 +768,6 @@ exports[`applyDefaultPlugins > should apply default plugins correctly when prod "not op_mini all", ], }, - "provide": { - "$ReactRefreshRuntime$": [ - "/node_modules//@rspack/dev-client/src/reactRefresh.js", - ], - }, "react": { "development": false, "refresh": false, @@ -1541,11 +1539,6 @@ exports[`applyDefaultPlugins > should apply default plugins correctyly when targ "node >= 14", ], }, - "provide": { - "$ReactRefreshRuntime$": [ - "/node_modules//@rspack/dev-client/src/reactRefresh.js", - ], - }, "react": { "development": true, "refresh": false, @@ -2011,11 +2004,6 @@ exports[`tools.rspack > should match snapshot 1`] = ` "not op_mini all", ], }, - "provide": { - "$ReactRefreshRuntime$": [ - "/node_modules//@rspack/dev-client/src/reactRefresh.js", - ], - }, "react": { "development": true, "refresh": true, @@ -2683,6 +2671,14 @@ exports[`tools.rspack > should match snapshot 1`] = ` }, "name": "ProgressPlugin", }, + Plugin { + "_options": { + "$ReactRefreshRuntime$": [ + "/node_modules//@rspack/dev-client/src/reactRefresh.js", + ], + }, + "name": "ProvidePlugin", + }, ], "resolve": { "alias": { diff --git a/packages/builder/builder-shared/src/apply/hmr.ts b/packages/builder/builder-shared/src/apply/hmr.ts index 421181fa03af..ff8123b05b85 100644 --- a/packages/builder/builder-shared/src/apply/hmr.ts +++ b/packages/builder/builder-shared/src/apply/hmr.ts @@ -2,7 +2,7 @@ import { ModifyChainUtils, SharedNormalizedConfig } from '../types'; export function isUsingHMR( config: SharedNormalizedConfig, - { isProd, target }: ModifyChainUtils, + { isProd, target }: Pick, ) { return ( !isProd && diff --git a/packages/builder/builder-shared/src/types/hooks.ts b/packages/builder/builder-shared/src/types/hooks.ts index 80e349cb58fa..d86f68baf09d 100644 --- a/packages/builder/builder-shared/src/types/hooks.ts +++ b/packages/builder/builder-shared/src/types/hooks.ts @@ -65,6 +65,7 @@ export type ModifyBundlerChainUtils = ModifyChainUtils & { bundler: { BannerPlugin: WebpackPluginInstance; DefinePlugin: WebpackPluginInstance; + ProvidePlugin: WebpackPluginInstance; }; }; diff --git a/packages/builder/builder-webpack-provider/src/core/webpackConfig.ts b/packages/builder/builder-webpack-provider/src/core/webpackConfig.ts index a363184a9481..6bbcf6672693 100644 --- a/packages/builder/builder-webpack-provider/src/core/webpackConfig.ts +++ b/packages/builder/builder-webpack-provider/src/core/webpackConfig.ts @@ -155,13 +155,14 @@ export async function generateWebpackConfig({ context: Context; }) { const chainUtils = await getChainUtils(target); - const { BannerPlugin, DefinePlugin } = await import('webpack'); + const { BannerPlugin, DefinePlugin, ProvidePlugin } = await import('webpack'); const bundlerChain = await modifyBundlerChain(context, { ...chainUtils, bundler: { BannerPlugin, DefinePlugin, + ProvidePlugin, }, }); diff --git a/packages/builder/plugin-node-polyfill/src/index.ts b/packages/builder/plugin-node-polyfill/src/index.ts index ddbd82741031..0be18059b99e 100644 --- a/packages/builder/plugin-node-polyfill/src/index.ts +++ b/packages/builder/plugin-node-polyfill/src/index.ts @@ -1,4 +1,3 @@ -import { setConfig } from '@modern-js/builder-shared'; import type { BuilderPlugin } from '@modern-js/builder'; import type { BuilderPluginAPI as WebpackBuilderPluginAPI } from '@modern-js/builder-webpack-provider'; import type { BuilderPluginAPI as RspackBuilderPluginAPI } from '@modern-js/builder-rspack-provider'; @@ -41,7 +40,7 @@ export function builderPluginNodePolyfill(): BuilderPlugin< name: 'builder-plugin-node-polyfill', async setup(api) { - api.modifyBundlerChain(async (chain, { isServer }) => { + api.modifyBundlerChain(async (chain, { CHAIN_ID, isServer, bundler }) => { // it had not need `node polyfill`, if the target is 'node'(server runtime). if (isServer) { return; @@ -54,32 +53,11 @@ export function builderPluginNodePolyfill(): BuilderPlugin< // module polyfill chain.resolve.fallback.merge(getResolveFallback(nodeLibs)); - }); - if (api.context.bundlerType === 'rspack') { - (api as RspackBuilderPluginAPI).modifyRspackConfig( - async (config, { isServer }) => { - if (isServer) { - return; - } - setConfig(config, 'builtins.provide', { - ...(config.builtins?.provide ?? {}), - ...(await getProvideLibs()), - }); - }, - ); - } else { - (api as WebpackBuilderPluginAPI).modifyWebpackChain( - async (chain, { CHAIN_ID, isServer, webpack }) => { - if (isServer) { - return; - } - chain - .plugin(CHAIN_ID.PLUGIN.NODE_POLYFILL_PROVIDE) - .use(webpack.ProvidePlugin, [await getProvideLibs()]); - }, - ); - } + chain + .plugin(CHAIN_ID.PLUGIN.NODE_POLYFILL_PROVIDE) + .use(bundler.ProvidePlugin, [await getProvideLibs()]); + }); }, }; } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2c34370bf8f5..6d4e70dcf5a3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -171,14 +171,14 @@ importers: specifier: workspace:* version: link:../../toolkit/utils '@rspack/core': - specifier: 0.3.8 - version: 0.3.8 + specifier: 0.3.10 + version: 0.3.10 '@rspack/dev-client': - specifier: 0.3.8 - version: 0.3.8(react-refresh@0.14.0)(webpack@5.88.1) + specifier: 0.3.10 + version: 0.3.10(react-refresh@0.14.0)(webpack@5.88.1) '@rspack/plugin-html': - specifier: 0.3.8 - version: 0.3.8(@rspack/core@0.3.8) + specifier: 0.3.10 + version: 0.3.10(@rspack/core@0.3.10) '@swc/helpers': specifier: 0.5.1 version: 0.5.1 @@ -8908,7 +8908,7 @@ packages: '@babel/core': 7.23.2 '@babel/helper-annotate-as-pure': 7.22.5 '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-wrap-function': 7.22.20 + '@babel/helper-wrap-function': 7.22.10 /@babel/helper-replace-supers@7.22.20(@babel/core@7.23.2): resolution: {integrity: sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==} @@ -8951,8 +8951,8 @@ packages: resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==} engines: {node: '>=6.9.0'} - /@babel/helper-wrap-function@7.22.20: - resolution: {integrity: sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==} + /@babel/helper-wrap-function@7.22.10: + resolution: {integrity: sha512-OnMhjWjuGYtdoO3FmsEFWvBStBAe2QOgwOLsLNDjN+aaiMD8InJk1/O3HSD8lkqTjCgg5YI34Tz15KNNA3p+nQ==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-function-name': 7.23.0 @@ -12457,7 +12457,7 @@ packages: dependencies: '@babel/runtime': 7.23.2 '@modern-js/codesmith': 2.2.5 - '@modern-js/utils': 2.39.0 + '@modern-js/utils': 2.37.2 dev: true /@modern-js/codesmith-api-git@2.3.0(@modern-js/codesmith@2.3.0): @@ -12517,7 +12517,7 @@ packages: dependencies: '@babel/runtime': 7.23.2 '@modern-js/codesmith': 2.2.5 - '@modern-js/utils': 2.39.0 + '@modern-js/utils': 2.37.2 transitivePeerDependencies: - debug dev: true @@ -12540,7 +12540,7 @@ packages: '@formily/json-schema': 2.2.24(typescript@5.2.2) '@formily/validator': 2.2.24 '@modern-js/codesmith': 2.2.5 - '@modern-js/utils': 2.39.0 + '@modern-js/utils': 2.37.2 inquirer: 8.2.5 transitivePeerDependencies: - typescript @@ -12554,7 +12554,7 @@ packages: '@formily/json-schema': 2.2.24(typescript@5.0.4) '@formily/validator': 2.2.24 '@modern-js/codesmith': 2.3.0 - '@modern-js/utils': 2.39.0 + '@modern-js/utils': 2.37.2 '@swc/helpers': 0.5.1 inquirer: 8.2.5 transitivePeerDependencies: @@ -12861,15 +12861,7 @@ packages: resolution: {integrity: sha512-w9qsxogSrvUBHmBPKjr7vqV9b6HkzcSd7Ps0KhBaB+iAfv2fNumVELA/zWqtRyJdlXvMB0Y3ilYB9+XM17NmNw==} dependencies: '@swc/helpers': 0.5.1 - caniuse-lite: 1.0.30001559 - lodash: 4.17.21 - rslog: 1.1.0 - - /@modern-js/utils@2.39.0: - resolution: {integrity: sha512-k8J4eYgguKRHbJd4gON9DDzxX8Cmb7BS2lOGf6Uqsd4T8/KkfTl1C0qTO9Jso63K7RJJpw6dKGUQEp46qWelBA==} - dependencies: - '@swc/helpers': 0.5.1 - caniuse-lite: 1.0.30001559 + caniuse-lite: 1.0.30001520 lodash: 4.17.21 rslog: 1.1.0 @@ -14991,15 +14983,6 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-darwin-arm64@0.3.8: - resolution: {integrity: sha512-qvxzkUaqAbVmwJuVW3p7o1XVT5z2MbwpC9VZQr1fAd7/vEdDfiMm8Vz1AcY/WKxrUjX6rwNs3Ix1SdSBveThKQ==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: false optional: true /@rspack/binding-darwin-x64@0.3.10: @@ -15007,15 +14990,6 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-darwin-x64@0.3.8: - resolution: {integrity: sha512-Ae3cJiTcXuBTZdLv+vDtbjGcx5D0rizg7nuRmtFmDvtPjYgFE9y0F+VzajQVySqvtAO8kowryC8BYjqnJ7A2Rg==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: false optional: true /@rspack/binding-linux-arm64-gnu@0.3.10: @@ -15023,15 +14997,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-linux-arm64-gnu@0.3.8: - resolution: {integrity: sha512-aZ/cbLq8j85t4TLA94Oj+urPMDlBb+FHce4YGatX6+0juzxNUY23rSRB6pvtQz6DkFxFHDayiOcLkk8loiNiUQ==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: false optional: true /@rspack/binding-linux-arm64-musl@0.3.10: @@ -15039,15 +15004,6 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-linux-arm64-musl@0.3.8: - resolution: {integrity: sha512-fcwnXl6BqnZ21LizWdcuFz1CNHHuMRoll1z5nfnWn5yzNo5eprXNqFgw0aC5R15Gri/GaiT7bZA7FXAU7eGR8g==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: false optional: true /@rspack/binding-linux-x64-gnu@0.3.10: @@ -15055,15 +15011,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-linux-x64-gnu@0.3.8: - resolution: {integrity: sha512-W7Kqf13GE/mT/HiQfnLMCkrNxekaJuk53sOYVehxBJ6J5NKvL/uzBvPa3m2EtbhUUkBnR0t87Yp04YS9JrnkeA==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false optional: true /@rspack/binding-linux-x64-musl@0.3.10: @@ -15071,15 +15018,6 @@ packages: cpu: [x64] os: [linux] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-linux-x64-musl@0.3.8: - resolution: {integrity: sha512-KIRAj7WQ3JLaCENctA1aiREw9PPuLAFMxkXPGm2YeszfLhv+o3Suehc0OvsPcGeXg/laGKQzl0RV6dHyKfocQg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: false optional: true /@rspack/binding-win32-arm64-msvc@0.3.10: @@ -15087,15 +15025,6 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-win32-arm64-msvc@0.3.8: - resolution: {integrity: sha512-PHlMQu0uiUBiJCpxR1ql6HJBeFpsombiPRquoN2d/a5WfkETDX04BnfN7XW8Fe9j164iCe5yU0Xwk0gaaJp3Uw==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: false optional: true /@rspack/binding-win32-ia32-msvc@0.3.10: @@ -15103,15 +15032,6 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-win32-ia32-msvc@0.3.8: - resolution: {integrity: sha512-ln3js9wOQLJi9E1MVNtLui56a3pXmSnEags9YJhZs5ZMT5SJGsofoa0zXNxeTMuRQ0Gx5w0tVSXZXgyVUm1OdA==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: false optional: true /@rspack/binding-win32-x64-msvc@0.3.10: @@ -15119,15 +15039,6 @@ packages: cpu: [x64] os: [win32] requiresBuild: true - dev: true - optional: true - - /@rspack/binding-win32-x64-msvc@0.3.8: - resolution: {integrity: sha512-UK70L1vsp5St0qPATB1UdrFh9Ax/G1VpWx3Fp4W5iNzfcLBDKbCpEyCetxZhjHCcFVfbSE74X34NzgDiLDFrHA==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: false optional: true /@rspack/binding@0.3.10: @@ -15142,21 +15053,6 @@ packages: '@rspack/binding-win32-arm64-msvc': 0.3.10 '@rspack/binding-win32-ia32-msvc': 0.3.10 '@rspack/binding-win32-x64-msvc': 0.3.10 - dev: true - - /@rspack/binding@0.3.8: - resolution: {integrity: sha512-urM1+I6BL1jv6hUZ44Nv2kYYWVIQxRIJoZFrlubo1XhTJqTFUPNF/7E/ritNC9J6gxxZMQLc0NLJz4jdUTaUbg==} - optionalDependencies: - '@rspack/binding-darwin-arm64': 0.3.8 - '@rspack/binding-darwin-x64': 0.3.8 - '@rspack/binding-linux-arm64-gnu': 0.3.8 - '@rspack/binding-linux-arm64-musl': 0.3.8 - '@rspack/binding-linux-x64-gnu': 0.3.8 - '@rspack/binding-linux-x64-musl': 0.3.8 - '@rspack/binding-win32-arm64-msvc': 0.3.8 - '@rspack/binding-win32-ia32-msvc': 0.3.8 - '@rspack/binding-win32-x64-msvc': 0.3.8 - dev: false /@rspack/core@0.3.10: resolution: {integrity: sha512-1mwLC9zyF15kpOQzxsrG5zjPxOSQHnKW/MUXvx4ak0JuZCK3uJgLsK8Jn8tSqvEeh2rWvm7k0S6GJIFl2F2jvA==} @@ -15179,38 +15075,16 @@ packages: webpack-sources: 3.2.3 zod: 3.22.3 zod-validation-error: 1.2.0(zod@3.22.3) - dev: true - - /@rspack/core@0.3.8: - resolution: {integrity: sha512-KUYYqm+PKVJBnnLuB+t0RCu0LhWm8mM3K3/VIGSATUi66Xgn7mxbSoab0IrCXWGekPUpUrmoA7hLg06wMtVJlQ==} - dependencies: - '@rspack/binding': 0.3.8 - '@swc/helpers': 0.5.1 - browserslist: 4.21.10 - compare-versions: 6.0.0-rc.1 - enhanced-resolve: 5.12.0 - graceful-fs: 4.2.10 - neo-async: 2.6.2 - react-refresh: 0.14.0 - schema-utils: 4.2.0 - tapable: 2.2.1 - terminal-link: 2.1.1 - util: 0.12.5 - watchpack: 2.4.0 - webpack-sources: 3.2.3 - zod: 3.22.3 - zod-validation-error: 1.2.0(zod@3.22.3) - dev: false - /@rspack/dev-client@0.3.2(react-refresh@0.14.0)(webpack-hot-middleware@2.25.4)(webpack@5.88.1): - resolution: {integrity: sha512-t/4b6rzMh13pi0JARj85xaU02FNihUmGGpsHsG3UdqM1pVzS3z6Kl6h0FrmMG8NNJAvoTT0p6drltdijIxb6Qw==} + /@rspack/dev-client@0.3.10(react-refresh@0.14.0)(webpack@5.88.1): + resolution: {integrity: sha512-7jD5IsQkUL8S54LmyIKMlPmBAW2eQ+KBMDzK9JG9I2rgAAPb4tGHgHMj4GF+/dQyAOzmx521cFmDkz+bJymU7Q==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: react-refresh: optional: true dependencies: - '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.14.0)(webpack-hot-middleware@2.25.4)(webpack@5.88.1) + '@rspack/plugin-react-refresh': 0.3.10(react-refresh@0.14.0)(webpack@5.88.1) react-refresh: 0.14.0 transitivePeerDependencies: - '@types/webpack' @@ -15222,15 +15096,15 @@ packages: - webpack-plugin-serve dev: false - /@rspack/dev-client@0.3.8(react-refresh@0.14.0)(webpack@5.88.1): - resolution: {integrity: sha512-L+5ZdHj6DXKg9yaIjoDhnqPAXEXxuyvUJBNb8NVzshKqLhKYsAPQCSOtGLb984b0kVdh53lckZb3vwRbfei3lw==} + /@rspack/dev-client@0.3.2(react-refresh@0.14.0)(webpack-hot-middleware@2.25.4)(webpack@5.88.1): + resolution: {integrity: sha512-t/4b6rzMh13pi0JARj85xaU02FNihUmGGpsHsG3UdqM1pVzS3z6Kl6h0FrmMG8NNJAvoTT0p6drltdijIxb6Qw==} peerDependencies: react-refresh: '>=0.10.0 <1.0.0' peerDependenciesMeta: react-refresh: optional: true dependencies: - '@rspack/plugin-react-refresh': 0.3.8(react-refresh@0.14.0)(webpack@5.88.1) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.14.0)(webpack-hot-middleware@2.25.4)(webpack@5.88.1) react-refresh: 0.14.0 transitivePeerDependencies: - '@types/webpack' @@ -15242,15 +15116,15 @@ packages: - webpack-plugin-serve dev: false - /@rspack/plugin-html@0.3.8(@rspack/core@0.3.8): - resolution: {integrity: sha512-eHZo+Ah2vrsS9pxT5Xue7SjSMN8joSNHDLui95Pnni1oj1ESuCojhxPCRxUhbort7xwsGYpnhfhsJZoHL8qN4w==} + /@rspack/plugin-html@0.3.10(@rspack/core@0.3.10): + resolution: {integrity: sha512-zTbcoigqKG8UChq4nBcr47dUZiIBiWwKhqXX++6k7AocyUbBwcVL6tGOtBeSXTMH8IHDazgCACLfbzX+FyKMaw==} peerDependencies: - '@rspack/core': 0.3.8 + '@rspack/core': 0.3.10 peerDependenciesMeta: '@rspack/core': optional: true dependencies: - '@rspack/core': 0.3.8 + '@rspack/core': 0.3.10 '@types/html-minifier-terser': 7.0.0 html-minifier-terser: 7.0.0 lodash.template: 4.5.0 @@ -15277,28 +15151,6 @@ packages: - webpack-dev-server - webpack-hot-middleware - webpack-plugin-serve - dev: true - - /@rspack/plugin-react-refresh@0.3.8(react-refresh@0.14.0)(webpack@5.88.1): - resolution: {integrity: sha512-HF6liXhYJqXRYlQNRNTu1YpR4QykOAjh9/8bt6kYKsWZPj5D1zcPH+evpvF7QxcRpfSRXRujyHOXMIKBLTBqIQ==} - peerDependencies: - react-refresh: '>=0.10.0 <1.0.0' - peerDependenciesMeta: - react-refresh: - optional: true - dependencies: - '@pmmmwh/react-refresh-webpack-plugin': 0.5.10(react-refresh@0.14.0)(webpack@5.88.1) - react-refresh: 0.14.0 - schema-utils: 4.2.0 - transitivePeerDependencies: - - '@types/webpack' - - sockjs-client - - type-fest - - webpack - - webpack-dev-server - - webpack-hot-middleware - - webpack-plugin-serve - dev: false /@rspress/core@1.5.0(esbuild@0.17.19)(ts-node@10.9.1)(webpack@5.88.1): resolution: {integrity: sha512-HiH0T6Zrm0csvUifpuwNJZj64T6LRMKD9aSge6GK2So/GAAiB/Itq4o3tTMDT6i7mejxvyh13A/9w8jjEboUcw==} @@ -18873,8 +18725,8 @@ packages: peerDependencies: postcss: ^8.1.0 dependencies: - browserslist: 4.22.1 - caniuse-lite: 1.0.30001559 + browserslist: 4.21.10 + caniuse-lite: 1.0.30001520 fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 @@ -25210,7 +25062,7 @@ packages: chalk: 4.1.2 ci-info: 3.3.2 graceful-fs: 4.2.10 - picomatch: 2.3.1 + picomatch: 2.3.0 /jest-validate@29.5.0: resolution: {integrity: sha512-pC26etNIi+y3HV8A+tUGr/lph9B18GnzSRAkPaaZJIE1eFdiYm6/CewuiJQ8/RlfHd1u/8Ioi8/sJ+CmbA+zAQ==} @@ -25443,7 +25295,6 @@ packages: /json-parse-even-better-errors@3.0.0: resolution: {integrity: sha512-iZbGHafX/59r39gPwVPRBGw0QQKnA7tte5pSMrhWOW7swGsVvVTjmfyAV9pNqk8YGT7tRCdxRu8uzcgZwoDooA==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - dev: true /json-schema-traverse@0.4.1: resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} @@ -29038,7 +28889,6 @@ packages: resolution: {integrity: sha512-wkvS7mL/JMugcup3/rMitHmd9ecIGd2lhFhK9N3UUQ450h66d1r3Y9nvXzQAW1Lq+wyx61k/1pfKS5KuKiyEbg==} engines: {node: '>=0.4.x'} deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. - dev: true /querystringify@2.2.0: resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==}