@spryker/oryx-for-zed 3.1.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,17 @@
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
+
9
+ ### 3.2.0
10
+ Released on 04.10.2023
11
+
12
+ - Removed the `file-loader` dependency.
13
+ - Adjusted webpack config by migration from `file-loader` to `asset/resource`.
14
+
3
15
  ### 3.1.0
4
16
  Released on 15.09.2023
5
17
 
@@ -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',
@@ -120,23 +137,17 @@ async function getConfiguration(settings) {
120
137
  },
121
138
  {
122
139
  test: /\.(ttf|woff2?|eot|svg|otf)\??(\d*\w*=?\.?)+$/i,
123
- use: [{
124
- loader: 'file-loader',
125
- options: {
126
- name: 'fonts/[name].[ext]',
127
- publicPath: settings.paths.publicPath,
128
- },
129
- }],
140
+ type: 'asset/resource',
141
+ generator: {
142
+ filename: 'fonts/[name][ext]',
143
+ },
130
144
  },
131
145
  {
132
146
  test: /\.(jpe?g|png|gif|svg)\??(\d*\w*=?\.?)+$/i,
133
- use: [{
134
- loader: 'file-loader',
135
- options: {
136
- name: 'img/[name].[ext]',
137
- publicPath: settings.paths.publicPath,
138
- },
139
- }],
147
+ type: 'asset/resource',
148
+ generator: {
149
+ filename: 'img/[name][ext]',
150
+ },
140
151
  },
141
152
  ],
142
153
  },
@@ -164,6 +175,8 @@ async function getConfiguration(settings) {
164
175
  'require.specified': 'require.resolve',
165
176
  }),
166
177
 
178
+ new webpack.EnvironmentPlugin({'NODE_DEBUG': ''}),
179
+
167
180
  new webpack.ProvidePlugin({
168
181
  // jquery global
169
182
  $: 'jquery',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spryker/oryx-for-zed",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Spryker ZED frontend automation tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,6 @@
25
25
  "css-minimizer-webpack-plugin": "~4.2.2",
26
26
  "dayjs": "~1.11.7",
27
27
  "fast-glob": "~3.2.12",
28
- "file-loader": "~1.1.11",
29
28
  "fs-extra": "~10.1.0",
30
29
  "imports-loader": "~0.8.0",
31
30
  "mini-css-extract-plugin": "~2.7.2",
@@ -40,7 +39,7 @@
40
39
  "yargs": "~13.3.2"
41
40
  },
42
41
  "devDependencies": {
43
- "@babel/core": "~7.21.3",
44
- "@babel/preset-env": "~7.20.2"
42
+ "@babel/core": "~7.23.2",
43
+ "@babel/preset-env": "~7.23.2"
45
44
  }
46
45
  }