@ui5/webcomponents-tools 2.8.0-rc.0 → 2.8.0-rc.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
CHANGED
@@ -3,6 +3,14 @@
|
|
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.8.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.0...v2.8.0-rc.1) (2025-02-13)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
6
14
|
# [2.8.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0...v2.8.0-rc.0) (2025-02-06)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
@@ -126,6 +126,7 @@ const getScripts = (options) => {
|
|
126
126
|
"test-cy-ci-suite-1": `cross-env CYPRESS_COVERAGE=true TEST_SUITE=SUITE1 yarn cypress run --component --browser chrome`,
|
127
127
|
"test-cy-ci-suite-2": `cross-env CYPRESS_COVERAGE=true TEST_SUITE=SUITE2 yarn cypress run --component --browser chrome`,
|
128
128
|
"test-cy-open": `cross-env CYPRESS_COVERAGE=true yarn cypress open --component --browser chrome`,
|
129
|
+
"test-cy-single": `cross-env yarn cypress run --component --browser chrome --spec ${process.argv[3]}`,
|
129
130
|
"test-suite-1": `node "${LIB}/test-runner/test-runner.js" --suite suite1`,
|
130
131
|
"test-suite-2": `node "${LIB}/test-runner/test-runner.js" --suite suite2`,
|
131
132
|
startWithScope: "nps scope.prepare scope.watchWithBundle",
|
@@ -127,7 +127,7 @@ function processClass(ts, classNode, moduleDoc) {
|
|
127
127
|
}
|
128
128
|
|
129
129
|
// Events
|
130
|
-
currClass.events = findAllDecorators(classNode, "event")
|
130
|
+
currClass.events = findAllDecorators(classNode, ["event", "eventStrict"])
|
131
131
|
?.map(event => processEvent(ts, event, classNode, moduleDoc));
|
132
132
|
|
133
133
|
// TODO: remove after changing Button's click to custom event.
|
package/lib/cem/utils.mjs
CHANGED
@@ -263,12 +263,22 @@ const findDecorator = (node, decoratorName) => {
|
|
263
263
|
};
|
264
264
|
|
265
265
|
const findAllDecorators = (node, decoratorName) => {
|
266
|
-
|
267
|
-
node?.decorators?.filter(
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
266
|
+
if (typeof decoratorName === "string") {
|
267
|
+
return node?.decorators?.filter(decorator => decorator?.expression?.expression?.text === decoratorName ) || [];
|
268
|
+
}
|
269
|
+
|
270
|
+
if (Array.isArray(decoratorName)) {
|
271
|
+
return node?.decorators?.filter(decorator => {
|
272
|
+
if (decorator?.expression?.expression?.text) {
|
273
|
+
return decoratorName.includes(decorator.expression.expression.text);
|
274
|
+
}
|
275
|
+
|
276
|
+
return false;
|
277
|
+
}
|
278
|
+
) || [];
|
279
|
+
}
|
280
|
+
|
281
|
+
return [];
|
272
282
|
};
|
273
283
|
|
274
284
|
const hasTag = (jsDoc, tagName) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.8.0-rc.
|
3
|
+
"version": "2.8.0-rc.1",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -87,8 +87,8 @@
|
|
87
87
|
"devDependencies": {
|
88
88
|
"@cypress/mount-utils": "^4.1.2",
|
89
89
|
"cypress-real-events": "^1.12.0",
|
90
|
-
"esbuild": "^0.
|
90
|
+
"esbuild": "^0.25.0",
|
91
91
|
"yargs": "^17.5.1"
|
92
92
|
},
|
93
|
-
"gitHead": "
|
93
|
+
"gitHead": "3c8f6db1b5cc6e4f23423ab0075c009e9e4965e4"
|
94
94
|
}
|