New features
- Accept a non-constructable reader (a factory function, not only a
Readerclass) as theReaderof aZipFileEntry/ZipDirectoryEntry; the reader is now invoked with or withoutnewdepending on whether it exposes a prototype. - Export the
ERR_ITERATOR_COMPLETED_TOO_SOONandERR_WRITER_NOT_INITIALIZEDerror constants.
Bug fixes
- Add a dedicated
index.d.ctsso TypeScript resolves the correct types for the CommonJS entry point instead of falling back to the ESM declarations. - Fix invalid entries in the MIME type table: drop the bogus
x-font/pcf.Zand duplicatevideo/avifentries, correct the mis-keyedapplication/x-ms-installer(msi), and mapimage/avifto bothavifandavifs. - Align the JavaScript zlib module with the
windowBits: -16raw-stream convention.
Performance
- Build the MIME type map lazily from a compact JSON payload, so the table is only parsed when a MIME type is actually requested.
- Shrink the WebAssembly zlib module by ~8 KB (~16%) by merging the deflate64 path into the inflate code and generating the deflate trees at runtime.
- Reduce bundle size by mangling internal property names and shipping inline worker payloads deflate-compressed.