diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d0b5cc..dc62d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # @digitalbazaar/ed25519-signature-2020 Changelog +## 3.0.1 - 2022-05-18 +- fix export of suiteContext which yielded an undefined value +in jest consumers + ## 3.0.0 - 2021-06-19 ### Fixed diff --git a/lib/Ed25519Signature2020.js b/lib/Ed25519Signature2020.js index 3eb8fb4..5b5e6d1 100644 --- a/lib/Ed25519Signature2020.js +++ b/lib/Ed25519Signature2020.js @@ -17,6 +17,10 @@ const SUITE_CONTEXT_URL_2018 = suiteContext2018.constants.CONTEXT_URL; // multibase base58-btc header const MULTIBASE_BASE58BTC_HEADER = 'z'; +export { + suiteContext2020 as suiteContext +}; + export class Ed25519Signature2020 extends LinkedDataSignature { /** * @param {object} options - Options hashmap. diff --git a/lib/main.js b/lib/main.js index 8972ef5..b5e459e 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,7 +1,4 @@ /*! * Copyright (c) 2020-2021 Digital Bazaar, Inc. All rights reserved. */ -import suiteContext from 'ed25519-signature-2020-context'; - -export {Ed25519Signature2020} from './Ed25519Signature2020.js'; -export {suiteContext}; +export {Ed25519Signature2020, suiteContext} from './Ed25519Signature2020.js';