@pnpm/deps.inspection.outdated 1100.1.11 → 1100.1.13
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/CHANGELOG.md +3223 -0
- package/lib/outdated.js +10 -0
- package/package.json +14 -14
package/lib/outdated.js
CHANGED
|
@@ -54,6 +54,8 @@ export async function outdated(opts) {
|
|
|
54
54
|
if (!allDeps[alias])
|
|
55
55
|
return;
|
|
56
56
|
const wantedRef = opts.wantedLockfile.importers[importerId][depType][alias];
|
|
57
|
+
if (isLocalRef(wantedRef))
|
|
58
|
+
return;
|
|
57
59
|
if (ignoreDependenciesMatcher?.(alias))
|
|
58
60
|
return;
|
|
59
61
|
const currentRef = currentLockfile.importers[importerId]?.[depType]?.[alias];
|
|
@@ -124,6 +126,14 @@ function packageHasNoDeps(manifest) {
|
|
|
124
126
|
function isEmpty(obj) {
|
|
125
127
|
return Object.keys(obj).length === 0;
|
|
126
128
|
}
|
|
129
|
+
// A dependency whose wanted ref is local resolves to a directory on disk
|
|
130
|
+
// even when its manifest specifier is a plain semver range (e.g. a
|
|
131
|
+
// workspace package matched by `link-workspace-packages`). Such a package
|
|
132
|
+
// may not be published at all, so there is no registry "latest" to compare
|
|
133
|
+
// against.
|
|
134
|
+
function isLocalRef(ref) {
|
|
135
|
+
return ref.startsWith('link:') || ref.startsWith('file:') || ref.startsWith('workspace:');
|
|
136
|
+
}
|
|
127
137
|
// Pick a clean display string for a lockfile ref.
|
|
128
138
|
//
|
|
129
139
|
// - If the dep-path parses to a semver, that's the value (handles
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/deps.inspection.outdated",
|
|
3
|
-
"version": "1100.1.
|
|
3
|
+
"version": "1100.1.13",
|
|
4
4
|
"description": "Check for outdated packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,34 +28,34 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
32
|
-
"semver": "^7.8.4",
|
|
33
31
|
"@pnpm/catalogs.resolver": "1100.0.0",
|
|
34
32
|
"@pnpm/catalogs.types": "1100.0.0",
|
|
35
33
|
"@pnpm/config.matcher": "1100.0.1",
|
|
36
|
-
"@pnpm/config.version-policy": "1100.1.6",
|
|
37
34
|
"@pnpm/config.parse-overrides": "1100.0.2",
|
|
38
|
-
"@pnpm/
|
|
39
|
-
"@pnpm/hooks.read-package-hook": "1100.0.9",
|
|
35
|
+
"@pnpm/config.version-policy": "1100.1.6",
|
|
40
36
|
"@pnpm/constants": "1100.0.0",
|
|
41
37
|
"@pnpm/deps.path": "1100.0.8",
|
|
42
|
-
"@pnpm/
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
38
|
+
"@pnpm/error": "1100.0.1",
|
|
39
|
+
"@pnpm/hooks.read-package-hook": "1100.0.9",
|
|
40
|
+
"@pnpm/installing.client": "1100.2.13",
|
|
41
|
+
"@pnpm/lockfile.fs": "1100.1.10",
|
|
42
|
+
"@pnpm/lockfile.utils": "1100.1.2",
|
|
45
43
|
"@pnpm/pkg-manifest.utils": "1100.2.6",
|
|
44
|
+
"@pnpm/resolving.npm-resolver": "1102.1.2",
|
|
46
45
|
"@pnpm/types": "1101.3.2",
|
|
47
|
-
"
|
|
46
|
+
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
47
|
+
"semver": "^7.8.4"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@pnpm/logger": "^1100.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@jest/globals": "30.4.1",
|
|
54
|
-
"@
|
|
55
|
-
"@types/semver": "7.7.1",
|
|
56
|
-
"@pnpm/deps.inspection.outdated": "1100.1.11",
|
|
54
|
+
"@pnpm/deps.inspection.outdated": "1100.1.13",
|
|
57
55
|
"@pnpm/logger": "1100.0.0",
|
|
58
|
-
"@pnpm/resolving.resolver-base": "1100.5.1"
|
|
56
|
+
"@pnpm/resolving.resolver-base": "1100.5.1",
|
|
57
|
+
"@types/ramda": "0.31.1",
|
|
58
|
+
"@types/semver": "7.7.1"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=22.13"
|