Skip to content

Commit 3109a33

Browse files
committed
Use release of VC 2.0 context of v2 context lib.
1 parent 2b86940 commit 3109a33

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"homepage": "https://github.com/w3c/vc-di-ecdsa-test-suite#readme",
4040
"dependencies": {
41-
"@digitalbazaar/credentials-v2-context": "github:digitalbazaar/credentials-v2-context",
41+
"@digitalbazaar/credentials-context": "^3.1.0",
4242
"@digitalbazaar/data-integrity": "^2.1.0",
4343
"@digitalbazaar/data-integrity-context": "^2.0.0",
4444
"@digitalbazaar/did-io": "^2.0.0",
@@ -55,7 +55,6 @@
5555
"base58-universal": "^2.0.0",
5656
"base64url-universal": "^2.0.0",
5757
"chai": "^4.3.7",
58-
"credentials-context": "^2.0.0",
5958
"data-integrity-test-suite-assertion": "github:w3c-ccg/data-integrity-test-suite-assertion",
6059
"jsonld-document-loader": "^2.0.0",
6160
"klona": "^2.0.6",

tests/vc-generator/contexts.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
* Copyright (c) 2022-2024 Digital Bazaar, Inc.
33
* SPDX-License-Identifier: BSD-3-Clause
44
*/
5-
import * as credentialsV2Context from '@digitalbazaar/credentials-v2-context';
6-
import credentialsCtx from 'credentials-context';
5+
import {
6+
contexts as credentialsContexts
7+
} from '@digitalbazaar/credentials-context';
78
import dataIntegrityCtx from '@digitalbazaar/data-integrity-context';
89
import didCtx from '@digitalcredentials/did-context';
910
import {klona} from 'klona';
1011
import multikeyCtx from '@digitalbazaar/multikey-context';
1112

12-
const contextMap = new Map();
13+
const contextMap = new Map(credentialsContexts);
1314

1415
// add contexts for the documentLoader
1516
contextMap.set(multikeyCtx.constants.CONTEXT_URL, multikeyCtx.CONTEXT);
@@ -22,16 +23,5 @@ contextMap.set(
2223
klona(didCtx.contexts.get(
2324
didCtx.constants.DID_CONTEXT_URL))
2425
);
25-
contextMap.set(
26-
credentialsCtx.constants.CONTEXT_URL,
27-
klona(credentialsCtx.contexts.get(
28-
credentialsCtx.constants.CONTEXT_URL))
29-
);
30-
31-
contextMap.set(
32-
credentialsV2Context.constants.CONTEXT_URL,
33-
klona(credentialsV2Context.contexts.get(
34-
credentialsV2Context.constants.CONTEXT_URL))
35-
);
3626

3727
export {contextMap};

0 commit comments

Comments
 (0)