npm @zip.js/zip.js 2.8.2
v2.8.2

latest releases: 2.24.0, 2.23.0, 2.22.1...
14 months ago

New in version 2.8

  1. 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 CompressionStream and DecompressionStream APIs are not used (for example, when using custom compression levels or decompressing deflate64 data) or unavailable.
  • Added the wasmURI configuration property to provide the module URI if necessary (for example, when the CSP blocks data URIs).
  1. Deflate64 Decompression Support
  • Added support of proprietary Deflate64 decompression algorithm which can be used by Windows when compressing large files (see #517)
  1. Simplified Configuration
  • Replaced the complex workerScripts configuration with a single workerURI property, making it easier to set up web workers.
  • Default values for workerURI and wasmURI are provided, reducing the need for manual configuration when building code.
  1. Improved Type Safety and Clarity
  • Refined TypeScript definitions, including clearer distinctions between DirectoryEntry and FileEntry.
  • Deprecated and removed legacy APIs and classes, streamlining the library for current use cases.

Breaking Changes

  1. Worker Configuration Changes:
  • The workerScripts property in the configuration was removed and replaced with workerURI (and wasmURI for the WASM module).
  1. Stream Implementation Updates:
  • The Deflate and Inflate properties in the configuration were removed and replaced with CompressionStream and DecompressionStream.
  1. Deprecated Classes Removed:
  • The deprecated classes SplitZipReader and SplitZipWriter were removed.
  1. Event-Based Codec Support Removed:
  • Interfaces and classes related to event-based codecs, such as EventBasedZipLibrary, initShimAsyncCodec, and EventBasedCodec were removed.
  1. Entry Metadata Changes in index.d.ts:
  • The directory property was removed from EntryMetaData and moved to DirectoryEntry and FileEntry interfaces.

What's Changed in v2.8.2

  • Fix edge cases of uncompressed size check by @0f-0b in #600

Full Changelog: v2.8.1...v2.8.2

Don't miss a new zip.js release

NewReleases is sending notifications on new releases.