Skip to content

Conversation

jhermsmeier
Copy link
Contributor

This changes the .digest() API to behave the same way as Node's crypto.Hash streams, to enable use as a drop-in without having to write additional code handling the digest of this library.

Changes:

  • Add encoding argument to .digest(), to mirror node's crypto.Hash API

Breaking change:

  • .digest() now returns a Buffer by default, instead of a Number

Changes:
- Add `encoding` argument to `.digest()`, to mirror node's `crypto.Hash` API

Breaking change:
- `.digest()` now returns a `Buffer` by default, instead of a `Number`
@ctalkington ctalkington merged commit ac5d412 into archiverjs:master Feb 13, 2017
@ctalkington
Copy link
Member

pushed as 2.0.0

@jhermsmeier jhermsmeier deleted the node-core-api branch February 14, 2017 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants