Files
Zoltan Kochan 3eeb3187d4 perf: stream file digests during resolution
Change /v1/install to stream an NDJSON response:
- D\t{digest}\t{size}\t{executable}\n — file digests emitted as packages
  resolve (via wrapped storeController.requestPackage)
- L\t{json}\n — final lockfile + stats
- I\t{key}\t{base64}\n — pre-packed msgpack index entries

The client parses the stream incrementally: as digest lines arrive, it
batches them and dispatches workers to /v1/files. File downloads now
overlap with server-side resolution instead of happening strictly after.

Also bump importPackage pLimit from 4 to 6.
2026-04-10 02:21:55 +02:00
..
2025-10-21 15:30:20 +02:00

@pnpm/worker

A worker for extracting package tarballs to the store

npm version

Installation

pnpm add @pnpm/worker

License

MIT