@ui5/builder 4.0.5 → 4.0.6
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 +9 -1
- package/LICENSE.txt +1 -1
- package/lib/lbt/bundle/Builder.js +15 -5
- package/lib/processors/jsdoc/lib/createIndexFiles.js +1 -1
- package/lib/processors/jsdoc/lib/transformApiJson.js +1 -1
- package/lib/processors/jsdoc/lib/ui5/plugin.js +1 -1
- package/lib/processors/jsdoc/lib/ui5/template/publish.js +1 -1
- package/lib/processors/jsdoc/lib/ui5/template/utils/typeParser.js +1 -1
- package/lib/processors/minifier.js +1 -0
- package/lib/processors/minifierWorker.js +3 -1
- package/package.json +9 -9
- package/.reuse/dep5 +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
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/v4.0.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v4.0.6...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v4.0.6"></a>
|
|
8
|
+
## [v4.0.6] - 2025-04-29
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
- Handle legacy-free UI5 versions [`8b38316`](https://github.com/SAP/ui5-builder/commit/8b38316bae02edfe4da1876884345c040f260c10)
|
|
11
|
+
- **minify:** In case of error, include full resource path in the error messsage [`aadb463`](https://github.com/SAP/ui5-builder/commit/aadb4639461998b2c113d5a4962adbdb135c9762)
|
|
12
|
+
|
|
6
13
|
|
|
7
14
|
<a name="v4.0.5"></a>
|
|
8
15
|
## [v4.0.5] - 2024-12-10
|
|
@@ -944,6 +951,7 @@ to load the custom bundle file instead.
|
|
|
944
951
|
|
|
945
952
|
### Features
|
|
946
953
|
- Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
|
|
954
|
+
[v4.0.6]: https://github.com/SAP/ui5-builder/compare/v4.0.5...v4.0.6
|
|
947
955
|
[v4.0.5]: https://github.com/SAP/ui5-builder/compare/v4.0.4...v4.0.5
|
|
948
956
|
[v4.0.4]: https://github.com/SAP/ui5-builder/compare/v4.0.3...v4.0.4
|
|
949
957
|
[v4.0.3]: https://github.com/SAP/ui5-builder/compare/v4.0.2...v4.0.3
|
package/LICENSE.txt
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -54,13 +54,23 @@ class BundleBuilder {
|
|
|
54
54
|
this.allowStringBundling = allowStringBundling;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
getEffectiveUi5MajorVersion() {
|
|
58
58
|
if (this.targetUi5CoreVersionMajor !== undefined) {
|
|
59
59
|
return this.targetUi5CoreVersionMajor;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
const parsedVersion = semver.parse(this.targetUi5CoreVersion);
|
|
63
|
+
if (parsedVersion) {
|
|
64
|
+
this.targetUi5CoreVersionMajor = parsedVersion.major;
|
|
65
|
+
|
|
66
|
+
// legacy-free versions include changes of the upcoming major version
|
|
67
|
+
// so we should treat them the same as the next major version
|
|
68
|
+
if (
|
|
69
|
+
parsedVersion.prerelease.includes("legacy-free") ||
|
|
70
|
+
parsedVersion.prerelease.includes("legacy-free-SNAPSHOT") // Maven snapshot version
|
|
71
|
+
) {
|
|
72
|
+
this.targetUi5CoreVersionMajor += 1;
|
|
73
|
+
}
|
|
64
74
|
} else {
|
|
65
75
|
// Assume legacy version if unable to determine the version
|
|
66
76
|
this.targetUi5CoreVersionMajor = null;
|
|
@@ -85,7 +95,7 @@ class BundleBuilder {
|
|
|
85
95
|
}
|
|
86
96
|
|
|
87
97
|
determineRequireCallback(modules) {
|
|
88
|
-
if (this.
|
|
98
|
+
if (this.getEffectiveUi5MajorVersion() >= 2) {
|
|
89
99
|
// Starting with UI5 2.0.0, method Core.boot does not exist anymore
|
|
90
100
|
return;
|
|
91
101
|
}
|
|
@@ -212,7 +222,7 @@ class BundleBuilder {
|
|
|
212
222
|
|
|
213
223
|
closeModule(resolvedModule) {
|
|
214
224
|
if ( resolvedModule.containsCoreSync ) {
|
|
215
|
-
if ( this.
|
|
225
|
+
if ( this.getEffectiveUi5MajorVersion() >= 2 ) {
|
|
216
226
|
throw new Error("Requiring sap/ui/core/Core synchronously is not supported as of UI5 Version 2");
|
|
217
227
|
}
|
|
218
228
|
this.outW.ensureNewLine(); // for clarity and to avoid issues with single line comments
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Node script to create cross-library API index files for use in the UI5 SDKs.
|
|
3
3
|
*
|
|
4
|
-
* (c) Copyright
|
|
4
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Node script to preprocess api.json files for use in the UI5 SDKs.
|
|
3
3
|
*
|
|
4
|
-
* (c) Copyright
|
|
4
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -30,6 +30,7 @@ const copyrightCommentsAndBundleCommentPattern = /copyright|\(c\)(?:[0-9]+|\s+[0
|
|
|
30
30
|
* @param {string} parameters.filename
|
|
31
31
|
* @param {string} parameters.dbgFilename
|
|
32
32
|
* @param {string} parameters.code
|
|
33
|
+
* @param {string} parameters.resourcePath
|
|
33
34
|
* @param {object} parameters.sourceMapOptions
|
|
34
35
|
* @returns {Promise<undefined>} Promise resolving once minification of the resource has finished
|
|
35
36
|
*/
|
|
@@ -37,6 +38,7 @@ export default async function execMinification({
|
|
|
37
38
|
filename,
|
|
38
39
|
dbgFilename,
|
|
39
40
|
code,
|
|
41
|
+
resourcePath,
|
|
40
42
|
sourceMapOptions
|
|
41
43
|
}) {
|
|
42
44
|
try {
|
|
@@ -61,7 +63,7 @@ export default async function execMinification({
|
|
|
61
63
|
} catch (err) {
|
|
62
64
|
// Note: err.filename contains the debug-name
|
|
63
65
|
throw new Error(
|
|
64
|
-
`Minification failed with error: ${err.message} in file ${
|
|
66
|
+
`Minification failed with error: ${err.message} in file ${resourcePath} ` +
|
|
65
67
|
`(line ${err.line}, col ${err.col}, pos ${err.pos})`, {
|
|
66
68
|
cause: err
|
|
67
69
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/builder",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
4
4
|
"description": "UI5 Tooling - Builder",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -132,14 +132,14 @@
|
|
|
132
132
|
"jsdoc": "^4.0.4",
|
|
133
133
|
"less-openui5": "^0.11.6",
|
|
134
134
|
"pretty-data": "^0.40.0",
|
|
135
|
-
"semver": "^7.
|
|
136
|
-
"terser": "^5.
|
|
135
|
+
"semver": "^7.7.1",
|
|
136
|
+
"terser": "^5.39.0",
|
|
137
137
|
"workerpool": "^9.2.0",
|
|
138
138
|
"xml2js": "^0.6.2"
|
|
139
139
|
},
|
|
140
140
|
"devDependencies": {
|
|
141
141
|
"@eslint/js": "^9.14.0",
|
|
142
|
-
"@istanbuljs/esm-loader-hook": "^0.
|
|
142
|
+
"@istanbuljs/esm-loader-hook": "^0.3.0",
|
|
143
143
|
"@jridgewell/trace-mapping": "^0.3.25",
|
|
144
144
|
"@ui5/project": "^4.0.4",
|
|
145
145
|
"ava": "^6.2.0",
|
|
@@ -147,17 +147,17 @@
|
|
|
147
147
|
"cross-env": "^7.0.3",
|
|
148
148
|
"depcheck": "^1.4.7",
|
|
149
149
|
"docdash": "^2.0.2",
|
|
150
|
-
"eslint": "^9.
|
|
150
|
+
"eslint": "^9.25.1",
|
|
151
151
|
"eslint-config-google": "^0.14.0",
|
|
152
152
|
"eslint-plugin-ava": "^15.0.1",
|
|
153
|
-
"eslint-plugin-jsdoc": "^50.6.
|
|
154
|
-
"esmock": "^2.
|
|
155
|
-
"globals": "^
|
|
153
|
+
"eslint-plugin-jsdoc": "^50.6.11",
|
|
154
|
+
"esmock": "^2.7.0",
|
|
155
|
+
"globals": "^16.0.0",
|
|
156
156
|
"line-column": "^1.0.2",
|
|
157
157
|
"nyc": "^17.1.0",
|
|
158
158
|
"open-cli": "^8.0.0",
|
|
159
159
|
"rimraf": "^6.0.1",
|
|
160
|
-
"sinon": "^
|
|
160
|
+
"sinon": "^20.0.0",
|
|
161
161
|
"tap-xunit": "^2.4.1"
|
|
162
162
|
}
|
|
163
163
|
}
|
package/.reuse/dep5
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
|
-
Upstream-Name: ui5-builder
|
|
3
|
-
Upstream-Contact: SAP OpenUI5 <openui5@sap.com>
|
|
4
|
-
Source: https://github.com/SAP/ui5-builder
|
|
5
|
-
Disclaimer: The code in this project may include calls to APIs (“API Calls”) of
|
|
6
|
-
SAP or third-party products or services developed outside of this project
|
|
7
|
-
(“External Products”).
|
|
8
|
-
“APIs” means application programming interfaces, as well as their respective
|
|
9
|
-
specifications and implementing code that allows software to communicate with
|
|
10
|
-
other software.
|
|
11
|
-
API Calls to External Products are not licensed under the open source license
|
|
12
|
-
that governs this project. The use of such API Calls and related External
|
|
13
|
-
Products are subject to applicable additional agreements with the relevant
|
|
14
|
-
provider of the External Products. In no event shall the open source license
|
|
15
|
-
that governs this project grant any rights in or to any External Products,or
|
|
16
|
-
alter, expand or supersede any terms of the applicable additional agreements.
|
|
17
|
-
If you have a valid license agreement with SAP for the use of a particular SAP
|
|
18
|
-
External Product, then you may make use of any API Calls included in this
|
|
19
|
-
project’s code for that SAP External Product, subject to the terms of such
|
|
20
|
-
license agreement. If you do not have a valid license agreement for the use of
|
|
21
|
-
a particular SAP External Product, then you may only make use of any API Calls
|
|
22
|
-
in this project for that SAP External Product for your internal, non-productive
|
|
23
|
-
and non-commercial test and evaluation of such API Calls. Nothing herein grants
|
|
24
|
-
you any rights to use or access any SAP External Product, or provide any third
|
|
25
|
-
parties the right to use of access any SAP External Product, through API Calls.
|
|
26
|
-
|
|
27
|
-
Files: *
|
|
28
|
-
Copyright: 2018-2024 SAP SE or an SAP affiliate company and UI5 Tooling contributors
|
|
29
|
-
License: Apache-2.0
|
|
30
|
-
|
|
31
|
-
Files: lib/processors/jsdoc/lib/*
|
|
32
|
-
Copyright: 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
33
|
-
License: Apache-2.0
|