@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.
- package/dist/data/defaults.d.ts +5 -2
- package/dist/data/defaults.js +5 -3
- package/package.json +1 -1
package/dist/data/defaults.d.ts
CHANGED
|
@@ -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
|
|
60
|
-
*
|
|
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.
|
package/dist/data/defaults.js
CHANGED
|
@@ -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
|
|
129
|
-
*
|
|
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.
|
|
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