@iobroker/repochecker 5.22.4 → 5.22.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/README.md +9 -0
- package/lib/M0000_PackageJson.js +3 -3
- package/lib/M5600__I18n.js +14 -0
- package/lib/config.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,6 +56,15 @@ GITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
56
56
|
Placeholder for the next version (at the beginning of the line):
|
|
57
57
|
### **WORK IN PROGRESS**
|
|
58
58
|
-->
|
|
59
|
+
### 5.22.6 (2026-09-25)
|
|
60
|
+
|
|
61
|
+
* (mcm1957) @iobroker/testing 6.2.1 is required now
|
|
62
|
+
* (mcm1957) node.js 26 testing is required now
|
|
63
|
+
|
|
64
|
+
### 5.22.5 (2026-09-22)
|
|
65
|
+
|
|
66
|
+
* (mcm1957) W5612/E5612 no longer report strings that never need a translation (e.g. "iobroker", "AABBCCDDEEFF"); matched case-insensitively
|
|
67
|
+
|
|
59
68
|
### 5.22.4 (2026-09-13)
|
|
60
69
|
|
|
61
70
|
* (mcm1957) object structure check now reports states with role 'button' that do not have read:false and write:true
|
package/lib/M0000_PackageJson.js
CHANGED
|
@@ -122,9 +122,9 @@ const devDependenciesPackageJson = {
|
|
|
122
122
|
optional: true,
|
|
123
123
|
},
|
|
124
124
|
'@iobroker/testing': {
|
|
125
|
-
required: '
|
|
126
|
-
recommended: '
|
|
127
|
-
actual: '6.2.
|
|
125
|
+
required: '6.2.1',
|
|
126
|
+
recommended: '6.2.2',
|
|
127
|
+
actual: '6.2.2',
|
|
128
128
|
onlyWWW: false,
|
|
129
129
|
alternatives: ['@iobroker/legacy-testing'],
|
|
130
130
|
},
|
package/lib/M5600__I18n.js
CHANGED
|
@@ -33,6 +33,16 @@ const TRANSLATABLE_ATTRS = [
|
|
|
33
33
|
'validatorErrorText',
|
|
34
34
|
];
|
|
35
35
|
const MAX_W5612_WARNINGS = 10;
|
|
36
|
+
|
|
37
|
+
// Strings that do not need a translation at all and therefore must not raise
|
|
38
|
+
// W5612/E5612. Compared case-insensitively against the attribute value.
|
|
39
|
+
const W5612_TRANSLATION_EXCLUSIONS = [
|
|
40
|
+
'aabbccddeeff',
|
|
41
|
+
'iobroker',
|
|
42
|
+
'xxxxxxxxxxxxxxxxxxxxxxxx.yyyyyy.zzzzzzzzzzzzzzzzzzzzzzzzzzz',
|
|
43
|
+
'example@gmail.com',
|
|
44
|
+
'url',
|
|
45
|
+
];
|
|
36
46
|
const MAX_W5606_EXAMPLES = 2;
|
|
37
47
|
const MIN_WORDS_FOR_W5606 = 5;
|
|
38
48
|
const MAX_56XX_ISSUES_PER_CODE = 10;
|
|
@@ -596,6 +606,10 @@ function checkJsonConfigTranslations(context, configFile, jsonConfig, i18nDir, w
|
|
|
596
606
|
}
|
|
597
607
|
// i18n enabled: check that the string is a valid key in the English translations
|
|
598
608
|
if (!Object.prototype.hasOwnProperty.call(enTranslations, value)) {
|
|
609
|
+
if (W5612_TRANSLATION_EXCLUSIONS.includes(value.toLowerCase())) {
|
|
610
|
+
// Value is on the list of strings that never need a translation
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
599
613
|
if (value.match(/[a-zA-Z]/) && value.length >= 3) {
|
|
600
614
|
// do not force translations of labels containing no characters
|
|
601
615
|
if (w5612State.count < MAX_W5612_WARNINGS) {
|
package/lib/config.js
CHANGED
|
@@ -443,7 +443,7 @@ const testingNodeJs = {
|
|
|
443
443
|
// Node.js versions for the adapter-tests matrix
|
|
444
444
|
// older versions disallowed by engines clause are removed automatically
|
|
445
445
|
validMatrixNodeVersions: ['20', '22', '24', '26', '27'], // valid versions to use in testing matrix
|
|
446
|
-
requiredMatrixNodeVersions: ['20', '22', '24'], // versions that MUST be present in testing matrix
|
|
446
|
+
requiredMatrixNodeVersions: ['20', '22', '24', '26'], // versions that MUST be present in testing matrix
|
|
447
447
|
recommendedMatrixNodeVersions: ['22', '24', '26'], // recommended versions that SHOULD be added to testing matrix
|
|
448
448
|
|
|
449
449
|
// Required operating systems for the adapter-tests matrix
|
package/package.json
CHANGED