@iobroker/repochecker 3.5.3 → 3.5.5

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 CHANGED
@@ -33,6 +33,17 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
33
33
  -->
34
34
 
35
35
  ## Changelog
36
+ ### 3.5.5 (2025-04-28)
37
+
38
+ - (mcm1957) Node.js 20 is suggested now.
39
+ - (mcm1957) Suggested release for several packages has been encreased.
40
+ - (mcm1957) Do not raise E186 if E190 is raised anyway. [#387]
41
+ - (mcm1957) Dependencies have been updated.
42
+
43
+ ### 3.5.4 (2025-03-03)
44
+
45
+ - (mcm1957) Ignore boolean paramters when checking protectedNative/encryptedNative. [#395]
46
+
36
47
  ### 3.5.3 (2025-02-21)
37
48
 
38
49
  - (mcm1957) Crash has been fixed if protectedNative/encryptedNative is not an array. [#385]
@@ -16,7 +16,7 @@ const common = require('./common.js');
16
16
 
17
17
  // node.js versions required and recommended
18
18
  // Note: node version specify rules for engines clause and do NOT reflect the recommended node version for users
19
- const recommendedNodeVersion = '18'; // This is the minimum node version that should be required at engines clause
19
+ const recommendedNodeVersion = '20'; // This is the minimum node version that should be required at engines clause
20
20
  const requiredNodeVersion = '18'; // This is the minimum node version that must be required at engines clause
21
21
 
22
22
  // packages which must or should be required as dependencies
@@ -32,7 +32,7 @@ const dependenciesPackageJson = {
32
32
  const devDependenciesPackageJson = {
33
33
  '@iobroker/adapter-dev': {
34
34
  required: '1.3.0',
35
- recommended: '1.3.0',
35
+ recommended: '1.4.0',
36
36
  onlyWWW: false,
37
37
  optional: true,
38
38
  suggested: true,
@@ -45,7 +45,7 @@ const devDependenciesPackageJson = {
45
45
  },
46
46
  '@iobroker/testing': {
47
47
  required: '4.1.3',
48
- recommended: '5.0.0',
48
+ recommended: '5.0.4',
49
49
  onlyWWW: false,
50
50
  alternatives: ['@iobroker/legacy-testing'],
51
51
  },
@@ -127,8 +127,13 @@ async function checkIOPackageJson(context) {
127
127
  const regex = new RegExp(suspiciousPhrases.join('|'), 'i');
128
128
  const nativeKeys = Object.keys(context.ioPackageJson.native) || [];
129
129
 
130
- const suspiciousKeys = nativeKeys.filter(key => regex.test(key.toLowerCase()));
131
- common.debug(`Suspicious key test: native: ${nativeKeys} - suspiciousKeys: ${suspiciousKeys}`);
130
+ let suspiciousKeys = nativeKeys.filter(key => regex.test(key.toLowerCase()));
131
+ common.debug(`Suspicious key test: native: ${nativeKeys}`);
132
+ common.debug(`Suspicious key test: suspiciousKeys (unfiltered): ${suspiciousKeys}`);
133
+ if (suspiciousKeys.length) {
134
+ suspiciousKeys = suspiciousKeys.filter(key => typeof context.ioPackageJson.native[key] !== 'boolean');
135
+ common.debug(`Suspicious key test: suspiciousKeys (filtered): ${suspiciousKeys}`);
136
+ }
132
137
  if (suspiciousKeys.length) {
133
138
  if (context.ioPackageJson.protectedNative) {
134
139
  const missingProtected = suspiciousKeys.filter(
@@ -167,12 +172,12 @@ async function checkIOPackageJson(context) {
167
172
  if (context.ioPackageJson.encryptedNative && !Array.isArray(context.ioPackageJson.encryptedNative)) {
168
173
  context.errors.push(`[E198] "encryptedNative" must be an array at io-package.json`);
169
174
  valid = false;
170
- };
175
+ }
171
176
 
172
177
  if (context.ioPackageJson.protectedNative && !Array.isArray(context.ioPackageJson.protectedNative)) {
173
178
  context.errors.push(`[E199] "protectedNative" must be an array at io-package.json`);
174
179
  valid = false;
175
- };
180
+ }
176
181
 
177
182
  if (valid) {
178
183
  for (const key of context.ioPackageJson.encryptedNative || []) {
@@ -184,7 +189,6 @@ async function checkIOPackageJson(context) {
184
189
  }
185
190
 
186
191
  for (const key of context.ioPackageJson.protectedNative || []) {
187
- console.log('juhu2a');
188
192
  if (!(context.ioPackageJson.encryptedNative && context.ioPackageJson.encryptedNative.includes(key))) {
189
193
  context.warnings.push(
190
194
  `[S194] Consider adding protected native "${key}" to "encryptedNative" in io-package.json`,
@@ -862,7 +866,7 @@ async function checkIOPackageJson(context) {
862
866
  }
863
867
  } else {
864
868
  if (requireAdmin) {
865
- context.errors.push(`[E186] "common.globalDependencies" must be an array at io-package.json`);
869
+ // context.errors.push(`[E186] "common.globalDependencies" must be an array at io-package.json`);
866
870
  if (requiredAdminVersion !== recommendedAdminVersion) {
867
871
  context.errors.push(
868
872
  `[E190] admin dependency missing. admin ${requiredAdminVersion} is required as minimum, ${recommendedAdminVersion} is recommended. Please add to dependencies at io-package.json.`,
@@ -1162,4 +1166,3 @@ exports.checkIOPackageJson = checkIOPackageJson;
1162
1166
  // [197] External icon ${context.ioPackageJson.common.extIcon} cannot be parsed
1163
1167
  // [198] "common.encryptedNative" must be an array at io-package.json
1164
1168
  // [199] "common.protectedNative" must be an array at io-package.json
1165
-
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "version": "3.5.3",
2
+ "version": "3.5.5",
3
3
  "name": "@iobroker/repochecker",
4
- "devDependencies": {
5
- "@alcalzone/release-script": "^3.8.0",
6
- "@iobroker/eslint-config": "^1.0.0",
7
- "@tsconfig/node20": "^20.1.4",
8
- "@types/node": "^22.13.0",
9
- "@types/semver": "^7.5.8"
10
- },
11
4
  "dependencies": {
12
- "axios": "^1.7.9",
5
+ "axios": "^1.8.4",
13
6
  "compare-versions": "^6.1.1",
14
7
  "image-size": "^1.2.0",
15
8
  "json5": "^2.2.3",
16
9
  "semver": "^7.7.1",
17
10
  "unzipper": "^0.12.3"
18
11
  },
12
+ "devDependencies": {
13
+ "@alcalzone/release-script": "^3.8.0",
14
+ "@iobroker/eslint-config": "^2.0.1",
15
+ "@tsconfig/node20": "^20.1.5",
16
+ "@types/node": "^22.13.14",
17
+ "@types/semver": "^7.7.0"
18
+ },
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },