Skip to content

Commit a0cae42

Browse files
committed
chore: upgrade @openui5/sap.ui.core from 1.120.17 to 1.146.0
Upgrade the OpenUI5 dependency to latest (1.146.0), bringing CLDR from 43.0.0 to 48.0.0. This required 22 new overlay stubs to handle the expanded dependency tree in the new version (Lib.init, SyncPromise, Theming, Core, etc.) and updates to the Formatting and Localization TS shims. OpenUI5 modules run inside ui5-webcomponents via a three-layer system: ``` ┌─────────────────────────────────────────────────────┐ │ @openui5/sap.ui.core (1.146.0) │ │ Real AMD modules: DateFormat, NumberFormat, │ │ LocaleData, UniversalDate, CalendarUtils, etc. │ │ (listed in used-modules.txt) │ ├─────────────────────────────────────────────────────┤ │ overlay/ stubs (AMD, no-op) │ │ Replace framework deps that don't exist here: │ │ Core.js, Lib.init, SyncPromise, Theming, etc. │ │ → 22 new stubs added for 1.146.0 │ ├─────────────────────────────────────────────────────┤ │ src/sap/ TS shims (ESM) │ │ Bridge OpenUI5 APIs to @ui5/webcomponents-base: │ │ Formatting.ts, Localization.ts, Configuration.ts │ │ → Updated for new APIs in 1.146.0 │ └─────────────────────────────────────────────────────┘ ``` Build pipeline: copy-used-modules → copy-overlay → amd-to-es6 → tsc (TypeScript shims compile last, overwriting converted OpenUI5 originals)
1 parent e99d0cc commit a0cae42

29 files changed

+404
-20
lines changed

packages/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
},
6464
"devDependencies": {
6565
"@custom-elements-manifest/analyzer": "^0.10.10",
66-
"@openui5/sap.ui.core": "1.120.17",
66+
"@openui5/sap.ui.core": "1.146.0",
6767
"@sap-theming/theming-base-content": "11.33.0",
6868
"@ui5/cypress-internal": "0.1.0",
6969
"@ui5/webcomponents-tools": "2.20.1",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return {
5+
active: false,
6+
fatalThrows: function() {},
7+
errorThrows: function() {},
8+
warningThrows: function() {},
9+
assertThrows: function() {},
10+
warningRejects: function(fnResolve) { if (fnResolve) { fnResolve(); } }
11+
};
12+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
var oEmptyBundle = {
5+
getText: function() { return ""; },
6+
hasText: function() { return false; },
7+
getProperty: function() { return ""; }
8+
};
9+
10+
var ResourceBundle = {
11+
create: function() {
12+
return Promise.resolve(oEmptyBundle);
13+
},
14+
_getUrl: function() { return ""; }
15+
};
16+
17+
return ResourceBundle;
18+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return {
5+
create: function() {
6+
return Promise.resolve({
7+
getProperty: function() { return null; },
8+
getKeys: function() { return []; }
9+
});
10+
}
11+
};
12+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
var fetch = function() {
5+
return Promise.reject(new Error("fetch not supported in UI5 Web Components"));
6+
};
7+
fetch.ContentTypes = {
8+
text: "text/plain",
9+
json: "application/json"
10+
};
11+
return fetch;
12+
});
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return function() {
5+
return Promise.reject(new Error("mixedFetch not supported in UI5 Web Components"));
6+
};
7+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return {
5+
browser: { firefox: false, webkit: false, chrome: false, name: "", version: -1 },
6+
os: { windows: false, macintosh: false, linux: false, android: false, ios: false },
7+
system: { desktop: true, phone: false, tablet: false },
8+
support: { touch: false },
9+
media: {},
10+
orientation: {},
11+
resize: {}
12+
};
13+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return {};
5+
});
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return {
5+
load: function() { return Promise.resolve({}); },
6+
_load: function() { return Promise.resolve({}); },
7+
_getTransitiveDependencyForLibraries: function() { return []; },
8+
_getTransitiveDependencyForComponent: function() { return undefined; }
9+
};
10+
});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sap.ui.define([], function() {
2+
"use strict";
3+
4+
return {
5+
isDesignModeEnabled: function() { return false; },
6+
isControllerCodeDeactivationSuppressed: function() { return false; },
7+
isControllerCodeDeactivated: function() { return false; }
8+
};
9+
});

0 commit comments

Comments
 (0)