@sd-jwt/core 0.14.1-next.1 → 0.14.1

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.1](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.14.0...v0.14.1) (2025-08-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * pass required options parameter ([#303](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/303)) ([f3aed2d](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/f3aed2d54fa4c365c41014c9ba65bf7dd5b7c413))
12
+
13
+
14
+
15
+
16
+
6
17
  # [0.14.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.13.0...v0.14.0) (2025-06-30)
7
18
 
8
19
 
package/dist/index.js CHANGED
@@ -772,7 +772,7 @@ var _SDJwtInstance = class _SDJwtInstance {
772
772
  if (!sdjwt.jwt || !sdjwt.jwt.payload) {
773
773
  throw new import_utils7.SDJWTException("Invalid SD JWT");
774
774
  }
775
- const { payload, header } = yield this.validate(encodedSDJwt);
775
+ const { payload, header } = yield this.validate(encodedSDJwt, options);
776
776
  if (options == null ? void 0 : options.requiredClaimKeys) {
777
777
  const keys = yield sdjwt.keys(hasher);
778
778
  const missingKeys = options.requiredClaimKeys.filter(
package/dist/index.mjs CHANGED
@@ -757,7 +757,7 @@ var _SDJwtInstance = class _SDJwtInstance {
757
757
  if (!sdjwt.jwt || !sdjwt.jwt.payload) {
758
758
  throw new SDJWTException6("Invalid SD JWT");
759
759
  }
760
- const { payload, header } = yield this.validate(encodedSDJwt);
760
+ const { payload, header } = yield this.validate(encodedSDJwt, options);
761
761
  if (options == null ? void 0 : options.requiredClaimKeys) {
762
762
  const keys = yield sdjwt.keys(hasher);
763
763
  const missingKeys = options.requiredClaimKeys.filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/core",
3
- "version": "0.14.1-next.1+653fe87",
3
+ "version": "0.14.1",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -38,13 +38,13 @@
38
38
  },
39
39
  "license": "Apache-2.0",
40
40
  "devDependencies": {
41
- "@sd-jwt/crypto-nodejs": "0.14.1-next.1+653fe87"
41
+ "@sd-jwt/crypto-nodejs": "0.14.0"
42
42
  },
43
43
  "dependencies": {
44
- "@sd-jwt/decode": "0.14.1-next.1+653fe87",
45
- "@sd-jwt/present": "0.14.1-next.1+653fe87",
46
- "@sd-jwt/types": "0.14.1-next.1+653fe87",
47
- "@sd-jwt/utils": "0.14.1-next.1+653fe87"
44
+ "@sd-jwt/decode": "0.14.0",
45
+ "@sd-jwt/present": "0.14.0",
46
+ "@sd-jwt/types": "0.14.0",
47
+ "@sd-jwt/utils": "0.14.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public"
@@ -62,5 +62,5 @@
62
62
  "esm"
63
63
  ]
64
64
  },
65
- "gitHead": "653fe8742de6be491198b68e1248002e7800c7c5"
65
+ "gitHead": "1c55f0ecb7a308b4115565a1f5abc57efab6b80f"
66
66
  }
package/src/index.ts CHANGED
@@ -206,7 +206,7 @@ export class SDJwtInstance<ExtendedPayload extends SdJwtPayload> {
206
206
  if (!sdjwt.jwt || !sdjwt.jwt.payload) {
207
207
  throw new SDJWTException('Invalid SD JWT');
208
208
  }
209
- const { payload, header } = await this.validate(encodedSDJwt);
209
+ const { payload, header } = await this.validate(encodedSDJwt, options);
210
210
 
211
211
  if (options?.requiredClaimKeys) {
212
212
  const keys = await sdjwt.keys(hasher);