Skip to content

Releases: amazon-ion/ion-hash-js

v2.1.0

19 Dec 17:34
cb33265
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.0.0...v2.1.0

v2.0.0

31 Mar 17:48
6d29a90
Compare
Choose a tag to compare

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

v1.0.3

07 Nov 22:51
5035c0a
Compare
Choose a tag to compare
  • Removes crypto dependency in favor of relying on Node's built-in module (#37)
  • Fixes doc link in README.md

v1.0.2

05 Nov 20:41
ba76e6b
Compare
Choose a tag to compare

Changed the npm package name back to "ion-hash-js" (#36).

v1.0.1

31 Oct 19:21
7d25af3
Compare
Choose a tag to compare

Changed the npm package name to "ion-hash" (#33).

v1.0.0

30 Oct 00:28
bd442c0
Compare
Choose a tag to compare

Initial release which provides readers and writers to compute hashes over Ion data.