@ui5/builder 3.3.1 → 3.4.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
@@ -2,7 +2,13 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v3.3.1...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v3.4.0...HEAD).
6
+
7
+ <a name="v3.4.0"></a>
8
+ ## [v3.4.0] - 2024-04-24
9
+ ### Features
10
+ - **generateFlexChangesBundle:** Handle minUI5Version as array ([#1009](https://github.com/SAP/ui5-builder/issues/1009)) [`45c9b7e`](https://github.com/SAP/ui5-builder/commit/45c9b7efc255e1d62dfed82ccf67b61d54dd8627)
11
+
6
12
 
7
13
  <a name="v3.3.1"></a>
8
14
  ## [v3.3.1] - 2024-03-27
@@ -860,6 +866,7 @@ to load the custom bundle file instead.
860
866
 
861
867
  ### Features
862
868
  - Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
869
+ [v3.4.0]: https://github.com/SAP/ui5-builder/compare/v3.3.1...v3.4.0
863
870
  [v3.3.1]: https://github.com/SAP/ui5-builder/compare/v3.3.0...v3.3.1
864
871
  [v3.3.0]: https://github.com/SAP/ui5-builder/compare/v3.2.0...v3.3.0
865
872
  [v3.2.0]: https://github.com/SAP/ui5-builder/compare/v3.1.1...v3.2.0
@@ -73,18 +73,23 @@ export default async function({workspace, taskUtil, options = {}}) {
73
73
 
74
74
  manifestContent["sap.ui5"] = manifestContent["sap.ui5"] || {};
75
75
  manifestContent["sap.ui5"].dependencies = manifestContent["sap.ui5"].dependencies || {};
76
- return manifestContent["sap.ui5"].dependencies.minUI5Version =
77
- manifestContent["sap.ui5"].dependencies.minUI5Version || "";
76
+ if (!Array.isArray(manifestContent["sap.ui5"].dependencies.minUI5Version)) {
77
+ manifestContent["sap.ui5"].dependencies.minUI5Version =
78
+ [manifestContent["sap.ui5"].dependencies.minUI5Version] || [""];
79
+ }
80
+ return manifestContent["sap.ui5"].dependencies.minUI5Version;
78
81
  }
79
82
 
80
83
  log.verbose("Collecting flexibility changes");
81
84
  const allResources = await workspace.byGlob(
82
85
  `${pathPrefix}/changes/*.{change,variant,ctrl_variant,ctrl_variant_change,ctrl_variant_management_change}`);
83
86
  if (allResources.length > 0) {
84
- const version = semver.coerce(await readManifestMinUI5Version());
87
+ const versionArray = await readManifestMinUI5Version();
88
+ const versions = versionArray.map((version) => semver.coerce(version));
89
+ const versionsAllSuitableForFlexBundle = versions.every((version) => semver.compare(version, "1.73.0") >= 0);
85
90
  let hasFlexBundleVersion = false;
86
91
  let flexBundle = {};
87
- if (semver.compare(version, "1.73.0") >= 0) {
92
+ if (versionsAllSuitableForFlexBundle) {
88
93
  hasFlexBundleVersion = true;
89
94
  const flexBundleResource = await workspace.byPath(`${pathPrefix}/changes/flexibility-bundle.json`);
90
95
  if (flexBundleResource) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/builder",
3
- "version": "3.3.1",
3
+ "version": "3.4.0",
4
4
  "description": "UI5 Tooling - Builder",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -131,14 +131,14 @@
131
131
  "pretty-data": "^0.40.0",
132
132
  "rimraf": "^5.0.5",
133
133
  "semver": "^7.6.0",
134
- "terser": "^5.29.2",
134
+ "terser": "^5.30.3",
135
135
  "workerpool": "^6.5.1",
136
136
  "xml2js": "^0.6.2"
137
137
  },
138
138
  "devDependencies": {
139
139
  "@istanbuljs/esm-loader-hook": "^0.2.0",
140
140
  "@jridgewell/trace-mapping": "^0.3.25",
141
- "@ui5/project": "^3.9.0",
141
+ "@ui5/project": "^3.9.1",
142
142
  "ava": "^5.3.1",
143
143
  "chai": "^4.4.1",
144
144
  "chai-fs": "^2.0.0",