@sd-jwt/utils 0.15.2-next.8 → 0.16.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,23 @@
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.16.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.15.1...v0.16.0) (2025-10-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * change repo url from labs to other one ([#323](https://github.com/openwallet-foundation/sd-jwt-js/issues/323)) ([f68c847](https://github.com/openwallet-foundation/sd-jwt-js/commit/f68c8476c2f04bb9d53acd4059b59caf271df015))
12
+ * set correct url in package json ([#321](https://github.com/openwallet-foundation/sd-jwt-js/issues/321)) ([554152c](https://github.com/openwallet-foundation/sd-jwt-js/commit/554152cc819bbc3afb504b25f4a2018a92fb72f1))
13
+
14
+
15
+ ### Features
16
+
17
+ * updates all dependencies to latest versions + biome updates ([#324](https://github.com/openwallet-foundation/sd-jwt-js/issues/324)) ([75d5780](https://github.com/openwallet-foundation/sd-jwt-js/commit/75d5780fb53c5e2c886537b283503fc6fb088a4a))
18
+
19
+
20
+
21
+
22
+
6
23
  # [0.15.0](https://github.com/openwallet-foundation/sd-jwt-js/compare/v0.14.1...v0.15.0) (2025-08-20)
7
24
 
8
25
  **Note:** Version bump only for package @sd-jwt/utils
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.8+f68c847",
3
+ "version": "0.16.0",
4
4
  "description": "sd-jwt draft 7 implementation in typescript",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "sd-jwt-vc"
26
26
  ],
27
27
  "engines": {
28
- "node": ">=18"
28
+ "node": ">=20"
29
29
  },
30
30
  "repository": {
31
31
  "url": "https://github.com/openwallet-foundation/sd-jwt-js"
@@ -37,11 +37,11 @@
37
37
  },
38
38
  "license": "Apache-2.0",
39
39
  "devDependencies": {
40
- "@sd-jwt/crypto-nodejs": "0.15.2-next.8+f68c847"
40
+ "@sd-jwt/crypto-nodejs": "0.16.0"
41
41
  },
42
42
  "dependencies": {
43
- "@sd-jwt/types": "0.15.2-next.8+f68c847",
44
- "js-base64": "^3.7.6"
43
+ "@sd-jwt/types": "0.16.0",
44
+ "js-base64": "^3.7.8"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"
@@ -59,5 +59,5 @@
59
59
  "esm"
60
60
  ]
61
61
  },
62
- "gitHead": "f68c8476c2f04bb9d53acd4059b59caf271df015"
62
+ "gitHead": "910c79c1607e91ae61e048a0c1b81c9ba0886684"
63
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', () => {