Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Aug 3, 2024
1 parent 4ff52e8 commit f0152c0
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 72 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@
include a zcap to create status lists on such a service.
- **BREAKING**: `mandatoryPointers` for `ecdsa-sd-2023` & `bbs-2023` now default
to `['/issuer']`.
- **BREAKING**: Update peer dependencies.
- `@bedrock/[email protected]`
- `@bedrock/[email protected]`
- `@bedrock/did-context@6`
- `@bedrock/[email protected]`
- `@bedrock/multikey-context@3`
- `@bedrock/security-context@9`
- `@bedrock/[email protected]`
- `@bedrock/service-context-store@12`
- `@bedrock/service-core@10`
- `@bedrock/[email protected]`
- `@bedrock/veres-one-context@16`
- Update minor, test, and dev dependencies.

### Removed
- **BREAKING**: Remove support for obsolete `RevocationList2020`.
Expand Down
4 changes: 2 additions & 2 deletions lib/CredentialStatusIssuer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import assert from 'assert-plus';
import {CredentialStatusWriter} from './CredentialStatusWriter.js';
import {ListSource} from './ListSource.js';
import {logger} from './logger.js';
import {constants as vcConstants} from '@bedrock/credentials-context';
import {named as vcNamedContexts} from '@bedrock/credentials-context';

