@digitalbazaar/eddsa-rdfc-2022-cryptosuite 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ TBD
30
30
 
31
31
  ## Install
32
32
 
33
- - Browsers and Node.js 16+ are supported.
33
+ - Browsers and Node.js 18+ are supported.
34
34
 
35
35
  To install from NPM:
36
36
 
package/lib/canonize.js CHANGED
@@ -13,9 +13,10 @@ export async function canonize(input, options) {
13
13
  safe: true,
14
14
  ...options
15
15
  };
16
- const opts = {...options, produceGeneralizedRdf: false};
16
+ const opts = {
17
+ rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false,
18
+ };
17
19
  delete opts.format;
18
- opts.produceGeneralizedRdf = false;
19
20
  const dataset = await jsonld.toRDF(input, opts);
20
21
  return rdfCanonize.canonize(dataset, options);
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalbazaar/eddsa-rdfc-2022-cryptosuite",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "An EdDSA-RDFC-2022 Data Integrity cryptosuite for use with jsonld-signatures.",
5
5
  "homepage": "https://github.com/digitalbazaar/eddsa-rdfc-2022-cryptosuite",
6
6
  "repository": {
@@ -15,8 +15,8 @@
15
15
  ],
16
16
  "dependencies": {
17
17
  "@digitalbazaar/ed25519-multikey": "^1.0.0",
18
- "jsonld": "^8.1.0",
19
- "rdf-canonize": "^4.0.1"
18
+ "jsonld": "^9.0.0",
19
+ "rdf-canonize": "^5.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@digitalbazaar/data-integrity": "^2.0.0",
@@ -25,7 +25,7 @@
25
25
  "@digitalbazaar/ed25519-verification-key-2018": "^4.0.0",
26
26
  "@digitalbazaar/ed25519-verification-key-2020": "^4.1.0",
27
27
  "@digitalbazaar/multikey-context": "^2.0.1",
28
- "@digitalbazaar/security-document-loader": "^2.0.0",
28
+ "@digitalbazaar/security-document-loader": "^3.0.0",
29
29
  "c8": "^7.11.3",
30
30
  "chai": "^4.3.6",
31
31
  "cross-env": "^7.0.3",
@@ -33,7 +33,7 @@
33
33
  "eslint-config-digitalbazaar": "^5.0.1",
34
34
  "eslint-plugin-jsdoc": "^46.8.2",
35
35
  "eslint-plugin-unicorn": "^49.0.0",
36
- "jsonld-signatures": "^11.2.1",
36
+ "jsonld-signatures": "^11.6.0",
37
37
  "karma": "^6.3.20",
38
38
  "karma-chai": "^0.1.0",
39
39
  "karma-chrome-launcher": "^3.1.1",