cds-plugin-ui5 0.16.0 → 0.16.2
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 +19 -0
- package/README.md +1 -1
- package/cds-plugin.js +6 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.16.2](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.16.1...cds-plugin-ui5@0.16.2) (2026-01-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package cds-plugin-ui5
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.16.1](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.16.0...cds-plugin-ui5@0.16.1) (2025-12-05)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **cds-plugin-ui5:** coerce versions for satisfy check ([#1303](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/1303)) ([61e65ff](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/61e65ffb64dd7d80976d235fa7cbca3366dac511))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [0.16.0](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/cds-plugin-ui5@0.15.0...cds-plugin-ui5@0.16.0) (2025-12-02)
|
|
7
26
|
|
|
8
27
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# cds-plugin-ui5
|
|
2
2
|
|
|
3
|
-
> :wave: This is
|
|
3
|
+
> :wave: This is an **open‑source, community‑driven project**, developed and actively monitored by members of the UI5 and CAP developerment teams and communities. Although it sits outside SAP’s standard support model, it is continuously improved through real‑world usage and contributions. You are welcome to use it, report issues, contribute enhancements, and support others in the community.
|
|
4
4
|
|
|
5
5
|
The `cds-plugin-ui5` is a CDS server `cds-plugin` for the node runtime of the [SAP Cloud Application Programming Model (CAP)](https://cap.cloud.sap/docs/about/) which enables the integration of UI5 CLI based (UI5 freestyle or Fiori elements) projects into the CDS server via the UI5 CLI express middlewares. The UI5 or Fiori elements projects just need to be located in the `app` folder of the CDS server, or via the `cds.env.folders.app` variable, or be a dependency of the CDS server.
|
|
6
6
|
|
package/cds-plugin.js
CHANGED
|
@@ -297,7 +297,7 @@ if (!skip) {
|
|
|
297
297
|
// check if the register function for build tasks is available at the cds object
|
|
298
298
|
// and if the Plugin class is available to register the cds build task to cover
|
|
299
299
|
// the tracks of the cds-plugin-ui5 workspace configuration and dependencies
|
|
300
|
-
const { minVersion, satisfies } = require("semver");
|
|
300
|
+
const { minVersion, satisfies, coerce } = require("semver");
|
|
301
301
|
if (typeof cds.build?.register === "function" && typeof cds.build?.Plugin?.constructor === "function") {
|
|
302
302
|
const { readFile, writeFile } = require("fs").promises;
|
|
303
303
|
const { existsSync } = require("fs");
|
|
@@ -333,12 +333,14 @@ if (!skip) {
|
|
|
333
333
|
}
|
|
334
334
|
init() {}
|
|
335
335
|
clean() {
|
|
336
|
-
|
|
336
|
+
// allowed ranges for CDSDK >= 8 are -1024..-1 and 512..1024
|
|
337
|
+
if (!satisfies(coerce(cdsdkVersion), ">=8")) {
|
|
337
338
|
this._priority = -1; // hack to ensure that the task is executed last!
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
341
|
get priority() {
|
|
341
|
-
|
|
342
|
+
// allowed ranges for CDSDK >= 8 are -1024..-1 and 512..1024
|
|
343
|
+
if (!satisfies(coerce(cdsdkVersion), ">=8")) {
|
|
342
344
|
return this._priority || 1;
|
|
343
345
|
} else {
|
|
344
346
|
return -1;
|
|
@@ -390,7 +392,7 @@ if (!skip) {
|
|
|
390
392
|
},
|
|
391
393
|
);
|
|
392
394
|
} else {
|
|
393
|
-
if (!satisfies(cdsdkVersion, ">=7.5.0")) {
|
|
395
|
+
if (!satisfies(coerce(cdsdkVersion), ">=7.5.0")) {
|
|
394
396
|
// TODO: add error message to inform the user that the cds build task is not available
|
|
395
397
|
// and that the @sap/cds-dk version is too old to support the cds build task
|
|
396
398
|
LOG.warn(`The cds build task requires @sap/cds-dk version >= 7.5.0! Skipping execution as your @sap/cds-dk version ${cdsdkVersion} is too old...`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cds-plugin-ui5",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2",
|
|
4
4
|
"description": "A CDS server plugin to inject the middlewares of all related UI5 CLI based projects.",
|
|
5
5
|
"author": "Peter Muessig",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@sap/cds": ">=6.8.2",
|
|
28
28
|
"express": ">=4.18.2"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "81b3e9d3bf3fd2099d60eb999aac71404c2d881d"
|
|
31
31
|
}
|