v2.1.0
·
2791 commits
to master
since this release
- Breaking change
The path of the scripts after the first one in workerScripts will be be resolved against the URL of the first script instead
of the base URI of the page. For example with the version 2.0.x, if you had in your code something similar to this:
zip.configure({
workerScripts: {
inflate: ["./lib/z-worker-pako.js", "./lib/pako_inflate.min.js"]
}
});
You must replace it with:
zip.configure({
workerScripts: {
inflate: ["./lib/z-worker-pako.js", "./pako_inflate.min.js"] // pako_inflate.min.js is in the same folder than z-worker-pako.js
}
});
- Fix a regression introduced in the version 2.0.13 when decoding UTF-8 filenames/comments found in the corresponding Extra Field
- Add
ZipFileEntry#replaceBlobandZipFileEntry#replaceTextmethods in the FileSystem API ZipWriter#addreturns a Promise with anEntryobject as resolved value instead ofundefined