@iobroker/repochecker 3.4.2 → 3.4.4

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
@@ -33,6 +33,10 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
33
33
  -->
34
34
 
35
35
  ## Changelog
36
+ ### 3.4.4 (2025-02-12)
37
+
38
+ - (mcm1957) Some external attributes added to valid package.json attributes.
39
+
36
40
  ### 3.4.2 (2025-02-12)
37
41
 
38
42
  - (mcm1957) 'type' and 'types' added to valid package.json attributes.
@@ -195,7 +195,9 @@ const validObjectsPackageJson = [
195
195
  'licenses', // deprecated
196
196
  'main',
197
197
  'man',
198
+ 'maintainers', // invalid - will raise a warning to use contributors
198
199
  'name',
200
+ 'nyc', // inofficial - extension for nyc package
199
201
  'optionalDependencies',
200
202
  'os',
201
203
  'overrides',
@@ -206,6 +208,7 @@ const validObjectsPackageJson = [
206
208
  'readmeFilename', // undocumented
207
209
  'repository',
208
210
  'scripts',
211
+ 'snyc', // inofficial - extension for snyc package
209
212
  'type', // undocumented - specifies esm/cjs mode
210
213
  'types', // undocumented - seems to specify typescript type.d.tx file
211
214
  'version',
@@ -427,6 +430,14 @@ async function checkPackageJson(context) {
427
430
  context.checks.push('Scripts found in package.json');
428
431
  }
429
432
 
433
+ if (context.packageJson.maintainers) {
434
+ context.warnings.push(
435
+ '[W051] "maintainers" attribute at package.json is not documented. Please use "contributors" attribute.',
436
+ );
437
+ } else {
438
+ context.checks.push('maintainers not found in package.json');
439
+ }
440
+
430
441
  if (context.cfg.reservedAdapterNames.includes(adapterName)) {
431
442
  context.errors.push('[E022] Adapter name is reserved. Please rename adapter.');
432
443
  } else {
@@ -836,7 +847,7 @@ async function checkPackageJson(context) {
836
847
  `[E049] "keywords" within package.json must contain some keywords besides "${context.packageJson.keywords.join(', ')}" related to adapter`,
837
848
  );
838
849
  }
839
- if (!recommendedKeywords.filter(keyword => context.packageJson.keywords.includes(keyword)).length > 0) {
850
+ if (!(recommendedKeywords.filter(keyword => context.packageJson.keywords.includes(keyword)).length > 0)) {
840
851
  context.warnings.push(
841
852
  `[W040] "keywords" within package.json should contain "${recommendedKeywords.join(', ')}"`,
842
853
  );
@@ -928,7 +939,7 @@ exports.checkPackageJson = checkPackageJson;
928
939
  // [048] devDependency should not require a specific version. Use "~1.2.3" or "^1.2.3" syntax. Please update "${dependency}:${context.packageJson.devDependencies[dependency]}"
929
940
  // [049] "keywords" within package.json must contain some keywords besides "${context.packageJson.keywords.join(', ')}" related to adapter
930
941
  // [050] ${blacklistedDependenciesPackageJson[blacklist].msg}
931
- // [051] --
942
+ // [051] "maintainers" attribute at package.json is not documented. Please use "contributors" attribute',
932
943
  // [052] --
933
944
  // [053] --
934
945
  // [054] malformed dependency detected "${dependency}":${context.packageJson.dependencies[dependency]}". Please fix at package.json.`
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.4.2",
2
+ "version": "3.4.4",
3
3
  "name": "@iobroker/repochecker",
4
4
  "devDependencies": {
5
5
  "@alcalzone/release-script": "^3.8.0",