PackageTrack

npm · #4577 most downloaded on npm

@zip.js/zip.js

2.8.60gildas-lormeau/zip.js

A JavaScript library to zip and unzip files in the browser, Deno and Node.js

Release timeline

353 releases since 2021
202120222023202420252026

Releases

  1. 2.7.1110 May 2023
    Release notes

    FS API:

    • Fixed returned value of ZipDirectoryEntry#addFile and ZipDirectoryEntry#addFileSystemHandle
    • Fixed error when calling ZipFileEntry.getData() in some cases
    Open source →
  2. 2.7.1010 May 2023

    Nothing published for this version

  3. 2.7.99 May 2023
    Release notes

    FS API: added ZipDirectoryEntry#addFile and ZipDirectoryEntry#addFileSystemHandle methods

    Open source →
  4. 2.7.89 May 2023

    Nothing published for this version

  5. 2.7.78 May 2023
    Release notes

    Fix temporary memory leak when compressing data, or when decompressing data and verifying data integrity (see #413). The leak was only happening during the compression/decompression of an entry in a zip file.

    Open source →
  6. 2.7.617 Apr 2023
    Release notes

    FS API:

    • added cause property on errors thrown by import* and export* methods
    • an error relative to an entry thrown when calling export* does not prevent the export of next entries
    Open source →
  7. 2.7.513 Apr 2023
    Release notes

    FS API:

    • Fixed: keep directory metadata (last modification date, comment, version made by, external file attribute) when importing zip files containing directories stored as individual entries
    Open source →
  8. 2.7.413 Apr 2023

    Nothing published for this version

  9. 2.7.313 Apr 2023
    Release notes

    Added export of entry-point files from the ./lib/ in the package.json file (see #410)

    Open source →
  10. 2.7.213 Apr 2023
    Release notes
    • Fixed missing zip64 metadata when writing directories (i.e. entries without data) in a zip file (see https://github.com/gildas-lormeau/zip.js/issues/409)
    Open source →
  11. 2.7.17 Apr 2023
    Release notes
    • Fixed breaking change (TS only) introduced in index.d.ts in versions v2.7.0 and v2.6.84
    Open source →
  12. 2.7.06 Apr 2023
    Release notes
    • Fixed errors in the index.d.ts file introduced in the previous version (v2.6.84)
    • Breaking change for TS users: Entry#getData() can return undefined asynchronously when the option checkPasswordOnly is set to true
    Open source →
  13. 2.6.845 Apr 2023
    Release notes

    Added checkPasswordOnly option when creating a ZipReader instance or calling ZipReader#getData() to test if the password is valid without extracting data.

    FS API:

    • added isPasswordProtected() and checkPassword() methods in ZipEntry and FS
    • FS#import* and ZipDirectoryEntry#import* methods return the imported entries
    • implemented FS#importZip()
    Open source →
  14. 2.6.8329 Mar 2023
    Release notes

    (Really) fixed potential uncaught inoffensive errors in web workers

    Open source →
  15. 2.6.8229 Mar 2023
    Release notes

    Fixed potential uncaught errors (which did not prevent zip.js from working as expected though)

    Open source →
  16. 2.6.8122 Mar 2023
    Release notes

    File system API (FS):

    • import... methods keep the metadata (externalFileAttribute, versionMadeBy, comment, lastModDate) of the imported entries.
    • add... methods accept a new optional options argument to pass the options related to the added entry
    Open source →
  17. 2.6.8022 Mar 2023

    Nothing published for this version

  18. 2.6.7915 Mar 2023
    Release notes

    File system API (FS):

    • if an error is thrown when exporting a folder to a zip file, the error object will contain a property entryId which can be used to identify which entry triggered the error
    Open source →
  19. 2.6.788 Mar 2023
    Release notes

    Filesytem API (FS):

    • Added a property readerOptions passed to the Reader instances when exporting a zip file
    • Made ZipEntry#clone parameter optional
    Open source →
  20. 2.6.778 Mar 2023

    Nothing published for this version

  21. 2.6.768 Mar 2023

    Nothing published for this version

  22. 2.6.7524 Feb 2023
    Release notes

    Added deepClone parameter to ZipEntry#clone()

    Open source →
  23. 2.6.7424 Feb 2023

    Nothing published for this version

  24. 2.6.7324 Feb 2023

    Nothing published for this version

  25. 2.6.7224 Feb 2023

    Nothing published for this version

  26. 2.6.7124 Feb 2023

    Nothing published for this version

  27. 2.6.7024 Feb 2023

    Nothing published for this version

  28. 2.6.6921 Feb 2023
    Release notes

    Added ZipEntry#clone() method

    Open source →
  29. 2.6.6821 Feb 2023
    Release notes

    Fixed: call Reader#init after async operations to prevent potential race condition leading to exceptions being thrown

    Open source →
  30. 2.6.6720 Feb 2023
    Release notes

    Added ZipEntry#rename method

    Open source →
  31. 2.6.6620 Feb 2023
    Release notes

    Fixed uncaught exceptions when writing a zip file with the option buferredWrite set to true and aborting the process

    Open source →
  32. 2.6.6515 Feb 2023
    Release notes

    Added .npmignore file to publish only necessary files on NPM

    Open source →
  33. 2.6.6415 Feb 2023

    Nothing published for this version

  34. 2.6.638 Feb 2023
    Release notes

    What's Changed

    • package.json improvements by @Hexagon in https://github.com/gildas-lormeau/zip.js/pull/397

    New Contributors

    • @Hexagon made their first contribution in https://github.com/gildas-lormeau/zip.js/pull/397

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

    Open source →
  35. 2.6.6214 Jan 2023
    Release notes

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

    Open source →
  36. 2.6.6116 Dec 2022
    Release notes
    • 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
    Open source →
  37. 2.6.6028 Nov 2022

    Nothing published for this version

  38. 2.6.5928 Nov 2022
    Release notes

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

    Open source →
  39. 2.6.5827 Nov 2022

    Nothing published for this version

  40. 2.6.5724 Nov 2022
    Release notes

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

    Open source →
  41. 2.6.5622 Nov 2022
    Release notes
    Open source →
  42. 2.6.5522 Nov 2022

    Nothing published for this version

  43. 2.6.5413 Nov 2022
    Release notes
    • 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
    Open source →
  44. 2.6.5313 Nov 2022

    Nothing published for this version

  45. 2.6.521 Nov 2022
    Release notes
    • 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)
    Open source →
  46. 2.6.5122 Oct 2022
    Release notes

    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)

    Open source →
  47. 2.6.5020 Oct 2022
    Release notes
    • Added the optional maxWriter property on Writer instances in order to write split data without using SplitDataWriter or to use different values for each generated Writer instances (see test here https://github.com/gildas-lormeau/zip.js/blob/master/tests/all/test-split-zip.js)
    • Added links in comments from index.d.ts to improve the navigation in the API documentation
    Open source →
  48. 2.6.4920 Oct 2022

    Nothing published for this version

  49. 2.6.4817 Oct 2022
    Release notes

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

    Open source →
  50. 2.6.4716 Oct 2022
    Release notes
    • 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.
    Open source →
  51. 2.6.4614 Oct 2022
    Release notes
    • 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()
    Open source →
  52. 2.6.4514 Oct 2022

    Nothing published for this version

  53. 2.6.4414 Oct 2022

    Nothing published for this version

  54. 2.6.4311 Oct 2022
    Release notes
    • 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)
    Open source →
  55. 2.6.4211 Oct 2022

    Nothing published for this version

  56. 2.6.417 Oct 2022
    Release notes

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

    Open source →
  57. 2.6.406 Oct 2022
    Release notes

    Fixed issue with native Compression streams handling in web workers

    Open source →
  58. 2.6.386 Oct 2022

    Nothing published for this version

  59. 2.6.375 Oct 2022
    Release notes

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

    Open source →
  60. 2.6.365 Oct 2022
    Release notes
    • Fixed potential (and rare) disk number issue when using SplitZipWriter
    • Updated API documentation
    Open source →