@iobroker/repochecker 3.4.1 → 3.4.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 CHANGED
@@ -33,6 +33,14 @@ npx @iobroker/repochecker https://github.com/ioBroker/ioBroker.javascript --loca
33
33
  -->
34
34
 
35
35
  ## Changelog
36
+ ### 3.4.3 (2025-02-12)
37
+
38
+ - (mcm1957) Some external attributes added to valid package.json attributes.
39
+
40
+ ### 3.4.2 (2025-02-12)
41
+
42
+ - (mcm1957) 'type' and 'types' added to valid package.json attributes.
43
+
36
44
  ### 3.4.1 (2025-02-11)
37
45
 
38
46
  - (mcm1957) Add 'publishConfig' 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',
@@ -203,9 +205,12 @@ const validObjectsPackageJson = [
203
205
  'peerDependenciesMeta',
204
206
  // 'private',
205
207
  'publishConfig',
206
- 'readmeFilename', // deprecated
208
+ 'readmeFilename', // undocumented
207
209
  'repository',
208
210
  'scripts',
211
+ 'snyc', // inofficial - extension for snyc package
212
+ 'type', // undocumented - specifies esm/cjs mode
213
+ 'types', // undocumented - seems to specify typescript type.d.tx file
209
214
  'version',
210
215
  'workspaces',
211
216
  ];
@@ -425,6 +430,14 @@ async function checkPackageJson(context) {
425
430
  context.checks.push('Scripts found in package.json');
426
431
  }
427
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
+
428
441
  if (context.cfg.reservedAdapterNames.includes(adapterName)) {
429
442
  context.errors.push('[E022] Adapter name is reserved. Please rename adapter.');
430
443
  } else {
@@ -834,7 +847,7 @@ async function checkPackageJson(context) {
834
847
  `[E049] "keywords" within package.json must contain some keywords besides "${context.packageJson.keywords.join(', ')}" related to adapter`,
835
848
  );
836
849
  }
837
- if (!recommendedKeywords.filter(keyword => context.packageJson.keywords.includes(keyword)).length > 0) {
850
+ if (!(recommendedKeywords.filter(keyword => context.packageJson.keywords.includes(keyword)).length > 0)) {
838
851
  context.warnings.push(
839
852
  `[W040] "keywords" within package.json should contain "${recommendedKeywords.join(', ')}"`,
840
853
  );
@@ -926,7 +939,7 @@ exports.checkPackageJson = checkPackageJson;
926
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]}"
927
940
  // [049] "keywords" within package.json must contain some keywords besides "${context.packageJson.keywords.join(', ')}" related to adapter
928
941
  // [050] ${blacklistedDependenciesPackageJson[blacklist].msg}
929
- // [051] --
942
+ // [051] "maintainers" attribute at package.json is not documented. Please use "contributors" attribute',
930
943
  // [052] --
931
944
  // [053] --
932
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.1",
2
+ "version": "3.4.3",
3
3
  "name": "@iobroker/repochecker",
4
4
  "devDependencies": {
5
5
  "@alcalzone/release-script": "^3.8.0",