diff --git a/.changeset/funny-hotels-fail.md b/.changeset/funny-hotels-fail.md new file mode 100644 index 0000000000..cf280cf7fe --- /dev/null +++ b/.changeset/funny-hotels-fail.md @@ -0,0 +1,5 @@ +--- +'@talend/scripts-config-react-webpack': patch +--- + +fix: remove deprecated cache-loader plugin diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b3ec14106..4d00eb79db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -2386,9 +2386,6 @@ importers: babel-loader: specifier: ^9.1.3 version: 9.1.3(@babel/core@7.22.20)(webpack@5.88.2) - cache-loader: - specifier: ^4.1.0 - version: 4.1.0(webpack@5.88.2) circular-dependency-plugin: specifier: ^5.2.2 version: 5.2.2(webpack@5.88.2) @@ -2520,7 +2517,7 @@ importers: version: 2.1.0 i18next: specifier: '*' - version: 23.5.1 + version: 20.6.1 i18next-http-backend: specifier: ^1.4.5 version: 1.4.5 @@ -2538,7 +2535,7 @@ importers: version: 17.0.2 react-i18next: specifier: '*' - version: 11.18.6(i18next@23.5.1)(react-dom@17.0.2)(react@17.0.2) + version: 11.18.6(i18next@20.6.1)(react-dom@17.0.2)(react@17.0.2) storybook: specifier: ^7.4.0 version: 7.4.0 @@ -9797,10 +9794,6 @@ packages: resolution: {integrity: sha512-w8Xj6lZUtOYAquVYvdpZhb0GxXrZ+qpVfgj5LP2FwUbXE8fPrCmfu86FjwOiSphx/8PMbXXVldFLD2+RIXayyA==} dev: false - /ace-builds@1.26.0: - resolution: {integrity: sha512-v8MyI5BpMypwd3/BOY0VSI/nqoAfjjscFg+y4iDgYyUGZjnHxJz1XSoRj52RHQYxfNLFJwx3HMVhUp9ecNEdCA==} - dev: false - /acorn-class-fields@0.3.7(acorn@8.10.0): resolution: {integrity: sha512-jdUWSFce0fuADUljmExz4TWpPkxmRW/ZCPRqeeUzbGf0vFUcpQYbyq52l75qGd0oSwwtAepeL6hgb/naRgvcKQ==} engines: {node: '>=4.8.2'} @@ -11089,10 +11082,6 @@ packages: /buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - /buffer-json@2.0.0: - resolution: {integrity: sha512-+jjPFVqyfF1esi9fvfUs3NqM0pH1ziZ36VP4hmA/y/Ssfo/5w5xHKfTw9BwQjoJ1w/oVtpLomqwUHKdefGyuHw==} - dev: false - /buffer-xor@1.0.3: resolution: {integrity: sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==} dev: true @@ -11216,21 +11205,6 @@ packages: unset-value: 1.0.0 dev: true - /cache-loader@4.1.0(webpack@5.88.2): - resolution: {integrity: sha512-ftOayxve0PwKzBF/GLsZNC9fJBXl8lkZE3TOsjkboHfVHVkL39iUEs1FO07A33mizmci5Dudt38UZrrYXDtbhw==} - engines: {node: '>= 8.9.0'} - peerDependencies: - webpack: ^4.0.0 - dependencies: - buffer-json: 2.0.0 - find-cache-dir: 3.3.2 - loader-utils: 1.4.2 - mkdirp: 0.5.6 - neo-async: 2.6.2 - schema-utils: 2.7.1 - webpack: 5.88.2(webpack-cli@4.10.0) - dev: false - /cachedir@2.4.0: resolution: {integrity: sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==} engines: {node: '>=6'} @@ -15863,7 +15837,7 @@ packages: eol: 0.9.1 esprima-next: 5.8.4 gulp-sort: 2.0.0 - i18next: 23.5.1 + i18next: 20.6.1 lodash: 4.17.21 parse5: 6.0.1 sortobject: 4.16.0 @@ -15877,11 +15851,6 @@ packages: dependencies: '@babel/runtime': 7.22.15 - /i18next@23.5.1: - resolution: {integrity: sha512-JelYzcaCoFDaa+Ysbfz2JsGAKkrHiMG6S61+HLBUEIPaF40WMwW9hCPymlQGrP+wWawKxKPuSuD71WZscCsWHg==} - dependencies: - '@babel/runtime': 7.22.15 - /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -17705,6 +17674,7 @@ packages: big.js: 5.2.2 emojis-list: 3.0.0 json5: 1.0.2 + dev: true /loader-utils@2.0.4: resolution: {integrity: sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==} @@ -20642,7 +20612,7 @@ packages: react: ^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 react-dom: ^0.13.0 || ^0.14.0 || ^15.0.1 || ^16.0.0 || ^17.0.0 || ^18.0.0 dependencies: - ace-builds: 1.26.0 + ace-builds: 1.10.1 diff-match-patch: 1.0.5 lodash.get: 4.4.2 lodash.isequal: 4.5.0 @@ -20833,26 +20803,6 @@ packages: react: 17.0.2 react-dom: 17.0.2(react@17.0.2) - /react-i18next@11.18.6(i18next@23.5.1)(react-dom@17.0.2)(react@17.0.2): - resolution: {integrity: sha512-yHb2F9BiT0lqoQDt8loZ5gWP331GwctHz9tYQ8A2EIEUu+CcEdjBLQWli1USG3RdWQt3W+jqQLg/d4rrQR96LA==} - peerDependencies: - i18next: '>= 19.0.0' - react: '>= 16.8.0' - react-dom: '*' - react-native: '*' - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true - dependencies: - '@babel/runtime': 7.22.15 - html-parse-stringify: 3.0.1 - i18next: 23.5.1 - react: 17.0.2 - react-dom: 17.0.2(react@17.0.2) - dev: false - /react-immutable-proptypes@2.2.0(immutable@3.8.2): resolution: {integrity: sha512-Vf4gBsePlwdGvSZoLSBfd4HAP93HDauMY4fDjXhreg/vg6F3Fj/MXDNyTbltPC/xZKmZc+cjLu3598DdYK6sgQ==} peerDependencies: @@ -21071,7 +21021,7 @@ packages: dependencies: object-assign: 4.1.1 react: 17.0.2 - react-is: 18.2.0 + react-is: 16.13.1 dev: true /react-side-effect@2.1.2(react@17.0.2): @@ -21899,6 +21849,7 @@ packages: /ret@0.1.15: resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==} engines: {node: '>=0.12'} + requiresBuild: true dev: true /retry@0.12.0: diff --git a/tools/scripts-config-react-webpack/config/webpack.config.common.js b/tools/scripts-config-react-webpack/config/webpack.config.common.js index f9ff65b771..77d9917e5d 100644 --- a/tools/scripts-config-react-webpack/config/webpack.config.common.js +++ b/tools/scripts-config-react-webpack/config/webpack.config.common.js @@ -55,9 +55,8 @@ function getCommonStyleLoaders(enableModules, isEnvDevelopmentServe) { ]; } -function getJSAndTSLoader(env, useTypescript) { +function getJSAndTSLoader() { return [ - !env.nocache && { loader: 'cache-loader' }, { loader: 'babel-loader', options: getBabelLoaderOptions(babelConfig), @@ -117,7 +116,7 @@ function getWebpackRules(srcDirectories, useTypescript, devMode) { test: /\.(js|ts|tsx)$/, exclude: /node_modules/, include: srcDirectories, - use: getJSAndTSLoader(process.env, useTypescript), + use: getJSAndTSLoader(), }, { test: /\.css$/, diff --git a/tools/scripts-config-react-webpack/config/webpack.config.js b/tools/scripts-config-react-webpack/config/webpack.config.js index 2c4662e967..37ae00cb99 100644 --- a/tools/scripts-config-react-webpack/config/webpack.config.js +++ b/tools/scripts-config-react-webpack/config/webpack.config.js @@ -292,7 +292,7 @@ module.exports = ({ getUserConfig, mode }) => { test: useTypescript ? /\.(js|ts|tsx)$/ : /\.js$/, exclude: /node_modules/, include: srcDirectories, - use: getJSAndTSLoader(env, useTypescript), + use: getJSAndTSLoader(), }, { test: /\.css$/, diff --git a/tools/scripts-config-react-webpack/config/webpack.config.umd.js b/tools/scripts-config-react-webpack/config/webpack.config.umd.js index 44884597e2..fd701e4535 100644 --- a/tools/scripts-config-react-webpack/config/webpack.config.umd.js +++ b/tools/scripts-config-react-webpack/config/webpack.config.umd.js @@ -55,7 +55,7 @@ module.exports = options => { { test: useTypescript ? /\.(js|ts|tsx)$/ : /\.js$/, exclude: /node_modules/, - use: getJSAndTSLoader(env, useTypescript), + use: getJSAndTSLoader(), }, { test: /\.scss$/, diff --git a/tools/scripts-config-react-webpack/package.json b/tools/scripts-config-react-webpack/package.json index 1afc2f139d..5999aa78d4 100644 --- a/tools/scripts-config-react-webpack/package.json +++ b/tools/scripts-config-react-webpack/package.json @@ -27,7 +27,6 @@ "@yarnpkg/lockfile": "^1.1.0", "autoprefixer": "^10.4.15", "babel-loader": "^9.1.3", - "cache-loader": "^4.1.0", "circular-dependency-plugin": "^5.2.2", "clean-webpack-plugin": "^4.0.0", "copy-webpack-plugin": "^10.2.4",