@iobroker/repochecker 5.6.5 → 5.6.7
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 +7 -1
- package/lib/M3000_Testing.js +1 -1
- package/lib/M5000_Code.js +7 -1
- package/lib/M8000_Github.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,6 +25,12 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
+
### 5.6.7 (2026-04-02)
|
|
29
|
+
- (@copilot) Fixed false positive package detection in `extractImports`: dynamic imports like `import("pkg")` no longer incorrectly trigger the `import ... from ...` pattern, preventing values in log strings (e.g. `from 'force_full'`) from being mistaken for package names.
|
|
30
|
+
|
|
31
|
+
### 5.6.6 (2026-03-29)
|
|
32
|
+
- (mcm1957) Severity for [S3010] has been corrected.
|
|
33
|
+
|
|
28
34
|
### 5.6.5 (2026-03-27)
|
|
29
35
|
- (@copilot) Exclude `gulpfile.js` and `lib/tools.js` from W5042/S5043 dependency scanning; added easy-to-extend `excludedSourceFiles` and `excludedSourceRelPaths` Sets for future exclusions.
|
|
30
36
|
|
|
@@ -36,7 +42,7 @@ Example:
|
|
|
36
42
|
- (@copilot) Added W5042 and S5043 checks: source files (`*.js`, `*.mjs`, `*.cjs`, `*.ts`) are now scanned for `require`/`import` statements (excluding `admin/`, `doc/`, `src-admin/`, `test/` directories and `*.test.*`/`*.config.*` files). W5042 warns when an imported package is not listed in `dependencies` of `package.json`. S5043 suggests using the `node:` prefix when importing known Node.js built-in modules without it.
|
|
37
43
|
|
|
38
44
|
### 5.5.5 (2026-03-24)
|
|
39
|
-
|
|
45
|
+
- (mcm1957) remove '[S6014] README.md section "## Installation" should be removed unless the adapter requires special installation handling.'
|
|
40
46
|
|
|
41
47
|
### 5.5.4 (2026-03-22)
|
|
42
48
|
- (@copilot) Fixed E6015/W6016 false positives: German (and English) language detection now ignores fenced code blocks, inline code, blockquote lines, link URLs, and image markup before analyzing the README text.
|
package/lib/M3000_Testing.js
CHANGED
|
@@ -261,7 +261,7 @@ async function checkTests(context) {
|
|
|
261
261
|
`[E3010] Workflow "${WORKFLOW_FILE}": job "check-and-lint" is missing. Please add it.`,
|
|
262
262
|
);
|
|
263
263
|
} else {
|
|
264
|
-
context.
|
|
264
|
+
context.warnings.push(
|
|
265
265
|
`[S3010] Workflow "${WORKFLOW_FILE}": job "check-and-lint" is missing. Consider adding it.`,
|
|
266
266
|
);
|
|
267
267
|
}
|
package/lib/M5000_Code.js
CHANGED
|
@@ -215,6 +215,7 @@ function extractImports(content) {
|
|
|
215
215
|
const requirePattern = /\brequire\s*\(\s*['"`]([^'"`\n]+)['"`]\s*\)/g;
|
|
216
216
|
let match;
|
|
217
217
|
while ((match = requirePattern.exec(code)) !== null) {
|
|
218
|
+
console.debug(` require: found ${match[1]}`);
|
|
218
219
|
imports.add(match[1]);
|
|
219
220
|
}
|
|
220
221
|
|
|
@@ -223,20 +224,25 @@ function extractImports(content) {
|
|
|
223
224
|
// 'from' in log messages, strings, or other non-import contexts.
|
|
224
225
|
// Non-greedy [\s\S]*? always stops at the nearest 'from', so consecutive
|
|
225
226
|
// import statements are each matched independently.
|
|
226
|
-
|
|
227
|
+
// The negative lookahead (?!\s*\() excludes dynamic imports like import("pkg")
|
|
228
|
+
// which would otherwise span many lines and falsely match 'from' in string literals.
|
|
229
|
+
const fromPattern = /\b(?:import)\b(?!\s*\()[\s\S]*?\bfrom\s+['"`]([^'"`\n]+)['"`]/g;
|
|
227
230
|
while ((match = fromPattern.exec(code)) !== null) {
|
|
231
|
+
console.debug(` import from: found ${match[1]}`);
|
|
228
232
|
imports.add(match[1]);
|
|
229
233
|
}
|
|
230
234
|
|
|
231
235
|
// Side-effect imports: import 'package'
|
|
232
236
|
const sideEffectImportPattern = /\bimport\s+['"`]([^'"`\n]+)['"`]/g;
|
|
233
237
|
while ((match = sideEffectImportPattern.exec(code)) !== null) {
|
|
238
|
+
console.debug(` import ...: found ${match[1]}`);
|
|
234
239
|
imports.add(match[1]);
|
|
235
240
|
}
|
|
236
241
|
|
|
237
242
|
// dynamic import('...')
|
|
238
243
|
const dynamicImportPattern = /\bimport\s*\(\s*['"`]([^'"`\n]+)['"`]\s*\)/g;
|
|
239
244
|
while ((match = dynamicImportPattern.exec(code)) !== null) {
|
|
245
|
+
console.debug(` dyn import: found ${match[1]}`);
|
|
240
246
|
imports.add(match[1]);
|
|
241
247
|
}
|
|
242
248
|
|
package/lib/M8000_Github.js
CHANGED
|
@@ -19,6 +19,8 @@ const issuesToWatchAsError = [
|
|
|
19
19
|
const issuesToWatchAsWarning = [
|
|
20
20
|
'Migration to ESLint 9 and @iobroker/eslint-config',
|
|
21
21
|
'Translations update from ioBroker Translation System',
|
|
22
|
+
'Adapter published at ioBroker latest repository - Please create a tester topic at the forum',
|
|
23
|
+
'Compatibility check and testing for node.js 26',
|
|
22
24
|
];
|
|
23
25
|
|
|
24
26
|
// disable axios caching
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.6.
|
|
2
|
+
"version": "5.6.7",
|
|
3
3
|
"name": "@iobroker/repochecker",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"ajv": "^8.18.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@alcalzone/release-script": "^5.1.1",
|
|
15
15
|
"@iobroker/eslint-config": "^2.2.0",
|
|
16
16
|
"@tsconfig/node20": "^20.1.9",
|
|
17
|
-
"@types/node": "^24.
|
|
17
|
+
"@types/node": "^24.12.0",
|
|
18
18
|
"@types/semver": "^7.7.1"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|