Skip to content

v2.0.0

Compare
Choose a tag to compare
@pbcornell pbcornell released this 31 Mar 17:48
· 9 commits to master since this release
6d29a90

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's dom.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');
  • 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() to cryptoHasherProvider().

Associated milestone: M2

Full list of changes: v1.0.3...v2.0.0