@nitro/webpack 7.2.4 → 7.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nitro/webpack",
3
- "version": "7.2.4",
3
+ "version": "7.3.0",
4
4
  "description": "nitro webpack",
5
5
  "license": "MIT",
6
6
  "author": "The Nitro Team",
7
7
  "engines": {
8
- "node": ">=14.15.0 <17",
9
- "npm": ">=6.14.8 <9"
8
+ "node": ">=14.15.0 <19",
9
+ "npm": ">=6.14.8 <10"
10
10
  },
11
11
  "scripts": {
12
12
  "lint": "eslint .",
@@ -23,13 +23,13 @@
23
23
  "nitro"
24
24
  ],
25
25
  "dependencies": {
26
- "@babel/core": "7.20.12",
26
+ "@babel/core": "7.21.0",
27
27
  "@babel/preset-env": "7.20.2",
28
28
  "@babel/preset-react": "7.18.6",
29
- "@babel/plugin-proposal-decorators": "7.20.13",
29
+ "@babel/plugin-proposal-decorators": "7.21.0",
30
30
  "@babel/plugin-proposal-class-properties": "7.18.6",
31
31
  "@babel/plugin-syntax-dynamic-import": "7.8.3",
32
- "autoprefixer": "10.4.13",
32
+ "autoprefixer": "10.4.14",
33
33
  "case-sensitive-paths-webpack-plugin": "2.4.0",
34
34
  "css-loader": "5.2.7",
35
35
  "eslint": "7.32.0",
@@ -46,17 +46,17 @@
46
46
  "postcss": "8.4.21",
47
47
  "postcss-loader": "4.3.0",
48
48
  "resolve-url-loader": "5.0.0",
49
- "sass": "1.57.1",
49
+ "sass": "1.59.2",
50
50
  "sass-loader": "10.4.1",
51
51
  "stylelint": "14.16.1",
52
52
  "stylelint-webpack-plugin": "2.4.0",
53
53
  "svgo": "3.0.2",
54
54
  "ts-config-webpack-plugin": "2.0.3",
55
- "typescript": "4.9.4",
55
+ "typescript": "4.9.5",
56
56
  "url-loader": "4.1.1",
57
57
  "webpack": "4.46.0",
58
58
  "webpackbar": "5.0.2",
59
- "webpack-bundle-analyzer": "4.7.0"
59
+ "webpack-bundle-analyzer": "4.8.0"
60
60
  },
61
61
  "optionalDependencies": {
62
62
  "imagemin-mozjpeg": "9.0.0",
@@ -1,5 +1,6 @@
1
1
  const path = require('path');
2
2
  const fs = require('fs');
3
+ const crypto = require('crypto');
3
4
  const webpack = require('webpack');
4
5
  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
5
6
  const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
@@ -14,6 +15,10 @@ const utils = require('../lib/utils');
14
15
  const hotMiddlewareScript = 'webpack-hot-middleware/client?path=/__webpack_hmr&timeout=20000&reload=true';
15
16
  const appDirectory = fs.realpathSync(process.cwd());
16
17
 
18
+ // hack: OpenSSL 3 does not support md4 anymore, but legacy webpack 4 hardcoded it: https://github.com/webpack/webpack/issues/13572
19
+ const crypto_orig_createHash = crypto.createHash;
20
+ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 'sha256' : algorithm);
21
+
17
22
  module.exports = (options = { rules: {}, features: {} }) => {
18
23
  const webpackConfig = {
19
24
  mode: 'development',
@@ -1,5 +1,6 @@
1
1
  const path = require('path');
2
2
  const fs = require('fs');
3
+ const crypto = require('crypto');
3
4
  const webpack = require('webpack');
4
5
  const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
5
6
  const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
@@ -11,6 +12,10 @@ const WebpackBar = require('webpackbar');
11
12
  const DynamicAliasResolverPlugin = require('../plugins/dynamicAliasResolver');
12
13
  const utils = require('../lib/utils');
13
14
 
15
+ // hack: OpenSSL 3 does not support md4 anymore, but legacy webpack 4 hardcoded it: https://github.com/webpack/webpack/issues/13572
16
+ const crypto_orig_createHash = crypto.createHash;
17
+ crypto.createHash = algorithm => crypto_orig_createHash(algorithm === 'md4' ? 'sha256' : algorithm);
18
+
14
19
  const appDirectory = fs.realpathSync(process.cwd());
15
20
 
16
21
  const bannerData = {