Skip to content

Releases: fpsqdb/zip-lib

v0.5.0

05 Nov 10:23
Compare
Choose a tag to compare

Breaking Changes

  • Rename storeSymlinkAsFile in IZipOptions to followSymlinks.
  • Drop support for node.js < 8.

Features

  • Make the Zip class reusable.
    For example, when cancel is called, you can also call archive to retry.

Others

  • Remove tslib from dependencies.

v0.4.2

01 Nov 16:28
Compare
Choose a tag to compare
  • Fix bug When canceling zip, the error returned may not be a cancel error.

v0.4.1

01 Nov 04:05
Compare
Choose a tag to compare
  • Ignore any other errors if the cancel method has been called
  • Add validation for entry name and compatibility with backslashes \\
  • Make sure to close the zip file when any errors occur
  • When overwrite is set to true, the extract target folder cannot be the root directory. For example c: or /

v0.4.0

27 Oct 06:51
Compare
Choose a tag to compare
  • Fix the bug that the options parameter of the archiveFile and archiveFolder method does not take effect.
  • Remove redundant fs.lstat function calls, should be able to increase the compression speed.
  • Required node.js >= 5.10.0

v0.3.1

16 Oct 16:19
Compare
Choose a tag to compare
  • Remove the overwrite in IZipOptions. Archive is always an overwrite operation.
  • Fix: When archiving an empty folder with metadataPath, the generated zip does not contain the metadataPath folder.
  • Fix: If the zip content is empty, the extract method will never return.

v0.3.0

14 Oct 09:38
Compare
Choose a tag to compare
  • Breaking change and new feature: The onEntry's parameter is now changed to an IEntryEvent object. The IEntryEvent provides a preventDefault method that can be used to prevent extraction of the current item. By calling this method we can control which items can be extracted.
    See Unzip and exclude specified entries for more details.

v0.2.1

12 Oct 08:18
Compare
Choose a tag to compare
  • Add compatibility support for node.js < 5.10.0

v0.2.0

12 Oct 07:19
Compare
Choose a tag to compare
  • No longer restrict node.js >= 8, now supports all node.js versions
  • target zip file is no longer deleted after cancel archive

v0.1.0

11 Oct 16:47
Compare
Choose a tag to compare

First release.