@twin.org/web 0.0.1-next.9 → 0.0.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.
Files changed (35) hide show
  1. package/dist/cjs/index.cjs +288 -90
  2. package/dist/esm/index.mjs +289 -92
  3. package/dist/types/index.d.ts +3 -1
  4. package/dist/types/models/IJwk.d.ts +2 -58
  5. package/dist/types/models/IJwtHeader.d.ts +2 -18
  6. package/dist/types/models/IJwtPayload.d.ts +2 -33
  7. package/dist/types/models/jwkCryptoKey.d.ts +4 -0
  8. package/dist/types/models/mimeTypes.d.ts +8 -0
  9. package/dist/types/utils/fetchHelper.d.ts +7 -0
  10. package/dist/types/utils/jwk.d.ts +41 -0
  11. package/dist/types/utils/jws.d.ts +22 -0
  12. package/dist/types/utils/jwt.d.ts +67 -29
  13. package/docs/changelog.md +381 -1
  14. package/docs/reference/classes/FetchError.md +16 -8
  15. package/docs/reference/classes/FetchHelper.md +104 -28
  16. package/docs/reference/classes/Jwk.md +129 -0
  17. package/docs/reference/classes/Jws.md +81 -0
  18. package/docs/reference/classes/Jwt.md +261 -105
  19. package/docs/reference/classes/MimeTypeHelper.md +9 -5
  20. package/docs/reference/index.md +3 -2
  21. package/docs/reference/interfaces/IHttpHeaders.md +1 -1
  22. package/docs/reference/interfaces/IJwk.md +2 -106
  23. package/docs/reference/interfaces/IJwtHeader.md +5 -23
  24. package/docs/reference/interfaces/IJwtPayload.md +5 -55
  25. package/docs/reference/type-aliases/HeaderTypes.md +1 -1
  26. package/docs/reference/type-aliases/HttpMethod.md +1 -1
  27. package/docs/reference/type-aliases/HttpStatusCode.md +1 -1
  28. package/docs/reference/type-aliases/JwkCryptoKey.md +5 -0
  29. package/docs/reference/type-aliases/MimeTypes.md +1 -1
  30. package/docs/reference/variables/MimeTypes.md +12 -0
  31. package/locales/en.json +11 -1
  32. package/package.json +7 -6
  33. package/dist/types/models/jwtAlgorithms.d.ts +0 -17
  34. package/docs/reference/type-aliases/JwtAlgorithms.md +0 -5
  35. package/docs/reference/variables/JwtAlgorithms.md +0 -19
