@spryker/oryx-for-zed 2.13.0 → 3.1.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,24 @@
1
1
  # Changelog
2
2
 
3
+ ### 3.1.0
4
+ Released on 15.09.2023
5
+
6
+ - Adjusted webpack config by introducing `NodePolyfillPlugin` usage from `node-polyfill-webpack-plugin`.
7
+ - Updated dependencies:
8
+ - `webpack`: `5.81.0` => `5.88.2`
9
+
10
+ ### 3.0.0
11
+ Released on 11.05.2023
12
+
13
+ - Introduced `postcss` dependency.
14
+ - Updated dependencies:
15
+ - `node`: `16.0.0` => `18.0.0`
16
+ - `npm`: `8.0.0` => `9.0.0`
17
+ - `autoprefixer`: `9.8.8` => `10.4.14`
18
+ - `postcss-loader`: `2.1.6` => `7.3.0`
19
+ - `webpack`: `5.74.0` => `5.81.0`
20
+
21
+
3
22
  ### 2.13.0
4
23
  Released on 04.04.2023
5
24
 
package/README.md CHANGED
@@ -2,4 +2,11 @@
2
2
 
3
3
  Spryker ZED frontend automation tool
4
4
 
5
- The tool [documentation](https://docs.spryker.com/docs/scos/dev/front-end-development/zed/oryx-for-zed.html).
5
+ #### Requirements
6
+
7
+ - Node.js version >= 18.0.0
8
+ - Npm version >= 9.0.0
9
+ - Webpack version >= 5.0.0 (starting from 2.13.0 version)
10
+
11
+
12
+ The tool [documentation](https://docs.spryker.com/docs/scos/dev/front-end-development/202304.0/zed/oryx-for-zed.html).
@@ -5,15 +5,19 @@ const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
5
5
  const find = require('./find');
6
6
  const configurePaths = require('./configure-paths');
7
7
 
8
+ let NodePolyfillPlugin;
9
+
10
+ try {
11
+ NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
12
+ } catch (e) {}
13
+
8
14
  async function getConfiguration(settings) {
9
15
  let mode = 'development';
10
16
  let devtool = 'inline-source-map';
11
- let postCssPlugins = [];
12
17
 
13
18
  if (settings.options.isProduction) {
14
19
  mode = 'production';
15
20
  devtool = false;
16
- postCssPlugins = [require('autoprefixer')];
17
21
  }
18
22
 
19
23
  const entryPromise = find(settings.entry);
@@ -97,8 +101,9 @@ async function getConfiguration(settings) {
97
101
  {
98
102
  loader: 'postcss-loader',
99
103
  options: {
100
- ident: 'postcss',
101
- plugins: postCssPlugins,
104
+ postcssOptions: {
105
+ plugins: [require('autoprefixer')],
106
+ },
102
107
  },
103
108
  },
104
109
  {
@@ -173,6 +178,8 @@ async function getConfiguration(settings) {
173
178
  new MiniCssExtractPlugin({
174
179
  filename: `./css/[name].css`,
175
180
  }),
181
+
182
+ NodePolyfillPlugin ? new NodePolyfillPlugin() : null,
176
183
  ],
177
184
  };
178
185
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spryker/oryx-for-zed",
3
- "version": "2.13.0",
3
+ "version": "3.1.0",
4
4
  "description": "Spryker ZED frontend automation tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,11 +14,11 @@
14
14
  },
15
15
  "main": "index.js",
16
16
  "engines": {
17
- "node": ">=16.0.0",
18
- "npm": ">=8.0.0"
17
+ "node": ">=18.0.0",
18
+ "npm": ">=9.0.0"
19
19
  },
20
20
  "dependencies": {
21
- "autoprefixer": "~9.8.8",
21
+ "autoprefixer": "~10.4.14",
22
22
  "babel-loader": "~8.3.0",
23
23
  "colors": "~1.4.0",
24
24
  "css-loader": "~2.1.1",
@@ -29,13 +29,14 @@
29
29
  "fs-extra": "~10.1.0",
30
30
  "imports-loader": "~0.8.0",
31
31
  "mini-css-extract-plugin": "~2.7.2",
32
- "postcss-loader": "~2.1.6",
32
+ "postcss": "~8.4.23",
33
+ "postcss-loader": "~7.3.0",
33
34
  "resolve-url-loader": "~5.0.0",
34
35
  "sass": "~1.60.0",
35
36
  "sass-loader": "~10.4.1",
36
37
  "style-loader": "~0.23.1",
37
38
  "terser-webpack-plugin": "~5.3.6",
38
- "webpack": "~5.74.0",
39
+ "webpack": "~5.88.2",
39
40
  "yargs": "~13.3.2"
40
41
  },
41
42
  "devDependencies": {