From 916b826e9f7217574a53898e000729f77842c416 Mon Sep 17 00:00:00 2001 From: Ganesh Annan Date: Fri, 22 Nov 2024 13:01:42 +0100 Subject: [PATCH] Add support for `@direction`. --- CHANGELOG.md | 5 +++++ lib/canonize.js | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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);