@iobroker/repochecker 5.10.2 → 5.10.3
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/M5000_Code.js +3 -1
- 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.10.3 (2026-04-11)
|
|
29
|
+
- (@copilot) Fixed false positive W5042 for TypeScript type-only imports: `import type { Foo } from 'pkg'` no longer registers `pkg` as a required runtime dependency. Related to [#833]
|
|
30
|
+
|
|
28
31
|
### 5.10.2 (2026-04-11)
|
|
29
32
|
- (@copilot) Fixed false positive `[E9507]` for i18n directories inside source directories (`src-rules`, `rules-src`, `src-editor`, `src-widgets`, `admin/src`, etc.) by expanding the ignored source directory list and checking the full parent path instead of only the top-level segment. Related to [#828].
|
|
30
33
|
- (@copilot) Added adapter-specific exceptions to E0050 blacklist: `@iobroker/plugin-sentry` is now allowed as a dependency for `ioBroker.javascript`.
|
package/lib/M5000_Code.js
CHANGED
|
@@ -226,7 +226,9 @@ function extractImports(content) {
|
|
|
226
226
|
// import statements are each matched independently.
|
|
227
227
|
// The negative lookahead (?!\s*\() excludes dynamic imports like import("pkg")
|
|
228
228
|
// which would otherwise span many lines and falsely match 'from' in string literals.
|
|
229
|
-
|
|
229
|
+
// The negative lookahead (?!\s+type\b) excludes TypeScript type-only imports like
|
|
230
|
+
// `import type { Foo } from 'pkg'` which do not require runtime dependencies.
|
|
231
|
+
const fromPattern = /\b(?:import)\b(?!\s*\()(?!\s+type\b)[\s\S]*?\bfrom\s+['"`]([^'"`\n]+)['"`]/g;
|
|
230
232
|
while ((match = fromPattern.exec(code)) !== null) {
|
|
231
233
|
common.debug(` import from: found ${match[1]}`);
|
|
232
234
|
imports.add(match[1]);
|
package/package.json
CHANGED