@sd-jwt/sd-jwt-vc 0.13.1-next.0 → 0.14.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
@@ -3,6 +3,17 @@
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.14.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.13.0...v0.14.0) (2025-06-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add Verifier options ([#297](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/297)) ([2a6a367](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/2a6a3674f94742f48feaf660056226b1a54145e7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.13.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.12.0...v0.13.0) (2025-06-25)
7
18
 
8
19
 
package/dist/index.d.mts CHANGED
@@ -217,7 +217,7 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
217
217
  * Verifies the SD-JWT-VC. It will validate the signature, the keybindings when required, the status, and the VCT.
218
218
  * @param currentDate current time in seconds
219
219
  */
220
- verify(encodedSDJwt: string, requiredClaimKeys?: string[], requireKeyBindings?: boolean, options?: VerifierOptions): Promise<VerificationResult>;
220
+ verify(encodedSDJwt: string, options?: VerifierOptions): Promise<VerificationResult>;
221
221
  /**
222
222
  * Gets VCT Metadata of the raw SD-JWT-VC. Returns the type metadata format. If the SD-JWT-VC is invalid or does not contain a vct claim, an error is thrown.
223
223
  * @param encodedSDJwt
package/dist/index.d.ts CHANGED
@@ -217,7 +217,7 @@ declare class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
217
217
  * Verifies the SD-JWT-VC. It will validate the signature, the keybindings when required, the status, and the VCT.
218
218
  * @param currentDate current time in seconds
219
219
  */
220
- verify(encodedSDJwt: string, requiredClaimKeys?: string[], requireKeyBindings?: boolean, options?: VerifierOptions): Promise<VerificationResult>;
220
+ verify(encodedSDJwt: string, options?: VerifierOptions): Promise<VerificationResult>;
221
221
  /**
222
222
  * Gets VCT Metadata of the raw SD-JWT-VC. Returns the type metadata format. If the SD-JWT-VC is invalid or does not contain a vct claim, an error is thrown.
223
223
  * @param encodedSDJwt
package/dist/index.js CHANGED
@@ -131,9 +131,9 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends import_core.SDJwtInstance {
131
131
  * Verifies the SD-JWT-VC. It will validate the signature, the keybindings when required, the status, and the VCT.
132
132
  * @param currentDate current time in seconds
133
133
  */
134
- verify(encodedSDJwt, requiredClaimKeys, requireKeyBindings, options) {
134
+ verify(encodedSDJwt, options) {
135
135
  return __async(this, null, function* () {
136
- const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, requiredClaimKeys, requireKeyBindings).then((res) => {
136
+ const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, options).then((res) => {
137
137
  return {
138
138
  payload: res.payload,
139
139
  header: res.header,
package/dist/index.mjs CHANGED
@@ -99,9 +99,9 @@ var SDJwtVcInstance = class _SDJwtVcInstance extends SDJwtInstance {
99
99
  * Verifies the SD-JWT-VC. It will validate the signature, the keybindings when required, the status, and the VCT.
100
100
  * @param currentDate current time in seconds
101
101
  */
102
- verify(encodedSDJwt, requiredClaimKeys, requireKeyBindings, options) {
102
+ verify(encodedSDJwt, options) {
103
103
  return __async(this, null, function* () {
104
- const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, requiredClaimKeys, requireKeyBindings).then((res) => {
104
+ const result = yield __superGet(_SDJwtVcInstance.prototype, this, "verify").call(this, encodedSDJwt, options).then((res) => {
105
105
  return {
106
106
  payload: res.payload,
107
107
  header: res.header,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/sd-jwt-vc",
3
- "version": "0.13.1-next.0+0654a46",
3
+ "version": "0.14.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.13.1-next.0+0654a46",
43
- "@sd-jwt/jwt-status-list": "0.13.1-next.0+0654a46",
44
- "@sd-jwt/utils": "0.13.1-next.0+0654a46",
42
+ "@sd-jwt/core": "0.14.0",
43
+ "@sd-jwt/jwt-status-list": "0.14.0",
44
+ "@sd-jwt/utils": "0.14.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.13.1-next.0+0654a46",
50
- "@sd-jwt/types": "0.13.1-next.0+0654a46",
49
+ "@sd-jwt/crypto-nodejs": "0.14.0",
50
+ "@sd-jwt/types": "0.14.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": "0654a46a0bafe529ab5ce98cecbd4cd67f3fc9a3"
70
+ "gitHead": "121c6d9d3a9df09e9bbaf9a20b7759aa79ec091d"
71
71
  }
@@ -108,16 +108,10 @@ export class SDJwtVcInstance extends SDJwtInstance<SdJwtVcPayload> {
108
108
  * Verifies the SD-JWT-VC. It will validate the signature, the keybindings when required, the status, and the VCT.
109
109
  * @param currentDate current time in seconds
110
110
  */
111
- async verify(
112
- encodedSDJwt: string,
113
- //TODO: we need to move these values in options, causing a breaking change
114
- requiredClaimKeys?: string[],
115
- requireKeyBindings?: boolean,
116
- options?: VerifierOptions,
117
- ) {
111
+ async verify(encodedSDJwt: string, options?: VerifierOptions) {
118
112
  // Call the parent class's verify method
119
113
  const result: VerificationResult = await super
120
- .verify(encodedSDJwt, requiredClaimKeys, requireKeyBindings)
114
+ .verify(encodedSDJwt, options)
121
115
  .then((res) => {
122
116
  return {
123
117
  payload: res.payload as SdJwtVcPayload,