Skip to content

Releases: Richienb/sha1-file

v3.0.0

23 Oct 03:31
a2ea4d5

Choose a tag to compare

  • Require Node.js 12.20 and move to ESM e5a72d4

v2.0.1...v3.0.0

v2.0.1

23 Oct 02:30
45e1f26

Choose a tag to compare

2.0.0...v2.0.1

v2.0.0

05 Apr 11:33
c72b7d6

Choose a tag to compare

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.