@ui5/builder 3.3.1 → 3.4.1
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,19 @@
|
|
|
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.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v3.4.1...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.4.1"></a>
|
|
8
|
+
## [v3.4.1] - 2024-05-10
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
- **bundle/Builder:** Correct bundling of resources with empty source map [`1228db7`](https://github.com/SAP/ui5-builder/commit/1228db78e7e655cea58c20517662b08dd09db87b)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<a name="v3.4.0"></a>
|
|
14
|
+
## [v3.4.0] - 2024-04-24
|
|
15
|
+
### Features
|
|
16
|
+
- **generateFlexChangesBundle:** Handle minUI5Version as array ([#1009](https://github.com/SAP/ui5-builder/issues/1009)) [`45c9b7e`](https://github.com/SAP/ui5-builder/commit/45c9b7efc255e1d62dfed82ccf67b61d54dd8627)
|
|
17
|
+
|
|
6
18
|
|
|
7
19
|
<a name="v3.3.1"></a>
|
|
8
20
|
## [v3.3.1] - 2024-03-27
|
|
@@ -860,6 +872,8 @@ to load the custom bundle file instead.
|
|
|
860
872
|
|
|
861
873
|
### Features
|
|
862
874
|
- Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
|
|
875
|
+
[v3.4.1]: https://github.com/SAP/ui5-builder/compare/v3.4.0...v3.4.1
|
|
876
|
+
[v3.4.0]: https://github.com/SAP/ui5-builder/compare/v3.3.1...v3.4.0
|
|
863
877
|
[v3.3.1]: https://github.com/SAP/ui5-builder/compare/v3.3.0...v3.3.1
|
|
864
878
|
[v3.3.0]: https://github.com/SAP/ui5-builder/compare/v3.2.0...v3.3.0
|
|
865
879
|
[v3.2.0]: https://github.com/SAP/ui5-builder/compare/v3.1.1...v3.2.0
|
|
@@ -353,7 +353,13 @@ class BundleBuilder {
|
|
|
353
353
|
// If first column of the first line is not already mapped, add a mapping for the same reason as above.
|
|
354
354
|
// This is typical for transpiled code, where there is a bunch of generated code at the beginning that
|
|
355
355
|
// can't be mapped to the original source
|
|
356
|
-
map.mappings
|
|
356
|
+
if (map.mappings) {
|
|
357
|
+
map.mappings = "AAAA," + map.mappings;
|
|
358
|
+
} else {
|
|
359
|
+
// If there are no existing mappings (e.g. if the file is empty or only comments),
|
|
360
|
+
// make sure to still define a single mapping
|
|
361
|
+
map.mappings = "AAAA";
|
|
362
|
+
}
|
|
357
363
|
}
|
|
358
364
|
|
|
359
365
|
map.sourceRoot = path.posix.relative(
|
|
@@ -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
|
-
|
|
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
|
|
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 (
|
|
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
|
+
"version": "3.4.1",
|
|
4
4
|
"description": "UI5 Tooling - Builder",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -126,19 +126,19 @@
|
|
|
126
126
|
"escope": "^4.0.0",
|
|
127
127
|
"espree": "^9.6.1",
|
|
128
128
|
"graceful-fs": "^4.2.11",
|
|
129
|
-
"jsdoc": "^4.0.
|
|
129
|
+
"jsdoc": "^4.0.3",
|
|
130
130
|
"less-openui5": "^0.11.6",
|
|
131
131
|
"pretty-data": "^0.40.0",
|
|
132
|
-
"rimraf": "^5.0.
|
|
133
|
-
"semver": "^7.6.
|
|
134
|
-
"terser": "^5.
|
|
132
|
+
"rimraf": "^5.0.6",
|
|
133
|
+
"semver": "^7.6.2",
|
|
134
|
+
"terser": "^5.31.0",
|
|
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.
|
|
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",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"eslint-config-google": "^0.14.0",
|
|
151
151
|
"eslint-plugin-ava": "^14.0.0",
|
|
152
152
|
"eslint-plugin-jsdoc": "^46.10.1",
|
|
153
|
-
"esmock": "^2.6.
|
|
153
|
+
"esmock": "^2.6.5",
|
|
154
154
|
"line-column": "^1.0.2",
|
|
155
155
|
"nyc": "^15.1.0",
|
|
156
156
|
"open-cli": "^7.2.0",
|