Skip to content

Commit 77c9c24

Browse files
committed
feat: Support sd-jwt 0.2.0 library
1 parent b3f0cf1 commit 77c9c24

10 files changed

Lines changed: 110 additions & 131 deletions

File tree

.github/workflows/build-test-on-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
with:
2121
fetch-depth: 0
2222
- name: Use Node.js
23-
uses: actions/setup-node@v2
23+
uses: actions/setup-node@v4
2424
with:
25-
node-version: '16.x'
25+
node-version: '18.18.0'
2626
- uses: pnpm/action-setup@v2
2727
with:
2828
version: 8

.github/workflows/build-test-publish-on-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
with:
3535
fetch-depth: 0
3636
- name: Use Node.js
37-
uses: actions/setup-node@v2
37+
uses: actions/setup-node@v4
3838
with:
39-
node-version: '16.x'
39+
node-version: '18.18.0'
4040
- uses: pnpm/action-setup@v2
4141
with:
4242
version: 8

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"prettier": "^3.0.1",
4444
"rimraf": "^5.0.1",
4545
"ts-jest": "^29.1.1",
46-
"typescript": "4.9.5"
46+
"typescript": "5.3.3"
4747
},
4848
"keywords": [
4949
"Sphereon",

packages/callback-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@sphereon/oid4vci-client": "workspace:*",
1919
"@sphereon/oid4vci-common": "workspace:*",
2020
"@sphereon/oid4vci-issuer": "workspace:*",
21-
"@sphereon/ssi-types": "^0.18.0",
21+
"@sphereon/ssi-types": "^0.18.1",
2222
"jose": "^4.10.0"
2323
},
2424
"devDependencies": {

packages/client/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@sphereon/oid4vci-common": "workspace:*",
19-
"@sphereon/ssi-types": "^0.18.0",
19+
"@sphereon/ssi-types": "^0.18.1",
2020
"cross-fetch": "^3.1.8",
2121
"debug": "^4.3.4"
2222
},
@@ -44,11 +44,11 @@
4444
"open-cli": "^7.2.0",
4545
"ts-jest": "^29.1.1",
4646
"ts-node": "^10.9.1",
47-
"typescript": "4.9.5",
48-
"uint8arrays": "3.1.1"
47+
"uint8arrays": "3.1.1",
48+
"typescript": "5.3.3"
4949
},
5050
"engines": {
51-
"node": ">=16"
51+
"node": ">=18"
5252
},
5353
"files": [
5454
"lib/**/*",

packages/common/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
"build:clean": "tsc --build --clean && tsc --build"
1111
},
1212
"dependencies": {
13-
"@sphereon/ssi-types": "^0.18.0",
13+
"@sphereon/ssi-types": "^0.18.1",
1414
"cross-fetch": "^3.1.8",
1515
"jwt-decode": "^3.1.2"
1616
},
1717
"devDependencies": {
1818
"@types/jest": "^29.5.3",
19-
"typescript": "5.0.4"
19+
"typescript": "5.3.3"
2020
},
2121
"engines": {
22-
"node": ">=16"
22+
"node": ">=18"
2323
},
2424
"files": [
2525
"lib/**/*",

packages/issuer-rest/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@
1313
"dependencies": {
1414
"@sphereon/oid4vci-common": "workspace:*",
1515
"@sphereon/oid4vci-issuer": "workspace:*",
16-
"@sphereon/ssi-express-support": "^0.18.0",
17-
"@sphereon/ssi-types": "^0.18.0",
16+
"@sphereon/ssi-express-support": "^0.18.1",
17+
"@sphereon/ssi-types": "^0.18.1",
1818
"body-parser": "^1.20.2",
1919
"cookie-parser": "^1.4.6",
2020
"cors": "^2.8.5",
2121
"dotenv-flow": "^3.2.0",
2222
"express": "^4.18.2",
2323
"http-terminator": "^3.2.0",
24-
"uuid": "^9.0.0"
24+
"uuid": "^9.0.0",
25+
"typescript": "5.3.3"
2526
},
2627
"devDependencies": {
2728
"@digitalcredentials/did-method-key": "^2.0.3",
@@ -42,7 +43,7 @@
4243
"ts-jest": "^29.1.0"
4344
},
4445
"engines": {
45-
"node": ">=16"
46+
"node": ">=18"
4647
},
4748
"files": [
4849
"lib/**/*",

packages/issuer/lib/VcIssuer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export class VcIssuer<DIDDoc extends object> {
311311
if (CredentialMapper.isSdJwtDecodedCredentialPayload(credential) && (kid || jwk) && !credential.cnf) {
312312
if (kid) {
313313
credential.cnf = {
314-
kid
314+
kid,
315315
}
316316
} else if (jwk) {
317317
credential.cnf = {

packages/issuer/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@sphereon/oid4vci-common": "workspace:*",
14-
"@sphereon/ssi-types": "^0.18.0",
14+
"@sphereon/ssi-types": "^0.18.1",
1515
"uuid": "^9.0.0"
1616
},
1717
"peerDependencies": {
@@ -27,10 +27,11 @@
2727
"@types/jest": "^29.5.3",
2828
"@types/node": "^18.17.3",
2929
"@types/uuid": "^9.0.2",
30-
"did-resolver": "^4.1.0"
30+
"did-resolver": "^4.1.0",
31+
"typescript": "5.3.3"
3132
},
3233
"engines": {
33-
"node": ">=16"
34+
"node": ">=18"
3435
},
3536
"files": [
3637
"lib/**/*",

0 commit comments

Comments
 (0)