Releases: amazon-ion/ion-hash-js
Releases · amazon-ion/ion-hash-js
v2.1.0
What's Changed
- Bumps version to 2.1.0-SNAPSHOT by @pbcornell in #56
- Adds missing Reader method impls in _HashReaderImpl by @popematt in #57
- Migrates CI build from Travis to Github Actions by @popematt in #58
- Adds CodeQL Analysis by @popematt in #59
- Update links to use new org name: amzn->amazon-ion. by @linlin-s in #60
- Bumps ion-js peer- and dev-dependency to 5.2.0. by @linlin-s in #62
- Bumps version to 2.1.0 by @linlin-s in #64
New Contributors
Full Changelog: v2.0.0...v2.1.0
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