@pnpm/installing.deps-installer 1101.3.0 → 1101.4.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.
@@ -184,6 +184,23 @@ export interface StrictInstallOptions {
184
184
  trustPolicy?: TrustPolicy;
185
185
  trustPolicyExclude?: string[];
186
186
  trustPolicyIgnoreAfter?: number;
187
+ /**
188
+ * Skip the lockfile supply-chain verification pass entirely. When
189
+ * true, `verifyLockfileResolutions` is not called even if
190
+ * `resolutionVerifiers` is non-empty — the install trusts the
191
+ * lockfile as-is. Trade-off: a poisoned lockfile (e.g. one a
192
+ * contributor authored under a weaker policy than CI enforces) can
193
+ * slip through. Use only in environments where the lockfile is
194
+ * effectively part of the trusted base — closed-source projects
195
+ * where every commit comes from a trusted author, fully reproducible
196
+ * CI runs against an already-verified lockfile, etc.
197
+ *
198
+ * Added for #11860: on workspaces with thousands of locked entries,
199
+ * the verification pass holds the per-package registry metadata
200
+ * needed for the trust check resident in memory and can OOM CI
201
+ * runners with a 2GB heap cap.
202
+ */
203
+ trustLockfile?: boolean;
187
204
  packageVulnerabilityAudit?: PackageVulnerabilityAudit;
188
205
  blockExoticSubdeps?: boolean;
189
206
  /**
@@ -193,7 +193,7 @@ export async function mutateModules(projects, maybeOpts) {
193
193
  !ctx.lockfileHadConflicts &&
194
194
  ctx.existsNonEmptyWantedLockfile &&
195
195
  (opts.frozenLockfile === true || opts.frozenLockfileIfExists === true);
196
- if (!willDelegateToPacquet) {
196
+ if (!willDelegateToPacquet && !opts.trustLockfile) {
197
197
  const cacheActive = opts.cacheDir != null && opts.resolutionVerifiers.length > 0;
198
198
  const wantedLockfilePath = cacheActive
199
199
  ? path.resolve(ctx.lockfileDir, await getWantedLockfileName({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/installing.deps-installer",
3
- "version": "1101.3.0",
3
+ "version": "1101.4.0",
4
4
  "description": "Fast, disk space efficient installation engine",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -63,55 +63,55 @@
63
63
  "run-groups": "^5.0.0",
64
64
  "semver": "^7.7.2",
65
65
  "@pnpm/agent.client": "1.0.7",
66
- "@pnpm/bins.linker": "1100.0.8",
66
+ "@pnpm/bins.linker": "1100.0.9",
67
67
  "@pnpm/bins.remover": "1100.0.5",
68
- "@pnpm/building.after-install": "1101.0.14",
69
- "@pnpm/building.during-install": "1101.0.12",
68
+ "@pnpm/building.after-install": "1101.0.16",
69
+ "@pnpm/building.during-install": "1101.0.13",
70
70
  "@pnpm/building.policy": "1100.0.6",
71
- "@pnpm/catalogs.protocol-parser": "1100.0.0",
72
71
  "@pnpm/catalogs.resolver": "1100.0.0",
72
+ "@pnpm/catalogs.protocol-parser": "1100.0.0",
73
73
  "@pnpm/catalogs.types": "1100.0.0",
74
74
  "@pnpm/config.matcher": "1100.0.1",
75
- "@pnpm/config.normalize-registries": "1100.0.4",
76
75
  "@pnpm/config.parse-overrides": "1100.0.1",
77
- "@pnpm/constants": "1100.0.0",
78
76
  "@pnpm/core-loggers": "1100.1.1",
77
+ "@pnpm/constants": "1100.0.0",
79
78
  "@pnpm/crypto.hash": "1100.0.1",
79
+ "@pnpm/config.normalize-registries": "1100.0.4",
80
80
  "@pnpm/deps.graph-hasher": "1100.2.1",
81
- "@pnpm/deps.path": "1100.0.4",
82
81
  "@pnpm/deps.graph-sequencer": "1100.0.0",
82
+ "@pnpm/deps.path": "1100.0.4",
83
83
  "@pnpm/error": "1100.0.0",
84
- "@pnpm/exec.lifecycle": "1100.0.12",
84
+ "@pnpm/exec.lifecycle": "1100.0.13",
85
85
  "@pnpm/fs.read-modules-dir": "1100.0.1",
86
86
  "@pnpm/fs.symlink-dependency": "1100.0.5",
87
- "@pnpm/installing.context": "1100.0.12",
88
- "@pnpm/crypto.object-hasher": "1100.0.0",
89
- "@pnpm/installing.deps-restorer": "1101.1.4",
87
+ "@pnpm/hooks.read-package-hook": "1100.0.4",
90
88
  "@pnpm/hooks.types": "1100.0.8",
91
- "@pnpm/installing.deps-resolver": "1100.1.1",
89
+ "@pnpm/installing.deps-resolver": "1100.1.3",
90
+ "@pnpm/installing.context": "1100.0.12",
92
91
  "@pnpm/installing.linking.direct-dep-linker": "1100.0.5",
93
- "@pnpm/installing.linking.hoist": "1100.0.8",
92
+ "@pnpm/installing.deps-restorer": "1101.1.5",
94
93
  "@pnpm/installing.linking.modules-cleaner": "1100.1.3",
95
- "@pnpm/installing.package-requester": "1101.0.8",
94
+ "@pnpm/installing.linking.hoist": "1100.0.9",
95
+ "@pnpm/crypto.object-hasher": "1100.0.0",
96
96
  "@pnpm/installing.modules-yaml": "1100.0.5",
97
- "@pnpm/lockfile.filtering": "1100.1.2",
98
- "@pnpm/hooks.read-package-hook": "1100.0.4",
97
+ "@pnpm/installing.package-requester": "1101.0.8",
99
98
  "@pnpm/lockfile.fs": "1100.1.1",
99
+ "@pnpm/lockfile.filtering": "1100.1.2",
100
100
  "@pnpm/lockfile.preferred-versions": "1100.0.11",
101
101
  "@pnpm/lockfile.pruner": "1100.0.7",
102
102
  "@pnpm/lockfile.to-pnp": "1100.0.10",
103
103
  "@pnpm/lockfile.utils": "1100.0.9",
104
- "@pnpm/lockfile.walker": "1100.0.7",
105
- "@pnpm/lockfile.settings-checker": "1100.0.12",
106
104
  "@pnpm/lockfile.verification": "1100.0.12",
105
+ "@pnpm/lockfile.walker": "1100.0.7",
107
106
  "@pnpm/patching.config": "1100.0.4",
108
107
  "@pnpm/pkg-manifest.utils": "1100.2.0",
109
108
  "@pnpm/resolving.parse-wanted-dependency": "1100.0.1",
109
+ "@pnpm/lockfile.settings-checker": "1100.0.12",
110
110
  "@pnpm/resolving.resolver-base": "1100.3.0",
111
111
  "@pnpm/store.controller-types": "1100.1.1",
112
112
  "@pnpm/store.index": "1100.1.0",
113
113
  "@pnpm/types": "1101.1.1",
114
- "@pnpm/workspace.project-manifest-reader": "1100.0.7"
114
+ "@pnpm/workspace.project-manifest-reader": "1100.0.8"
115
115
  },
116
116
  "peerDependencies": {
117
117
  "@pnpm/logger": ">=1001.0.0 <1002.0.0",
@@ -140,19 +140,19 @@
140
140
  "write-yaml-file": "^6.0.0",
141
141
  "@pnpm/assert-project": "1100.0.10",
142
142
  "@pnpm/assert-store": "1100.0.10",
143
- "@pnpm/installing.deps-installer": "1101.3.0",
143
+ "@pnpm/installing.deps-installer": "1101.4.0",
144
144
  "@pnpm/lockfile.types": "1100.0.7",
145
145
  "@pnpm/logger": "1100.0.0",
146
146
  "@pnpm/network.git-utils": "1100.0.1",
147
147
  "@pnpm/pkg-manifest.reader": "1100.0.4",
148
148
  "@pnpm/prepare": "1100.0.10",
149
149
  "@pnpm/resolving.registry.types": "1100.0.4",
150
- "@pnpm/store.path": "1100.0.1",
151
150
  "@pnpm/store.cafs": "1100.1.6",
152
151
  "@pnpm/test-fixtures": "1100.0.0",
152
+ "@pnpm/store.path": "1100.0.1",
153
153
  "@pnpm/test-ipc-server": "1100.0.0",
154
154
  "@pnpm/testing.mock-agent": "1100.0.6",
155
- "@pnpm/testing.temp-store": "1100.1.1"
155
+ "@pnpm/testing.temp-store": "1100.1.3"
156
156
  },
157
157
  "engines": {
158
158
  "node": ">=22.13"