Skip to content

v2.1.0

Choose a tag to compare

@gildas-lormeau gildas-lormeau released this 23 Jan 22:38
· 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#replaceBlob and ZipFileEntry#replaceText methods in the FileSystem API
  • ZipWriter#add returns a Promise with an Entry object as resolved value instead of undefined