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.5.04 Jul 2022

    Nothing published for this version

  2. 2.4.2630 Jun 2022
    Release notes

    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)

    Open source →
  3. 2.4.2529 Jun 2022
    Release notes
    • Fix issue when reading empty data with ReadableStreamReader
    • Fix useless generic for ReadableStreamReader in index.d.ts
    Open source →
  4. 2.4.2429 Jun 2022
    Release notes

    Fix syntax error in index.d.ts

    Open source →
  5. 2.4.2329 Jun 2022
    Release notes
    • 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.

    Open source →
  6. 2.4.2229 Jun 2022

    Nothing published for this version

  7. 2.4.2128 Jun 2022
    Release notes

    Improve type definitions of Reader and Writer classes

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

    Open source →
  8. 2.4.2022 Jun 2022
    Release notes
    • Fix errors in the index.d.ts file
    • Lint code with deno-lint
    Open source →
  9. 2.4.1919 Jun 2022
    Release notes

    Fix missing interface in index.d.ts

    Open source →
  10. 2.4.1818 Jun 2022

    Nothing published for this version

  11. 2.4.1717 Jun 2022
    Release notes

    Fix syntax error in index.d.ts file

    Open source →
  12. 2.4.159 Jun 2022
    Release notes

    What's Changed

    • Bump minimist from 1.2.5 to 1.2.6 by @dependabot in https://github.com/gildas-lormeau/zip.js/pull/331
    • Fix index.d.ts
    Open source →
  13. 2.4.148 Jun 2022
    Release notes
    • Update files in the dist folder
    Open source →
  14. 2.4.138 Jun 2022
    Release notes

    What's Changed

    • add ZipReader#getEntriesGenerator method to iterate asynchronously on entries
    • add package-lock.json file

    New Contributors

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

    Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.4.12...v2.4.13

    Open source →
  15. 2.4.1216 May 2022
    Release notes

    Expose mimeTypes from /lib/core/util/mime-type.js

    Open source →
  16. 2.4.119 May 2022
    Release notes

    What's Changed

    • Export class types instead of interfaces by @sebastjon in https://github.com/gildas-lormeau/zip.js/pull/325

    New Contributors

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

    Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.4.10...v2.4.11

    Open source →
  17. 2.4.1011 Apr 2022
    Release notes
    • Improve RAM usage when writing large Blob objects with BlobWriter (see https://github.com/gildas-lormeau/zip.js/commit/9b56c151f5213d00490bc2a09c6bf74f955b19aa which improves https://github.com/gildas-lormeau/zip.js/commit/dd2db6bf241f6448c1435704ef2b66630b6cd26c)
    Open source →
  18. 2.4.931 Mar 2022
    Release notes

    Add support of environments without the Web Cryptography API (e.g. Node, IE11, insecure contexts)

    Open source →
  19. 2.4.831 Mar 2022

    Nothing published for this version

  20. 2.4.717 Mar 2022
    Release notes

    Fix zip64 support in built files from the dist folder (regression was introduced in v2.4.3)

    Open source →
  21. 2.4.69 Mar 2022
    Release notes

    Fix an issue where zip.js could get stuck on compressed data containing extra bytes (see #311)

    Open source →
  22. 2.4.524 Feb 2022
    Release notes
    • add WritableStreamWriter to write data into a WritableStream<Uint8Array> object (not documented yet, feedback is welcome)
    • remove the need to import asynchronously zip.js in Node.js
    Open source →
  23. 2.4.412 Feb 2022
    Release notes
    • Fix issue when calling zip.terminateWorkers() after aborting zip/unzip operation using web workers
    • Use Deno test suite runner to run unit tests
    Open source →
  24. 2.4.35 Feb 2022
    Release notes
    • Optimize size (~ 9% smaller) of minified code (i.e. dist/*.min.js) and web worker code (i.e. lib/z-worker-inline.js)
    • Update development dependencies
    Open source →
  25. 2.4.228 Jan 2022
    Release notes
    • Fix error when opening empty zip files (see https://github.com/gildas-lormeau/zip.js/issues/300)
    • Fix corrupt zips for certain inputs (see https://github.com/gildas-lormeau/zip.js/pull/303 and https://github.com/gildas-lormeau/zip.js/pull/302)
    Open source →
  26. 2.4.125 Jan 2022
    Release notes
    • Move reference to meta.import.url into lib/zip-fs.js. This change might break custom build scripts which would not expect this.
    Open source →
  27. 2.4.024 Jan 2022
    Release notes
    • Move reference to meta.import.url into the index file (it was previously in lib/core/codecs/codec-pool-worker.js), see https://github.com/gildas-lormeau/zip.js/discussions/299 for more information. This change might break build scripts which do not expect this.
    • Update copyright date in the license
    Open source →
  28. 2.3.2420 Jan 2022
    Release notes
    • Add built files for ES5 browsers, see files suffixed with -es5 in the dist folder
    Open source →
  29. 2.3.2327 Dec 2021
    Release notes
    • Fix TypeScript definition for TextWriter#getData (see https://github.com/gildas-lormeau/zip.js/pull/293)
    Open source →
  30. 2.3.2222 Dec 2021
    Release notes
    • Fixed typescript definition file (see https://github.com/gildas-lormeau/zip.js/pull/292 and https://github.com/gildas-lormeau/zip.js/commit/3bd804a72c0bef4982dd43de6e78c7f2f4cd2804)
    Open source →
  31. 2.3.2121 Dec 2021
    Release notes
    • add support of "*" for the content size in the Content-Range header
    Open source →
  32. 2.3.2021 Dec 2021
    Release notes

    Refactored HttpRangeReader/HttpReader:

    • use a GET request instead of a HEAD request to get the size of a zip file from the Content-Range response header when retrieving it with HttpRangeReader or HttpReader and the option useRangeHeader or forceRangeRequests set to true. However, a HEAD request will still be sent if the response to the GET request does not include the size of the content in the Content-Range header or if this header is not present (thanks @bennbollay, see https://github.com/gildas-lormeau/zip.js/pull/291 for more info).
    • add the support of the headers option when using HttpRangeReader or HttpReader with the option useXHR set to true (works like the fetch API).
    Open source →
  33. 2.3.1912 Nov 2021
    Release notes
    • use FileReader only as fallback to make the zip.js compatible with Node.js (see example)
    Open source →
  34. 2.3.1814 Oct 2021
    Release notes

    Fix definitions of classes used to define options objects

    Open source →
  35. 2.3.1721 Sept 2021
    Release notes
    • Add dataDescriptorSignature option when writing zip files (true by default)
    Open source →
  36. 2.3.1618 Sept 2021
    Release notes
    • Improve performance of BlobWriter with large files
    Open source →
  37. 2.3.1511 Sept 2021
    Release notes
    • Improve the reading of the End Of Central Directory (see #272)
    Open source →
  38. 2.3.149 Sept 2021
    Release notes

    Fix range requests when the option useXHR is set to true (see #269)

    Open source →
  39. 2.3.139 Sept 2021
    Release notes

    Fix "Range" HTTP header name (cf #269)

    Open source →
  40. 2.3.128 Sept 2021
    Release notes

    Fix issues when building zip.js with angular-cli 12.2.x (see #267) and create-react-app (see #262)

    Open source →
  41. 2.3.1131 Aug 2021

    Nothing published for this version

  42. 2.3.1030 Aug 2021
    Release notes

    Add support of deno (i.e. module) Workers

    Open source →
  43. 2.3.930 Aug 2021
    Release notes

    Remove usage of Array#flatto ensure compatibility with Chrome older than version 69

    Open source →
  44. 2.3.822 Jul 2021
    Release notes

    See https://github.com/gildas-lormeau/zip.js/pull/266

    Open source →
  45. 2.3.724 Jun 2021
    Release notes
    • use BigInt function to create big integers (fix #254)
    Open source →
  46. 2.3.622 Jun 2021

    Nothing published for this version

  47. 2.3.521 Jun 2021
    Release notes

    Fix: make HttpReader (and HttpRangeReader) options parameter optional in index.d.ts (see https://github.com/gildas-lormeau/zip.js/pull/255)

    Open source →
  48. 2.3.413 Jun 2021
    Release notes
    • Add options versionMadeBy, msDosCompatible, internalFileAttribute, externalFileAttribute options when creating a ZipWriter object or calling ZipWriter#add
    Open source →
  49. 2.3.313 Jun 2021
    Release notes
    • Add the option extendedTimestamp (true by default) when creating a ZipWriter object or when calling ZipWriter#add.
    • Expose versionMadeBy, msDosCompatible, internalFileAttribute, externalFileAttribute in Entry (valued when reading a zip file).
    Open source →
  50. 2.3.27 Jun 2021
    Release notes
    • ZipWriter: add support of NTFS extra field
    Open source →
  51. 2.3.16 Jun 2021
    Release notes
    • fix issue when reading/writing the creation date in the extended timestamp extra field
    Open source →
  52. 2.3.06 Jun 2021
    Release notes
    • full support of extended timestamp extra field in ZipWriter and ZipReader
    • removed error ERR_INVALID_DATE (invalid last modification date will be replaced with a valid one)
    Open source →
  53. 2.2.456 Jun 2021
    Release notes
    • fix extended timestamp value when writing zip files
    Open source →
  54. 2.2.442 Jun 2021
    Release notes

    ZipWriter:

    • add basic support of the extended timestamp extra field (to store more precisely the last modification date)
    • fix custom implementation of extra field injection
    Open source →
  55. 2.2.431 Jun 2021
    Release notes

    Fix issue when reading extended timestamp extra field data (cf. https://github.com/gildas-lormeau/zip.js/commit/d2c41945d0ea9347f6db35cb12ac0f9ec839ff2b)

    Open source →
  56. 2.2.421 Jun 2021
    Release notes
    • Fix issue when reading extended timestamp extra field data (cf. https://github.com/gildas-lormeau/zip.js/commit/ee943343d65df4d5f24199797734c93925b2f7b6)
    Open source →
  57. 2.2.411 Jun 2021
    Release notes

    Improve support of extended timestamp extra field (cf. https://github.com/gildas-lormeau/zip.js/commit/15cb5e4473d973d10ede5daaea8eed756a2ebcde)

    Open source →
  58. 2.2.401 Jun 2021
    Release notes

    bug fixes and new feature in ZipReader:

    • fix Entry#lastModDate value (cf. https://github.com/gildas-lormeau/zip.js/commit/811aa0c032ea62c7e9f73088d0581661d3e40570)
    • fix checkSignature option (cf. https://github.com/gildas-lormeau/zip.js/commit/fbf810753808ece7a40ea3da5495362dee072b38)
    • add support of NTFS and extended timestamp extra fields (cf. https://github.com/gildas-lormeau/zip.js/commit/3281aa6fc4186a284dcaff201b84536c7ceb3f0f)
    Open source →
  59. 2.2.3930 May 2021
    Release notes

    Improved handling of zip64 related errors when calling ZipWriter#add and ZipWriter#close with the zip64 option explicitly set to false

    Open source →
  60. 2.2.3824 May 2021
    Release notes
    • Fix regression: ZipWriter#close returns now a Promise with zip data as resolved value
    Open source →