export class CredentialStatusIssuer {
constructor({config, documentLoader, edvClient} = {}) {
Expand Down Expand Up @@ -51,7 +51,7 @@ export class CredentialStatusIssuer {
}
} else if(type === 'BitstringStatusList') {
// ensure bitstring status context is present for v1 VCs
if(contexts.includes(vcConstants.CREDENTIALS_CONTEXT_V1_URL) &&
if(contexts.includes(vcNamedContexts.get('v1').id) &&
!contexts.includes(bslConstants.CONTEXT_URL)) {
contexts.push(bslConstants.CONTEXT_URL);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/issuer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {createDocumentLoader} from './documentLoader.js';
import {CredentialStatusIssuer} from './CredentialStatusIssuer.js';
import {CredentialStatusWriter} from './CredentialStatusWriter.js';
import {v4 as uuid} from 'uuid';
import {constants as vcConstants} from '@bedrock/credentials-context';
import {named as vcNamedContexts} from '@bedrock/credentials-context';

const {util: {BedrockError}} = bedrock;

Expand Down Expand Up @@ -79,7 +79,7 @@ export async function issue({credential, config, options = {}} = {}) {
// include issuance date in VC 1.x if not already present
const contexts = Array.isArray(verifiableCredential['@context']) ?
verifiableCredential['@context'] : [verifiableCredential['@context']];
if(contexts.includes(vcConstants.CREDENTIALS_CONTEXT_V1_URL) &&
if(contexts.includes(vcNamedContexts.get('v1').id) &&
verifiableCredential.issuanceDate === undefined) {
verifiableCredential.issuanceDate = _getISODateTime();
}
Expand Down
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,49 +31,49 @@
"homepage": "https://github.com/digitalbazaar/bedrock-vc-issuer",
"dependencies": {
"@digitalbazaar/bbs-2023-cryptosuite": "^1.2.0",
"@digitalbazaar/bitstring": "^3.0.0",
"@digitalbazaar/bitstring": "^3.1.0",
"@digitalbazaar/bls12-381-multikey": "^1.3.0",
"@digitalbazaar/data-integrity": "^2.0.0",
"@digitalbazaar/data-integrity": "^2.2.0",
"@digitalbazaar/ecdsa-2019-cryptosuite": "^2.0.0",
"@digitalbazaar/ecdsa-rdfc-2019-cryptosuite": "^1.0.1",
"@digitalbazaar/ecdsa-sd-2023-cryptosuite": "^3.0.0",
"@digitalbazaar/ecdsa-xi-2023-cryptosuite": "^1.0.0",
"@digitalbazaar/ecdsa-rdfc-2019-cryptosuite": "^1.1.0",
"@digitalbazaar/ecdsa-sd-2023-cryptosuite": "^3.2.1",
"@digitalbazaar/ecdsa-xi-2023-cryptosuite": "^1.0.1",
"@digitalbazaar/ed25519-signature-2018": "^4.0.0",
"@digitalbazaar/ed25519-signature-2020": "^5.0.0",
"@digitalbazaar/ed25519-signature-2020": "^5.4.0",
"@digitalbazaar/eddsa-2022-cryptosuite": "^1.0.0",
"@digitalbazaar/eddsa-rdfc-2022-cryptosuite": "^1.0.1",
"@digitalbazaar/eddsa-rdfc-2022-cryptosuite": "^1.1.0",
"@digitalbazaar/ezcap": "^4.1.0",
"@digitalbazaar/lru-memoize": "^3.0.0",
"@digitalbazaar/vc": "github:digitalbazaar/vc#update-vc-2.0",
"@digitalbazaar/webkms-client": "^14.1.0",
"@digitalbazaar/lru-memoize": "^3.0.2",
"@digitalbazaar/vc": "^7.0.0",
"@digitalbazaar/webkms-client": "^14.1.1",
"assert-plus": "^1.0.0",
"base64url-universal": "2.0.0",
"bnid": "^3.0.0",
"body-parser": "^1.20.0",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"klona": "^2.0.5",
"klona": "^2.0.6",
"lru-cache": "^6.0.0",
"uuid": "^9.0.1"
"uuid": "^10.0.0"
},
"peerDependencies": {
"@bedrock/app-identity": "4.0.0",
"@bedrock/core": "^6.0.1",
"@bedrock/credentials-context": "digitalbazaar/bedrock-credentials-context#update-vc-2.0",
"@bedrock/data-integrity-context": "^3.0.0",
"@bedrock/did-context": "^5.0.0",
"@bedrock/core": "^6.1.3",
"@bedrock/credentials-context": "^5.0.2",
"@bedrock/data-integrity-context": "^4.0.3",
"@bedrock/did-context": "^6.0.0",
"@bedrock/did-io": "^10.3.1",
"@bedrock/express": "^8.0.0",
"@bedrock/https-agent": "^4.0.0",
"@bedrock/jsonld-document-loader": "^4.0.0",
"@bedrock/mongodb": "^10.0.0",
"@bedrock/multikey-context": "^2.0.0",
"@bedrock/security-context": "^8.0.0",
"@bedrock/service-agent": "^8.0.0",
"@bedrock/service-context-store": "^11.0.0",
"@bedrock/service-core": "^9.1.0",
"@bedrock/validation": "^7.0.0",
"@bedrock/vc-status-list-context": "digitalbazaar/bedrock-vc-status-list-context#bitstring-status-list",
"@bedrock/veres-one-context": "^15.0.0"
"@bedrock/express": "^8.3.1",
"@bedrock/https-agent": "^4.1.0",
"@bedrock/jsonld-document-loader": "^5.1.0",
"@bedrock/mongodb": "^10.2.0",
"@bedrock/multikey-context": "^3.0.0",
"@bedrock/security-context": "^9.0.0",
"@bedrock/service-agent": "^9.0.2",
"@bedrock/service-context-store": "^12.0.0",
"@bedrock/service-core": "^10.0.0",
"@bedrock/validation": "^7.1.0",
"@bedrock/vc-status-list-context": "^6.0.2",
"@bedrock/veres-one-context": "^16.0.0"
},
"devDependencies": {
"eslint": "^8.57.0",
Expand Down
78 changes: 39 additions & 39 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,52 @@
},
"dependencies": {
"@bedrock/app-identity": "^4.0.0",
"@bedrock/core": "^6.0.1",
"@bedrock/credentials-context": "digitalbazaar/bedrock-credentials-context#update-vc-2.0",
"@bedrock/data-integrity-context": "^3.0.0",
"@bedrock/did-context": "^5.0.0",
"@bedrock/core": "^6.1.3",
"@bedrock/credentials-context": "^5.0.2",
"@bedrock/data-integrity-context": "^4.0.3",
"@bedrock/did-context": "^6.0.0",
"@bedrock/did-io": "^10.3.1",
"@bedrock/edv-storage": "^18.0.0",
"@bedrock/express": "^8.0.0",
"@bedrock/https-agent": "^4.0.0",
"@bedrock/jsonld-document-loader": "^4.0.0",
"@bedrock/edv-storage": "^19.0.0",
"@bedrock/express": "^8.3.1",
"@bedrock/https-agent": "^4.1.0",
"@bedrock/jsonld-document-loader": "^5.1.0",
"@bedrock/kms": "^15.0.0",
"@bedrock/kms-http": "^20.0.0",
"@bedrock/ledger-context": "^24.0.0",
"@bedrock/meter": "^5.0.0",
"@bedrock/meter-http": "^12.0.0",
"@bedrock/meter-usage-reporter": "^9.0.0",
"@bedrock/mongodb": "^10.0.0",
"@bedrock/multikey-context": "^2.0.0",
"@bedrock/oauth2-verifier": "^2.0.0",
"@bedrock/kms-http": "^21.0.0",
"@bedrock/ledger-context": "^25.0.0",
"@bedrock/meter": "^5.3.0",
"@bedrock/meter-http": "^13.0.0",
"@bedrock/meter-usage-reporter": "^9.0.1",
"@bedrock/mongodb": "^10.2.0",
"@bedrock/multikey-context": "^3.0.0",
"@bedrock/oauth2-verifier": "^2.1.0",
"@bedrock/package-manager": "^3.0.0",
"@bedrock/security-context": "^8.0.0",
"@bedrock/server": "^5.0.0",
"@bedrock/service-agent": "^8.0.0",
"@bedrock/service-context-store": "^11.0.0",
"@bedrock/service-core": "^9.0.0",
"@bedrock/ssm-mongodb": "^11.2.0",
"@bedrock/test": "^8.0.5",
"@bedrock/validation": "^7.0.0",
"@bedrock/security-context": "^9.0.0",
"@bedrock/server": "^5.1.0",
"@bedrock/service-agent": "^9.0.2",
"@bedrock/service-context-store": "^12.0.0",
"@bedrock/service-core": "^10.0.0",
"@bedrock/ssm-mongodb": "^11.2.1",
"@bedrock/test": "^8.2.0",
"@bedrock/validation": "^7.1.0",
"@bedrock/vc-issuer": "file:..",
"@bedrock/vc-status": "digitalbazaar/bedrock-vc-status#main",
"@bedrock/vc-status-list-context": "digitalbazaar/bedrock-vc-status-list-context#bitstring-status-list",
"@bedrock/veres-one-context": "^15.0.0",
"@bedrock/zcap-storage": "^8.0.0",
"@digitalbazaar/ed25519-signature-2020": "^5.0.0",
"@digitalbazaar/edv-client": "^16.0.0",
"@digitalbazaar/ezcap": "^4.0.0",
"@digitalbazaar/http-client": "^4.0.0",
"@digitalbazaar/vc-bitstring-status-list": "github:digitalbazaar/vc-bitstring-status-list#main",
"@digitalbazaar/vc-status-list": "^7.1.0",
"@digitalbazaar/webkms-client": "^14.1.0",
"@bedrock/vc-status": "^1.0.0",
"@bedrock/vc-status-list-context": "^6.0.2",
"@bedrock/veres-one-context": "^16.0.0",
"@bedrock/zcap-storage": "^8.0.1",
"@digitalbazaar/ed25519-signature-2020": "^5.4.0",
"@digitalbazaar/edv-client": "^16.1.0",
"@digitalbazaar/ezcap": "^4.1.0",
"@digitalbazaar/http-client": "^4.1.1",
"@digitalbazaar/vc-bitstring-status-list": "^1.0.0",
"@digitalbazaar/vc-status-list": "^8.0.0",
"@digitalbazaar/webkms-client": "^14.1.1",
"base64url-universal": "^2.0.0",
"c8": "^10.1.2",
"cross-env": "^7.0.3",
"jose": "^4.8.3",
"klona": "^2.0.5",
"sinon": "^17.0.1",
"uuid": "^9.0.1"
"jose": "^5.6.3",
"klona": "^2.0.6",
"sinon": "^18.0.0",
"uuid": "^10.0.0"
},
"c8": {
"excludeNodeModules": false,
Expand Down

0 comments on commit f0152c0

Please sign in to comment.