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
20212026

Releases

  1. 2.6.355 Oct 2022

    Nothing published for this version

  2. 2.6.344 Oct 2022
    Release notes

    Added SplitZipWriter class which can be used in order to create split zip files with ZipWriter (cf. test here)

    Open source →
  3. 2.6.3327 Sept 2022
    Release notes
    • Fixed potential issue related to zip64 format auto-detection when adding concurrently ReadableStream and Reader instances simultaneously in a zip file weighting more than 4GB
    • Fixed unnecessary data retrieval (approx. 30 bytes) when extracting a zip entry
    • Added rollup-es5.config.js and rollup-es5.config.dev.js scripts in order to build zip.js for older engines (see instructions in the header comment)
    Open source →
  4. 2.6.3224 Sept 2022
    Release notes

    Improved implementation of the fix from the previous version (2.6.30) for the potential race data condition in Firefox when reading zip files

    Open source →
  5. 2.6.3124 Sept 2022

    Nothing published for this version

  6. 2.6.3023 Sept 2022
    Release notes
    • Added support of split zip files when using ZipReader via the SplitZipReader class (see example here)
    • Fixed potential data race issue in Firefox when unzipping files with the option transferStreams set to true (introduced in version 2.6.24) that could lead to truncated files
    • Make sure build scripts can run in environments where globalThis is undefined (see https://github.com/gildas-lormeau/zip.js/issues/254#issuecomment-1254145896)
    Open source →
  7. 2.6.2919 Sept 2022
    Release notes

    Added support of CommonJS modules (see "Installation" here: https://gildas-lormeau.github.io/zip.js/)

    Open source →
  8. 2.6.2817 Sept 2022
    Release notes
    • Added new options when calling configure in order to pass custom CompressionStream and DecompressionStream implementations
    • Reduced the size of built files (~ 2%)
    • Fixed issue when getting navigator.hardwareConcurrency on Deno Deploy
    Open source →
  9. 2.6.2613 Sept 2022

    Nothing published for this version

  10. 2.6.2510 Sept 2022
    Release notes

    Fixed TypeScript compilation issue due to a syntax error in the index.d.ts file (see https://github.com/gildas-lormeau/zip.js/pull/366)

    Open source →
  11. 2.6.248 Sept 2022
    Release notes

    Added a new option when creating a ZipReader instance or when calling ZipReader#getData(). This option is named transferStreams and is set to true by default.

    • When set to false, zip.js should work as before. zip.js will read/write chunks of data when decompressing data by exchanging messages between the main thread and web workers.
    • When set to true, zip.js will try to transfer the ReadableStream and the WritableStream instances used when decompressing data to the web workers. Thus, data is transferred natively between the main thread and the web workers. If the environment does not allow streams to be transferred to web workers, zip.js automatically falls back to the implementation corresponding to transferStreams set to false.

    Note that transferable streams are not supported in Deno currently.

    Open source →
  12. 2.6.233 Sept 2022
    Release notes
    • Fixed BlobWriter mime type not present (see #360)
    Open source →
  13. 2.6.223 Sept 2022

    Nothing published for this version

  14. 2.6.2129 Aug 2022
    Release notes

    Improved automatic detection of entries that should use Zip64 data when compressing entries in parallel (i.e. if the zip file is going to weight more than 4GB)

    Open source →
  15. 2.6.2029 Aug 2022
    Release notes
    • Fixed back-pressure implementation when using web workers, this bug could lead to incomplete files when decompressing files (see https://github.com/gildas-lormeau/zip.js/discussions/359)
    Open source →
  16. 2.6.1927 Aug 2022
    Release notes
    • Added the missing method FS#importUint8Array
    • Fixed a bug where zip.js would decide to use a buffer to write compressed data sequentially whereas it's not needed
    • Improved implementation of compression abort
    Open source →
  17. 2.6.1821 Aug 2022
    Release notes

    Improve the implementation of BlobWriter by using a TransformStream instance under the hood

    Open source →
  18. 2.6.1721 Aug 2022

    Nothing published for this version

  19. 2.6.1619 Aug 2022
    Release notes

    What's Changed

    • Fix ZipWriter.add returning unresolved promises by @0f-0b in https://github.com/gildas-lormeau/zip.js/pull/355

    Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.6.15...v2.6.16

    Open source →
  20. 2.6.1517 Aug 2022
    Release notes
    • Fixed potential data corruption issue when aborting the compression of (unbuffered) data in a zip file
    • Added basic example (i.e. not based on Streams) in the README file
    • Updated and fixed API doc on deno.land
    Open source →
  21. 2.6.1414 Aug 2022
    Release notes
    • Improve the performance of Uint8ArrayWriter when calling Entry#getData()
    Open source →
  22. 2.6.1314 Aug 2022
    Release notes

    Make sure file names encoded in CP437 in zip files are properly decoded when the source code of zip.js is not parsed in UTF-8 (see #352)

    Open source →
  23. 2.6.129 Aug 2022
    Release notes
    • No changes in the code of the library
    • Moved test launcher and build scripts in the package.json file
    • Improved UX of the test runner for Node.js
    Open source →
  24. 2.6.117 Aug 2022
    Release notes
    • Fixed a bug where adding 2 entries with the same filename concurrently with ZipWriter#add() did not necessarily trigger an exception (the first entry was overridden by the second one).
    • Added some examples in the API documentation.
    Open source →
  25. 2.6.106 Aug 2022
    Release notes
    • Changed the minimum required version of Node.js from 18.0.0 to 16.5.0
    Open source →
  26. 2.6.96 Aug 2022
    Release notes
    • Added feature test of Worker constructor and automatic fallback on the main thread if not present, i.e. you don't need to set userWebWorkers to false anymore.
    • Added simple test suite for Node.js, see https://github.com/gildas-lormeau/zip.js/blob/master/tests/node-runner.js (tested on v18.4.0)
    • Made crypto API optional when using ZipCrypto to decrypt files (fix)
    Open source →
  27. 2.6.82 Aug 2022
    Release notes
    • Fixed encoding and decoding of Entry#internalFileAttribute
    • Added TSDoc documentation in the index.d.ts file and fixed minor issues
    • Added API doc generated using TypeDoc in the GitHub Page of the project: https://gildas-lormeau.github.io/zip.js/api/index.html
    Open source →
  28. 2.6.729 Jul 2022
    Release notes

    Fixed 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(...), ...])).

    Open source →
  29. 2.6.628 Jul 2022
    Release notes

    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)

    Open source →
  30. 2.6.526 Jul 2022
    Release notes

    Fix option checkSignature when unzipping data with web workers

    Open source →
  31. 2.6.423 Jul 2022
    Release notes

    Improved the readability of the example in README.MD on NPM

    Open source →
  32. 2.6.322 Jul 2022
    Release notes

    What's Changed

    • Fix level and useCompressionStream being ignored by @0f-0b in https://github.com/gildas-lormeau/zip.js/pull/345

    New Contributors

    • @0f-0b made their first contribution 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

    Open source →
  33. 2.6.221 Jul 2022
    Release notes
    • Add support of 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).
    Open source →
  34. 2.6.120 Jul 2022
    Release notes
    • Fix security issue in terser (used to build minified files)
    • Fix signatures of getData methods in index.d.ts
    Open source →
  35. 2.6.020 Jul 2022
    Release notes
    • Removes obsolete features:
      • 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.
    • The README.MD shows a complete example of code using zip.js
    Open source →
  36. 2.5.2619 Jul 2022
    Release notes

    Fix handling of encoding in TextWriter (the parameter was ignored)

    Open source →
  37. 2.5.2516 Jul 2022
    Release notes

    Added handling of HTTP 416 "Range Not Satisfiable" errors when doing range requests

    Open source →
  38. 2.5.2416 Jul 2022

    Nothing published for this version

  39. 2.5.2315 Jul 2022
    Release notes

    Fixed a bug where aborting the addition of an entry could result in a corrupted zip file under some conditions.

    Open source →
  40. 2.5.2215 Jul 2022

    Nothing published for this version

  41. 2.5.2115 Jul 2022
    Release notes
    • Fixed handling of global comment when writing zip files
    • Added support of global comment when reading zip files (cf. ZipReader#comment)
    Open source →
  42. 2.5.2015 Jul 2022
    Release notes
    • Fixed potential race condition bug when writing multiple entries in parallel in a zip file (reproducible in v2.5.19 with cli-deno/mc-zip.js)
    • Fixed bug when password was provided but the entry was not encrypted
    Open source →
  43. 2.5.1913 Jul 2022
    Release notes
    • Improved support of TransformStream:
      • Added support of plain objects containing a writable property (WritableStream) as an alternative to Writer instances
      • Added support of plain objects containing a readable property (ReadableStream) when calling ZipWriter#add
      • See https://github.com/gildas-lormeau/zip.js/blob/master/cli-deno/mc-zip.js for an example of code using these features
    • Improved the test runner for browsers by limiting the number of simultaneous tests
    Open source →
  44. 2.5.1813 Jul 2022

    Nothing published for this version

  45. 2.5.1712 Jul 2022
    Release notes
    • Fixed "phantom" error when aborting compression/decompression
    Open source →
  46. 2.5.1612 Jul 2022

    Nothing published for this version

  47. 2.5.1512 Jul 2022

    Nothing published for this version

  48. 2.5.1411 Jul 2022
    Release notes
    • removed now useless dependencies to FileReader
    • added preventClose option when creating WritableStreamWriter instances
    • made parameters of WritableStreamWriter and ReadableStreamReader optional
    Open source →
  49. 2.5.1311 Jul 2022
    Release notes
    • Make sure chunkSize is taken into account when sending data to web workers
    Open source →
  50. 2.5.1211 Jul 2022
    Release notes
    • 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
    Open source →
  51. 2.5.1110 Jul 2022
    Release notes
    • Minor performance improvement when using web workers
    Open source →
  52. 2.5.1010 Jul 2022
    Release notes
    • 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
    Open source →
  53. 2.5.910 Jul 2022
    Release notes
    • Fixed close issue when writing into WritableStream instances
    Open source →
  54. 2.5.810 Jul 2022

    Nothing published for this version

  55. 2.5.79 Jul 2022
    Release notes
    • 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
    Open source →
  56. 2.5.59 Jul 2022
    Release notes
    • 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%)
    Open source →
  57. 2.5.46 Jul 2022
    Release notes

    What's Changed

    • Fixed: Make useCompressionStream optional by @tim-we in https://github.com/gildas-lormeau/zip.js/pull/339

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

    Open source →
  58. 2.5.35 Jul 2022
    Release notes
    • Added handling of errors when creating CompressionStream and DecompressionStream instances (e.g. in Node.js)
    • Fixed Nodes.js test
    Open source →
  59. 2.5.24 Jul 2022
    Release notes

    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).

    Open source →
  60. 2.5.14 Jul 2022

    Nothing published for this version