@bedrock/vc-verifier 9.0.0 → 10.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # bedrock-vc-verifier ChangeLog
2
2
 
3
+ ## 10.0.0 - 2022-05-17
4
+
5
+ ### Changed
6
+ - **BREAKING**: Use `@bedrock-service-context-store@7` to cause migration of
7
+ old EDV context documents to the new EDV attribute version.
8
+
3
9
  ## 9.0.0 - 2022-05-05
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrock/vc-verifier",
3
- "version": "9.0.0",
3
+ "version": "10.0.0",
4
4
  "type": "module",
5
5
  "description": "Bedrock VC Verifier",
6
6
  "main": "./lib/index.js",
@@ -42,7 +42,7 @@
42
42
  "@bedrock/mongodb": "^10.0.0",
43
43
  "@bedrock/security-context": "^7.0.0",
44
44
  "@bedrock/service-agent": "^5.0.0",
45
- "@bedrock/service-context-store": "^6.0.0",
45
+ "@bedrock/service-context-store": "^7.0.0",
46
46
  "@bedrock/service-core": "^5.0.0",
47
47
  "@bedrock/vc-status-list-context": "^4.0.0",
48
48
  "@bedrock/vc-revocation-list-context": "^3.0.0",
@@ -17,6 +17,8 @@ const {ZcapClient} = require('@digitalbazaar/ezcap');
17
17
  const edvBaseUrl = `${mockData.baseUrl}/edvs`;
18
18
  const kmsBaseUrl = `${mockData.baseUrl}/kms`;
19
19
 
20
+ const FIVE_MINUTES = 1000 * 60 * 5;
21
+
20
22
  export async function createMeter({capabilityAgent, serviceType} = {}) {
21
23
  // create signer using the application's capability invocation key
22
24
  const {keys: {capabilityInvocationKey}} = getAppIdentity();
@@ -204,7 +206,7 @@ export async function delegate({
204
206
  }) {
205
207
  const zcapClient = createZcapClient({capabilityAgent: delegator});
206
208
  expires = expires || (capability && capability.expires) ||
207
- new Date(Date.now() + 5000).toISOString().slice(0, -5) + 'Z';
209
+ new Date(Date.now() + FIVE_MINUTES).toISOString().slice(0, -5) + 'Z';
208
210
  return zcapClient.delegate({
209
211
  capability, controller, expires, invocationTarget, allowedActions
210
212
  });
package/test/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "@bedrock/security-context": "^7.0.0",
37
37
  "@bedrock/server": "^5.0.0",
38
38
  "@bedrock/service-agent": "^5.0.0",
39
- "@bedrock/service-context-store": "^6.0.0",
39
+ "@bedrock/service-context-store": "^7.0.0",
40
40
  "@bedrock/service-core": "5.0.0",
41
41
  "@bedrock/ssm-mongodb": "^9.0.0",
42
42
  "@bedrock/test": "^8.0.0",