3 ms·
Ok but why doesn't npm registry actually recompress the archives? It can even apply that retroactively, wouldn't require zopli in npm CLI
by 1337shadow 2y ago
Ok but why doesn't npm registry actually recompress the archives?
It can even apply that retroactively, wouldn't require zopli in npm CLI
- aseipp 2y agoHashes of the tarballs are recorded in the package-lock.json of downstream dependants, so recompressing the files in place will cause the hashes to change and break everyone. It has to be done at upload time.
- notpushkin 2y agoBut it still can be done on the npm side, right?
- bhouston 2y agoThe hashes of the uncompressed tarballs would be great. Then the HTTP connection can negotiate a compression format for transfer (which can change over time at HTTP itself changes) rather than baking it into the NPM package standard (which is incredibly inflexible.)