v2.8.49
·
276 commits
to master
since this release
What's Changed in v2.8.49
Compatibility improvements
- The embedded JavaScript deflate engine is now compiled with an ES2019 target. It no longer contains nullish coalescing operators, which require Chromium 80. As a result, the WebAssembly and "native" builds now work down to Chromium 76 instead of 80 (see #669). The compatibility table on https://gildas-lormeau.github.io/zip.js/ has been updated accordingly
- Fixed a regression introduced in v2.8.18: when the worker script passed via
workerURIcould not be started as a module worker, zip.js fell back silently to inline workers instead of retrying with a classic worker. Browsers without module worker support, e.g. Chromium 76 to 79, now load external worker scripts again - Codecs registered with
registerCodec()and acodecURInow run inline transparently when the web worker cannot import the codec module, e.g. on browsers which do not supportimport()in workers like Chromium 76 to 79 and Firefox 102 to 113. SettinguseWebWorkerstofalseis no longer needed on these browsers
These changes were verified by running the test suite on real Chromium 76, 79 and 80 builds. Known limitation on Chromium 76 to 79: aborting operations in progress has no effect because these versions ignore the signal option of pipeTo(). The data read or written remains correct.
Full Changelog: v2.8.48...v2.8.49