@twin.org/web 0.0.1-next.9 → 0.0.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.
Files changed (39) hide show
  1. package/dist/cjs/index.cjs +311 -98
  2. package/dist/esm/index.mjs +312 -100
  3. package/dist/types/errors/fetchError.d.ts +2 -2
  4. package/dist/types/index.d.ts +3 -1
  5. package/dist/types/models/IJwk.d.ts +2 -58
  6. package/dist/types/models/IJwtHeader.d.ts +2 -18
  7. package/dist/types/models/IJwtPayload.d.ts +2 -33
  8. package/dist/types/models/jwkCryptoKey.d.ts +4 -0
  9. package/dist/types/models/mimeTypes.d.ts +8 -0
  10. package/dist/types/utils/fetchHelper.d.ts +7 -0
  11. package/dist/types/utils/jwk.d.ts +41 -0
  12. package/dist/types/utils/jws.d.ts +22 -0
  13. package/dist/types/utils/jwt.d.ts +67 -29
  14. package/docs/changelog.md +613 -1
  15. package/docs/reference/classes/FetchError.md +17 -9
  16. package/docs/reference/classes/FetchHelper.md +104 -28
  17. package/docs/reference/classes/Jwk.md +129 -0
  18. package/docs/reference/classes/Jws.md +81 -0
  19. package/docs/reference/classes/Jwt.md +261 -105
  20. package/docs/reference/classes/MimeTypeHelper.md +9 -5
  21. package/docs/reference/index.md +3 -2
  22. package/docs/reference/interfaces/IHttpHeaders.md +1 -1
  23. package/docs/reference/interfaces/IJwk.md +2 -106
  24. package/docs/reference/interfaces/IJwtHeader.md +5 -23
  25. package/docs/reference/interfaces/IJwtPayload.md +5 -55
  26. package/docs/reference/type-aliases/HeaderTypes.md +1 -1
  27. package/docs/reference/type-aliases/HttpMethod.md +1 -1
  28. package/docs/reference/type-aliases/HttpStatusCode.md +1 -1
  29. package/docs/reference/type-aliases/JwkCryptoKey.md +5 -0
  30. package/docs/reference/type-aliases/MimeTypes.md +1 -1
  31. package/docs/reference/variables/HeaderTypes.md +1 -1
  32. package/docs/reference/variables/HttpMethod.md +1 -1
  33. package/docs/reference/variables/HttpStatusCode.md +1 -1
  34. package/docs/reference/variables/MimeTypes.md +13 -1
  35. package/locales/en.json +11 -1
  36. package/package.json +7 -6
  37. package/dist/types/models/jwtAlgorithms.d.ts +0 -17
  38. package/docs/reference/type-aliases/JwtAlgorithms.md +0 -5
  39. package/docs/reference/variables/JwtAlgorithms.md +0 -19
