@iobroker/repochecker 5.18.10 → 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 CHANGED
@@ -25,6 +25,11 @@ 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
+
28
33
  ### 5.18.10 (2026-06-23)
29
34
 
30
35
  - (mcm1957) some more directories have been excluded from dependency scan
@@ -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 = ageThreshold >= 50 ? ` The newer version has been published for more than ${ageThreshold} days.` : '';
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(`[W5022] Why did you decide not to use i18n support?`);
1026
+ context.warnings.push(`[S5022] Consider adding explicit i18n attribute to jsonConfig.json(5)`);
1027
1027
  }
1028
1028
 
1029
1029
  M5500__jsonConfig.checkJsonConfig(
@@ -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('Older versions')
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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.18.10",
2
+ "version": "5.18.11",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "ajv": "^8.20.0",