@pnpm/deps.inspection.outdated 1001.1.1 → 1100.0.0

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,15 +1,16 @@
1
1
  import { type ClientOptions, type ResolveFunction } from '@pnpm/installing.client';
2
- import type { DependencyManifest, PackageVersionPolicy } from '@pnpm/types';
2
+ import type { DependencyManifest, PackageVersionPolicy, RegistryConfig } from '@pnpm/types';
3
3
  interface GetManifestOpts {
4
4
  dir: string;
5
5
  lockfileDir: string;
6
- rawConfig: object;
6
+ configByUri: object;
7
7
  minimumReleaseAge?: number;
8
8
  minimumReleaseAgeExclude?: string[];
9
+ minimumReleaseAgeStrict?: boolean;
9
10
  }
10
- export type ManifestGetterOptions = Omit<ClientOptions, 'authConfig' | 'minimumReleaseAgeExclude' | 'storeIndex'> & GetManifestOpts & {
11
+ export type ManifestGetterOptions = Omit<ClientOptions, 'configByUri' | 'minimumReleaseAgeExclude' | 'storeIndex'> & GetManifestOpts & {
11
12
  fullMetadata: boolean;
12
- rawConfig: Record<string, string>;
13
+ configByUri: Record<string, RegistryConfig>;
13
14
  };
14
15
  export declare function createManifestGetter(opts: ManifestGetterOptions): (packageName: string, bareSpecifier: string) => Promise<DependencyManifest | null>;
15
16
  export declare function getManifest(opts: GetManifestOpts & {
@@ -6,9 +6,9 @@ export function createManifestGetter(opts) {
6
6
  : undefined;
7
7
  const { resolve } = createResolver({
8
8
  ...opts,
9
- authConfig: opts.rawConfig,
9
+ configByUri: opts.configByUri,
10
10
  filterMetadata: false, // We need all the data from metadata for "outdated --long" to work.
11
- strictPublishedByCheck: Boolean(opts.minimumReleaseAge),
11
+ strictPublishedByCheck: Boolean(opts.minimumReleaseAge) && opts.minimumReleaseAgeStrict === true,
12
12
  });
13
13
  const publishedBy = opts.minimumReleaseAge
14
14
  ? new Date(Date.now() - opts.minimumReleaseAge * 60 * 1000)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/deps.inspection.outdated",
3
- "version": "1001.1.1",
3
+ "version": "1100.0.0",
4
4
  "description": "Check for outdated packages",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -27,33 +27,33 @@
27
27
  "dependencies": {
28
28
  "ramda": "npm:@pnpm/ramda@0.28.1",
29
29
  "semver": "^7.7.2",
30
- "@pnpm/config.parse-overrides": "1001.0.3",
31
- "@pnpm/catalogs.types": "1000.0.0",
32
- "@pnpm/config.pick-registry-for-package": "1000.0.11",
33
- "@pnpm/config.matcher": "1000.1.0",
34
- "@pnpm/config.version-policy": "1000.0.0",
35
- "@pnpm/constants": "1001.3.1",
36
- "@pnpm/deps.path": "1001.1.3",
37
- "@pnpm/error": "1000.0.5",
38
- "@pnpm/catalogs.resolver": "1000.0.5",
39
- "@pnpm/installing.client": "1001.1.4",
40
- "@pnpm/hooks.read-package-hook": "1000.0.15",
41
- "@pnpm/lockfile.fs": "1001.1.21",
42
- "@pnpm/lockfile.utils": "1003.0.3",
43
- "@pnpm/resolving.npm-resolver": "1004.4.1",
44
- "@pnpm/types": "1000.9.0",
45
- "@pnpm/pkg-manifest.utils": "1001.0.6"
30
+ "@pnpm/catalogs.resolver": "1100.0.0",
31
+ "@pnpm/config.matcher": "1100.0.0",
32
+ "@pnpm/config.parse-overrides": "1100.0.0",
33
+ "@pnpm/config.version-policy": "1100.0.0",
34
+ "@pnpm/constants": "1100.0.0",
35
+ "@pnpm/config.pick-registry-for-package": "1100.0.0",
36
+ "@pnpm/deps.path": "1100.0.0",
37
+ "@pnpm/error": "1100.0.0",
38
+ "@pnpm/hooks.read-package-hook": "1100.0.0",
39
+ "@pnpm/catalogs.types": "1100.0.0",
40
+ "@pnpm/installing.client": "1100.0.0",
41
+ "@pnpm/lockfile.fs": "1100.0.0",
42
+ "@pnpm/lockfile.utils": "1100.0.0",
43
+ "@pnpm/pkg-manifest.utils": "1100.0.0",
44
+ "@pnpm/resolving.npm-resolver": "1100.0.0",
45
+ "@pnpm/types": "1100.0.0"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@pnpm/logger": ">=1001.0.0 <1002.0.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@jest/globals": "30.0.5",
52
- "@types/ramda": "0.29.12",
51
+ "@jest/globals": "30.3.0",
52
+ "@types/ramda": "0.31.1",
53
53
  "@types/semver": "7.7.1",
54
- "@pnpm/logger": "1001.0.1",
55
- "@pnpm/resolving.resolver-base": "1005.1.0",
56
- "@pnpm/deps.inspection.outdated": "1001.1.1"
54
+ "@pnpm/deps.inspection.outdated": "1100.0.0",
55
+ "@pnpm/logger": "1100.0.0",
56
+ "@pnpm/resolving.resolver-base": "1100.0.0"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=22.13"
@@ -62,9 +62,9 @@
62
62
  "preset": "@pnpm/jest-config/with-registry"
63
63
  },
64
64
  "scripts": {
65
- "test": "pnpm run compile && pnpm run _test",
65
+ "test": "pn compile && pn .test",
66
66
  "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
67
- "_test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest",
68
- "compile": "tsgo --build && pnpm run lint --fix"
67
+ "compile": "tsgo --build && pn lint --fix",
68
+ ".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
69
69
  }
70
70
  }