News for hackers. Stuff that matters.
Re:My failed attempt to shrink all NPM packages by 5% by Null-Set on Monday January 27, 2025 @10:30AM (#42842136)
No, it can't because the checksums won't match.
Re:My failed attempt to shrink all NPM packages by 5% by michaelmior on Monday January 27, 2025 @12:54PM (#42843749)
I don't think that's actually a problem, but it would require continuing to host both versions (at distinct URLs) for any users who may have installed the package before the Zopfli-compressed version completed. Although I think you could also get around this by tracking whether the newly-released package was ever served by the API. If not, which is probably the common case, the old gzip-compressed version could be deleted.