From c5f9a4574edeb1d18258a399935dbc8c1259b363 Mon Sep 17 00:00:00 2001 From: Ganesh Annan Date: Fri, 22 Nov 2024 13:02:16 +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 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..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);