@sap-ux/ui5-application-writer 1.2.9 → 1.3.0

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.
@@ -26,4 +26,14 @@ export declare const defaultUI5Libs: string[];
26
26
  * @returns {UI5} the updated copy of UI5 instance (does not change `ui5`)
27
27
  */
28
28
  export declare function mergeUi5(ui5: Partial<UI5>, options?: Partial<AppOptions>): UI5;
29
+ /**
30
+ * Get the manifest descriptor version from the specified UI5 version.
31
+ * Snapshots are handled by coercion to proper versions. If the version does not exist as an exact match
32
+ * the nearest version lower will be used.
33
+ *
34
+ * @param ui5Version - the ui5 version to be used to map to the manifest descriptor version
35
+ * @param manifestVersion - optional manifest descriptor version to be used if provided
36
+ * @returns - the manifest descriptor version
37
+ */
38
+ export declare function getManifestVersion(ui5Version: string, manifestVersion?: string): string;
29
39
  //# sourceMappingURL=defaults.d.ts.map
@@ -7,6 +7,7 @@ exports.defaultUI5Libs = void 0;
7
7
  exports.packageDefaults = packageDefaults;
8
8
  exports.mergeApp = mergeApp;
9
9
  exports.mergeUi5 = mergeUi5;
10
+ exports.getManifestVersion = getManifestVersion;
10
11
  const ui5_config_1 = require("@sap-ux/ui5-config");
11
12
  const mapping_json_1 = __importDefault(require("@ui5/manifest/mapping.json")); // from https://github.com/SAP/ui5-manifest/blob/master/mapping.json
12
13
  const ui5Libs_1 = require("./ui5Libs");
package/dist/index.d.ts CHANGED
@@ -30,4 +30,5 @@ declare function enableTypescript(basePath: string, fs?: Editor): Promise<Editor
30
30
  export { Ui5App, generate, enableTypescript, isTypescriptEnabled };
31
31
  export { App, Package, UI5, AppOptions };
32
32
  export { compareUI5VersionGte, ui5LtsVersion_1_120, ui5LtsVersion_1_71, processDestinationPath, getTemplateVersionPath } from './utils';
33
+ export { getManifestVersion } from './data/defaults';
33
34
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTemplateVersionPath = exports.processDestinationPath = exports.ui5LtsVersion_1_71 = exports.ui5LtsVersion_1_120 = exports.compareUI5VersionGte = void 0;
3
+ exports.getManifestVersion = exports.getTemplateVersionPath = exports.processDestinationPath = exports.ui5LtsVersion_1_71 = exports.ui5LtsVersion_1_120 = exports.compareUI5VersionGte = void 0;
4
4
  exports.generate = generate;
5
5
  exports.enableTypescript = enableTypescript;
6
6
  exports.isTypescriptEnabled = isTypescriptEnabled;
@@ -142,4 +142,6 @@ Object.defineProperty(exports, "ui5LtsVersion_1_120", { enumerable: true, get: f
142
142
  Object.defineProperty(exports, "ui5LtsVersion_1_71", { enumerable: true, get: function () { return utils_1.ui5LtsVersion_1_71; } });
143
143
  Object.defineProperty(exports, "processDestinationPath", { enumerable: true, get: function () { return utils_1.processDestinationPath; } });
144
144
  Object.defineProperty(exports, "getTemplateVersionPath", { enumerable: true, get: function () { return utils_1.getTemplateVersionPath; } });
145
+ var defaults_1 = require("./data/defaults");
146
+ Object.defineProperty(exports, "getManifestVersion", { enumerable: true, get: function () { return defaults_1.getManifestVersion; } });
145
147
  //# sourceMappingURL=index.js.map
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": "1.2.9",
12
+ "version": "1.3.0",
13
13
  "license": "Apache-2.0",
14
14
  "main": "dist/index.js",
15
15
  "files": [
@@ -27,7 +27,7 @@
27
27
  "mem-fs": "2.1.0",
28
28
  "mem-fs-editor": "9.4.0",
29
29
  "semver": "7.5.4",
30
- "@sap-ux/ui5-config": "0.26.1"
30
+ "@sap-ux/ui5-config": "0.26.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/ejs": "3.1.2",
@@ -38,7 +38,7 @@
38
38
  "@types/semver": "7.5.2",
39
39
  "fs-extra": "10.0.0",
40
40
  "@sap-ux/eslint-plugin-fiori-tools": "0.5.0",
41
- "@sap-ux/project-access": "1.29.1"
41
+ "@sap-ux/project-access": "1.29.10"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=18.x"