v2.0.0
API Changes
- Adds
digest()
, which provides a streamlined API for calculating an Ion hash of any value, including native JavaScript types as well as instances of ion-js 4.0'sdom.Value
class.- Calculate the Ion hash of a JS native value using the 'md5' hash function:
let digest = ionHash.digest([1, 2, 3], 'md5');
- Calculate the same Ion hash as above using an instance of
dom.Value
:let digest = ionHash.digest(ion.dom.load('[1, 2, 3]'), 'md5');
- Calculate the Ion hash of a JS native value using the 'md5' hash function:
- ion-js and jsbi are now declared as peer dependencies; in addition to depending on ion-hash-js, consumers are now required to declare ion-js and jsbi as dependencies.
- Renamed
cryptoIonHasherProvider()
tocryptoHasherProvider()
.
Associated milestone: M2
Full list of changes: v1.0.3...v2.0.0