npm @zip.js/zip.js 2.1.0

latest releases: 2.25.0, 2.24.0, 2.23.0...
5 years ago
  • 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

Don't miss a new zip.js release

NewReleases is sending notifications on new releases.