Skip to content

v2.0.0

Choose a tag to compare

@Richienb Richienb released this 05 Apr 11:33
· 6 commits to master since this release
c72b7d6

Breaking

  • Support for callbacks has been removed in favour of promises.

Replacement:

-sha1File("file.txt", (error, hash) => {...})
+sha1File("file.txt").then(hash => {...}).catch(error => {...})
  • Synchronous functionality has been moved to a different function.

Replacement:

-sha1File("file.txt")
+sha1File.sync("file.txt")
  • Node.js 10 or later is now required.