@spryker/oryx-for-zed 3.4.5 → 3.5.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.5.0
4
+
5
+ Released on 07.04.2025
6
+
7
+ - Add support for a separate entry point compatible with Bootstrap 5.
8
+
3
9
  ### 3.4.5
4
10
 
5
11
  Released on 10.01.2025
package/lib/settings.js CHANGED
@@ -28,6 +28,9 @@ const bundlesDir = path.resolve(bundlesPath);
28
28
  const featuresDir = path.resolve(featuresPath);
29
29
  const guiPath = path.join(bundlesPath, guiFolder);
30
30
 
31
+ const isBootstrapLatest = process.env.BOOTSTRAP_VERSION === '5';
32
+ const excludePattern = isBootstrapLatest ? '!**/Zed/**/spryker-zed-gui-commons.entry.js' : '!**/Zed/**/spryker-zed-gui-commons-bootstrap-compatibility.entry.js';
33
+
31
34
  const settings = {
32
35
  options: {
33
36
  isProduction: !!argv.prod,
@@ -50,11 +53,11 @@ const settings = {
50
53
  featuresPath,
51
54
  },
52
55
 
53
- runtimeEntryName: 'spryker-zed-gui-commons',
56
+ runtimeEntryName: isBootstrapLatest ? 'spryker-zed-gui-commons-bootstrap-compatibility' : 'spryker-zed-gui-commons',
54
57
 
55
58
  entry: {
56
59
  dirs: [bundlesDir, ecoDir, sdkDir, featuresDir],
57
- patterns: ['**/Zed/**/*.entry.js'],
60
+ patterns: ['**/Zed/**/*.entry.js', excludePattern],
58
61
  description: 'looking for entry points...',
59
62
  defineName: p => path.basename(p, '.entry.js'),
60
63
  },
@@ -115,9 +115,9 @@ async function getConfiguration(settings) {
115
115
  options: {
116
116
  url: {
117
117
  filter: (url, _resourcePath) => {
118
- return !(url.includes('assets/img/') || url.includes('bundles/images/'));
118
+ return !(url.includes('assets/img/') || url.includes('bundles/images/'));
119
119
  },
120
- },
120
+ },
121
121
  importLoaders: 1,
122
122
  },
123
123
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spryker/oryx-for-zed",
3
- "version": "3.4.5",
3
+ "version": "3.5.0",
4
4
  "description": "Spryker ZED frontend automation tool",
5
5
  "repository": {
6
6
  "type": "git",