@sap-ux/preview-middleware 0.17.28 → 0.17.29

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.
@@ -57,16 +57,19 @@ sap.ui.define(["sap/ui/rta/command/CommandFactory", "../../../utils/version"], f
57
57
  *
58
58
  * Returns `false`
59
59
  *
60
- * - If the manifest is structured is an array
60
+ * - If the manifest is structured is an array and is below version 1.134
61
61
  * - If the UI5 version is not supported
62
62
  * Otherwise, returns `true`.
63
63
  *
64
64
  */
65
65
  async function areManifestChangesSupported(manifest) {
66
- if (isManifestArrayStructured(manifest)) {
66
+ const version = await getUi5Version();
67
+ if (isLowerThanMinimalUi5Version(version, {
68
+ major: 1,
69
+ minor: 134
70
+ }) && isManifestArrayStructured(manifest)) {
67
71
  return false;
68
72
  }
69
- const version = await getUi5Version();
70
73
  const isAboveOrEqualMinimalVersion = !isLowerThanMinimalUi5Version(version, {
71
74
  major: 1,
72
75
  minor: 128
@@ -70,17 +70,17 @@ export function isManifestArrayStructured(manifest: Manifest): boolean {
70
70
  *
71
71
  * Returns `false`
72
72
  *
73
- * - If the manifest is structured is an array
73
+ * - If the manifest is structured is an array and is below version 1.134
74
74
  * - If the UI5 version is not supported
75
75
  * Otherwise, returns `true`.
76
76
  *
77
77
  */
78
78
  export async function areManifestChangesSupported(manifest: Manifest): Promise<boolean> {
79
- if (isManifestArrayStructured(manifest)) {
79
+ const version = await getUi5Version();
80
+ if (isLowerThanMinimalUi5Version(version, { major: 1, minor: 134 }) && isManifestArrayStructured(manifest)) {
80
81
  return false;
81
82
  }
82
83
 
83
- const version = await getUi5Version();
84
84
  const isAboveOrEqualMinimalVersion = !isLowerThanMinimalUi5Version(version, { major: 1, minor: 128 });
85
85
  const isSupportedPatchVersion =
86
86
  isVersionEqualOrHasNewerPatch(version, { major: 1, minor: 96, patch: 35 }) ||
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%3Apreview-middleware"
11
11
  },
12
- "version": "0.17.28",
12
+ "version": "0.17.29",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -26,9 +26,9 @@
26
26
  "mem-fs": "2.1.0",
27
27
  "mem-fs-editor": "9.4.0",
28
28
  "@sap-ux/logger": "0.6.0",
29
- "@sap-ux/adp-tooling": "0.12.127",
30
- "@sap-ux/btp-utils": "1.0.1",
31
29
  "@sap-ux/feature-toggle": "0.2.3",
30
+ "@sap-ux/btp-utils": "1.0.1",
31
+ "@sap-ux/adp-tooling": "0.12.127",
32
32
  "@sap-ux/control-property-editor-sources": "npm:@sap-ux/control-property-editor@0.5.37",
33
33
  "@sap-ux/project-access": "1.29.6"
34
34
  },
@@ -48,11 +48,11 @@
48
48
  "supertest": "6.3.3",
49
49
  "@sap-ux-private/playwright": "0.1.0",
50
50
  "dotenv": "16.3.1",
51
- "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.60",
52
- "@sap-ux/store": "1.0.0",
51
+ "@private/preview-middleware-client": "npm:@sap-ux-private/preview-middleware-client@0.11.61",
53
52
  "@sap-ux/axios-extension": "1.18.5",
54
- "@sap-ux/i18n": "0.2.1",
55
- "@sap-ux/ui5-info": "0.8.3"
53
+ "@sap-ux/store": "1.0.0",
54
+ "@sap-ux/ui5-info": "0.8.3",
55
+ "@sap-ux/i18n": "0.2.1"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "express": "4"