@iobroker/repochecker 5.18.9 → 5.18.11
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 +12 -1
- package/lib/M5000_Code.js +7 -5
- package/lib/M6000_Readme.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,6 +25,15 @@ Example:
|
|
|
25
25
|
Placeholder for the next version (at the beginning of the line):
|
|
26
26
|
### **WORK IN PROGRESS**
|
|
27
27
|
-->
|
|
28
|
+
### 5.18.11 (2026-06-24)
|
|
29
|
+
|
|
30
|
+
- (mcm1957) blacklisting for dependency versionchecking checking added
|
|
31
|
+
- (mcm1957) handling of i18n attirbute at jsonConfig has been adapted
|
|
32
|
+
|
|
33
|
+
### 5.18.10 (2026-06-23)
|
|
34
|
+
|
|
35
|
+
- (mcm1957) some more directories have been excluded from dependency scan
|
|
36
|
+
|
|
28
37
|
### 5.18.9 (2026-06-22)
|
|
29
38
|
|
|
30
39
|
- (mcm1957) eslint-config import check has been adapted
|
package/lib/M0000_PackageJson.js
CHANGED
|
@@ -497,6 +497,9 @@ function getNpmUpdateRule(context, packageName) {
|
|
|
497
497
|
* @returns {Promise<object>} Updated context with dependency update suggestions
|
|
498
498
|
*/
|
|
499
499
|
async function checkNpmDependencyUpdateSuggestions(context) {
|
|
500
|
+
const blackListedDependencies = [
|
|
501
|
+
'@iobroker/adapter-core',
|
|
502
|
+
];
|
|
500
503
|
common.debug(`executing checkNpmDependencyUpdateSuggestions`);
|
|
501
504
|
const dependencySources = [
|
|
502
505
|
['dependencies', context.packageJson.dependencies || {}],
|
|
@@ -508,6 +511,11 @@ async function checkNpmDependencyUpdateSuggestions(context) {
|
|
|
508
511
|
for (const [declaredName, declaredVersion] of Object.entries(sourceDeps)) {
|
|
509
512
|
const parsed = parseDependencyDeclaration(declaredName, declaredVersion);
|
|
510
513
|
common.debug(` result: {${parsed.packageName}, ${parsed.packageVersion}}`);
|
|
514
|
+
if (blackListedDependencies.includes(parsed.packageName)){
|
|
515
|
+
common.debug(` ${parsed.packageName} is blacklisted, ignored`);
|
|
516
|
+
continue;
|
|
517
|
+
}
|
|
518
|
+
|
|
511
519
|
if (!semver.validRange(parsed.packageVersion)) {
|
|
512
520
|
common.debug(` ${parsed.packageVersion} is invalid, ignored`);
|
|
513
521
|
continue;
|
|
@@ -571,7 +579,10 @@ async function checkNpmDependencyUpdateSuggestions(context) {
|
|
|
571
579
|
|
|
572
580
|
const issueCode = updateRule.level === 'W' ? 'W0083' : 'S0082';
|
|
573
581
|
const ageThreshold = Math.floor(packageAgeDays / 50) * 50;
|
|
574
|
-
const ageInfo =
|
|
582
|
+
const ageInfo =
|
|
583
|
+
ageThreshold >= 50
|
|
584
|
+
? ` The newer version has been published for more than ${ageThreshold} days.`
|
|
585
|
+
: '';
|
|
575
586
|
context.warnings.push(
|
|
576
587
|
`[${issueCode}] A newer version (${latestVersion}) for package "${packageName}" (${sourceType}) exists.${ageInfo} Please evaluate if upgrading from ${packageVersion} to ${latestVersion} is possible.`,
|
|
577
588
|
);
|
package/lib/M5000_Code.js
CHANGED
|
@@ -1021,9 +1021,9 @@ async function checkCode(context) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
} else if (i18nAttr === false) {
|
|
1024
|
-
context.warnings.push(`[W5015] Why did you decide to disable i18n support?`);
|
|
1024
|
+
context.warnings.push(`[W5015] Why did you decide to disable i18n support at jsonConfig.json(5)?`);
|
|
1025
1025
|
} else {
|
|
1026
|
-
context.warnings.push(`[
|
|
1026
|
+
context.warnings.push(`[S5022] Consider adding explicit i18n attribute to jsonConfig.json(5)`);
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
M5500__jsonConfig.checkJsonConfig(
|
|
@@ -1804,15 +1804,17 @@ async function checkCode(context) {
|
|
|
1804
1804
|
'/scripts',
|
|
1805
1805
|
'/template',
|
|
1806
1806
|
'/templates',
|
|
1807
|
+
'/test',
|
|
1808
|
+
'/tools',
|
|
1807
1809
|
'/src-admin',
|
|
1808
1810
|
'/src-editor', // java-script adapter
|
|
1809
1811
|
'/src-rules',
|
|
1812
|
+
'/src-vis',
|
|
1810
1813
|
'/src-widgets',
|
|
1811
|
-
'/www',
|
|
1812
|
-
'/widgets',
|
|
1813
1814
|
'/admin-src',
|
|
1814
1815
|
'/rules-src',
|
|
1815
|
-
'/
|
|
1816
|
+
'/www',
|
|
1817
|
+
'/widgets',
|
|
1816
1818
|
'/node_modules',
|
|
1817
1819
|
'/.git',
|
|
1818
1820
|
'/.vscode',
|
package/lib/M6000_Readme.js
CHANGED
|
@@ -390,7 +390,8 @@ async function checkReadme(context) {
|
|
|
390
390
|
if (
|
|
391
391
|
!header.includes('WORK IN PROGRESS') &&
|
|
392
392
|
!header.includes('CHANGELOG_OLD.md') &&
|
|
393
|
-
!header.includes('
|
|
393
|
+
!header.toLowerCase().includes('older versions') &&
|
|
394
|
+
!header.toLowerCase().includes('older changelog')
|
|
394
395
|
) {
|
|
395
396
|
invalidVersionHeaders.push(header);
|
|
396
397
|
}
|
package/package.json
CHANGED