diff --git a/CHANGELOG.md b/CHANGELOG.md index eb61315..9d3648a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # @digitalbazaar/eddsa-rdfc-2022-cryptosuite Changelog +## 1.2.0 - 2024-11-xx + +### Added +- Add support for `@direction`. + ## 1.1.0 - 2024-08-01 ### Changed diff --git a/lib/canonize.js b/lib/canonize.js index 26b8937..659e87d 100644 --- a/lib/canonize.js +++ b/lib/canonize.js @@ -13,7 +13,9 @@ export async function canonize(input, options) { safe: true, ...options }; - const opts = {...options, produceGeneralizedRdf: false}; + const opts = { + ...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype' + }; delete opts.format; opts.produceGeneralizedRdf = false; const dataset = await jsonld.toRDF(input, opts);