@iobroker/repochecker 5.4.0 → 5.4.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/README.md +3 -0
- package/lib/M0000_PackageJson.js +1 -1
- package/lib/M3000_Testing.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,9 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
+
### 5.4.1 (2026-03-13)
|
|
29
|
+
- (mcm197) E3008 has been fixed
|
|
30
|
+
|
|
28
31
|
### 5.4.0 (2026-03-11)
|
|
29
32
|
- (@copilot) OnlyWWW adapters no longer require testing dependencies or adapter test workflows (skips E3000, E3011, and W3015 checks for adapters with `common.onlyWWW = true`).
|
|
30
33
|
|
package/lib/M0000_PackageJson.js
CHANGED
|
@@ -1094,7 +1094,7 @@ async function checkPackageJson(context) {
|
|
|
1094
1094
|
} else if (optional) {
|
|
1095
1095
|
context.checks.push(`devDependency ${dependency} is optional`);
|
|
1096
1096
|
if (suggested) {
|
|
1097
|
-
context.warnings.push(`[S0062] Consider adding package "${dependency}".`);
|
|
1097
|
+
context.warnings.push(`[S0062] Consider adding and using package "${dependency}".`);
|
|
1098
1098
|
}
|
|
1099
1099
|
} else {
|
|
1100
1100
|
context.errors.push(
|
package/lib/M3000_Testing.js
CHANGED
|
@@ -180,7 +180,7 @@ async function checkTests(context) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
// E3008: check push tags
|
|
183
|
-
const tags = pushConfig.tags
|
|
183
|
+
const tags = pushConfig.tags;
|
|
184
184
|
const requiredTagPatterns = ['v[0-9]+.[0-9]+.[0-9]+', 'v[0-9]+.[0-9]+.[0-9]+-**'];
|
|
185
185
|
if (!tags || !Array.isArray(tags)) {
|
|
186
186
|
context.errors.push(
|
|
@@ -188,7 +188,8 @@ async function checkTests(context) {
|
|
|
188
188
|
`Required tag patterns: ${requiredTagPatterns.join(', ')}`,
|
|
189
189
|
);
|
|
190
190
|
} else {
|
|
191
|
-
const
|
|
191
|
+
const cleanedTags = pushConfig.tags.map( tag => tag.replaceAll('v?', 'v'));
|
|
192
|
+
const missingPatterns = requiredTagPatterns.filter(pat => !cleanedTags.includes(pat));
|
|
192
193
|
if (missingPatterns.length > 0) {
|
|
193
194
|
context.errors.push(
|
|
194
195
|
`[E3008] Workflow "${WORKFLOW_FILE}": "push" trigger "tags" is missing required pattern(s): ${missingPatterns.join(', ')}`,
|
package/package.json
CHANGED