From 438eb680fdad85e640023fbf10c4c609abb3b02d Mon Sep 17 00:00:00 2001 From: olegnn Date: Tue, 5 Nov 2024 22:25:33 +0100 Subject: [PATCH] Fix remaining exports from the `vc` module --- examples/CHANGELOG.md | 9 +++++ examples/package.json | 8 ++-- package.json | 2 +- .../cheqd-blockchain-modules/CHANGELOG.md | 7 ++++ .../cheqd-blockchain-modules/package.json | 4 +- packages/credential-sdk/CHANGELOG.md | 6 +++ packages/credential-sdk/package.json | 2 +- packages/credential-sdk/src/vc/index.js | 39 +++++++++---------- packages/dock-blockchain-api/CHANGELOG.md | 7 ++++ packages/dock-blockchain-api/package.json | 4 +- packages/dock-blockchain-modules/CHANGELOG.md | 7 ++++ packages/dock-blockchain-modules/package.json | 6 +-- 12 files changed, 68 insertions(+), 33 deletions(-) diff --git a/examples/CHANGELOG.md b/examples/CHANGELOG.md index 263766f44..3c1d277a6 100644 --- a/examples/CHANGELOG.md +++ b/examples/CHANGELOG.md @@ -1,5 +1,14 @@ # @docknetwork/sdk-examples +## 0.4.1 + +### Patch Changes + +- Updated dependencies + - @docknetwork/credential-sdk@0.6.0 + - @docknetwork/dock-blockchain-api@0.4.1 + - @docknetwork/dock-blockchain-modules@0.5.1 + ## 0.4.0 ### Minor Changes diff --git a/examples/package.json b/examples/package.json index 1a20161e7..cbc542941 100644 --- a/examples/package.json +++ b/examples/package.json @@ -2,7 +2,7 @@ "name": "@docknetwork/sdk-examples", "private": true, "type": "module", - "version": "0.4.0", + "version": "0.4.1", "scripts": { "bbs-dock-example": "babel-node ./bbs-dock.js", "claim-deduction-example": "babel-node ./claim-deduction.js", @@ -19,9 +19,9 @@ "lint": "eslint \"*.js\"" }, "dependencies": { - "@docknetwork/credential-sdk": "0.5.0", - "@docknetwork/dock-blockchain-api": "0.4.0", - "@docknetwork/dock-blockchain-modules": "0.5.0" + "@docknetwork/credential-sdk": "0.6.0", + "@docknetwork/dock-blockchain-api": "0.4.1", + "@docknetwork/dock-blockchain-modules": "0.5.1" }, "devDependencies": { "babel-eslint": "^10.1.0", diff --git a/package.json b/package.json index 8372de77f..444abd2e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "root", - "version": "0.5.0", + "version": "0.6.0", "private": true, "workspaces": [ "packages/*", diff --git a/packages/cheqd-blockchain-modules/CHANGELOG.md b/packages/cheqd-blockchain-modules/CHANGELOG.md index a4d409e33..4fd49540c 100644 --- a/packages/cheqd-blockchain-modules/CHANGELOG.md +++ b/packages/cheqd-blockchain-modules/CHANGELOG.md @@ -1,5 +1,12 @@ # @docknetwork/cheqd-blockchain-modules +## 0.5.1 + +### Patch Changes + +- Updated dependencies + - @docknetwork/credential-sdk@0.6.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/cheqd-blockchain-modules/package.json b/packages/cheqd-blockchain-modules/package.json index a6f8ca725..ce6c3787b 100644 --- a/packages/cheqd-blockchain-modules/package.json +++ b/packages/cheqd-blockchain-modules/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/cheqd-blockchain-modules", - "version": "0.5.0", + "version": "0.5.1", "type": "module", "license": "MIT", "main": "./dist/esm/index.js", @@ -28,7 +28,7 @@ "node": ">=18.0.0" }, "dependencies": { - "@docknetwork/credential-sdk": "0.5.0" + "@docknetwork/credential-sdk": "0.6.0" }, "devDependencies": { "@babel/cli": "^7.24.1", diff --git a/packages/credential-sdk/CHANGELOG.md b/packages/credential-sdk/CHANGELOG.md index 731c033b2..12e5e6593 100644 --- a/packages/credential-sdk/CHANGELOG.md +++ b/packages/credential-sdk/CHANGELOG.md @@ -1,5 +1,11 @@ # @docknetwork/credential-sdk +## 0.6.0 + +### Minor Changes + +- Fix remaining exports from the `vc` module + ## 0.5.0 ### Minor Changes diff --git a/packages/credential-sdk/package.json b/packages/credential-sdk/package.json index e3cea8a1f..38f149e53 100644 --- a/packages/credential-sdk/package.json +++ b/packages/credential-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/credential-sdk", - "version": "0.5.0", + "version": "0.6.0", "license": "MIT", "type": "module", "files": [ diff --git a/packages/credential-sdk/src/vc/index.js b/packages/credential-sdk/src/vc/index.js index 3541b44a6..2f14a8d49 100644 --- a/packages/credential-sdk/src/vc/index.js +++ b/packages/credential-sdk/src/vc/index.js @@ -1,7 +1,7 @@ -import { signPresentation, verifyPresentation } from './presentations'; -import { issueCredential, verifyCredential } from './credentials'; +import { signPresentation, verifyPresentation } from "./presentations"; +import { issueCredential, verifyCredential } from "./credentials"; -import { DEFAULT_TYPE, DEFAULT_CONTEXT } from './constants'; +import { DEFAULT_TYPE, DEFAULT_CONTEXT } from "./constants"; /** * Check that credential is verified, i.e. the credential has VCDM compliant structure and the `proof` @@ -28,20 +28,19 @@ export async function isVerifiedPresentation(presentation, params) { return result.verified; } -// TODO: export more methods supplied in revocation/credentials -export { - verifyCredential, - issueCredential, - signPresentation, - verifyPresentation, - DEFAULT_TYPE, - DEFAULT_CONTEXT, -}; - -export { default as Presentation } from './presentation'; -export { default as VerifiableCredential } from './verifiable-credential'; -export { default as VerifiablePresentation } from './verifiable-presentation'; -export { default as StatusList2021Credential } from './status-list2021-credential'; -export { default as PrivateStatusList2021Credential } from './private-status-list2021-credential'; -export * from './helpers'; -export { validateCredentialSchema } from './schema'; +export { default as Presentation } from "./presentation"; +export { default as VerifiableCredential } from "./verifiable-credential"; +export { default as VerifiablePresentation } from "./verifiable-presentation"; +export { default as StatusList2021Credential } from "./status-list2021-credential"; +export { default as PrivateStatusList2021Credential } from "./private-status-list2021-credential"; +export * from "./credentials"; +export * from "./helpers"; +export * from "./schema"; +export * from "./constants"; +export * from "./custom_crypto"; +export * from "./document-loader"; +export * from "./jws"; +export * from "./presentation"; +export * from "./presentations"; +export * from "./revocation"; +export * from "./schema"; diff --git a/packages/dock-blockchain-api/CHANGELOG.md b/packages/dock-blockchain-api/CHANGELOG.md index c38e71a2a..f300efaae 100644 --- a/packages/dock-blockchain-api/CHANGELOG.md +++ b/packages/dock-blockchain-api/CHANGELOG.md @@ -1,5 +1,12 @@ # @docknetwork/dock-blockchain-api +## 0.4.1 + +### Patch Changes + +- Updated dependencies + - @docknetwork/credential-sdk@0.6.0 + ## 0.4.0 ### Minor Changes diff --git a/packages/dock-blockchain-api/package.json b/packages/dock-blockchain-api/package.json index a561fc1f6..fd6049137 100644 --- a/packages/dock-blockchain-api/package.json +++ b/packages/dock-blockchain-api/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/dock-blockchain-api", - "version": "0.4.0", + "version": "0.4.1", "license": "MIT", "main": "./dist/esm/index.js", "type": "module", @@ -84,7 +84,7 @@ "@polkadot/api": "10.12.4" }, "dependencies": { - "@docknetwork/credential-sdk": "0.5.0", + "@docknetwork/credential-sdk": "0.6.0", "@docknetwork/node-types": "^0.17.0", "@juanelas/base64": "^1.0.5", "@polkadot/api": "10.12.4", diff --git a/packages/dock-blockchain-modules/CHANGELOG.md b/packages/dock-blockchain-modules/CHANGELOG.md index 79990b480..b636205fc 100644 --- a/packages/dock-blockchain-modules/CHANGELOG.md +++ b/packages/dock-blockchain-modules/CHANGELOG.md @@ -1,5 +1,12 @@ # @docknetwork/dock-blockchain-modules +## 0.5.1 + +### Patch Changes + +- Updated dependencies + - @docknetwork/credential-sdk@0.6.0 + ## 0.5.0 ### Minor Changes diff --git a/packages/dock-blockchain-modules/package.json b/packages/dock-blockchain-modules/package.json index 8cb2b0272..3620571ab 100644 --- a/packages/dock-blockchain-modules/package.json +++ b/packages/dock-blockchain-modules/package.json @@ -1,6 +1,6 @@ { "name": "@docknetwork/dock-blockchain-modules", - "version": "0.5.0", + "version": "0.5.1", "license": "MIT", "type": "module", "main": "./dist/esm/index.js", @@ -28,7 +28,7 @@ "node": ">=18.0.0" }, "dependencies": { - "@docknetwork/credential-sdk": "0.5.0" + "@docknetwork/credential-sdk": "0.6.0" }, "devDependencies": { "@babel/cli": "^7.24.1", @@ -37,7 +37,7 @@ "@babel/plugin-syntax-import-attributes": "^7.25.6", "@babel/plugin-transform-modules-commonjs": "^7.24.1", "@babel/preset-env": "^7.24.3", - "@docknetwork/dock-blockchain-api": "0.4.0", + "@docknetwork/dock-blockchain-api": "0.4.1", "@rollup/plugin-alias": "^4.0.2", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^24.0.0",