@sd-jwt/utils 0.15.2-next.1 → 0.15.2-next.10

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,7 +3,7 @@
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.15.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.14.1...v0.15.0) (2025-08-20)
6
+ # [0.15.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.14.1...v0.15.0) (2025-08-20)
7
7
 
8
8
  **Note:** Version bump only for package @sd-jwt/utils
9
9
 
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
 
12
12
 
13
13
 
14
- # [0.14.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.13.0...v0.14.0) (2025-06-30)
14
+ # [0.14.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.13.0...v0.14.0) (2025-06-30)
15
15
 
16
16
  **Note:** Version bump only for package @sd-jwt/utils
17
17
 
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
19
19
 
20
20
 
21
21
 
22
- # [0.13.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.12.0...v0.13.0) (2025-06-25)
22
+ # [0.13.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.12.0...v0.13.0) (2025-06-25)
23
23
 
24
24
  **Note:** Version bump only for package @sd-jwt/utils
25
25
 
@@ -27,7 +27,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
27
27
 
28
28
 
29
29
 
30
- # [0.12.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.11.0...v0.12.0) (2025-06-21)
30
+ # [0.12.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.11.0...v0.12.0) (2025-06-21)
31
31
 
32
32
  **Note:** Version bump only for package @sd-jwt/utils
33
33
 
@@ -35,7 +35,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
35
35
 
36
36
 
37
37
 
38
- # [0.11.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.10.0...v0.11.0) (2025-06-17)
38
+ # [0.11.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.10.0...v0.11.0) (2025-06-17)
39
39
 
40
40
  **Note:** Version bump only for package @sd-jwt/utils
41
41
 
@@ -43,7 +43,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
43
43
 
44
44
 
45
45
 
46
- # [0.10.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.9.2...v0.10.0) (2025-03-24)
46
+ # [0.10.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.9.2...v0.10.0) (2025-03-24)
47
47
 
48
48
  **Note:** Version bump only for package @sd-jwt/utils
49
49
 
@@ -51,7 +51,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
51
51
 
52
52
 
53
53
 
54
- ## [0.9.2](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.9.1...v0.9.2) (2025-01-29)
54
+ ## [0.9.2](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.9.1...v0.9.2) (2025-01-29)
55
55
 
56
56
  **Note:** Version bump only for package @sd-jwt/utils
57
57
 
@@ -59,7 +59,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
59
59
 
60
60
 
61
61
 
62
- ## [0.9.1](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.9.0...v0.9.1) (2024-12-13)
62
+ ## [0.9.1](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.9.0...v0.9.1) (2024-12-13)
63
63
 
64
64
  **Note:** Version bump only for package @sd-jwt/utils
65
65
 
@@ -67,7 +67,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
67
67
 
68
68
 
69
69
 
70
- # [0.9.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.8.0...v0.9.0) (2024-12-10)
70
+ # [0.9.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.8.0...v0.9.0) (2024-12-10)
71
71
 
72
72
  **Note:** Version bump only for package @sd-jwt/utils
73
73
 
@@ -75,7 +75,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
75
75
 
76
76
 
77
77
 
78
- # [0.8.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.7.2...v0.8.0) (2024-11-26)
78
+ # [0.8.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.7.2...v0.8.0) (2024-11-26)
79
79
 
80
80
  **Note:** Version bump only for package @sd-jwt/utils
81
81
 
@@ -83,7 +83,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
83
83
 
84
84
 
85
85
 
86
- ## [0.7.2](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.7.1...v0.7.2) (2024-07-19)
86
+ ## [0.7.2](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.7.1...v0.7.2) (2024-07-19)
87
87
 
88
88
  **Note:** Version bump only for package @sd-jwt/utils
89
89
 
@@ -91,7 +91,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
91
91
 
92
92
 
93
93
 
94
- ## [0.7.1](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.7.0...v0.7.1) (2024-05-21)
94
+ ## [0.7.1](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.7.0...v0.7.1) (2024-05-21)
95
95
 
96
96
  **Note:** Version bump only for package @sd-jwt/utils
97
97
 
@@ -99,7 +99,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
99
99
 
100
100
 
101
101
 
102
- # [0.7.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.6.1...v0.7.0) (2024-05-13)
102
+ # [0.7.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.6.1...v0.7.0) (2024-05-13)
103
103
 
104
104
  **Note:** Version bump only for package @sd-jwt/utils
105
105
 
@@ -107,18 +107,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
107
107
 
108
108
 
109
109
 
110
- ## [0.6.1](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.6.0...v0.6.1) (2024-03-18)
110
+ ## [0.6.1](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.6.0...v0.6.1) (2024-03-18)
111
111
 
112
112
 
113
113
  ### Bug Fixes
114
114
 
