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 nativeResponseconstructor orReadableStream#pipeTo(), which do not accept polyfilled streams. With the polyfill loaded, the whole test suite now passes in an environment withoutTransformStream. Thanks to @danny0838 for running the test suite on older browsers (#669) - Fixed the generation of temporary file names in
createOPFSTempStream()andcreateSyncAccessHandleTempStream()whencrypto.randomUUIDis 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.
CompressionStreamor OPFS, are now reported as skipped instead of failing, which makes the test results meaningful on older browsers - New
npm run serve-testsscript 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