@@ -22,6 +22,10 @@ export declare const MimeTypes: {
22
22
  * JSON-LD - application/ld+json
23
23
  */
24
24
  readonly JsonLd: "application/ld+json";
25
+ /**
26
+ * JWT - application/jwt
27
+ */
28
+ readonly Jwt: "application/jwt";
25
29
  /**
26
30
  * XML - application/xml
27
31
  */
@@ -34,6 +38,10 @@ export declare const MimeTypes: {
34
38
  * Application GZIP - application/gzip
35
39
  */
36
40
  readonly Gzip: "application/gzip";
41
+ /**
42
+ * Application deflate - application/zlib
43
+ */
44
+ readonly Zlib: "application/zlib";
37
45
  /**
38
46
  * Application BZIP2 - application/x-bzip2
39
47
  */
@@ -44,6 +44,13 @@ export declare class FetchHelper {
44
44
  * @returns The cache entry if it exists.
45
45
  */
46
46
  static getCacheEntry<T>(url: string): Promise<T | undefined>;
47
+ /**
48
+ * Set a cache entry.
49
+ * @param url The url for the request.
50
+ * @param value The value to cache.
51
+ * @returns The cache entry if it exists.
52
+ */
53
+ static setCacheEntry<T>(url: string, value: T): Promise<void>;
47
54
  /**
48
55
  * Remove a cache entry.
49
56
  * @param url The url for the request.
@@ -0,0 +1,41 @@
1
+ import type { IJwk } from "../models/IJwk";
2
+ import type { JwkCryptoKey } from "../models/jwkCryptoKey";
3
+ /**
4
+ * Class to handle JSON Web Keys.
5
+ */
6
+ export declare class Jwk {
7
+ /**
8
+ * Convert the JWK to a crypto key.
9
+ * @param jwk The JWK to convert.
10
+ * @param alg The alg to be used, defaults to jwk.alg.
11
+ * @returns The crypto key.
12
+ */
13
+ static toCryptoKey(jwk: IJwk, alg?: string): Promise<JwkCryptoKey>;
14
+ /**
15
+ * Convert the Ed25519 private key to a crypto key.
16
+ * @param privateKey The private key to use.
17
+ * @returns The crypto key.
18
+ */
19
+ static fromEd25519Private(privateKey: Uint8Array): Promise<IJwk>;
20
+ /**
21
+ * Convert the Ed25519 public key to a crypto key.
22
+ * @param publicKey The private key to use.
23
+ * @returns The crypto key.
24
+ */
25
+ static fromEd25519Public(publicKey: Uint8Array): Promise<IJwk>;
26
+ /**
27
+ * Convert the JWK to raw keys.
28
+ * @param jwk The JWK to convert to raw.
29
+ * @returns The crypto key.
30
+ */
31
+ static toRaw(jwk: IJwk): Promise<{
32
+ publicKey?: Uint8Array;
33
+ privateKey?: Uint8Array;
34
+ }>;
35
+ /**
36
+ * Generate a KID for the JWK.
37
+ * @param jwk The JWK to generate a KID for.
38
+ * @returns The KID.
39
+ */
40
+ static generateKid(jwk: IJwk): Promise<string>;
41
+ }
@@ -0,0 +1,22 @@
1
+ import type { JwkCryptoKey } from "../models/jwkCryptoKey";
2
+ /**
3
+ * Class to handle JSON Web Signatures.
4
+ */
5
+ export declare class Jws {
6
+ /**
7
+ * Create a signature.
8
+ * @param privateKey The private key to use.
9
+ * @param hash The hash to sign.
10
+ * @param algOverride An optional algorithm override.
11
+ * @returns The signature.
12
+ */
13
+ static create(privateKey: JwkCryptoKey, hash: Uint8Array, algOverride?: string): Promise<string>;
14
+ /**
15
+ * Verify a signature.
16
+ * @param jws The signature to verify.
17
+ * @param publicKey The public key to verify the signature with.
18
+ * @param hash The hash to verify.
19
+ * @returns True if the signature was verified.
20
+ */
21
+ static verify(jws: string, publicKey: JwkCryptoKey, hash: Uint8Array): Promise<boolean>;
22
+ }
@@ -1,8 +1,8 @@
1
1
  import type { IJwtHeader } from "../models/IJwtHeader";
2
2
  import type { IJwtPayload } from "../models/IJwtPayload";
3
- import { JwtAlgorithms } from "../models/jwtAlgorithms";
3
+ import type { JwkCryptoKey } from "../models/jwkCryptoKey";
4
4
  /**
5
- * Class to encode and decode JSON Web Tokens.
5
+ * Class to handle JSON Web Tokens.
6
6
  */
7
7
  export declare class Jwt {
8
8
  /**
@@ -12,7 +12,7 @@ export declare class Jwt {
12
12
  * @param key The key for signing the token, can be omitted if a signer is provided.
13
13
  * @returns The encoded token.
14
14
  */
15
- static encode<U extends IJwtHeader, T extends IJwtPayload>(header: U, payload: T, key: Uint8Array): Promise<string>;
15
+ static encode<T extends IJwtHeader, U extends IJwtPayload>(header: T, payload: U, key: JwkCryptoKey): Promise<string>;
16
16
  /**
17
17
  * Encode a token.
18
18
  * @param header The header to encode.
@@ -20,15 +20,15 @@ export declare class Jwt {
20
20
  * @param signer Custom signer method.
21
21
  * @returns The encoded token.
22
22
  */
23
- static encodeWithSigner<U extends IJwtHeader, T extends IJwtPayload>(header: U, payload: T, signer: (alg: JwtAlgorithms, key: Uint8Array | undefined, payload: Uint8Array) => Promise<Uint8Array>): Promise<string>;
23
+ static encodeWithSigner<T extends IJwtHeader, U extends IJwtPayload>(header: T, payload: U, signer: (header: IJwtHeader, payload: IJwtPayload, key: JwkCryptoKey | undefined) => Promise<string>): Promise<string>;
24
24
  /**
25
25
  * Decode a token.
26
26
  * @param token The token to decode.
27
27
  * @returns The decoded payload.
28
28
  */
29
- static decode<U extends IJwtHeader, T extends IJwtPayload>(token: string): Promise<{
30
- header?: U;
31
- payload?: T;
29
+ static decode<T extends IJwtHeader, U extends IJwtPayload>(token: string): Promise<{
30
+ header?: T;
31
+ payload?: U;
32
32
  signature?: Uint8Array;
33
33
  }>;
34
34
  /**
@@ -37,11 +37,9 @@ export declare class Jwt {
37
37
  * @param key The key for verifying the token
38
38
  * @returns The decoded payload.
39
39
  */
40
- static verify<U extends IJwtHeader, T extends IJwtPayload>(token: string, key: Uint8Array): Promise<{
41
- verified: boolean;
42
- header?: U;
43
- payload?: T;
44
- signature?: Uint8Array;
40
+ static verify<T extends IJwtHeader, U extends IJwtPayload>(token: string, key: JwkCryptoKey): Promise<{
41
+ header: T;
42
+ payload: U;
45
43
  }>;
46
44
  /**
47
45
  * Verify a token.
@@ -49,37 +47,77 @@ export declare class Jwt {
49
47
  * @param verifier Custom verification method.
50
48
  * @returns The decoded payload.
51
49
  */
52
- static verifyWithVerifier<U extends IJwtHeader, T extends IJwtPayload>(token: string, verifier: (alg: JwtAlgorithms, key: Uint8Array | undefined, payload: Uint8Array, signature: Uint8Array) => Promise<boolean>): Promise<{
53
- verified: boolean;
54
- header?: U;
55
- payload?: T;
56
- signature?: Uint8Array;
50
+ static verifyWithVerifier<T extends IJwtHeader, U extends IJwtPayload>(token: string, verifier: (token: string, key: JwkCryptoKey | undefined) => Promise<{
51
+ header: T;
52
+ payload: U;
53
+ }>): Promise<{
54
+ header: T;
55
+ payload: U;
57
56
  }>;
58
57
  /**
59
58
  * Verify a token by parts.
60
- * @param header The header to verify.
61
- * @param payload The payload to verify.
62
- * @param signature The signature to verify.
59
+ * @param token The token to verify.
63
60
  * @param key The key for verifying the token, if not provided no verification occurs.
64
61
  * @param verifier Custom verification method.
65
62
  * @returns True if the parts are verified.
66
63
  */
67
- static verifySignature<U extends IJwtHeader, T extends IJwtPayload>(header?: U, payload?: T, signature?: Uint8Array, key?: Uint8Array, verifier?: (alg: JwtAlgorithms, key: Uint8Array | undefined, payload: Uint8Array, signature: Uint8Array) => Promise<boolean>): Promise<boolean>;
64
+ static verifySignature<T extends IJwtHeader, U extends IJwtPayload>(token: string, key?: JwkCryptoKey, verifier?: (token: string, key: JwkCryptoKey | undefined) => Promise<{
65
+ header: T;
66
+ payload: U;
67
+ }>): Promise<{
68
+ header: T;
69
+ payload: U;
70
+ }>;
68
71
  /**
69
72
  * The default signer for the JWT.
70
- * @param alg The algorithm to use.
71
- * @param key The key to sign with.
73
+ * @param header The header to sign.
72
74
  * @param payload The payload to sign.
75
+ * @param key The optional key to sign with.
73
76
  * @returns The signature.
74
77
  */
75
- static defaultSigner(alg: JwtAlgorithms, key: Uint8Array | undefined, payload: Uint8Array): Promise<Uint8Array>;
78
+ static defaultSigner(header: IJwtHeader, payload: IJwtPayload, key: JwkCryptoKey | undefined): Promise<string>;
76
79
  /**
77
80
  * The default verifier for the JWT.
78
- * @param alg The algorithm to use.
81
+ * @param token The token to verify.
79
82
  * @param key The key to verify with.
80
- * @param payload The payload to verify.
81
- * @param signature The signature to verify.
82
- * @returns True if the signature was verified.
83
+ * @returns The header and payload if verification successful.
84
+ */
85
+ static defaultVerifier<T extends IJwtHeader, U extends IJwtPayload>(token: string, key: JwkCryptoKey | undefined): Promise<{
86
+ header: T;
87
+ payload: U;
88
+ }>;
89
+ /**
90
+ * Create bytes for signing from header and payload.
91
+ * @param header The header.
92
+ * @param payload The payload.
93
+ * @returns The bytes to sign.
94
+ */
95
+ static toSigningBytes<T extends IJwtHeader, U extends IJwtPayload>(header: T, payload: U): Uint8Array;
96
+ /**
97
+ * Create header and payload from signing bytes.
98
+ * @param signingBytes The signing bytes from a token.
99
+ * @returns The header and payload.
100
+ * @throws If the signing bytes are invalid
101
+ */
102
+ static fromSigningBytes<T extends IJwtHeader, U extends IJwtPayload>(signingBytes: Uint8Array): {
103
+ header: T;
104
+ payload: U;
105
+ };
106
+ /**
107
+ * Convert signed bytes and signature bytes to token.
108
+ * @param signingBytes The signed bytes.
109
+ * @param signature The signature.
110
+ * @returns The token.
111
+ */
112
+ static tokenFromBytes(signingBytes: Uint8Array, signature: Uint8Array): string;
113
+ /**
114
+ * Convert the token to signing bytes and signature bytes.
115
+ * @param token The token to convert to bytes.
116
+ * @returns The decoded bytes.
117
+ * @throws If the token is invalid.
83
118
  */
84
- static defaultVerifier(alg: JwtAlgorithms, key: Uint8Array | undefined, payload: Uint8Array, signature: Uint8Array): Promise<boolean>;
119
+ static tokenToBytes(token: string): {
120
+ signingBytes: Uint8Array;
121
+ signature: Uint8Array;
122
+ };
85
123
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,385 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
- ## 0.0.1-next.9
3
+ ## 0.0.1 (2025-07-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * release to production ([829d53d](https://github.com/twinfoundation/framework/commit/829d53d3953b1e1b40b0243c04cfdfd3842aac7b))
9
+ * release to production ([5cf3a76](https://github.com/twinfoundation/framework/commit/5cf3a76a09eff2e6414d0cba846c7c37400a11d6))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * dependencies
16
+ * @twin.org/core bumped from ^0.0.0 to ^0.0.1
17
+ * @twin.org/crypto bumped from ^0.0.0 to ^0.0.1
18
+ * @twin.org/nameof bumped from ^0.0.0 to ^0.0.1
19
+ * devDependencies
20
+ * @twin.org/nameof-transformer bumped from ^0.0.0 to ^0.0.1
21
+ * @twin.org/nameof-vitest-plugin bumped from ^0.0.0 to ^0.0.1
22
+
23
+ ## [0.0.1-next.70](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.69...web-v0.0.1-next.70) (2025-07-02)
24
+
25
+
26
+ ### Features
27
+
28
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
29
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
30
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
31
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
32
+ * ensure the alg is the correct one when generating JWK or JWS ([#136](https://github.com/twinfoundation/framework/issues/136)) ([46a5af1](https://github.com/twinfoundation/framework/commit/46a5af127192d7048068275d14f555f09add3642))
33
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
34
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
35
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
36
+
37
+
38
+ ### Bug Fixes
39
+
40
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
41
+
42
+
43
+ ### Dependencies
44
+
45
+ * The following workspace dependencies were updated
46
+ * dependencies
47
+ * @twin.org/core bumped from 0.0.1-next.69 to 0.0.1-next.70
48
+ * @twin.org/crypto bumped from 0.0.1-next.69 to 0.0.1-next.70
49
+ * @twin.org/nameof bumped from 0.0.1-next.69 to 0.0.1-next.70
50
+ * devDependencies
51
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
52
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.69 to 0.0.1-next.70
53
+
54
+ ## [0.0.1-next.69](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.68...web-v0.0.1-next.69) (2025-07-02)
55
+
56
+
57
+ ### Features
58
+
59
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
60
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
61
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
62
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
63
+ * ensure the alg is the correct one when generating JWK or JWS ([#136](https://github.com/twinfoundation/framework/issues/136)) ([46a5af1](https://github.com/twinfoundation/framework/commit/46a5af127192d7048068275d14f555f09add3642))
64
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
65
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
66
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
67
+
68
+
69
+ ### Bug Fixes
70
+
71
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
72
+
73
+
74
+ ### Dependencies
75
+
76
+ * The following workspace dependencies were updated
77
+ * dependencies
78
+ * @twin.org/core bumped from 0.0.1-next.68 to 0.0.1-next.69
79
+ * @twin.org/crypto bumped from 0.0.1-next.68 to 0.0.1-next.69
80
+ * @twin.org/nameof bumped from 0.0.1-next.68 to 0.0.1-next.69
81
+ * devDependencies
82
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
83
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.68 to 0.0.1-next.69
84
+
85
+ ## [0.0.1-next.68](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.67...web-v0.0.1-next.68) (2025-07-02)
86
+
87
+
88
+ ### Features
89
+
90
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
91
+
92
+
93
+ ### Dependencies
94
+
95
+ * The following workspace dependencies were updated
96
+ * dependencies
97
+ * @twin.org/core bumped from 0.0.1-next.67 to 0.0.1-next.68
98
+ * @twin.org/crypto bumped from 0.0.1-next.67 to 0.0.1-next.68
99
+ * @twin.org/nameof bumped from 0.0.1-next.67 to 0.0.1-next.68
100
+ * devDependencies
101
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
102
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.67 to 0.0.1-next.68
103
+
104
+ ## [0.0.1-next.67](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.66...web-v0.0.1-next.67) (2025-06-26)
105
+
106
+
107
+ ### Miscellaneous Chores
108
+
109
+ * **web:** Synchronize repo versions
110
+
111
+
112
+ ### Dependencies
113
+
114
+ * The following workspace dependencies were updated
115
+ * dependencies
116
+ * @twin.org/core bumped from 0.0.1-next.66 to 0.0.1-next.67
117
+ * @twin.org/crypto bumped from 0.0.1-next.66 to 0.0.1-next.67
118
+
119
+ ## [0.0.1-next.66](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.65...web-v0.0.1-next.66) (2025-06-26)
120
+
121
+
122
+ ### Miscellaneous Chores
123
+
124
+ * **web:** Synchronize repo versions
125
+
126
+
127
+ ### Dependencies
128
+
129
+ * The following workspace dependencies were updated
130
+ * dependencies
131
+ * @twin.org/core bumped from 0.0.1-next.65 to 0.0.1-next.66
132
+ * @twin.org/crypto bumped from 0.0.1-next.65 to 0.0.1-next.66
133
+
134
+ ## [0.0.1-next.65](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.64...web-v0.0.1-next.65) (2025-06-19)
135
+
136
+
137
+ ### Miscellaneous Chores
138
+
139
+ * **web:** Synchronize repo versions
140
+
141
+
142
+ ### Dependencies
143
+
144
+ * The following workspace dependencies were updated
145
+ * dependencies
146
+ * @twin.org/core bumped from 0.0.1-next.64 to 0.0.1-next.65
147
+ * @twin.org/crypto bumped from 0.0.1-next.64 to 0.0.1-next.65
148
+
149
+ ## [0.0.1-next.64](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.63...web-v0.0.1-next.64) (2025-06-19)
150
+
151
+
152
+ ### Features
153
+
154
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
155
+
156
+
157
+ ### Dependencies
158
+
159
+ * The following workspace dependencies were updated
160
+ * dependencies
161
+ * @twin.org/core bumped from 0.0.1-next.63 to 0.0.1-next.64
162
+ * @twin.org/crypto bumped from 0.0.1-next.63 to 0.0.1-next.64
163
+
164
+ ## [0.0.1-next.63](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.62...web-v0.0.1-next.63) (2025-06-18)
165
+
166
+
167
+ ### Features
168
+
169
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
170
+
171
+
172
+ ### Dependencies
173
+
174
+ * The following workspace dependencies were updated
175
+ * dependencies
176
+ * @twin.org/core bumped from 0.0.1-next.62 to 0.0.1-next.63
177
+ * @twin.org/crypto bumped from 0.0.1-next.62 to 0.0.1-next.63
178
+
179
+ ## [0.0.1-next.62](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.61...web-v0.0.1-next.62) (2025-06-17)
180
+
181
+
182
+ ### Features
183
+
184
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
185
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
186
+ * ensure the alg is the correct one when generating JWK or JWS ([#136](https://github.com/twinfoundation/framework/issues/136)) ([46a5af1](https://github.com/twinfoundation/framework/commit/46a5af127192d7048068275d14f555f09add3642))
187
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
188
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
189
+
190
+
191
+ ### Bug Fixes
192
+
193
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
194
+
195
+
196
+ ### Dependencies
197
+
198
+ * The following workspace dependencies were updated
199
+ * dependencies
200
+ * @twin.org/core bumped from 0.0.1-next.61 to 0.0.1-next.62
201
+ * @twin.org/crypto bumped from 0.0.1-next.61 to 0.0.1-next.62
202
+
203
+ ## [0.0.1-next.61](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.60...web-v0.0.1-next.61) (2025-06-17)
204
+
205
+
206
+ ### Miscellaneous Chores
207
+
208
+ * **web:** Synchronize repo versions
209
+
210
+
211
+ ### Dependencies
212
+
213
+ * The following workspace dependencies were updated
214
+ * dependencies
215
+ * @twin.org/core bumped from 0.0.1-next.60 to 0.0.1-next.61
216
+ * @twin.org/crypto bumped from 0.0.1-next.60 to 0.0.1-next.61
217
+
218
+ ## [0.0.1-next.60](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.59...web-v0.0.1-next.60) (2025-06-17)
219
+
220
+
221
+ ### Miscellaneous Chores
222
+
223
+ * **web:** Synchronize repo versions
224
+
225
+
226
+ ### Dependencies
227
+
228
+ * The following workspace dependencies were updated
229
+ * dependencies
230
+ * @twin.org/core bumped from 0.0.1-next.59 to 0.0.1-next.60
231
+ * @twin.org/crypto bumped from 0.0.1-next.59 to 0.0.1-next.60
232
+
233
+ ## [0.0.1-next.59](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.58...web-v0.0.1-next.59) (2025-06-17)
234
+
235
+
236
+ ### Features
237
+
238
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
239
+
240
+
241
+ ### Dependencies
242
+
243
+ * The following workspace dependencies were updated
244
+ * dependencies
245
+ * @twin.org/core bumped from 0.0.1-next.58 to 0.0.1-next.59
246
+ * @twin.org/crypto bumped from 0.0.1-next.58 to 0.0.1-next.59
247
+
248
+ ## [0.0.1-next.58](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.57...web-v0.0.1-next.58) (2025-06-13)
249
+
250
+
251
+ ### Miscellaneous Chores
252
+
253
+ * **web:** Synchronize repo versions
254
+
255
+
256
+ ### Dependencies
257
+
258
+ * The following workspace dependencies were updated
259
+ * dependencies
260
+ * @twin.org/core bumped from 0.0.1-next.57 to 0.0.1-next.58
261
+ * @twin.org/crypto bumped from 0.0.1-next.57 to 0.0.1-next.58
262
+
263
+ ## [0.0.1-next.57](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.56...web-v0.0.1-next.57) (2025-06-10)
264
+
265
+
266
+ ### Features
267
+
268
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
269
+
270
+
271
+ ### Dependencies
272
+
273
+ * The following workspace dependencies were updated
274
+ * dependencies
275
+ * @twin.org/core bumped from 0.0.1-next.56 to 0.0.1-next.57
276
+ * @twin.org/crypto bumped from 0.0.1-next.56 to 0.0.1-next.57
277
+
278
+ ## [0.0.1-next.56](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.55...web-v0.0.1-next.56) (2025-05-08)
279
+
280
+
281
+ ### Miscellaneous Chores
282
+
283
+ * **web:** Synchronize repo versions
284
+
285
+
286
+ ### Dependencies
287
+
288
+ * The following workspace dependencies were updated
289
+ * dependencies
290
+ * @twin.org/core bumped from 0.0.1-next.55 to 0.0.1-next.56
291
+ * @twin.org/crypto bumped from 0.0.1-next.55 to 0.0.1-next.56
292
+
293
+ ## [0.0.1-next.55](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.54...web-v0.0.1-next.55) (2025-05-07)
294
+
295
+
296
+ ### Features
297
+
298
+ * ensure the alg is the correct one when generating JWK or JWS ([#136](https://github.com/twinfoundation/framework/issues/136)) ([46a5af1](https://github.com/twinfoundation/framework/commit/46a5af127192d7048068275d14f555f09add3642))
299
+
300
+
301
+ ### Dependencies
302
+
303
+ * The following workspace dependencies were updated
304
+ * dependencies
305
+ * @twin.org/core bumped from 0.0.1-next.54 to 0.0.1-next.55
306
+ * @twin.org/crypto bumped from 0.0.1-next.54 to 0.0.1-next.55
307
+
308
+ ## [0.0.1-next.54](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.53...web-v0.0.1-next.54) (2025-05-06)
309
+
310
+
311
+ ### Bug Fixes
312
+
313
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
314
+
315
+
316
+ ### Dependencies
317
+
318
+ * The following workspace dependencies were updated
319
+ * dependencies
320
+ * @twin.org/core bumped from 0.0.1-next.53 to 0.0.1-next.54
321
+ * @twin.org/crypto bumped from 0.0.1-next.53 to 0.0.1-next.54
322
+
323
+ ## [0.0.1-next.53](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.52...web-v0.0.1-next.53) (2025-05-01)
324
+
325
+
326
+ ### Miscellaneous Chores
327
+
328
+ * **web:** Synchronize repo versions
329
+
330
+
331
+ ### Dependencies
332
+
333
+ * The following workspace dependencies were updated
334
+ * dependencies
335
+ * @twin.org/core bumped from 0.0.1-next.52 to 0.0.1-next.53
336
+ * @twin.org/crypto bumped from 0.0.1-next.52 to 0.0.1-next.53
337
+
338
+ ## [0.0.1-next.52](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.51...web-v0.0.1-next.52) (2025-04-17)
339
+
340
+
341
+ ### Features
342
+
343
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
344
+
345
+
346
+ ### Dependencies
347
+
348
+ * The following workspace dependencies were updated
349
+ * dependencies
350
+ * @twin.org/core bumped from 0.0.1-next.51 to 0.0.1-next.52
351
+ * @twin.org/crypto bumped from 0.0.1-next.51 to 0.0.1-next.52
352
+
353
+ ## [0.0.1-next.51](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.50...web-v0.0.1-next.51) (2025-03-27)
354
+
355
+
356
+ ### Miscellaneous Chores
357
+
358
+ * **web:** Synchronize repo versions
359
+
360
+
361
+ ### Dependencies
362
+
363
+ * The following workspace dependencies were updated
364
+ * dependencies
365
+ * @twin.org/core bumped from 0.0.1-next.50 to 0.0.1-next.51
366
+ * @twin.org/crypto bumped from 0.0.1-next.50 to 0.0.1-next.51
367
+
368
+ ## [0.0.1-next.50](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.49...web-v0.0.1-next.50) (2025-03-26)
369
+
370
+
371
+ ### Features
372
+
373
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
374
+
375
+
376
+ ### Dependencies
377
+
378
+ * The following workspace dependencies were updated
379
+ * dependencies
380
+ * @twin.org/core bumped from 0.0.1-next.49 to 0.0.1-next.50
381
+ * @twin.org/crypto bumped from 0.0.1-next.49 to 0.0.1-next.50
382
+
383
+ ## 0.0.1-next.49
4
384
 
5
385
  - Initial Release