babel-plugin-transform-modules-ui5 7.0.6 → 7.1.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/CHANGELOG.md +22 -0
- package/dist/classes/helpers/classes.js +6 -2
- package/dist/utils/templates.js +4 -2
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.1.1](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/compare/v7.1.0...v7.1.1) (2023-03-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* catch err for dynamic import to sap.ui.require ([#91](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/issues/91)) ([9c7d26e](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/commit/9c7d26e6aeebc77f5d8faec941fbd994b77de222))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [7.1.0](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/compare/v7.0.6...v7.1.0) (2023-03-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* backward compatibility for overrides (overridesToOverride option) ([dac96e6](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/commit/dac96e685548ccf831893c03e083e6db2dae3d4f))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [7.0.6](https://github.com/ui5-community/babel-plugin-transform-modules-ui5/compare/v7.0.5...v7.0.6) (2023-02-21)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package babel-plugin-transform-modules-ui5
|
|
@@ -81,8 +81,12 @@ function convertClassToUI5Extend(path, node, classInfo, extraStaticProps, opts)
|
|
|
81
81
|
}
|
|
82
82
|
} else if (_core.types.isClassProperty(member)) {
|
|
83
83
|
if (!member.value) continue; // un-initialized static class prop (typescript)
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
|
|
85
|
+
// Special handling for TypeScript limitation where metadata, renderer and overrides must be properties.
|
|
86
|
+
if (["metadata", "renderer", "overrides"].includes(memberName)) {
|
|
87
|
+
if (opts.overridesToOverride && member.key.name === "overrides") {
|
|
88
|
+
member.key.name = "override";
|
|
89
|
+
}
|
|
86
90
|
extendProps.unshift(buildObjectProperty(member));
|
|
87
91
|
} else if (member.static) {
|
|
88
92
|
if (moveStaticStaticPropsToExtend) {
|
package/dist/utils/templates.js
CHANGED
|
@@ -102,8 +102,10 @@ const buildDynamicImportHelper = (0, _core.template)(`
|
|
|
102
102
|
module.__esModule = true;
|
|
103
103
|
resolve(module);
|
|
104
104
|
}
|
|
105
|
-
})
|
|
106
|
-
|
|
105
|
+
}, (err) => {
|
|
106
|
+
reject(err);
|
|
107
|
+
});
|
|
108
|
+
});
|
|
107
109
|
}
|
|
108
110
|
`);
|
|
109
111
|
exports.buildDynamicImportHelper = buildDynamicImportHelper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-transform-modules-ui5",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "An unofficial babel plugin for SAP UI5.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"lint:staged": "lint-staged",
|
|
21
21
|
"test": "jest __test__ --coverage=no",
|
|
22
22
|
"test:watch": "npm test -- --watch",
|
|
23
|
+
"test:update-snapshot": "jest --updateSnapshot",
|
|
23
24
|
"prepare": "npm test && npm run build",
|
|
24
25
|
"format": "prettier --write 'src/**/*.js'"
|
|
25
26
|
},
|
|
@@ -91,5 +92,5 @@
|
|
|
91
92
|
"prettier": "^2.8.4",
|
|
92
93
|
"rimraf": "^4.1.2"
|
|
93
94
|
},
|
|
94
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "e7dd55f8a73fa37f31267372da5ac3d441e26e3e"
|
|
95
96
|
}
|