New in version 2.8
- WebAssembly Integration
- Replaced JavaScript compression and decompression implementation with WebAssembly zlib module (https://github.com/gildas-lormeau/zlib-streams. This improves security and performance when native
CompressionStreamandDecompressionStreamAPIs are not used (for example, when using custom compression levels or decompressing deflate64 data) or unavailable. - Added the
wasmURIconfiguration property to provide the module URI if necessary (for example, when the CSP blocks data URIs).
- Deflate64 Decompression Support
- Added support of proprietary Deflate64 decompression algorithm which can be used by Windows when compressing large files (see #517)
- Simplified Configuration
- Replaced the complex
workerScriptsconfiguration with a singleworkerURIproperty, making it easier to set up web workers. - Default values for
workerURIandwasmURIare provided, reducing the need for manual configuration when building code.
- Improved Type Safety and Clarity
- Refined TypeScript definitions, including clearer distinctions between
DirectoryEntryandFileEntry. - Deprecated and removed legacy APIs and classes, streamlining the library for current use cases.
Breaking Changes
- Worker Configuration Changes:
- The
workerScriptsproperty in the configuration was removed and replaced withworkerURI(andwasmURIfor the WASM module).
- Stream Implementation Updates:
- The
DeflateandInflateproperties in the configuration were removed and replaced withCompressionStreamandDecompressionStream.
- Deprecated Classes Removed:
- The deprecated classes
SplitZipReaderandSplitZipWriterwere removed.
- Event-Based Codec Support Removed:
- Interfaces and classes related to event-based codecs, such as
EventBasedZipLibrary,initShimAsyncCodec, andEventBasedCodecwere removed.
- Entry Metadata Changes in
index.d.ts:
- The
directoryproperty was removed fromEntryMetaDataand moved toDirectoryEntryandFileEntryinterfaces.
What's Changed in v2.8.2
Full Changelog: v2.8.1...v2.8.2