npm @zip.js/zip.js 2.8.48

latest releases: 2.25.0, 2.24.0, 2.23.0...
3 months ago

Bug fixes

  • Fixed reading and writing data when the global stream classes are polyfilled, e.g. with web-streams-polyfill on Firefox 79. Reading a zip file from a stream, Entry#arrayBuffer(), createBlobTempStream() and the filesystem API could fail or hang because zip.js consumed streams internally with the native Response constructor or ReadableStream#pipeTo(), which do not accept polyfilled streams. With the polyfill loaded, the whole test suite now passes in an environment without TransformStream. Thanks to @danny0838 for running the test suite on older browsers (#669)
  • Fixed the generation of temporary file names in createOPFSTempStream() and createSyncAccessHandleTempStream() when crypto.randomUUID is unavailable, e.g. in Chrome 67 to 91 or Safari 14.1 to 15.3

Other changes

  • Browser tests requiring a feature the browser does not support, e.g. CompressionStream or OPFS, are now reported as skipped instead of failing, which makes the test results meaningful on older browsers
  • New npm run serve-tests script to run the tests manually in a browser, and a new README documenting how to run and write tests

Full Changelog: v2.8.47...v2.8.48

Don't miss a new zip.js release

NewReleases is sending notifications on new releases.