@sd-jwt/types 0.7.2 → 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 CHANGED
@@ -3,6 +3,14 @@
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
+ **Note:** Version bump only for package @sd-jwt/types
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.7.2](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.7.1...v0.7.2) (2024-07-19)
7
15
 
8
16
  **Note:** Version bump only for package @sd-jwt/types
package/dist/index.d.mts CHANGED
@@ -67,7 +67,7 @@ type OrPromise<T> = T | Promise<T>;
67
67
  type Signer = (data: string) => OrPromise<string>;
68
68
  type Verifier = (data: string, sig: string) => OrPromise<boolean>;
69
69
  type KbVerifier = (data: string, sig: string, payload: JwtPayload) => OrPromise<boolean>;
70
- type Hasher = (data: string, alg: string) => OrPromise<Uint8Array>;
70
+ type Hasher = (data: string | ArrayBuffer, alg: string) => OrPromise<Uint8Array>;
71
71
  type SaltGenerator = (length: number) => OrPromise<string>;
72
72
  type HasherAndAlg = {
73
73
  hasher: Hasher;
package/dist/index.d.ts CHANGED
@@ -67,7 +67,7 @@ type OrPromise<T> = T | Promise<T>;
67
67
  type Signer = (data: string) => OrPromise<string>;
68
68
  type Verifier = (data: string, sig: string) => OrPromise<boolean>;
69
69
  type KbVerifier = (data: string, sig: string, payload: JwtPayload) => OrPromise<boolean>;
70
- type Hasher = (data: string, alg: string) => OrPromise<Uint8Array>;
70
+ type Hasher = (data: string | ArrayBuffer, alg: string) => OrPromise<Uint8Array>;
71
71
  type SaltGenerator = (length: number) => OrPromise<string>;
72
72
  type HasherAndAlg = {
73
73
  hasher: Hasher;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/types",
3
- "version": "0.7.2",
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",
@@ -53,5 +53,5 @@
53
53
  "esm"
54
54
  ]
55
55
  },
56
- "gitHead": "d3cc53b66be9ef40ede9f86a931b7a43f55dbd3a"
56
+ "gitHead": "0d9742cd87d643079c7828ac3689d39ac4f6f21d"
57
57
  }
package/src/type.ts CHANGED
@@ -79,7 +79,10 @@ export type KbVerifier = (
79
79
  sig: string,
80
80
  payload: JwtPayload,
81
81
  ) => OrPromise<boolean>;
82
- export type Hasher = (data: string, alg: string) => OrPromise<Uint8Array>;
82
+ export type Hasher = (
83
+ data: string | ArrayBuffer,
84
+ alg: string,
85
+ ) => OrPromise<Uint8Array>;
83
86
  export type SaltGenerator = (length: number) => OrPromise<string>;
84
87
  export type HasherAndAlg = {
85
88
  hasher: Hasher;