zip.js

JavaScript library to zip and unzip files supporting multi-core compression, compression streams, zip64, split files and encryption.

BSD-3-CLAUSE License

Downloads
3.4M
Stars
3.4K
Committers
28

Bot releases are hidden (Show)

zip.js - v2.6.63

Published by gildas-lormeau over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.6.62...v2.6.63

zip.js -

Published by gildas-lormeau almost 2 years ago

Fix issue with passwords longer than 16 bytes when handling encrypted zip files in environments where SubtleCrypto.importKey() does not exist (see #390)

zip.js -

Published by gildas-lormeau almost 2 years ago

  • Improved zip64 support when creating zip files by writing only the necessary data
  • Fixed value of the "last disk number" when reading zip files which could lead to a "split file" error with some zip file using zip64
zip.js -

Published by gildas-lormeau almost 2 years ago

  • Updated dev dependencies
zip.js -

Published by gildas-lormeau almost 2 years ago

Refactored code in lib/core/streams/codecs/sjcl.js: transformed ES3 class into ES6 class (see #382)

zip.js -

Published by gildas-lormeau almost 2 years ago

Fixed potential stream error when adding entries concurrently in a zip file with the option keepOrder explicitly set to false

zip.js -

Published by gildas-lormeau almost 2 years ago

zip.js -

Published by gildas-lormeau almost 2 years ago

  • Fixed error in Node.js on macOS when encrypting/decrypting files
  • Improved performances by avoiding calling Blob#slice() when creating zip with small files (i.e. < chunkSize, 512 KB by default) added concurrently
zip.js -

Published by gildas-lormeau almost 2 years ago

  • Make sure local and central directory header records are not split across a disk boundary when creating split zip files (see section 8.5.2 of the spec)
zip.js -

Published by gildas-lormeau almost 2 years ago

Splitted the Entry interface in index.d.ts into the EntryMetaData interface and the Entry interface. Entry extends EntryMetaData and adds the definition of getData() (fixes https://github.com/gildas-lormeau/zip.js/pull/377 and https://github.com/gildas-lormeau/zip.js/issues/371)

zip.js - v2.6.50

Published by gildas-lormeau almost 2 years ago

zip.js -

Published by gildas-lormeau about 2 years ago

Fixed regression introduced in version 2.6.33 which could lead to errors when using HttpReader or HttpRangeReader

zip.js -

Published by gildas-lormeau about 2 years ago

  • ZipWriter#add now accepts an Array of Reader (or ReadableStream) instances. A SplitDataReader instance will be automatically created under the hood.
  • Entry#getData now accepts generator functions generating Writer (or WritableStream) instances. A SplitDataWriter instance will be automatically created under the hood and data will be be split into chunks of 4GB.
zip.js -

Published by gildas-lormeau about 2 years ago

  • Deprecated SplitZipReader and SplitZipWriter. Use respectively SplitDataReader and SplitDataWriter instead. (SplitZipReader and SplitZipWriter will be removed in the version 2.7.0)
  • Fixed disk number support when creating zip files with SplitDataWriter using zip64
  • Added preventClose option when calling ZipWriter#close()
zip.js -

Published by gildas-lormeau about 2 years ago

  • Fixed minor issue where zip64 entries would be unnecessarily used when compressing/aborting compression of large amounts of data or data with unknown size (e.g. ReadableStream instances)
  • Added some additional info in the API documentation related to the options used when creating a zip file (see https://gildas-lormeau.github.io/zip.js/api/interfaces/ZipWriterAddDataOptions.html)
  • Fixed association between the index.js file and the index.d.ts file (fix warnings in VSCode when editing index.d.ts)
zip.js -

Published by gildas-lormeau about 2 years ago

Fixed issue where Zip64 data could be added too early when using SplitZipWriter and creating zip weighting 4GB+

zip.js -

Published by gildas-lormeau about 2 years ago

Fixed issue with native Compression streams handling in web workers

zip.js -

Published by gildas-lormeau about 2 years ago

Improved reusing of existing web workers when processing data in parallel

zip.js -

Published by gildas-lormeau about 2 years ago

Fixed uncaught error when aborting data compression/decompression and using web workers with transferable streams (see #370)

zip.js -

Published by gildas-lormeau about 2 years ago

  • Fixed potential (and rare) disk number issue when using SplitZipWriter
  • Updated API documentation