@pnpm/global.commands 1100.0.33 → 1100.0.34
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 +20 -0
- package/lib/globalAdd.d.ts +0 -3
- package/lib/globalAdd.js +0 -2
- package/lib/globalUpdate.d.ts +0 -3
- package/lib/globalUpdate.js +0 -2
- package/lib/installGlobalPackages.d.ts +0 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @pnpm/global.commands
|
|
2
2
|
|
|
3
|
+
## 1100.0.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- `pnpm add -g`, `pnpm update -g`, `pnpm setup`, and the self-updater no longer fail with `ERR_PNPM_MISSING_TIME` when `trustPolicy: no-downgrade` or `resolutionMode: time-based` is set in the global config [#12883](https://github.com/pnpm/pnpm/issues/12883). The decision to fetch full registry metadata now lives in one place, and the `no-downgrade` trust policy always requests full metadata (matching the self-updater), since the trust evidence it checks is missing from abbreviated metadata even on registries that include the `time` field.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @pnpm/bins.linker@1100.0.17
|
|
11
|
+
- @pnpm/bins.remover@1100.0.13
|
|
12
|
+
- @pnpm/bins.resolver@1100.0.9
|
|
13
|
+
- @pnpm/cli.utils@1101.0.14
|
|
14
|
+
- @pnpm/config.reader@1101.12.0
|
|
15
|
+
- @pnpm/core-loggers@1100.2.2
|
|
16
|
+
- @pnpm/deps.inspection.list@1100.0.24
|
|
17
|
+
- @pnpm/global.packages@1100.0.11
|
|
18
|
+
- @pnpm/installing.deps-installer@1102.3.0
|
|
19
|
+
- @pnpm/pkg-manifest.reader@1100.0.10
|
|
20
|
+
- @pnpm/store.connection-manager@1100.3.6
|
|
21
|
+
- @pnpm/types@1101.4.0
|
|
22
|
+
|
|
3
23
|
## 1100.0.33
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/lib/globalAdd.d.ts
CHANGED
|
@@ -10,9 +10,6 @@ export type GlobalAddOptions = CreateStoreControllerOptions & {
|
|
|
10
10
|
allowBuilds?: Record<string, string | boolean>;
|
|
11
11
|
saveExact?: boolean;
|
|
12
12
|
savePrefix?: string;
|
|
13
|
-
supportedArchitectures?: {
|
|
14
|
-
libc?: string[];
|
|
15
|
-
};
|
|
16
13
|
rootProjectManifest?: unknown;
|
|
17
14
|
handleResolutionPolicyViolations?: (violations: readonly ResolutionPolicyViolation[]) => Promise<void>;
|
|
18
15
|
updateResolutionPolicyManifest?: (violations: readonly ResolutionPolicyViolation[], dir: string) => Promise<void>;
|
package/lib/globalAdd.js
CHANGED
|
@@ -55,7 +55,6 @@ async function installGroup(ctx, commands) {
|
|
|
55
55
|
devDependencies: false,
|
|
56
56
|
optionalDependencies: true,
|
|
57
57
|
};
|
|
58
|
-
const fetchFullMetadata = opts.supportedArchitectures?.libc != null && true;
|
|
59
58
|
const installOpts = {
|
|
60
59
|
...opts,
|
|
61
60
|
global: false,
|
|
@@ -71,7 +70,6 @@ async function installGroup(ctx, commands) {
|
|
|
71
70
|
workspaceDir: undefined,
|
|
72
71
|
sharedWorkspaceLockfile: false,
|
|
73
72
|
lockfileOnly: false,
|
|
74
|
-
fetchFullMetadata,
|
|
75
73
|
include,
|
|
76
74
|
includeDirect: include,
|
|
77
75
|
allowBuilds,
|
package/lib/globalUpdate.d.ts
CHANGED
|
@@ -8,9 +8,6 @@ export type GlobalUpdateOptions = CreateStoreControllerOptions & {
|
|
|
8
8
|
allowBuilds?: Record<string, string | boolean>;
|
|
9
9
|
saveExact?: boolean;
|
|
10
10
|
savePrefix?: string;
|
|
11
|
-
supportedArchitectures?: {
|
|
12
|
-
libc?: string[];
|
|
13
|
-
};
|
|
14
11
|
rootProjectManifest?: unknown;
|
|
15
12
|
handleResolutionPolicyViolations?: (violations: readonly ResolutionPolicyViolation[]) => Promise<void>;
|
|
16
13
|
updateResolutionPolicyManifest?: (violations: readonly ResolutionPolicyViolation[], dir: string) => Promise<void>;
|
package/lib/globalUpdate.js
CHANGED
|
@@ -47,7 +47,6 @@ async function updateGlobalPackageGroup(opts, globalDir, globalBinDir, pkg, comm
|
|
|
47
47
|
devDependencies: false,
|
|
48
48
|
optionalDependencies: true,
|
|
49
49
|
};
|
|
50
|
-
const fetchFullMetadata = opts.supportedArchitectures?.libc != null && true;
|
|
51
50
|
const allowBuilds = opts.allowBuilds ?? {};
|
|
52
51
|
const { ignoredBuilds, resolutionPolicyViolations } = await installGlobalPackages({
|
|
53
52
|
...opts,
|
|
@@ -64,7 +63,6 @@ async function updateGlobalPackageGroup(opts, globalDir, globalBinDir, pkg, comm
|
|
|
64
63
|
workspaceDir: undefined,
|
|
65
64
|
sharedWorkspaceLockfile: false,
|
|
66
65
|
lockfileOnly: false,
|
|
67
|
-
fetchFullMetadata,
|
|
68
66
|
include,
|
|
69
67
|
includeDirect: include,
|
|
70
68
|
allowBuilds,
|
|
@@ -19,7 +19,6 @@ export interface InstallGlobalPackagesOptions extends CreateStoreControllerOptio
|
|
|
19
19
|
allowBuilds?: Record<string, string | boolean>;
|
|
20
20
|
include: IncludedDependencies;
|
|
21
21
|
includeDirect?: IncludedDependencies;
|
|
22
|
-
fetchFullMetadata?: boolean;
|
|
23
22
|
omitSummaryLog?: boolean;
|
|
24
23
|
rootProjectManifest?: unknown;
|
|
25
24
|
rootProjectManifestDir?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/global.commands",
|
|
3
|
-
"version": "1100.0.
|
|
3
|
+
"version": "1100.0.34",
|
|
4
4
|
"description": "Global package command handlers for pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
"!*.map"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pnpm/bins.linker": "1100.0.
|
|
32
|
-
"@pnpm/bins.remover": "1100.0.
|
|
33
|
-
"@pnpm/bins.resolver": "1100.0.
|
|
31
|
+
"@pnpm/bins.linker": "1100.0.17",
|
|
32
|
+
"@pnpm/bins.remover": "1100.0.13",
|
|
33
|
+
"@pnpm/bins.resolver": "1100.0.9",
|
|
34
34
|
"@pnpm/cli.command": "1100.0.1",
|
|
35
|
-
"@pnpm/cli.utils": "1101.0.
|
|
35
|
+
"@pnpm/cli.utils": "1101.0.14",
|
|
36
36
|
"@pnpm/config.matcher": "1100.0.1",
|
|
37
|
-
"@pnpm/config.reader": "1101.
|
|
38
|
-
"@pnpm/core-loggers": "1100.2.
|
|
39
|
-
"@pnpm/deps.inspection.list": "1100.0.
|
|
37
|
+
"@pnpm/config.reader": "1101.12.0",
|
|
38
|
+
"@pnpm/core-loggers": "1100.2.2",
|
|
39
|
+
"@pnpm/deps.inspection.list": "1100.0.24",
|
|
40
40
|
"@pnpm/error": "1100.0.1",
|
|
41
|
-
"@pnpm/global.packages": "1100.0.
|
|
42
|
-
"@pnpm/installing.deps-installer": "1102.
|
|
43
|
-
"@pnpm/pkg-manifest.reader": "1100.0.
|
|
44
|
-
"@pnpm/store.connection-manager": "1100.3.
|
|
45
|
-
"@pnpm/types": "1101.
|
|
41
|
+
"@pnpm/global.packages": "1100.0.11",
|
|
42
|
+
"@pnpm/installing.deps-installer": "1102.3.0",
|
|
43
|
+
"@pnpm/pkg-manifest.reader": "1100.0.10",
|
|
44
|
+
"@pnpm/store.connection-manager": "1100.3.6",
|
|
45
|
+
"@pnpm/types": "1101.4.0",
|
|
46
46
|
"@pnpm/util.lex-comparator": "^4.0.1",
|
|
47
47
|
"is-subdir": "^2.0.0",
|
|
48
48
|
"symlink-dir": "^10.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@jest/globals": "30.4.1",
|
|
52
|
-
"@pnpm/global.commands": "1100.0.
|
|
52
|
+
"@pnpm/global.commands": "1100.0.34"
|
|
53
53
|
},
|
|
54
54
|
"engines": {
|
|
55
55
|
"node": ">=22.13"
|