@ui5/webcomponents-tools 2.0.0-rc.4 → 2.0.0-rc.6
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
CHANGED
@@ -3,6 +3,22 @@
|
|
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.0.0-rc.6](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.5...v2.0.0-rc.6) (2024-06-17)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
# [2.0.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.4...v2.0.0-rc.5) (2024-06-06)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
6
22
|
# [2.0.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.3...v2.0.0-rc.4) (2024-05-29)
|
7
23
|
|
8
24
|
|
package/README.md
CHANGED
@@ -11,7 +11,7 @@ used by other UI5 Web Components packages, such as `main` and `fiori`.
|
|
11
11
|
## Resources
|
12
12
|
- [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
|
13
13
|
- [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
|
14
|
-
- [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/
|
14
|
+
- [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/play/)
|
15
15
|
|
16
16
|
## Support
|
17
17
|
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
|
@@ -19,6 +19,7 @@ const overrides = tsMode ? [{
|
|
19
19
|
},
|
20
20
|
rules: {
|
21
21
|
"no-shadow": "off",
|
22
|
+
"@typescript-eslint/consistent-type-imports": "error",
|
22
23
|
"@typescript-eslint/no-shadow": ["error"],
|
23
24
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
24
25
|
"@typescript-eslint/no-floating-promises": "off",
|
@@ -69,7 +69,17 @@ function processClass(ts, classNode, moduleDoc) {
|
|
69
69
|
currClass._ui5abstract = hasTag(classParsedJsDoc, "abstract") ? true : undefined;
|
70
70
|
currClass.description = normalizeDescription(classParsedJsDoc.description || findTag(classParsedJsDoc, "class")?.description);
|
71
71
|
currClass._ui5implements = findAllTags(classParsedJsDoc, "implements")
|
72
|
-
.map(tag =>
|
72
|
+
.map(tag => {
|
73
|
+
const correctInterfaceDescription = classNode?.heritageClauses?.some(heritageClause => {
|
74
|
+
return heritageClause?.types?.some(type => type.expression?.text === normalizeTagType(tag.type));
|
75
|
+
});
|
76
|
+
|
77
|
+
if (!correctInterfaceDescription) {
|
78
|
+
logDocumentationError(moduleDoc.path, `@interface {${tag.type}} tag is used, but the class doesn't implement the corresponding interface`)
|
79
|
+
}
|
80
|
+
|
81
|
+
return getReference(ts, normalizeTagType(tag.type), classNode, moduleDoc.path)
|
82
|
+
})
|
73
83
|
.filter(Boolean);
|
74
84
|
|
75
85
|
|
@@ -77,6 +87,10 @@ function processClass(ts, classNode, moduleDoc) {
|
|
77
87
|
const superclassTag = findTag(classParsedJsDoc, "extends");
|
78
88
|
currClass.superclass = getReference(ts, superclassTag.name, classNode, moduleDoc.path);
|
79
89
|
|
90
|
+
if (classNode?.heritageClauses?.[0]?.types?.[0]?.expression?.text !== superclassTag.name) {
|
91
|
+
logDocumentationError(moduleDoc.path, `@extends ${superclassTag.name} is used, but the class doesn't extend the corresponding superclass`)
|
92
|
+
}
|
93
|
+
|
80
94
|
if (currClass.superclass?.name === "UI5Element") {
|
81
95
|
currClass.customElement = true;
|
82
96
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.0.0-rc.
|
3
|
+
"version": "2.0.0-rc.6",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -80,5 +80,5 @@
|
|
80
80
|
"esbuild": "^0.19.9",
|
81
81
|
"yargs": "^17.5.1"
|
82
82
|
},
|
83
|
-
"gitHead": "
|
83
|
+
"gitHead": "19380fe3b367d021be5caf60e531ff50be91feef"
|
84
84
|
}
|