Skip to content

Releases: gildas-lormeau/zip.js

v2.8.11

20 Nov 13:33

Choose a tag to compare

What's Changed

  • Add missing typings for useWebWorkers and useCompressionStream to ZipWriterConstructorOptions by @ws333 in #616

New Contributors

Full Changelog: v2.8.10...v2.8.11

v2.8.10

07 Nov 22:45

Choose a tag to compare

Fixed built files (built files of v2.8.9 are not updated)

v2.8.9

07 Nov 10:01

Choose a tag to compare

Fixed potential "Error: process error:-50331648" when decompressing deflate64 data

v2.8.8

16 Oct 13:43

Choose a tag to compare

v2.8.7

04 Oct 10:43

Choose a tag to compare

Improved bugfix of v2.8.6 when enqueuing sub-array of Uint8Array instances into a WritableStream (with web workers enabled).

v2.8.6

03 Oct 22:38

Choose a tag to compare

Fixed bug when enqueuing sub-array of Uint8Array instances into a WritableStream in environments supporting web workers and transferable objects (see #606)

v2.8.5

03 Oct 00:29

Choose a tag to compare

  • Optimized size of built files (approx 7%) when using native (i.e. pure JS) compression/decompression (see files/exports suffixed with-native). The code of web workers is now compressed at built time with the mini-compressor used to compress the code of the WASM module (see mini-lz.js), and decompressed at runtime.
  • Fixed path to the WASM module in the default configuration

v2.8.4

01 Oct 02:35

Choose a tag to compare

What's Changed

  • Added export of web workers and WASM module files in the package.json file by @jschwartzbeck in #607
  • Fixed potential race condition when initializing the WASM module in the main thread (i.e. with web workers disabled)

New Contributors

v2.8.3

29 Sep 01:11

Choose a tag to compare

  • Added support of JavaScript-based implementation (based on zlib) of Compression Streams API (see https://github.com/gildas-lormeau/zlib-streams-ts) as an alternative to the default WASM-based implementation. See the new exports property in the package.json file and files in the /dist folder, JavaScript-based implementations are suffixed with -native (e.g. ./index-native.js).
  • Fixed malloc error in environments not fully supporting WASM (see #605)

v2.8.2

09 Sep 09:34

Choose a tag to compare

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