What's Changed in v2.8.43
New features
- The
gzipfallback introduced in v2.8.42 now supports reading AES-encrypted entries. Thegziptrailer is computed from the decompressed data instead of relying on the CRC-32 value stored in the central directory, which is zeroed for AES-encrypted entries. As a side effect, archives with a corrupted CRC-32 value can now be read with this fallback whencheckSignatureis not set, like with the other implementations - Entries are now stored uncompressed instead of failing when zip.js cannot compress data at all, e.g. when the Compression Streams API is unavailable and the WebAssembly module cannot load
Bug fixes
- Archives with an invalid uncompressed size in the central directory are now rejected with
ERR_INVALID_UNCOMPRESSED_SIZEwhen read with thegzipfallback, instead of failing with a misleading error
Full Changelog: v2.8.42...v2.8.43