@iobroker/repochecker 5.19.7 → 5.19.9
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 +10 -0
- package/lib/M0000_PackageJson.js +5 -2
- package/lib/M3000_Testing.js +2 -2
- package/lib/M6000_Readme.js +1 -1
- package/lib/config.js +3 -2
- package/lib/postprocessing.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,16 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
+
### 5.19.9 (2026-07-12)
|
|
29
|
+
|
|
30
|
+
- (mcm1957) Checker accepst node.js 26 testing now
|
|
31
|
+
- (mcm1957) Missing tests for os raised to error level
|
|
32
|
+
- (mcm1957) Version parsing at changelog has been adapted
|
|
33
|
+
|
|
34
|
+
### 5.19.8 (2026-07-04)
|
|
35
|
+
|
|
36
|
+
- (mcm1957) more check for package.json lifecycle scripts
|
|
37
|
+
|
|
28
38
|
### 5.19.7 (2026-07-04)
|
|
29
39
|
|
|
30
40
|
- (mcm1957) workflow logs have been fixed
|
package/lib/M0000_PackageJson.js
CHANGED
|
@@ -924,9 +924,12 @@ async function checkPackageJson(context) {
|
|
|
924
924
|
context.checks.push('"lint" script found in package.json');
|
|
925
925
|
}
|
|
926
926
|
if (context.packageJson.scripts && typeof context.packageJson.scripts === 'object') {
|
|
927
|
-
|
|
927
|
+
const warningInstallScripts = ['prepare', 'preinstall'].filter(scriptName =>
|
|
928
|
+
Object.prototype.hasOwnProperty.call(context.packageJson.scripts, scriptName),
|
|
929
|
+
);
|
|
930
|
+
if (warningInstallScripts.length) {
|
|
928
931
|
context.warnings.push(
|
|
929
|
-
|
|
932
|
+
`[W0092] Script(s) ${warningInstallScripts.map(scriptName => `"${scriptName}"`).join(', ')} found in package.json. Usage of npm install lifecycle scripts should be avoided.`,
|
|
930
933
|
);
|
|
931
934
|
}
|
|
932
935
|
|
package/lib/M3000_Testing.js
CHANGED
|
@@ -1444,8 +1444,8 @@ async function checkTests(context) {
|
|
|
1444
1444
|
|
|
1445
1445
|
const uncoveredMissingSystems = missingSystems.filter(system => allowedSystems.has(system));
|
|
1446
1446
|
if (uncoveredMissingSystems.length > 0) {
|
|
1447
|
-
context.
|
|
1448
|
-
`[
|
|
1447
|
+
context.errors.push(
|
|
1448
|
+
`[E3027] "${WORKFLOW_FILE_SHORT}": testing for OS ${uncoveredMissingSystems.join(', ')} is missing in job "adapter-tests". ` +
|
|
1449
1449
|
`Add corresponding tests to "${WORKFLOW_FILE_SHORT}" or adapt package.json "os" accordingly.`,
|
|
1450
1450
|
);
|
|
1451
1451
|
} else {
|
package/lib/M6000_Readme.js
CHANGED
|
@@ -408,7 +408,7 @@ async function checkReadme(context) {
|
|
|
408
408
|
context.checks.push('README.md changelog contains "###" entries');
|
|
409
409
|
const invalidVersionHeaders = [];
|
|
410
410
|
for (const header of changelogHeaders) {
|
|
411
|
-
const match = /^(\d+\.\d+\.\d+(-\w
|
|
411
|
+
const match = /^(\d+\.\d+\.\d+(-\w+(\.\d+)?)?)(?:\s+.*)?$/.exec(header);
|
|
412
412
|
if (!match) {
|
|
413
413
|
if (
|
|
414
414
|
!header.includes('WORK IN PROGRESS') &&
|
package/lib/config.js
CHANGED
|
@@ -436,12 +436,13 @@ const testingNodeJs = {
|
|
|
436
436
|
|
|
437
437
|
// Node.js version requirements for non-matrix jobs
|
|
438
438
|
minimumNodeVersionCheckAndLint: '22',
|
|
439
|
-
recommendedNodeVersionCheckAndLint: '
|
|
439
|
+
recommendedNodeVersionCheckAndLint: '',
|
|
440
440
|
minimumNodeVersionDeploy: '24',
|
|
441
441
|
recommendedNodeVersionDeploy: '24',
|
|
442
442
|
|
|
443
443
|
// Node.js versions for the adapter-tests matrix
|
|
444
|
-
|
|
444
|
+
// older versions disallowed by engines clause are removed automatically
|
|
445
|
+
validMatrixNodeVersions: ['20', '22', '24', '26', '27'], // valid versions to use in testing matrix
|
|
445
446
|
requiredMatrixNodeVersions: ['20', '22', '24'], // versions that MUST be present in testing matrix
|
|
446
447
|
recommendedMatrixNodeVersions: ['20', '22', '24'], // recommended versions that SHOULD be added to testing matrix
|
|
447
448
|
|
package/lib/postprocessing.js
CHANGED
|
@@ -54,6 +54,7 @@ const mapSeverity4New = {
|
|
|
54
54
|
W0063: 'E', // [W0063] "@types/mocha, mocha, @types/sinon, sinon"
|
|
55
55
|
W0028: 'E', // [W0028] Minimum node.js version 22 recommended.
|
|
56
56
|
W0040: 'E', // [W0040] "keywords" within package.json should contain "ioBroker"
|
|
57
|
+
W0092: 'E', // [W0092] Script(s) "prepare" found in package.json. Usage of npm install lifecycle scripts should be avoided.
|
|
57
58
|
W1027: 'E', // [W1027] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of "common.titleLang"
|
|
58
59
|
W1032: 'E', // [W1032] Many "common.news" found in io-package.json
|
|
59
60
|
W1034: 'E', // [W1034] Missing suggested translation into ru,pt,nl,fr,it,es,pl,uk,zh-cn of "common.desc"
|
package/package.json
CHANGED