diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f5cf98..44945f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # @digitalbazaar/ecdsa-rdfc-2019-cryptosuite Changelog +## 1.2.0 - 2024-11-xx + +### Added +- Add support for `@direction`. + ## 1.1.1 - 2024-08-26 ### Fixed diff --git a/lib/canonize.js b/lib/canonize.js index 26b8937..8273ab0 100644 --- a/lib/canonize.js +++ b/lib/canonize.js @@ -13,9 +13,10 @@ export async function canonize(input, options) { safe: true, ...options }; - const opts = {...options, produceGeneralizedRdf: false}; + const opts = { + rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false, + }; delete opts.format; - opts.produceGeneralizedRdf = false; const dataset = await jsonld.toRDF(input, opts); return rdfCanonize.canonize(dataset, options); }