@twin.org/web 0.0.3-next.23 → 0.0.3-next.25
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/docs/changelog.md +40 -0
- package/docs/reference/classes/CookieHelper.md +2 -2
- package/docs/reference/classes/FetchError.md +17 -17
- package/docs/reference/classes/FetchHelper.md +4 -4
- package/docs/reference/classes/HeaderHelper.md +2 -2
- package/docs/reference/classes/Jwt.md +4 -4
- package/docs/reference/classes/MimeTypeHelper.md +2 -2
- package/docs/reference/interfaces/IFetchOptions.md +6 -6
- package/docs/reference/interfaces/IHttpHeaders.md +1 -1
- package/package.json +5 -5
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.25](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.24...web-v0.0.3-next.25) (2026-03-23)
|
|
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.3-next.24 to 0.0.3-next.25
|
|
16
|
+
* @twin.org/crypto bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
17
|
+
* @twin.org/nameof bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/nameof-transformer bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
20
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
21
|
+
* @twin.org/validate-locales bumped from 0.0.3-next.24 to 0.0.3-next.25
|
|
22
|
+
|
|
23
|
+
## [0.0.3-next.24](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.23...web-v0.0.3-next.24) (2026-03-19)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* ensure __decorate is defined for decorators ([103a563](https://github.com/twinfoundation/framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Dependencies
|
|
32
|
+
|
|
33
|
+
* The following workspace dependencies were updated
|
|
34
|
+
* dependencies
|
|
35
|
+
* @twin.org/core bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
36
|
+
* @twin.org/crypto bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
37
|
+
* @twin.org/nameof bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
38
|
+
* devDependencies
|
|
39
|
+
* @twin.org/nameof-transformer bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
40
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
41
|
+
* @twin.org/validate-locales bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
42
|
+
|
|
3
43
|
## [0.0.3-next.23](https://github.com/twinfoundation/framework/compare/web-v0.0.3-next.22...web-v0.0.3-next.23) (2026-03-17)
|
|
4
44
|
|
|
5
45
|
|
|
@@ -56,7 +56,7 @@ The cause of the error if we have wrapped another error.
|
|
|
56
56
|
|
|
57
57
|
### source? {#source}
|
|
58
58
|
|
|
59
|
-
> `optional` **source
|
|
59
|
+
> `optional` **source?**: `string`
|
|
60
60
|
|
|
61
61
|
The source of the error.
|
|
62
62
|
|
|
@@ -68,7 +68,7 @@ The source of the error.
|
|
|
68
68
|
|
|
69
69
|
### properties? {#properties}
|
|
70
70
|
|
|
71
|
-
> `optional` **properties
|
|
71
|
+
> `optional` **properties?**: `object`
|
|
72
72
|
|
|
73
73
|
Any additional information for the error.
|
|
74
74
|
|
|
@@ -84,7 +84,7 @@ Any additional information for the error.
|
|
|
84
84
|
|
|
85
85
|
### cause? {#cause}
|
|
86
86
|
|
|
87
|
-
> `optional` **cause
|
|
87
|
+
> `optional` **cause?**: `IError`
|
|
88
88
|
|
|
89
89
|
The cause of the error.
|
|
90
90
|
|
|
@@ -164,9 +164,9 @@ Expand an error tree.
|
|
|
164
164
|
|
|
165
165
|
##### errors
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
`IError`[] \| `undefined`
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
The list of errors to expand.
|
|
170
170
|
|
|
171
171
|
#### Returns
|
|
172
172
|
|
|
@@ -196,9 +196,9 @@ The error to test.
|
|
|
196
196
|
|
|
197
197
|
##### name
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
`string` \| `RegExp`
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
The name to check for.
|
|
202
202
|
|
|
203
203
|
#### Returns
|
|
204
204
|
|
|
@@ -228,9 +228,9 @@ The error to test.
|
|
|
228
228
|
|
|
229
229
|
##### message
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
`string` \| `RegExp`
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
The message to check for.
|
|
234
234
|
|
|
235
235
|
#### Returns
|
|
236
236
|
|
|
@@ -260,9 +260,9 @@ The error to test.
|
|
|
260
260
|
|
|
261
261
|
##### code
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
`string` \| `RegExp`
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
The code to check for.
|
|
266
266
|
|
|
267
267
|
#### Returns
|
|
268
268
|
|
|
@@ -292,9 +292,9 @@ The error to test.
|
|
|
292
292
|
|
|
293
293
|
##### name
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
`string` \| `RegExp`
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
The name to check for.
|
|
298
298
|
|
|
299
299
|
#### Returns
|
|
300
300
|
|
|
@@ -324,9 +324,9 @@ The error to test.
|
|
|
324
324
|
|
|
325
325
|
##### message
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
`string` \| `RegExp`
|
|
328
328
|
|
|
329
|
-
|
|
329
|
+
The message to check for.
|
|
330
330
|
|
|
331
331
|
#### Returns
|
|
332
332
|
|
|
@@ -388,9 +388,9 @@ The error to test.
|
|
|
388
388
|
|
|
389
389
|
##### code
|
|
390
390
|
|
|
391
|
-
|
|
391
|
+
`string` \| `RegExp`
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
The code to check for.
|
|
394
394
|
|
|
395
395
|
#### Returns
|
|
396
396
|
|
|
@@ -50,9 +50,9 @@ The http method.
|
|
|
50
50
|
|
|
51
51
|
##### body?
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
`string` \| `Uint8Array`\<`ArrayBufferLike`\>
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Request to send to the endpoint.
|
|
56
56
|
|
|
57
57
|
##### options?
|
|
58
58
|
|
|
@@ -152,9 +152,9 @@ The url for the request.
|
|
|
152
152
|
|
|
153
153
|
##### method
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
`"GET"` \| `"POST"`
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
The http method.
|
|
158
158
|
|
|
159
159
|
##### requestData?
|
|
160
160
|
|
|
@@ -166,9 +166,9 @@ The URL to include in the Link header.
|
|
|
166
166
|
|
|
167
167
|
##### urlQueryParams
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
\{\[`id`: `string`\]: `string`; \} \| `undefined`
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
Optional query parameters to include in the URL.
|
|
172
172
|
|
|
173
173
|
##### rel
|
|
174
174
|
|
|
@@ -284,9 +284,9 @@ The payload to sign.
|
|
|
284
284
|
|
|
285
285
|
##### key
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
[`JwkCryptoKey`](../type-aliases/JwkCryptoKey.md) \| `undefined`
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
The optional key to sign with.
|
|
290
290
|
|
|
291
291
|
#### Returns
|
|
292
292
|
|
|
@@ -322,9 +322,9 @@ The token to verify.
|
|
|
322
322
|
|
|
323
323
|
##### key
|
|
324
324
|
|
|
325
|
-
|
|
325
|
+
[`JwkCryptoKey`](../type-aliases/JwkCryptoKey.md) \| `undefined`
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
The key to verify with.
|
|
328
328
|
|
|
329
329
|
#### Returns
|
|
330
330
|
|
|
@@ -6,7 +6,7 @@ Options for call to the fetch helper.
|
|
|
6
6
|
|
|
7
7
|
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: [`IHttpHeaders`](IHttpHeaders.md)
|
|
10
10
|
|
|
11
11
|
#### Param
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers for the request.
|
|
|
16
16
|
|
|
17
17
|
### timeoutMs? {#timeoutms}
|
|
18
18
|
|
|
19
|
-
> `optional` **timeoutMs
|
|
19
|
+
> `optional` **timeoutMs?**: `number`
|
|
20
20
|
|
|
21
21
|
Timeout for requests in milliseconds.
|
|
22
22
|
|
|
@@ -24,7 +24,7 @@ Timeout for requests in milliseconds.
|
|
|
24
24
|
|
|
25
25
|
### includeCredentials? {#includecredentials}
|
|
26
26
|
|
|
27
|
-
> `optional` **includeCredentials
|
|
27
|
+
> `optional` **includeCredentials?**: `boolean`
|
|
28
28
|
|
|
29
29
|
Include credentials in the requests.
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ Include credentials in the requests.
|
|
|
32
32
|
|
|
33
33
|
### retryCount? {#retrycount}
|
|
34
34
|
|
|
35
|
-
> `optional` **retryCount
|
|
35
|
+
> `optional` **retryCount?**: `number`
|
|
36
36
|
|
|
37
37
|
The number of times to retry fetching defaults to no retries.
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ The number of times to retry fetching defaults to no retries.
|
|
|
40
40
|
|
|
41
41
|
### retryDelayMs? {#retrydelayms}
|
|
42
42
|
|
|
43
|
-
> `optional` **retryDelayMs
|
|
43
|
+
> `optional` **retryDelayMs?**: `number`
|
|
44
44
|
|
|
45
45
|
The number of milliseconds we should delay before any retry.
|
|
46
46
|
|
|
@@ -48,6 +48,6 @@ The number of milliseconds we should delay before any retry.
|
|
|
48
48
|
|
|
49
49
|
### cacheTtlMs? {#cachettlms}
|
|
50
50
|
|
|
51
|
-
> `optional` **cacheTtlMs
|
|
51
|
+
> `optional` **cacheTtlMs?**: `number`
|
|
52
52
|
|
|
53
53
|
The number of milliseconds to cache the response for, leave undefined for no cache, 0 means infinite.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/web",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.25",
|
|
4
4
|
"description": "Classes for use with web operations",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "0.0.3-next.
|
|
18
|
-
"@twin.org/crypto": "0.0.3-next.
|
|
19
|
-
"@twin.org/nameof": "0.0.3-next.
|
|
20
|
-
"jose": "6.
|
|
17
|
+
"@twin.org/core": "0.0.3-next.25",
|
|
18
|
+
"@twin.org/crypto": "0.0.3-next.25",
|
|
19
|
+
"@twin.org/nameof": "0.0.3-next.25",
|
|
20
|
+
"jose": "6.2.2"
|
|
21
21
|
},
|
|
22
22
|
"main": "./dist/es/index.js",
|
|
23
23
|
"types": "./dist/types/index.d.ts",
|