package/docs/changelog.md CHANGED
@@ -1,5 +1,617 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
- ## 0.0.1-next.9
3
+ ## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.9...web-v0.0.2-next.10) (2025-09-11)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **web:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
16
+ * @twin.org/crypto bumped from 0.0.2-next.9 to 0.0.2-next.10
17
+ * @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
18
+ * devDependencies
19
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
20
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
21
+
22
+ ## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.8...web-v0.0.2-next.9) (2025-09-08)
23
+
24
+
25
+ ### Miscellaneous Chores
26
+
27
+ * **web:** Synchronize repo versions
28
+
29
+
30
+ ### Dependencies
31
+
32
+ * The following workspace dependencies were updated
33
+ * dependencies
34
+ * @twin.org/core bumped from 0.0.2-next.8 to 0.0.2-next.9
35
+ * @twin.org/crypto bumped from 0.0.2-next.8 to 0.0.2-next.9
36
+ * @twin.org/nameof bumped from 0.0.2-next.8 to 0.0.2-next.9
37
+ * devDependencies
38
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.8 to 0.0.2-next.9
39
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.8 to 0.0.2-next.9
40
+
41
+ ## [0.0.2-next.8](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.7...web-v0.0.2-next.8) (2025-09-05)
42
+
43
+
44
+ ### Miscellaneous Chores
45
+
46
+ * **web:** Synchronize repo versions
47
+
48
+
49
+ ### Dependencies
50
+
51
+ * The following workspace dependencies were updated
52
+ * dependencies
53
+ * @twin.org/core bumped from 0.0.2-next.7 to 0.0.2-next.8
54
+ * @twin.org/crypto bumped from 0.0.2-next.7 to 0.0.2-next.8
55
+ * @twin.org/nameof bumped from 0.0.2-next.7 to 0.0.2-next.8
56
+ * devDependencies
57
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.7 to 0.0.2-next.8
58
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.7 to 0.0.2-next.8
59
+
60
+ ## [0.0.2-next.7](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.6...web-v0.0.2-next.7) (2025-08-29)
61
+
62
+
63
+ ### Features
64
+
65
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
66
+
67
+
68
+ ### Dependencies
69
+
70
+ * The following workspace dependencies were updated
71
+ * dependencies
72
+ * @twin.org/core bumped from 0.0.2-next.6 to 0.0.2-next.7
73
+ * @twin.org/crypto bumped from 0.0.2-next.6 to 0.0.2-next.7
74
+ * @twin.org/nameof bumped from 0.0.2-next.6 to 0.0.2-next.7
75
+ * devDependencies
76
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.6 to 0.0.2-next.7
77
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.6 to 0.0.2-next.7
78
+
79
+ ## [0.0.2-next.6](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.5...web-v0.0.2-next.6) (2025-08-27)
80
+
81
+
82
+ ### Miscellaneous Chores
83
+
84
+ * **web:** Synchronize repo versions
85
+
86
+
87
+ ### Dependencies
88
+
89
+ * The following workspace dependencies were updated
90
+ * dependencies
91
+ * @twin.org/core bumped from 0.0.2-next.5 to 0.0.2-next.6
92
+ * @twin.org/crypto bumped from 0.0.2-next.5 to 0.0.2-next.6
93
+ * @twin.org/nameof bumped from 0.0.2-next.5 to 0.0.2-next.6
94
+ * devDependencies
95
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.5 to 0.0.2-next.6
96
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.5 to 0.0.2-next.6
97
+
98
+ ## [0.0.2-next.5](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.4...web-v0.0.2-next.5) (2025-08-19)
99
+
100
+
101
+ ### Features
102
+
103
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
104
+
105
+
106
+ ### Dependencies
107
+
108
+ * The following workspace dependencies were updated
109
+ * dependencies
110
+ * @twin.org/core bumped from 0.0.2-next.4 to 0.0.2-next.5
111
+ * @twin.org/crypto bumped from 0.0.2-next.4 to 0.0.2-next.5
112
+ * @twin.org/nameof bumped from 0.0.2-next.4 to 0.0.2-next.5
113
+ * devDependencies
114
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.4 to 0.0.2-next.5
115
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.4 to 0.0.2-next.5
116
+
117
+ ## [0.0.2-next.4](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.3...web-v0.0.2-next.4) (2025-08-15)
118
+
119
+
120
+ ### Miscellaneous Chores
121
+
122
+ * **web:** Synchronize repo versions
123
+
124
+
125
+ ### Dependencies
126
+
127
+ * The following workspace dependencies were updated
128
+ * dependencies
129
+ * @twin.org/core bumped from 0.0.2-next.3 to 0.0.2-next.4
130
+ * @twin.org/crypto bumped from 0.0.2-next.3 to 0.0.2-next.4
131
+ * @twin.org/nameof bumped from 0.0.2-next.3 to 0.0.2-next.4
132
+ * devDependencies
133
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.3 to 0.0.2-next.4
134
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.3 to 0.0.2-next.4
135
+
136
+ ## [0.0.2-next.3](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.2...web-v0.0.2-next.3) (2025-08-06)
137
+
138
+
139
+ ### Features
140
+
141
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
142
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
143
+ * add rsa cipher support ([7af6cc6](https://github.com/twinfoundation/framework/commit/7af6cc67512d3363bd4a2f2e87bd7733c2800147))
144
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
145
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
146
+ * 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))
147
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
148
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
149
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
150
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
151
+
152
+
153
+ ### Bug Fixes
154
+
155
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
156
+
157
+
158
+ ### Dependencies
159
+
160
+ * The following workspace dependencies were updated
161
+ * dependencies
162
+ * @twin.org/core bumped from 0.0.2-next.2 to 0.0.2-next.3
163
+ * @twin.org/crypto bumped from 0.0.2-next.2 to 0.0.2-next.3
164
+ * @twin.org/nameof bumped from 0.0.2-next.2 to 0.0.2-next.3
165
+ * devDependencies
166
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.2 to 0.0.2-next.3
167
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.2 to 0.0.2-next.3
168
+
169
+ ## [0.0.2-next.2](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.1...web-v0.0.2-next.2) (2025-08-06)
170
+
171
+
172
+ ### Features
173
+
174
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
175
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
176
+ * add rsa cipher support ([7af6cc6](https://github.com/twinfoundation/framework/commit/7af6cc67512d3363bd4a2f2e87bd7733c2800147))
177
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
178
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
179
+ * 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))
180
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
181
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
182
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
183
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
184
+
185
+
186
+ ### Bug Fixes
187
+
188
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
189
+
190
+
191
+ ### Dependencies
192
+
193
+ * The following workspace dependencies were updated
194
+ * dependencies
195
+ * @twin.org/core bumped from 0.0.2-next.1 to 0.0.2-next.2
196
+ * @twin.org/crypto bumped from 0.0.2-next.1 to 0.0.2-next.2
197
+ * @twin.org/nameof bumped from 0.0.2-next.1 to 0.0.2-next.2
198
+ * devDependencies
199
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.1 to 0.0.2-next.2
200
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.1 to 0.0.2-next.2
201
+
202
+ ## [0.0.2-next.1](https://github.com/twinfoundation/framework/compare/web-v0.0.2-next.0...web-v0.0.2-next.1) (2025-08-06)
203
+
204
+
205
+ ### Features
206
+
207
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
208
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
209
+ * add rsa cipher support ([7af6cc6](https://github.com/twinfoundation/framework/commit/7af6cc67512d3363bd4a2f2e87bd7733c2800147))
210
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
211
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
212
+ * 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))
213
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
214
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
215
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
216
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
217
+
218
+
219
+ ### Bug Fixes
220
+
221
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
222
+
223
+
224
+ ### Dependencies
225
+
226
+ * The following workspace dependencies were updated
227
+ * dependencies
228
+ * @twin.org/core bumped from 0.0.2-next.0 to 0.0.2-next.1
229
+ * @twin.org/crypto bumped from 0.0.2-next.0 to 0.0.2-next.1
230
+ * @twin.org/nameof bumped from 0.0.2-next.0 to 0.0.2-next.1
231
+ * devDependencies
232
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.0 to 0.0.2-next.1
233
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.0 to 0.0.2-next.1
234
+
235
+ ## 0.0.1 (2025-07-03)
236
+
237
+
238
+ ### Features
239
+
240
+ * release to production ([829d53d](https://github.com/twinfoundation/framework/commit/829d53d3953b1e1b40b0243c04cfdfd3842aac7b))
241
+ * release to production ([5cf3a76](https://github.com/twinfoundation/framework/commit/5cf3a76a09eff2e6414d0cba846c7c37400a11d6))
242
+
243
+
244
+ ### Dependencies
245
+
246
+ * The following workspace dependencies were updated
247
+ * dependencies
248
+ * @twin.org/core bumped from ^0.0.0 to ^0.0.1
249
+ * @twin.org/crypto bumped from ^0.0.0 to ^0.0.1
250
+ * @twin.org/nameof bumped from ^0.0.0 to ^0.0.1
251
+ * devDependencies
252
+ * @twin.org/nameof-transformer bumped from ^0.0.0 to ^0.0.1
253
+ * @twin.org/nameof-vitest-plugin bumped from ^0.0.0 to ^0.0.1
254
+
255
+ ## [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)
256
+
257
+
258
+ ### Features
259
+
260
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
261
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
262
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
263
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
264
+ * 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))
265
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
266
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
267
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
268
+
269
+
270
+ ### Bug Fixes
271
+
272
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
273
+
274
+
275
+ ### Dependencies
276
+
277
+ * The following workspace dependencies were updated
278
+ * dependencies
279
+ * @twin.org/core bumped from 0.0.1-next.69 to 0.0.1-next.70
280
+ * @twin.org/crypto bumped from 0.0.1-next.69 to 0.0.1-next.70
281
+ * @twin.org/nameof bumped from 0.0.1-next.69 to 0.0.1-next.70
282
+ * devDependencies
283
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.69 to 0.0.1-next.70
284
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.69 to 0.0.1-next.70
285
+
286
+ ## [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)
287
+
288
+
289
+ ### Features
290
+
291
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
292
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
293
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
294
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
295
+ * 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))
296
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
297
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
298
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
299
+
300
+
301
+ ### Bug Fixes
302
+
303
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
304
+
305
+
306
+ ### Dependencies
307
+
308
+ * The following workspace dependencies were updated
309
+ * dependencies
310
+ * @twin.org/core bumped from 0.0.1-next.68 to 0.0.1-next.69
311
+ * @twin.org/crypto bumped from 0.0.1-next.68 to 0.0.1-next.69
312
+ * @twin.org/nameof bumped from 0.0.1-next.68 to 0.0.1-next.69
313
+ * devDependencies
314
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.68 to 0.0.1-next.69
315
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.68 to 0.0.1-next.69
316
+
317
+ ## [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)
318
+
319
+
320
+ ### Features
321
+
322
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
323
+
324
+
325
+ ### Dependencies
326
+
327
+ * The following workspace dependencies were updated
328
+ * dependencies
329
+ * @twin.org/core bumped from 0.0.1-next.67 to 0.0.1-next.68
330
+ * @twin.org/crypto bumped from 0.0.1-next.67 to 0.0.1-next.68
331
+ * @twin.org/nameof bumped from 0.0.1-next.67 to 0.0.1-next.68
332
+ * devDependencies
333
+ * @twin.org/nameof-transformer bumped from 0.0.1-next.67 to 0.0.1-next.68
334
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.1-next.67 to 0.0.1-next.68
335
+
336
+ ## [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)
337
+
338
+
339
+ ### Miscellaneous Chores
340
+
341
+ * **web:** Synchronize repo versions
342
+
343
+
344
+ ### Dependencies
345
+
346
+ * The following workspace dependencies were updated
347
+ * dependencies
348
+ * @twin.org/core bumped from 0.0.1-next.66 to 0.0.1-next.67
349
+ * @twin.org/crypto bumped from 0.0.1-next.66 to 0.0.1-next.67
350
+
351
+ ## [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)
352
+
353
+
354
+ ### Miscellaneous Chores
355
+
356
+ * **web:** Synchronize repo versions
357
+
358
+
359
+ ### Dependencies
360
+
361
+ * The following workspace dependencies were updated
362
+ * dependencies
363
+ * @twin.org/core bumped from 0.0.1-next.65 to 0.0.1-next.66
364
+ * @twin.org/crypto bumped from 0.0.1-next.65 to 0.0.1-next.66
365
+
366
+ ## [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)
367
+
368
+
369
+ ### Miscellaneous Chores
370
+
371
+ * **web:** Synchronize repo versions
372
+
373
+
374
+ ### Dependencies
375
+
376
+ * The following workspace dependencies were updated
377
+ * dependencies
378
+ * @twin.org/core bumped from 0.0.1-next.64 to 0.0.1-next.65
379
+ * @twin.org/crypto bumped from 0.0.1-next.64 to 0.0.1-next.65
380
+
381
+ ## [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)
382
+
383
+
384
+ ### Features
385
+
386
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
387
+
388
+
389
+ ### Dependencies
390
+
391
+ * The following workspace dependencies were updated
392
+ * dependencies
393
+ * @twin.org/core bumped from 0.0.1-next.63 to 0.0.1-next.64
394
+ * @twin.org/crypto bumped from 0.0.1-next.63 to 0.0.1-next.64
395
+
396
+ ## [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)
397
+
398
+
399
+ ### Features
400
+
401
+ * add kid method to Jwk ([bc9239e](https://github.com/twinfoundation/framework/commit/bc9239ed9896a053d83e00ca221e962704ebc277))
402
+
403
+
404
+ ### Dependencies
405
+
406
+ * The following workspace dependencies were updated
407
+ * dependencies
408
+ * @twin.org/core bumped from 0.0.1-next.62 to 0.0.1-next.63
409
+ * @twin.org/crypto bumped from 0.0.1-next.62 to 0.0.1-next.63
410
+
411
+ ## [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)
412
+
413
+
414
+ ### Features
415
+
416
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
417
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
418
+ * 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))
419
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
420
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
421
+
422
+
423
+ ### Bug Fixes
424
+
425
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
426
+
427
+
428
+ ### Dependencies
429
+
430
+ * The following workspace dependencies were updated
431
+ * dependencies
432
+ * @twin.org/core bumped from 0.0.1-next.61 to 0.0.1-next.62
433
+ * @twin.org/crypto bumped from 0.0.1-next.61 to 0.0.1-next.62
434
+
435
+ ## [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)
436
+
437
+
438
+ ### Miscellaneous Chores
439
+
440
+ * **web:** Synchronize repo versions
441
+
442
+
443
+ ### Dependencies
444
+
445
+ * The following workspace dependencies were updated
446
+ * dependencies
447
+ * @twin.org/core bumped from 0.0.1-next.60 to 0.0.1-next.61
448
+ * @twin.org/crypto bumped from 0.0.1-next.60 to 0.0.1-next.61
449
+
450
+ ## [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)
451
+
452
+
453
+ ### Miscellaneous Chores
454
+
455
+ * **web:** Synchronize repo versions
456
+
457
+
458
+ ### Dependencies
459
+
460
+ * The following workspace dependencies were updated
461
+ * dependencies
462
+ * @twin.org/core bumped from 0.0.1-next.59 to 0.0.1-next.60
463
+ * @twin.org/crypto bumped from 0.0.1-next.59 to 0.0.1-next.60
464
+
465
+ ## [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)
466
+
467
+
468
+ ### Features
469
+
470
+ * propagate includeStackTrace on error conversion ([098fc72](https://github.com/twinfoundation/framework/commit/098fc729939ea3127f2bdcc0ddb6754096c5f919))
471
+
472
+
473
+ ### Dependencies
474
+
475
+ * The following workspace dependencies were updated
476
+ * dependencies
477
+ * @twin.org/core bumped from 0.0.1-next.58 to 0.0.1-next.59
478
+ * @twin.org/crypto bumped from 0.0.1-next.58 to 0.0.1-next.59
479
+
480
+ ## [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)
481
+
482
+
483
+ ### Miscellaneous Chores
484
+
485
+ * **web:** Synchronize repo versions
486
+
487
+
488
+ ### Dependencies
489
+
490
+ * The following workspace dependencies were updated
491
+ * dependencies
492
+ * @twin.org/core bumped from 0.0.1-next.57 to 0.0.1-next.58
493
+ * @twin.org/crypto bumped from 0.0.1-next.57 to 0.0.1-next.58
494
+
495
+ ## [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)
496
+
497
+
498
+ ### Features
499
+
500
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
501
+
502
+
503
+ ### Dependencies
504
+
505
+ * The following workspace dependencies were updated
506
+ * dependencies
507
+ * @twin.org/core bumped from 0.0.1-next.56 to 0.0.1-next.57
508
+ * @twin.org/crypto bumped from 0.0.1-next.56 to 0.0.1-next.57
509
+
510
+ ## [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)
511
+
512
+
513
+ ### Miscellaneous Chores
514
+
515
+ * **web:** Synchronize repo versions
516
+
517
+
518
+ ### Dependencies
519
+
520
+ * The following workspace dependencies were updated
521
+ * dependencies
522
+ * @twin.org/core bumped from 0.0.1-next.55 to 0.0.1-next.56
523
+ * @twin.org/crypto bumped from 0.0.1-next.55 to 0.0.1-next.56
524
+
525
+ ## [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)
526
+
527
+
528
+ ### Features
529
+
530
+ * 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))
531
+
532
+
533
+ ### Dependencies
534
+
535
+ * The following workspace dependencies were updated
536
+ * dependencies
537
+ * @twin.org/core bumped from 0.0.1-next.54 to 0.0.1-next.55
538
+ * @twin.org/crypto bumped from 0.0.1-next.54 to 0.0.1-next.55
539
+
540
+ ## [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)
541
+
542
+
543
+ ### Bug Fixes
544
+
545
+ * wrap inner error within FetchError / 2 ([#134](https://github.com/twinfoundation/framework/issues/134)) ([2ddb101](https://github.com/twinfoundation/framework/commit/2ddb101c3778be4e99559e37aa036cd7101585fb))
546
+
547
+
548
+ ### Dependencies
549
+
550
+ * The following workspace dependencies were updated
551
+ * dependencies
552
+ * @twin.org/core bumped from 0.0.1-next.53 to 0.0.1-next.54
553
+ * @twin.org/crypto bumped from 0.0.1-next.53 to 0.0.1-next.54
554
+
555
+ ## [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)
556
+
557
+
558
+ ### Miscellaneous Chores
559
+
560
+ * **web:** Synchronize repo versions
561
+
562
+
563
+ ### Dependencies
564
+
565
+ * The following workspace dependencies were updated
566
+ * dependencies
567
+ * @twin.org/core bumped from 0.0.1-next.52 to 0.0.1-next.53
568
+ * @twin.org/crypto bumped from 0.0.1-next.52 to 0.0.1-next.53
569
+
570
+ ## [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)
571
+
572
+
573
+ ### Features
574
+
575
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
576
+
577
+
578
+ ### Dependencies
579
+
580
+ * The following workspace dependencies were updated
581
+ * dependencies
582
+ * @twin.org/core bumped from 0.0.1-next.51 to 0.0.1-next.52
583
+ * @twin.org/crypto bumped from 0.0.1-next.51 to 0.0.1-next.52
584
+
585
+ ## [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)
586
+
587
+
588
+ ### Miscellaneous Chores
589
+
590
+ * **web:** Synchronize repo versions
591
+
592
+
593
+ ### Dependencies
594
+
595
+ * The following workspace dependencies were updated
596
+ * dependencies
597
+ * @twin.org/core bumped from 0.0.1-next.50 to 0.0.1-next.51
598
+ * @twin.org/crypto bumped from 0.0.1-next.50 to 0.0.1-next.51
599
+
600
+ ## [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)
601
+
602
+
603
+ ### Features
604
+
605
+ * add set method for async caches ([ba34b55](https://github.com/twinfoundation/framework/commit/ba34b55e651ad56ab8fc59e139e4af631c19cda0))
606
+
607
+
608
+ ### Dependencies
609
+
610
+ * The following workspace dependencies were updated
611
+ * dependencies
612
+ * @twin.org/core bumped from 0.0.1-next.49 to 0.0.1-next.50
613
+ * @twin.org/crypto bumped from 0.0.1-next.49 to 0.0.1-next.50
614
+
615
+ ## 0.0.1-next.49
4
616
 
5
617
  - Initial Release
@@ -8,37 +8,45 @@ Class to represent errors from fetch.
8
8
 
9
9
  ## Constructors
10
10
 
11
- ### new FetchError()
11
+ ### Constructor
12
12
 
13
- > **new FetchError**(`source`, `message`, `httpStatus`, `properties`?, `inner`?): [`FetchError`](FetchError.md)
13
+ > **new FetchError**(`source`, `message`, `httpStatus`, `properties?`, `cause?`): `FetchError`
14
14
 
15
15
  Create a new instance of FetchError.
16
16
 
17
17
  #### Parameters
18
18
 
19
- **source**: `string`
19
+ ##### source
20
+
21
+ `string`
20
22
 
21
23
  The source of the error.
22
24
 
23
- **message**: `string`
25
+ ##### message
26
+
27
+ `string`
24
28
 
25
29
  The message as a code.
26
30
 
27
- **httpStatus**: [`HttpStatusCode`](../type-aliases/HttpStatusCode.md)
31
+ ##### httpStatus
32
+
33
+ [`HttpStatusCode`](../type-aliases/HttpStatusCode.md)
28
34
 
29
35
  The http status code.
30
36
 
31
- **properties?**
37
+ ##### properties?
32
38
 
33
39
  Any additional information for the error.
34
40
 
35
- **inner?**: `unknown`
41
+ ##### cause?
42
+
43
+ `unknown`
36
44
 
37
- The inner error if we have wrapped another error.
45
+ The cause of the error if we have wrapped another error.
38
46
 
39
47
  #### Returns
40
48
 
41
- [`FetchError`](FetchError.md)
49
+ `FetchError`
42
50
 
43
51
  #### Overrides
44
52