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)
Worker
constructor and automatic fallback on the main thread if not present, i.e. you don't need to set userWebWorkers
to false
anymore.crypto
API optional when using ZipCrypto to decrypt files (fix)Entry#internalFileAttribute
index.d.ts
file and fixed minor issuesFixed a regression introduced in version 2.5 that prevented the keepOrder
option from working correctly when creating multiple entries in a zip file simultaneously (e.g. when calling await Promise.all([zipWriter.add(...), zipWriter.add(...), ...])
).
Add support of Streams in the FS
API
(see example here: https://github.com/gildas-lormeau/zip.js/blob/master/tests/all/test-fs-streams.js)
Published by gildas-lormeau about 2 years ago
level
and useCompressionStream
being ignored by @0f-0b in https://github.com/gildas-lormeau/zip.js/pull/345
Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.6.2...v2.6.3
ReadableStream
readers in the ZipReader
constructor. Although they will be automatically converted into a BlobReader
readers transparently in order to allow random access to the data (see test here: https://github.com/gildas-lormeau/zip.js/blob/master/tests/all/test-readable-zip-stream.js).ERR_ABORT
has been removed. Instead, you can now check if signal.reason
equals to the error thrown when cancelling compression/decompression.ReadableStreamReader
and WritableStreamWriter
have been removed. Instead, you can now pass objects containing a readable
or writable
property (respectively). See example of code in the README.MD.TransformStream
:
writable
property (WritableStream
) as an alternative to Writer
instancesreadable
property (ReadableStream
) when calling ZipWriter#add