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 -

Published by gildas-lormeau over 2 years ago

  • added onstart and onend event handlers options when adding/reading zip entry data
  • added a simple example of CLI tool written in Deno in /cli-deno using Streams to read and write data
zip.js -

Published by gildas-lormeau over 2 years ago

  • Minor performance improvement when using web workers
zip.js -

Published by gildas-lormeau over 2 years ago

  • Fixed regression introduced in the version 2.5.x leading to potential data corruption
  • Set the value of the option keepOrder to true (by default) to avoid issues when zipping files using Zip64
zip.js -

Published by gildas-lormeau over 2 years ago

  • Fixed close issue when writing into WritableStream instances
zip.js -

Published by gildas-lormeau over 2 years ago

  • set the value keepOrder to false by default when compressing multiple files in parallel to improve performances (note that when unzipping the file, entries will stay ordered though)
  • minor improvement related to "AbortError" errors
zip.js -

Published by gildas-lormeau over 2 years ago

  • Fixed error when aborting the decompression of a zip entry
zip.js -

Published by gildas-lormeau over 2 years ago

  • Fixed handling of useCompressionStream option which was ignored when calling zip.configure()
  • Finished the integration of web streams
  • Reduced the size of the build files (~ 3%)
zip.js - V2.5.4

Published by gildas-lormeau over 2 years ago

What's Changed

Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.5.3...V2.5.4

zip.js -

Published by gildas-lormeau over 2 years ago

  • Added handling of errors when creating CompressionStream and DecompressionStream instances (e.g. in Node.js)
  • Fixed Nodes.js test
zip.js -

Published by gildas-lormeau over 2 years ago

Warning: The TransformStream API is quite new (especially in Node.js and Firefox), update to 2.5.x if you're sure the environment you are targeting supports it (it can also be polyfilled with https://github.com/MattiasBuelens/web-streams-polyfill by including https://unpkg.com/web-streams-polyfill/dist/polyfill.min.js).

zip.js -

Published by gildas-lormeau over 2 years ago

make sure ZipWriter#close is always called after all calls to ZipWriter#add are completed (see https://github.com/gildas-lormeau/zip.js/discussions/338)

zip.js -

Published by gildas-lormeau over 2 years ago

  • Fix issue when reading empty data with ReadableStreamReader
  • Fix useless generic for ReadableStreamReader in index.d.ts
zip.js -

Published by gildas-lormeau over 2 years ago

Fix syntax error in index.d.ts

zip.js -

Published by gildas-lormeau over 2 years ago

  • Add ReadableStreamReader class to read ReadableStream instances when adding files in a zip file (i.e. when calling ZipWriter#add)
  • Set dataDescriptorSignature option to false by default (when calling ZipWriter#add) in order to produce zip files compatible with macOs Archiver
  • Fix minor issues in index.d.ts

Note that ReadableStreamReader cannot be used when reading zip files because zip.js needs to do random reads.

zip.js - v2.4.21

Published by gildas-lormeau over 2 years ago

Improve type definitions of Reader and Writer classes

Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.4.20...v2.4.21

zip.js -

Published by gildas-lormeau over 2 years ago

  • Fix errors in the index.d.ts file
  • Lint code with deno-lint
zip.js -

Published by gildas-lormeau over 2 years ago

Fix missing interface in index.d.ts

zip.js -

Published by gildas-lormeau over 2 years ago

Fix types file in Deno

zip.js -

Published by gildas-lormeau over 2 years ago

Fix syntax error in index.d.ts file

zip.js -

Published by gildas-lormeau over 2 years ago

`index.d.ts is now compatible with Deno (removed module declaration)