@iobroker/repochecker 2.9.0 → 2.9.1

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.
Files changed (3) hide show
  1. package/README.md +6 -0
  2. package/index.js +5 -5
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -20,6 +20,12 @@ Branch (`master/main/dev`) is optional.
20
20
  -->
21
21
 
22
22
  ## Changelog
23
+ ### 2.9.1 (2024-08-12)
24
+ * (mcm1957) E162 - correct dependency check for js-controller. [#267].
25
+ * (mcm1957) E605 - copyright year range including whitespaces is now accepted. [#269].
26
+ * (mcm1957) E016 - missing vaiableexpansion has been added. [#263].
27
+ * (mcm1957) E114 - typo at error message has been fixed [#261].
28
+
23
29
  ### 2.9.0 (2024-07-29)
24
30
  * (mcm1957) Adapt text if sources-dist(-stable).json need a correction [#97].
25
31
  * (mcm1957) Missing "common.mode" error text corrected [#249].
package/index.js CHANGED
@@ -416,7 +416,7 @@ function checkPackageJson(context) {
416
416
 
417
417
  // check if license valid
418
418
  if (!licenses.includes(context.packageJson.license)) {
419
- context.errors.push('[E016] ${context.packageJson.license} found in package.json is no valid SPDX license. Please use one of listed here: https://spdx.org/licenses/');
419
+ context.errors.push(`[E016] ${context.packageJson.license} found in package.json is no valid SPDX license. Please use one of listed here: https://spdx.org/licenses/`);
420
420
  } else {
421
421
  context.checks.push('"license" is valid in package.json');
422
422
  }
@@ -1322,7 +1322,7 @@ function checkIOPackageJson(context) {
1322
1322
  !(context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config === 'html') &&
1323
1323
  !(context.ioPackageJson.common.adminUI && context.ioPackageJson.common.adminUI.config === 'none')
1324
1324
  ) {
1325
- context.errors.push('[E114] Admin support not specified. Please add "common.adminUI.config = json|materialize<|html|none"');
1325
+ context.errors.push('[E114] Admin support not specified. Please add "common.adminUI.config = json|materialize|html|none"');
1326
1326
  } else {
1327
1327
  context.checks.push('"common.materialize" or valid "common.adminUI.config:xxx" found in io-package.json');
1328
1328
  }
@@ -1566,7 +1566,7 @@ function checkIOPackageJson(context) {
1566
1566
  }
1567
1567
 
1568
1568
 
1569
- if ( currentJsControllerVersion && compareVersions.compare( requiredJsControllerVersion, currentJsControllerVersion, '>=' )) {
1569
+ if ( currentJsControllerVersion && compareVersions.compare( requiredJsControllerVersion, currentJsControllerVersion, '>' )) {
1570
1570
  context.errors.push(`[E162] js-controller ${currentJsControllerVersion} listed as dependency but ${requiredJsControllerVersion} is required as minimum, ${recommendedJsControllerVersion} is recommended. Please update dependency at io-package.json.`);
1571
1571
  } else if ( currentJsControllerVersion && compareVersions.compare( recommendedJsControllerVersion, currentJsControllerVersion, '>' )) {
1572
1572
  context.warnings.push(`[W162] js-controller ${currentJsControllerVersion} listed as dependency but ${recommendedJsControllerVersion} is recommended. Please consider updating dependency at io-package.json.`);
@@ -2503,7 +2503,7 @@ function checkReadme(context) {
2503
2503
  const year = new Date().getFullYear();
2504
2504
  const commitYear = context.lastCommitYear || 0;
2505
2505
  let readmeYear = 0;
2506
- let m = text.match(/\d\d\d\d-(\d\d\d\d)/);
2506
+ let m = text.match(/\d\d\d\d\s*-\s*(\d\d\d\d)/);
2507
2507
  if (m) {
2508
2508
  readmeYear = Number(m[1]);
2509
2509
  }
@@ -2574,7 +2574,7 @@ function checkLicenseFile(context) {
2574
2574
  const year = new Date().getFullYear();
2575
2575
  const commitYear = context.lastCommitYear || 0;
2576
2576
  let licenseYear = 0;
2577
- let m = text.match(/\d\d\d\d-(\d\d\d\d)/);
2577
+ let m = text.match(/\d\d\d\d\s*-\s*(\d\d\d\d)/);
2578
2578
  if (m) {
2579
2579
  licenseYear = Number(m[1]);
2580
2580
  }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "version": "2.9.0",
2
+ "version": "2.9.1",
3
3
  "name": "@iobroker/repochecker",
4
4
  "dependencies": {
5
5
  "axios": "^1.7.2",
6
- "compare-versions": "^6.1.0",
6
+ "compare-versions": "^6.1.1",
7
7
  "image-size": "^1.1.1",
8
- "unzipper": "^0.12.1",
8
+ "unzipper": "^0.12.3",
9
9
  "json5": "^2.2.3"
10
10
  },
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
14
14
  "devDependencies": {
15
- "@alcalzone/release-script": "^3.7.0",
15
+ "@alcalzone/release-script": "^3.8.0",
16
16
  "eslint": "^8.57.0"
17
17
  },
18
18
  "files": [