@virmator/deps 14.1.0 → 14.2.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.
@@ -1,4 +1,4 @@
1
- import {defineConfig} from '@virmator/deps/configs/dep-cruiser.config.base';
1
+ import {defineConfig} from '@virmator/deps/configs/dep-cruiser.config.base.js';
2
2
  import {type IConfiguration} from 'dependency-cruiser';
3
3
 
4
4
  const baseConfig = defineConfig({
@@ -1,6 +1,29 @@
1
+ import {mapObjectValues} from '@augment-vir/common';
2
+ import {listAllDirectNpmDeps} from '@augment-vir/node';
3
+ import {Packument} from '@npm/types';
1
4
  import {RunOptions} from 'npm-check-updates';
2
5
  import {ReadonlyDeep} from 'type-fest';
3
6
 
7
+ const trustedMaintainers = [
8
+ 'electrovir',
9
+ ];
10
+
11
+ const packageCooldown = await mapObjectValues(
12
+ await listAllDirectNpmDeps(process.cwd()),
13
+ async (depName) => {
14
+ const info = (await (
15
+ await fetch(`https://registry.npmjs.org/${depName}`)
16
+ ).json()) as Packument;
17
+ const maintainers = (info.maintainers || []).map((contact) => contact.name);
18
+
19
+ const hasTrustedMaintainer = trustedMaintainers.some((trustedMaintainer) =>
20
+ maintainers.includes(trustedMaintainer),
21
+ );
22
+
23
+ return hasTrustedMaintainer ? undefined : {days: 2};
24
+ },
25
+ );
26
+
4
27
  export const baseNcuConfig = {
5
28
  color: true,
6
29
  upgrade: true,
@@ -10,8 +33,10 @@ export const baseNcuConfig = {
10
33
  reject: [
11
34
  /** 3.4 is broken https://github.com/prettier/prettier/issues/16936 */
12
35
  'prettier',
13
- /** https://github.com/sindresorhus/eslint-plugin-unicorn/pull/2706 */
14
- 'eslint-plugin-unicorn',
15
36
  ],
16
37
  deprecated: false,
38
+ /** Returns days. */
39
+ cooldown(packageName) {
40
+ return packageCooldown[packageName]?.days || null;
41
+ },
17
42
  } as const satisfies ReadonlyDeep<RunOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virmator/deps",
3
- "version": "14.1.0",
3
+ "version": "14.2.1",
4
4
  "description": "Default TS deps plugin for virmator.",
5
5
  "keywords": [
6
6
  "virmator",
@@ -34,20 +34,21 @@
34
34
  "test:update": "npm test update"
35
35
  },
36
36
  "dependencies": {
37
- "@augment-vir/assert": "^31.38.0",
38
- "@augment-vir/common": "^31.38.0",
39
- "@augment-vir/node": "^31.38.0",
40
- "@virmator/core": "^14.1.0",
37
+ "@augment-vir/assert": "^31.46.1",
38
+ "@augment-vir/common": "^31.46.1",
39
+ "@augment-vir/node": "^31.46.1",
40
+ "@npm/types": "^2.1.0",
41
+ "@virmator/core": "^14.2.1",
41
42
  "mri": "^1.2.0"
42
43
  },
43
44
  "devDependencies": {
44
- "@augment-vir/test": "^31.38.0",
45
- "@types/node": "^24.6.1",
45
+ "@augment-vir/test": "^31.46.1",
46
+ "@types/node": "^24.9.1",
46
47
  "c8": "^10.1.3",
47
- "dependency-cruiser": "^17.0.1",
48
- "esbuild": "^0.25.10",
48
+ "dependency-cruiser": "^17.1.0",
49
+ "esbuild": "^0.25.11",
49
50
  "istanbul-smart-text-reporter": "^1.1.5",
50
- "npm-check-updates": "^19.0.0"
51
+ "npm-check-updates": "^19.1.1"
51
52
  },
52
53
  "engines": {
53
54
  "node": ">=22"