JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.
BSD-3-CLAUSE License
Bot releases are hidden (Show)
Added SplitZipWriter
class which can be used in order to create split zip files with ZipWriter
(cf. test here)
ReadableStream
and Reader
instances simultaneously in a zip file weighting more than 4GBImproved implementation of the fix from the previous version (2.6.30) for the potential race data condition in Firefox when reading zip files
ZipReader
via the SplitZipReader
class (see example here)transferStreams
set to true
(introduced in version 2.6.24) that could lead to truncated filesglobalThis
is undefined
(see https://github.com/gildas-lormeau/zip.js/issues/254#issuecomment-1254145896)Added support of CommonJS modules (see "Installation" here: https://gildas-lormeau.github.io/zip.js/)
configure
in order to pass custom CompressionStream
and DecompressionStream
implementationsnavigator.hardwareConcurrency
on Deno Deploy
ReadableStream
or WritableStream
instances instead of Reader
or Writer
instances respectively without needing to wrap them into objects.ZipWriter#add()
and passing ReadableStream
instances. If you're sure that resulting the zip file won't exceed 4GB, you can pass the option zip64: false
explicitly to disable this behavior.Fixed TypeScript compilation issue due to a syntax error in the index.d.ts
file (see https://github.com/gildas-lormeau/zip.js/pull/366)
Added a new option when creating a ZipReader
instance or when calling ZipReader#getData()
. This option is named transferStreams
and is set to true
by default.
false
, zip.js should work as before. zip.js will read/write chunks of data when decompressing data by exchanging messages between the main thread and web workers.true
, zip.js will try to transfer the ReadableStream
and the WritableStream
instances used when decompressing data to the web workers. Thus, data is transferred natively between the main thread and the web workers.transferStreams
set to false
.Note that transferable streams are not supported in Deno currently.
Published by gildas-lormeau about 2 years ago
BlobWriter
mime type not present (see #360)Published by gildas-lormeau about 2 years ago
ZipWriter.add
returning unresolved promises by @0f-0b in https://github.com/gildas-lormeau/zip.js/pull/355
Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.6.15...v2.6.16