@ui5/builder 4.1.2 → 4.1.4

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,10 +2,22 @@
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.1.2...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v4.1.4...HEAD).
6
+
7
+ <a name="v4.1.4"></a>
8
+ ## [v4.1.4] - 2026-02-16
9
+ ### Dependency Updates
10
+ - Bump escape-unicode from 0.2.0 to 0.3.0 ([#1137](https://github.com/SAP/ui5-builder/issues/1137)) [`d854a88`](https://github.com/SAP/ui5-builder/commit/d854a88b659f24aecb27d266051adfebe4192bcf)
11
+
12
+
13
+ <a name="v4.1.3"></a>
14
+ ## [v4.1.3] - 2025-11-27
15
+ ### Bug Fixes
16
+ - **Bundling:** generateFlexChangesBundle should not rely on existing manifest.json ([#1178](https://github.com/SAP/ui5-builder/issues/1178)) [`f61705b`](https://github.com/SAP/ui5-builder/commit/f61705bcd03b1033afed7d4243647eee60f2faa1)
17
+
6
18
 
7
19
  <a name="v4.1.2"></a>
8
- ## [v4.1.2] - 2025-11-13
20
+ ## [v4.1.2] - 2025-11-14
9
21
 
10
22
  <a name="v4.1.1"></a>
11
23
  ## [v4.1.1] - 2025-10-30
@@ -1004,6 +1016,8 @@ to load the custom bundle file instead.
1004
1016
 
1005
1017
  ### Features
1006
1018
  - Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
1019
+ [v4.1.4]: https://github.com/SAP/ui5-builder/compare/v4.1.3...v4.1.4
1020
+ [v4.1.3]: https://github.com/SAP/ui5-builder/compare/v4.1.2...v4.1.3
1007
1021
  [v4.1.2]: https://github.com/SAP/ui5-builder/compare/v4.1.1...v4.1.2
1008
1022
  [v4.1.1]: https://github.com/SAP/ui5-builder/compare/v4.1.0...v4.1.1
1009
1023
  [v4.1.0]: https://github.com/SAP/ui5-builder/compare/v4.0.13...v4.1.0
@@ -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 2025 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 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 2025 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 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
  * JSDoc3 plugin for UI5 documentation generation.
3
3
  *
4
- * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 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
  * JSDoc3 template for UI5 documentation generation.
3
3
  *
4
- * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 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 parse type strings.
3
3
  *
4
- * (c) Copyright 2025 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2026 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,4 +1,4 @@
1
- import escapeUnicode from "escape-unicode";
1
+ import {escapeUnicode} from "escape-unicode";
2
2
 
3
3
  /**
4
4
  * @public
@@ -63,6 +63,10 @@ export default async function({workspace, taskUtil, options = {}}) {
63
63
 
64
64
  async function updateManifestWithFlDependencyAndFlexBundleFlag(bBundleCreated) {
65
65
  const manifestResource = await workspace.byPath(`${pathPrefix}/manifest.json`);
66
+ if (!manifestResource) {
67
+ log.verbose("No manifest.json found, skipping update of sap.ui.fl dependency and flexBundle flag");
68
+ return;
69
+ }
66
70
  const manifestContent = JSON.parse(await manifestResource.getString());
67
71
 
68
72
  updateJson(manifestContent, bBundleCreated);
@@ -73,6 +77,10 @@ export default async function({workspace, taskUtil, options = {}}) {
73
77
 
74
78
  async function readManifestMinUI5Version() {
75
79
  const manifestResource = await workspace.byPath(`${pathPrefix}/manifest.json`);
80
+ if (!manifestResource) {
81
+ log.verbose("No manifest.json found, cannot read minUI5Version");
82
+ return [];
83
+ }
76
84
  const manifestContent = JSON.parse(await manifestResource.getString());
77
85
 
78
86
  manifestContent["sap.ui5"] = manifestContent["sap.ui5"] || {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/builder",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "UI5 CLI - Builder",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -33,7 +33,7 @@
33
33
  "npm": ">= 8"
34
34
  },
35
35
  "scripts": {
36
- "test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",
36
+ "test": "npm run lint && npm run jsdoc-generate && npm run coverage",
37
37
  "test-azure": "npm run coverage-xunit",
38
38
  "lint": "eslint ./",
39
39
  "unit": "rimraf test/tmp && ava",
@@ -44,13 +44,13 @@
44
44
  "coverage": "rimraf test/tmp && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
45
45
  "coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
46
46
  "jsdoc": "npm run jsdoc-generate && open-cli jsdocs/index.html",
47
- "jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
47
+ "jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(npm ls docdash --parseable | head -1) ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
48
48
  "jsdoc-watch": "npm run jsdoc && chokidar \"./lib/**/*.js\" -c \"npm run jsdoc-generate\"",
49
49
  "preversion": "npm test",
50
50
  "version": "git-chglog --sort semver --next-tag v$npm_package_version -o CHANGELOG.md v4.0.0.. && git add CHANGELOG.md",
51
51
  "prepublishOnly": "git push --follow-tags",
52
52
  "release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version",
53
- "depcheck": "depcheck --ignores @ui5/builder,docdash,@istanbuljs/esm-loader-hook,catharsis,rimraf --parsers='**/*.js:es6,**/*.cjs:es6'"
53
+ "knip": "knip --config knip.config.js"
54
54
  },
55
55
  "files": [
56
56
  "CHANGELOG.md",
@@ -88,7 +88,8 @@
88
88
  "coverage/**",
89
89
  "test/**",
90
90
  ".eslintrc.cjs",
91
- "jsdoc-plugin.cjs"
91
+ "jsdoc-plugin.cjs",
92
+ "knip.config.js"
92
93
  ],
93
94
  "check-coverage": true,
94
95
  "statements": 85,
@@ -122,18 +123,18 @@
122
123
  },
123
124
  "dependencies": {
124
125
  "@jridgewell/sourcemap-codec": "^1.5.5",
125
- "@ui5/fs": "^4.0.3",
126
+ "@ui5/fs": "^4.0.5",
126
127
  "@ui5/logger": "^4.0.2",
127
128
  "cheerio": "1.0.0",
128
- "escape-unicode": "^0.2.0",
129
+ "escape-unicode": "^0.3.0",
129
130
  "escope": "^4.0.0",
130
131
  "espree": "^10.4.0",
131
132
  "graceful-fs": "^4.2.11",
132
133
  "jsdoc": "^4.0.5",
133
134
  "less-openui5": "^0.11.6",
134
135
  "pretty-data": "^0.40.0",
135
- "semver": "^7.7.3",
136
- "terser": "^5.44.1",
136
+ "semver": "^7.7.4",
137
+ "terser": "^5.46.0",
137
138
  "workerpool": "^9.3.4",
138
139
  "xml2js": "^0.6.2"
139
140
  },
@@ -141,23 +142,23 @@
141
142
  "@eslint/js": "^9.14.0",
142
143
  "@istanbuljs/esm-loader-hook": "^0.3.0",
143
144
  "@jridgewell/trace-mapping": "^0.3.31",
144
- "@ui5/project": "^4.0.8",
145
+ "@ui5/project": "^4.0.9",
145
146
  "ava": "^6.4.1",
146
147
  "chokidar-cli": "^3.0.0",
147
- "cross-env": "^7.0.3",
148
- "depcheck": "^1.4.7",
148
+ "cross-env": "^10.1.0",
149
149
  "docdash": "^2.0.2",
150
- "eslint": "^9.39.1",
150
+ "eslint": "^9.39.2",
151
151
  "eslint-config-google": "^0.14.0",
152
152
  "eslint-plugin-ava": "^15.1.0",
153
- "eslint-plugin-jsdoc": "^52.0.4",
153
+ "eslint-plugin-jsdoc": "61.5.0",
154
154
  "esmock": "^2.7.3",
155
155
  "globals": "^16.5.0",
156
+ "knip": "^5.83.1",
156
157
  "line-column": "^1.0.2",
157
158
  "nyc": "^17.1.0",
158
159
  "open-cli": "^8.0.0",
159
- "rimraf": "^6.1.0",
160
- "sinon": "^21.0.0",
160
+ "rimraf": "^6.1.3",
161
+ "sinon": "^21.0.1",
161
162
  "tap-xunit": "^2.4.1"
162
163
  }
163
164
  }