@spryker/oryx-for-zed 3.2.0 → 3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ### 3.3.0
4
+ Released on 31.10.2023
5
+
6
+ - Adjusted webpack config by introducing `assert` and `stream` polyfills.
7
+ - Deprecated the `NodePolyfillPlugin`.
8
+
3
9
  ### 3.2.0
4
10
  Released on 04.10.2023
5
11
 
@@ -5,12 +5,25 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
5
5
  const find = require('./find');
6
6
  const configurePaths = require('./configure-paths');
7
7
 
8
+ /**
9
+ * @deprecated The NodePolyfillPlugin polyfill will be removed in next major.
10
+ */
8
11
  let NodePolyfillPlugin;
12
+ let NodeAssertFallback;
13
+ let NodeStreamFallback;
9
14
 
10
15
  try {
11
16
  NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
12
17
  } catch (e) {}
13
18
 
19
+ try {
20
+ NodeAssertFallback = require.resolve('assert/');
21
+ } catch (e) {}
22
+
23
+ try {
24
+ NodeStreamFallback = require.resolve('stream-browserify');
25
+ } catch (e) {}
26
+
14
27
  async function getConfiguration(settings) {
15
28
  let mode = 'development';
16
29
  let devtool = 'inline-source-map';
@@ -44,6 +57,10 @@ async function getConfiguration(settings) {
44
57
  },
45
58
 
46
59
  resolve: {
60
+ fallback: {
61
+ assert: NodeAssertFallback ?? false,
62
+ stream: NodeStreamFallback ?? false,
63
+ },
47
64
  modules: [
48
65
  ...modulesPaths,
49
66
  'node_modules/@spryker/oryx-for-zed/node_modules',
@@ -158,6 +175,8 @@ async function getConfiguration(settings) {
158
175
  'require.specified': 'require.resolve',
159
176
  }),
160
177
 
178
+ new webpack.EnvironmentPlugin({'NODE_DEBUG': ''}),
179
+
161
180
  new webpack.ProvidePlugin({
162
181
  // jquery global
163
182
  $: 'jquery',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spryker/oryx-for-zed",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "Spryker ZED frontend automation tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "yargs": "~13.3.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@babel/core": "~7.21.3",
43
- "@babel/preset-env": "~7.20.2"
42
+ "@babel/core": "~7.23.2",
43
+ "@babel/preset-env": "~7.23.2"
44
44
  }
45
45
  }