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 3 years ago

  • Improve performance when compressing and decompressing files
zip.js -

Published by gildas-lormeau over 3 years ago

zip.js -

Published by gildas-lormeau over 3 years ago

  • Improve memory usage when computing the signature of encrypted files
  • Fix minor potential issue when reading zip64 files
zip.js -

Published by gildas-lormeau over 3 years ago

  • Write the AES extra field in the local header each encrypted entries
  • set keepOrder to true by default to avoid generating missing zip64 entries when they are added in parallel
zip.js -

Published by gildas-lormeau over 3 years ago

Improve performance of AES encryption/decryption (thanks @xqdoo00o)

zip.js -

Published by gildas-lormeau over 3 years ago

  • Add the option signal to ZipWriter, ZipReader, ZipWriter#add and Entry#getData which allows you to abort the compression/decompression of a file (see usage examples here and here)
  • Add the option dataDescriptor to ZipWriter#add which allows you to include or not the data descriptor record (true by default). Setting it to false will automatically set the option bufferedWrite to true.
zip.js -

Published by gildas-lormeau over 3 years ago

Add support for deflate and inflate implementation of fflate, see here for more info on how to integrate it in zip.js.

zip.js -

Published by gildas-lormeau over 3 years ago

Improve performances when writing multiple (large) entries in a zip file simultaneously

zip.js -

Published by gildas-lormeau over 3 years ago

  • Add support of ZipCrypto encryption (option zipCrypto: true when creating a ZipWriter object or calling ZipWriter#add)
  • Fix issue leading to a potential invalid entry in a Zip64 file if the compressed file of the entry is larger than the original file and the total size of the zip file is > 4GB
  • Fix minor performance issue with transferable objects when using web workers
zip.js -

Published by gildas-lormeau over 3 years ago

  • Fix issue when reading Zip64 files with appended data at the end of the file and minor issue related to the detection of Zip64 files
  • Set type to module in package.json
  • Ignore errors that could be thrown by the onprogress callback passed as option
zip.js -

Published by gildas-lormeau over 3 years ago

  • Add the new option keepOrder to the constructor ZipWriter and the method ZipWriter#add in order to keep ordered the list of files when calling ZipWriter#add multiple times in parallel
  • Support reading of zip files with invalid offsets due to data added at the start of the zip file
  • Fix issue when calling ZipWriter#add with more than one custom extra field type as option
  • Update limit to locate the End Of Central Directory Record at the end of a zip file: 64 KB => 1MB
  • Fix detection of unsupported encryption methods (e.g. ZipCrypto) and add a new constant ERR_UNSUPPORTED_ENCRYPTION
  • Expose Entry#zip64 to know if a file entry is formatted in Zip64
  • Update development dependencies
zip.js -

Published by gildas-lormeau over 3 years ago

  • Add zip-no-worker-deflate.min.js and zip-no-worker-inflate.min.js in the list of built files in the /dist folder
  • Add missing methods to use Uint8Array objects in the Filesystem API
  • When adding files in a zip file, auto-detect an entry is a directory if ithe name ends with a "/"
  • Minor code improvements
zip.js -

Published by gildas-lormeau over 3 years ago

  • Fix issue when an FS instance contains imported zip content and FS#export* is called with bufferedWrite set to true
  • Minor code improvements
zip.js -

Published by gildas-lormeau over 3 years ago

  • Add new options to HttpReader and HttpRangeReader (see API doc)
  • HttpReader and HttpRangeReader now rely on fetch instead of XMLHTTPRequest by default. This behavior can be changed by setting the option useXHR to true
  • HttpReader and HttpRangeReader also accept window.fetch options (when useXHR is not set to true)
zip.js -

Published by gildas-lormeau over 3 years ago

  • Fix issue when importing the code into a service worker
zip.js -

Published by gildas-lormeau over 3 years ago

  • Fix issue with the onprogress callback where sometimes the first parameter was always returning 0
  • Replace Entry#moveTo() with FS#move(). Entry#moveTo can still be used but is deprecated.
  • Add missing ZipFileEntry#replaceData64URImethod
  • FS now implements ZipDirectoryEntry
  • Add ZipEntry#getRelativeName()
  • Add the option relativePath when calling ZipDirectoryEntry.export* methods
zip.js -

Published by gildas-lormeau over 3 years ago

  • Improve the method ZipDirectoryEntry#addFileSystemEntry added in v2.2.3: it will now return the ZipEntry like other ZipDirectoryEntry#add* functions
zip.js -

Published by gildas-lormeau over 3 years ago

  • add method ZipDirectoryEntry#addFileSystemEntry to import files or directories from the filesystem into a zip
zip.js -

Published by gildas-lormeau over 3 years ago

  • Fix type definitions for typescript
zip.js -

Published by gildas-lormeau over 3 years ago

  • Fix bug if passing a comment as parameter when calling ZipWriter#close()
  • Add support of AES-128 and AES-192 encryption (AES-192 encryption is not supported on Chrome currently)