v2.0.0
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.