115
- * base64url convention ([#179](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/179)) ([f8db275](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/f8db275690dab88000a039838680a3478b3b61ec))
115
+ * base64url convention ([#179](https://github.com/openwallet-foundation/sd-jwt-js/issues/179)) ([f8db275](https://github.com/openwallet-foundation/sd-jwt-js/commit/f8db275690dab88000a039838680a3478b3b61ec))
116
116
 
117
117
 
118
118
 
119
119
 
120
120
 
121
- # [0.6.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.5.0...v0.6.0) (2024-03-12)
121
+ # [0.6.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.5.0...v0.6.0) (2024-03-12)
122
122
 
123
123
  **Note:** Version bump only for package @sd-jwt/utils
124
124
 
@@ -126,12 +126,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
126
126
 
127
127
 
128
128
 
129
- # [0.5.0](https://github.com/openwallet-foundation-labs/sd-jwt-js/compare/v0.4.0...v0.5.0) (2024-03-11)
129
+ # [0.5.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.4.0...v0.5.0) (2024-03-11)
130
130
 
131
131
 
132
132
  ### Features
133
133
 
134
- * make _digest value public in disclosure ([#151](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/151)) ([7a3fbd7](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/7a3fbd7db19b6501978340c972b171743d287285))
134
+ * make _digest value public in disclosure ([#151](https://github.com/openwallet-foundation/sd-jwt-js/issues/151)) ([7a3fbd7](https://github.com/openwallet-foundation/sd-jwt-js/commit/7a3fbd7db19b6501978340c972b171743d287285))
135
135
 
136
136
 
137
137
 
@@ -142,5 +142,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
142
142
 
143
143
  ### Bug Fixes
144
144
 
145
- * add publish config ([#93](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/93)) ([2e4c5c1](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/2e4c5c176dc88e58e49d06783b7658d8ad872313))
146
- * convert any usage into or typed version ([#80](https://github.com/openwallet-foundation-labs/sd-jwt-js/issues/80)) ([de4df54](https://github.com/openwallet-foundation-labs/sd-jwt-js/commit/de4df54f2a0a77fdbf97e10abac555a98e70c6e0))
145
+ * add publish config ([#93](https://github.com/openwallet-foundation/sd-jwt-js/issues/93)) ([2e4c5c1](https://github.com/openwallet-foundation/sd-jwt-js/commit/2e4c5c176dc88e58e49d06783b7658d8ad872313))
146
+ * convert any usage into or typed version ([#80](https://github.com/openwallet-foundation/sd-jwt-js/issues/80)) ([de4df54](https://github.com/openwallet-foundation/sd-jwt-js/commit/de4df54f2a0a77fdbf97e10abac555a98e70c6e0))
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- ![License](https://img.shields.io/github/license/openwallet-foundation-labs/sd-jwt-js.svg)
1
+ ![License](https://img.shields.io/github/license/openwallet-foundation/sd-jwt-js.svg)
2
2
  ![NPM](https://img.shields.io/npm/v/%40sd-jwt%2Futils)
3
- ![Release](https://img.shields.io/github/v/release/openwallet-foundation-labs/sd-jwt-js)
4
- ![Stars](https://img.shields.io/github/stars/openwallet-foundation-labs/sd-jwt-js)
3
+ ![Release](https://img.shields.io/github/v/release/openwallet-foundation/sd-jwt-js)
4
+ ![Stars](https://img.shields.io/github/stars/openwallet-foundation/sd-jwt-js)
5
5
 
6
6
  # SD-JWT Implementation in JavaScript (TypeScript)
7
7
 
@@ -11,7 +11,7 @@
11
11
 
12
12
  Utility functions for SD JWT
13
13
 
14
- Check the detail description in our github [repo](https://github.com/openwallet-foundation-labs/sd-jwt-js).
14
+ Check the detail description in our github [repo](https://github.com/openwallet-foundation/sd-jwt-js).
15
15
 
16
16
  ### Installation
17
17
 
@@ -32,7 +32,7 @@ Ensure you have Node.js installed as a prerequisite.
32
32
 
33
33
  ### Usage
34
34
 
35
- Check out more details in our [documentation](https://github.com/openwallet-foundation-labs/sd-jwt-js/tree/main/docs) or [examples](https://github.com/openwallet-foundation-labs/sd-jwt-js/tree/main/examples)
35
+ Check out more details in our [documentation](https://github.com/openwallet-foundation/sd-jwt-js/tree/main/docs) or [examples](https://github.com/openwallet-foundation/sd-jwt-js/tree/main/examples)
36
36
 
37
37
  ### Dependencies
38
38
 
package/dist/index.d.mts CHANGED
@@ -4,12 +4,6 @@ declare const base64urlEncode: (src: string) => string;
4
4
  declare const base64urlDecode: (src: string) => string;
5
5
  declare const uint8ArrayToBase64Url: (input: Uint8Array) => string;
6
6
 
7
- declare class SDJWTException extends Error {
8
- details?: unknown;
9
- constructor(message: string, details?: unknown);
10
- getFullMessage(): string;
11
- }
12
-
13
7
  declare class Disclosure<T = unknown> {
14
8
  salt: string;
15
9
  key?: string;
@@ -32,4 +26,10 @@ declare class Disclosure<T = unknown> {
32
26
  digestSync(hash: HasherAndAlgSync): string;
33
27
  }
34
28
 
29
+ declare class SDJWTException extends Error {
30
+ details?: unknown;
31
+ constructor(message: string, details?: unknown);
32
+ getFullMessage(): string;
33
+ }
34
+
35
35
  export { Disclosure, SDJWTException, base64urlDecode, base64urlEncode, uint8ArrayToBase64Url };
package/dist/index.d.ts CHANGED
@@ -4,12 +4,6 @@ declare const base64urlEncode: (src: string) => string;
4
4
  declare const base64urlDecode: (src: string) => string;
5
5
  declare const uint8ArrayToBase64Url: (input: Uint8Array) => string;
6
6
 
7
- declare class SDJWTException extends Error {
8
- details?: unknown;
9
- constructor(message: string, details?: unknown);
10
- getFullMessage(): string;
11
- }
12
-
13
7
  declare class Disclosure<T = unknown> {
14
8
  salt: string;
15
9
  key?: string;
@@ -32,4 +26,10 @@ declare class Disclosure<T = unknown> {
32
26
  digestSync(hash: HasherAndAlgSync): string;
33
27
  }
34
28
 
29
+ declare class SDJWTException extends Error {
30
+ details?: unknown;
31
+ constructor(message: string, details?: unknown);
32
+ getFullMessage(): string;
33
+ }
34
+
35
35
  export { Disclosure, SDJWTException, base64urlDecode, base64urlEncode, uint8ArrayToBase64Url };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-jwt/utils",
3
- "version": "0.15.2-next.1+650bde5",
3
+ "version": "0.15.2-next.10+aa121b1",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,24 +25,23 @@
25
25
  "sd-jwt-vc"
26
26
  ],
27
27
  "engines": {
28
- "node": ">=18"
28
+ "node": ">=20"
29
29
  },
30
30
  "repository": {
31
- "type": "git",
32
- "url": "https://github.com/openwallet-foundation-labs/sd-jwt-js"
31
+ "url": "https://github.com/openwallet-foundation/sd-jwt-js"
33
32
  },
34
33
  "author": "Lukas.J.Han <lukas.j.han@gmail.com>",
35
- "homepage": "https://github.com/openwallet-foundation-labs/sd-jwt-js/wiki",
34
+ "homepage": "https://github.com/openwallet-foundation/sd-jwt-js/wiki",
36
35
  "bugs": {
37
- "url": "https://github.com/openwallet-foundation-labs/sd-jwt-js/issues"
36
+ "url": "https://github.com/openwallet-foundation/sd-jwt-js/issues"
38
37
  },
39
38
  "license": "Apache-2.0",
40
39
  "devDependencies": {
41
- "@sd-jwt/crypto-nodejs": "0.15.2-next.1+650bde5"
40
+ "@sd-jwt/crypto-nodejs": "0.15.2-next.10+aa121b1"
42
41
  },
43
42
  "dependencies": {
44
- "@sd-jwt/types": "0.15.2-next.1+650bde5",
45
- "js-base64": "^3.7.6"
43
+ "@sd-jwt/types": "0.15.2-next.10+aa121b1",
44
+ "js-base64": "^3.7.8"
46
45
  },
47
46
  "publishConfig": {
48
47
  "access": "public"
@@ -60,5 +59,5 @@
60
59
  "esm"
61
60
  ]
62
61
  },
63
- "gitHead": "650bde5a066e4f67aa9a6cdecacd49f9344a1f32"
62
+ "gitHead": "aa121b187ecfa287bd5b104666b876ce3d18b3f4"
64
63
  }
package/src/disclosure.ts CHANGED
@@ -1,14 +1,14 @@
1
+ import type {
2
+ DisclosureData,
3
+ HasherAndAlg,
4
+ HasherAndAlgSync,
5
+ } from '@sd-jwt/types';
1
6
  import {
2
- uint8ArrayToBase64Url,
3
7
  base64urlDecode,
4
8
  base64urlEncode,
9
+ uint8ArrayToBase64Url,
5
10
  } from './base64url';
6
11
  import { SDJWTException } from './error';
7
- import type {
8
- HasherAndAlg,
9
- DisclosureData,
10
- HasherAndAlgSync,
11
- } from '@sd-jwt/types';
12
12
 
13
13
  export class Disclosure<T = unknown> {
14
14
  public salt: string;
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './base64url';
2
- export * from './error';
3
2
  export * from './disclosure';
3
+ export * from './error';
@@ -1,6 +1,6 @@
1
1
  import { generateSalt, digest as hasher } from '@sd-jwt/crypto-nodejs';
2
- import { Disclosure } from '../disclosure';
3
2
  import { describe, expect, test } from 'vitest';
3
+ import { Disclosure } from '../disclosure';
4
4
  import { base64urlEncode, type SDJWTException } from '../index';
5
5
 
6
6
  const hash = { alg: 'SHA256', hasher };
@@ -1,5 +1,5 @@
1
- import { SDJWTException } from '../error';
2
1
  import { describe, expect, test } from 'vitest';
2
+ import { SDJWTException } from '../error';
3
3
 
4
4
  describe('Error tests', () => {
5
5
  test('Detail', () => {