@sap-ux/ui5-application-writer 0.19.0 → 0.19.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.
@@ -25,6 +25,7 @@ export declare const enum UI5_DEFAULT {
25
25
  SAPUI5_CDN = "https://ui5.sap.com",
26
26
  OPENUI5_CDN = "https://openui5.hana.ondemand.com",
27
27
  TYPES_VERSION_SINCE = "1.76.0",
28
+ TYPES_VERSION_BEST_MIN = "1.102.0",
28
29
  TYPES_VERSION_PREVIOUS = "1.71.15",
29
30
  TYPES_VERSION_BEST = "1.108.0",
30
31
  ESM_TYPES_VERSION_SINCE = "1.94.0",
@@ -56,8 +57,10 @@ export declare function mergeUi5(ui5: Partial<UI5>, options?: Partial<AppOptions
56
57
  */
57
58
  export declare function getTypesVersion(minUI5Version?: string): string;
58
59
  /**
59
- * Get the best types version for the given minUI5Version within a selective range, starting at 1.90.0 for https://www.npmjs.com/package/@sapui5/ts-types-esm
60
- * For the latest versions the LTS S/4 on-premise version (1.102.x) is used, for anything before we match the versions as far back as available.
60
+ * Get the best types version for the given minUI5Version within a selective range, starting at 1.90.0
61
+ * for https://www.npmjs.com/package/@sapui5/ts-types-esm
62
+ * For the latest versions the LTS S/4 on-premise version (1.102.x) is used, for anything before we
63
+ * match the versions as far back as available.
61
64
  *
62
65
  * @param minUI5Version the minimum UI5 version that needs to be supported
63
66
  * @returns semantic version representing the types version.
@@ -125,15 +125,17 @@ function getTypesVersion(minUI5Version) {
125
125
  }
126
126
  exports.getTypesVersion = getTypesVersion;
127
127
  /**
128
- * Get the best types version for the given minUI5Version within a selective range, starting at 1.90.0 for https://www.npmjs.com/package/@sapui5/ts-types-esm
129
- * For the latest versions the LTS S/4 on-premise version (1.102.x) is used, for anything before we match the versions as far back as available.
128
+ * Get the best types version for the given minUI5Version within a selective range, starting at 1.90.0
129
+ * for https://www.npmjs.com/package/@sapui5/ts-types-esm
130
+ * For the latest versions the LTS S/4 on-premise version (1.102.x) is used, for anything before we
131
+ * match the versions as far back as available.
130
132
  *
131
133
  * @param minUI5Version the minimum UI5 version that needs to be supported
132
134
  * @returns semantic version representing the types version.
133
135
  */
134
136
  function getEsmTypesVersion(minUI5Version) {
135
137
  const version = semver_1.default.coerce(minUI5Version);
136
- if (!version || semver_1.default.gte(version, "1.108.0" /* UI5_DEFAULT.TYPES_VERSION_BEST */)) {
138
+ if (!version || semver_1.default.gte(version, "1.102.0" /* UI5_DEFAULT.TYPES_VERSION_BEST_MIN */)) {
137
139
  return `~${"1.108.0" /* UI5_DEFAULT.TYPES_VERSION_BEST */}`;
138
140
  }
139
141
  else {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-application-writer"
11
11
  },
12
- "version": "0.19.0",
12
+ "version": "0.19.1",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [