@ui5/webcomponents-tools 2.6.0-rc.1 → 2.6.0-rc.2
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 +11 -0
- package/components-package/eslint.js +3 -2
- package/lib/cem/event.mjs +4 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,17 @@
|
|
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
|
+
# [2.6.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.1...v2.6.0-rc.2) (2024-12-19)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* **build:** generation of custom-elements.json ([#10403](https://github.com/SAP/ui5-webcomponents/issues/10403)) ([c4eb55c](https://github.com/SAP/ui5-webcomponents/commit/c4eb55cba3e45677c464df1f8cf2a17e6855f2a0))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
6
17
|
# [2.6.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.0...v2.6.0-rc.1) (2024-12-16)
|
7
18
|
|
8
19
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
@@ -4,9 +4,9 @@ const tsMode = fs.existsSync(path.join(process.cwd(), "tsconfig.json"));
|
|
4
4
|
|
5
5
|
/**
|
6
6
|
* Returns eslint rules specific to typescript files
|
7
|
-
* @returns
|
7
|
+
* @returns
|
8
8
|
*/
|
9
|
-
const getTsModeOverrides = () => {
|
9
|
+
const getTsModeOverrides = () => {
|
10
10
|
const tsConfiguration = {
|
11
11
|
files: ["*.ts"],
|
12
12
|
parser: "@typescript-eslint/parser",
|
@@ -25,6 +25,7 @@ const getTsModeOverrides = () => {
|
|
25
25
|
rules: {
|
26
26
|
"no-shadow": "off",
|
27
27
|
"@typescript-eslint/consistent-type-imports": "error",
|
28
|
+
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
|
28
29
|
"@typescript-eslint/no-shadow": ["error"],
|
29
30
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
30
31
|
"@typescript-eslint/no-floating-promises": "off",
|
package/lib/cem/event.mjs
CHANGED
@@ -112,12 +112,12 @@ function processEvent(ts, event, classNode, moduleDoc) {
|
|
112
112
|
: sinceTag.name;
|
113
113
|
}
|
114
114
|
|
115
|
-
const eventDetailType = classNode.members?.find(member =>
|
115
|
+
const eventDetailType = classNode.members?.find(member => {
|
116
|
+
return ts.isPropertyDeclaration(member) && member.name.text === "eventDetails"
|
117
|
+
})?.type;
|
116
118
|
const eventDetailRef = eventDetailType?.members?.find(member => member.name.text === name) || eventDetailType?.types?.[eventDetailType?.types?.length - 1]?.members?.find(member => member.name.text === name);
|
117
119
|
const hasGeneric = !!event?.expression?.typeArguments
|
118
|
-
|
119
|
-
// debugger
|
120
|
-
// }
|
120
|
+
|
121
121
|
if (commentParams.length) {
|
122
122
|
if (eventDetailRef && hasGeneric) {
|
123
123
|
logDocumentationError(moduleDoc.path, `Event details for event '${name}' has to be defined either with generic or with eventDetails.`)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.6.0-rc.
|
3
|
+
"version": "2.6.0-rc.2",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"eslint": "^7.22.0",
|
49
49
|
"eslint-config-airbnb-base": "^14.2.1",
|
50
50
|
"eslint-plugin-cypress": "^3.4.0",
|
51
|
-
"eslint-plugin-import": "^2.
|
51
|
+
"eslint-plugin-import": "^2.31.0",
|
52
52
|
"esprima": "^4.0.1",
|
53
53
|
"getopts": "^2.3.0",
|
54
54
|
"glob": "^7.1.6",
|
@@ -86,5 +86,5 @@
|
|
86
86
|
"esbuild": "^0.19.9",
|
87
87
|
"yargs": "^17.5.1"
|
88
88
|
},
|
89
|
-
"gitHead": "
|
89
|
+
"gitHead": "1d0e96fdf4cf4126817c45a9dad1c893d52a63fc"
|
90
90
|
}
|