Releases: gildas-lormeau/zip.js
Releases · gildas-lormeau/zip.js
v2.8.11
v2.8.10
Fixed built files (built files of v2.8.9 are not updated)
v2.8.9
Fixed potential "Error: process error:-50331648" when decompressing deflate64 data
v2.8.8
- fixed entry comments encoding in
ZipWriter(see #609) - improved
Uint8ArrayWriterbuffer growth strategy (see #610) - improved Unix/MS-DOS metadata support in
ZipWriterandZipReader:- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#externalfileattributes
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#msdosattributes
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#gid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#uid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#sticky
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#unixmode
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#setgid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#setuid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/EntryMetaData.html#unixexternalupper
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#gid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#uid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#sticky
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#unixextrafieldtype
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#unixmode
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#setgid
- https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterConstructorOptions.html#setuid
v2.8.7
Improved bugfix of v2.8.6 when enqueuing sub-array of Uint8Array instances into a WritableStream (with web workers enabled).
v2.8.6
v2.8.5
- 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
What's Changed
- Added export of web workers and WASM module files in the
package.jsonfile 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
- @jschwartzbeck made their first contribution in #607
v2.8.3
- 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
exportsproperty in thepackage.jsonfile and files in the/distfolder, JavaScript-based implementations are suffixed with-native(e.g../index-native.js). - Fixed
mallocerror in environments not fully supporting WASM (see #605)
v2.8.2
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