cds-plugin-ui5 0.16.0 → 0.16.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
@@ -3,6 +3,17 @@
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.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)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [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
18
 
8
19
 
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
- if (!satisfies(cdsdkVersion, ">=8")) {
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
- if (!satisfies(cdsdkVersion, ">=8")) {
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.0",
3
+ "version": "0.16.1",
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": "01ced0777ecea1c68249904945b7e80d1e1a307a"
30
+ "gitHead": "ac5494cf765d45bb66d0061bdc0d0933cb63d500"
31
31
  }