@pnpm/installing.package-requester 1101.0.12 → 1102.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.
@@ -18,6 +18,7 @@ export declare function createPackageRequester(opts: {
18
18
  virtualStoreDirMaxLength: number;
19
19
  strictStorePkgContentCheck?: boolean;
20
20
  customFetchers?: CustomFetcher[];
21
+ frozenStore?: boolean;
21
22
  }): RequestPackageFunction & {
22
23
  fetchPackageToStore: FetchPackageToStoreFunction;
23
24
  getFilesIndexFilePath: GetFilesIndexFilePath;
@@ -29,7 +29,11 @@ const TARBALL_INTEGRITY_FILENAME = 'tarball-integrity';
29
29
  const packageRequestLogger = logger('package-requester');
30
30
  export function createPackageRequester(opts) {
31
31
  opts = opts || {};
32
- const networkConcurrency = opts.networkConcurrency ?? Math.min(64, Math.max(calcMaxWorkers() * 3, 16));
32
+ // Downloads are I/O-bound, not CPU-bound: a low-latency registry only
33
+ // saturates with enough requests in flight, so the floor matters more
34
+ // than the per-core scaling — a CPU-derived floor left 4-core CI
35
+ // runners draining multi-hundred-tarball installs 16 at a time.
36
+ const networkConcurrency = opts.networkConcurrency ?? Math.min(96, Math.max(calcMaxWorkers() * 3, 64));
33
37
  const requestsQueue = new PQueue({
34
38
  concurrency: networkConcurrency,
35
39
  });
@@ -38,6 +42,7 @@ export function createPackageRequester(opts) {
38
42
  storeDir: opts.storeDir,
39
43
  verifyStoreIntegrity: opts.verifyStoreIntegrity,
40
44
  strictStorePkgContentCheck: opts.strictStorePkgContentCheck,
45
+ frozenStore: opts.frozenStore,
41
46
  });
42
47
  const fetchPackageToStore = fetchToStore.bind(null, {
43
48
  readPkgFromCafs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/installing.package-requester",
3
- "version": "1101.0.12",
3
+ "version": "1102.0.0",
4
4
  "description": "Concurrent downloader of npm-compatible packages",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -36,28 +36,28 @@
36
36
  "p-queue": "^9.3.0",
37
37
  "promise-share": "^2.0.1",
38
38
  "ramda": "npm:@pnpm/ramda@0.28.1",
39
- "semver": "^7.8.1",
39
+ "semver": "^7.8.4",
40
40
  "ssri": "13.0.1",
41
- "@pnpm/core-loggers": "1100.1.4",
41
+ "@pnpm/config.package-is-installable": "1100.0.11",
42
+ "@pnpm/deps.path": "1100.0.8",
42
43
  "@pnpm/error": "1100.0.0",
43
- "@pnpm/deps.path": "1100.0.7",
44
- "@pnpm/fetching.fetcher-base": "1100.1.8",
45
- "@pnpm/config.package-is-installable": "1100.0.9",
46
- "@pnpm/fetching.pick-fetcher": "1100.0.11",
47
- "@pnpm/resolving.resolver-base": "1100.4.1",
44
+ "@pnpm/fetching.pick-fetcher": "1100.0.12",
48
45
  "@pnpm/fs.graceful-fs": "1100.1.0",
49
- "@pnpm/store.index": "1100.1.0",
50
- "@pnpm/store.cafs": "1100.1.9",
51
- "@pnpm/store.controller-types": "1100.1.4",
52
- "@pnpm/types": "1101.3.1",
53
- "@pnpm/hooks.types": "1100.0.11"
46
+ "@pnpm/fetching.fetcher-base": "1100.1.9",
47
+ "@pnpm/hooks.types": "1100.0.12",
48
+ "@pnpm/store.cafs": "1100.1.10",
49
+ "@pnpm/core-loggers": "1100.2.1",
50
+ "@pnpm/store.controller-types": "1100.1.5",
51
+ "@pnpm/store.index": "1100.2.0",
52
+ "@pnpm/types": "1101.3.2",
53
+ "@pnpm/resolving.resolver-base": "1100.4.2"
54
54
  },
55
55
  "peerDependencies": {
56
- "@pnpm/logger": "^1001.0.1",
57
- "@pnpm/worker": "^1100.1.10"
56
+ "@pnpm/logger": "^1100.0.0",
57
+ "@pnpm/worker": "^1100.2.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@jest/globals": "30.3.0",
60
+ "@jest/globals": "30.4.1",
61
61
  "@types/normalize-path": "^3.0.2",
62
62
  "@types/ramda": "0.31.1",
63
63
  "@types/semver": "7.7.1",
@@ -65,14 +65,14 @@
65
65
  "delay": "^7.0.0",
66
66
  "normalize-path": "^3.0.0",
67
67
  "tempy": "3.0.0",
68
- "@pnpm/installing.package-requester": "1101.0.12",
69
- "@pnpm/installing.client": "1100.2.6",
70
- "@pnpm/store.create-cafs-store": "1100.0.12",
71
- "@pnpm/test-fixtures": "1100.0.0",
72
- "@pnpm/store.cafs-types": "1100.0.1",
73
- "@pnpm/testing.registry-mock": "1100.0.4",
68
+ "@pnpm/installing.client": "1100.2.8",
74
69
  "@pnpm/logger": "1100.0.0",
75
- "@pnpm/testing.mock-agent": "1101.0.1"
70
+ "@pnpm/store.cafs-types": "1100.0.1",
71
+ "@pnpm/store.create-cafs-store": "1100.0.14",
72
+ "@pnpm/test-fixtures": "1100.0.0",
73
+ "@pnpm/testing.mock-agent": "1101.0.3",
74
+ "@pnpm/testing.registry-mock": "1100.0.6",
75
+ "@pnpm/installing.package-requester": "1102.0.0"
76
76
  },
77
77
  "engines": {
78
78
  "node": ">=22.13"