@sd-jwt/sd-jwt-vc 0.7.2-next.9 → 0.8.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 +16 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/src/sd-jwt-vc-instance.ts +1 -1
- package/test/app-e2e.spec.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.8.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.7.2...v0.8.0) (2024-11-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* check if the header includes the string ([#244](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/244)) ([8a48bb5](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/8a48bb57fcf9bbad349f349b0aa1ffd997c86bb2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* align media type with sd-jwt-vc draft 06 ([#256](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/256)) ([1aa3aea](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/1aa3aea86213e75328975e34d9bf71410fc7a12a))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.7.2](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.7.1...v0.7.2) (2024-07-19)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @sd-jwt/sd-jwt-vc
|
package/dist/index.js
CHANGED
|
@@ -68,7 +68,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
|
|
|
68
68
|
/**
|
|
69
69
|
* The type of the SD-JWT-VC set in the header.typ field.
|
|
70
70
|
*/
|
|
71
|
-
this.type = "
|
|
71
|
+
this.type = "dc+sd-jwt";
|
|
72
72
|
this.userConfig = {};
|
|
73
73
|
if (userConfig) {
|
|
74
74
|
this.userConfig = userConfig;
|
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
|
|
|
36
36
|
/**
|
|
37
37
|
* The type of the SD-JWT-VC set in the header.typ field.
|
|
38
38
|
*/
|
|
39
|
-
this.type = "
|
|
39
|
+
this.type = "dc+sd-jwt";
|
|
40
40
|
this.userConfig = {};
|
|
41
41
|
if (userConfig) {
|
|
42
42
|
this.userConfig = userConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sd-jwt/sd-jwt-vc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "sd-jwt draft 7 implementation in typescript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@sd-jwt/core": "0.
|
|
43
|
-
"@sd-jwt/jwt-status-list": "0.
|
|
44
|
-
"@sd-jwt/utils": "0.
|
|
42
|
+
"@sd-jwt/core": "0.8.0",
|
|
43
|
+
"@sd-jwt/jwt-status-list": "0.8.0",
|
|
44
|
+
"@sd-jwt/utils": "0.8.0",
|
|
45
45
|
"ajv": "^8.17.1",
|
|
46
46
|
"ajv-formats": "^3.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@sd-jwt/crypto-nodejs": "0.
|
|
50
|
-
"@sd-jwt/types": "0.
|
|
49
|
+
"@sd-jwt/crypto-nodejs": "0.8.0",
|
|
50
|
+
"@sd-jwt/types": "0.8.0",
|
|
51
51
|
"jose": "^5.2.2",
|
|
52
52
|
"msw": "^2.3.5"
|
|
53
53
|
},
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"esm"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "0d9742cd87d643079c7828ac3689d39ac4f6f21d"
|
|
71
71
|
}
|
package/test/app-e2e.spec.ts
CHANGED
|
@@ -235,7 +235,7 @@ async function JSONtest(filename: string) {
|
|
|
235
235
|
|
|
236
236
|
expect(validated).toBeDefined();
|
|
237
237
|
expect(validated).toStrictEqual({
|
|
238
|
-
header: { alg: 'EdDSA', typ: '
|
|
238
|
+
header: { alg: 'EdDSA', typ: 'dc+sd-jwt' },
|
|
239
239
|
payload,
|
|
240
240
|
});
|
|
241
241
|
|
|
@@ -259,7 +259,7 @@ async function JSONtest(filename: string) {
|
|
|
259
259
|
|
|
260
260
|
expect(verified).toBeDefined();
|
|
261
261
|
expect(verified).toStrictEqual({
|
|
262
|
-
header: { alg: 'EdDSA', typ: '
|
|
262
|
+
header: { alg: 'EdDSA', typ: 'dc+sd-jwt' },
|
|
263
263
|
kb: undefined,
|
|
264
264
|
payload,
|
|
265
265
|
});
|