@twin.org/core 0.0.3-next.23 → 0.0.3-next.24
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 +17 -0
- package/docs/reference/classes/AlreadyExistsError.md +17 -17
- package/docs/reference/classes/AsyncCache.md +2 -2
- package/docs/reference/classes/BaseError.md +17 -17
- package/docs/reference/classes/ConflictError.md +17 -17
- package/docs/reference/classes/GeneralError.md +17 -17
- package/docs/reference/classes/GuardError.md +17 -17
- package/docs/reference/classes/Guards.md +2 -2
- package/docs/reference/classes/Is.md +2 -2
- package/docs/reference/classes/JsonHelper.md +2 -2
- package/docs/reference/classes/NotFoundError.md +17 -17
- package/docs/reference/classes/NotImplementedError.md +17 -17
- package/docs/reference/classes/NotSupportedError.md +17 -17
- package/docs/reference/classes/ObjectHelper.md +12 -12
- package/docs/reference/classes/RandomHelper.md +2 -2
- package/docs/reference/classes/UnauthorizedError.md +17 -17
- package/docs/reference/classes/UnprocessableError.md +17 -17
- package/docs/reference/classes/Urn.md +2 -2
- package/docs/reference/classes/ValidationError.md +17 -17
- package/docs/reference/interfaces/IError.md +4 -4
- package/docs/reference/interfaces/ILocaleDictionary.md +1 -1
- package/docs/reference/interfaces/IPatchOperation.md +2 -2
- package/docs/reference/interfaces/IUrlParts.md +3 -3
- package/docs/reference/interfaces/IValidationFailure.md +1 -1
- package/package.json +3 -3
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.24](https://github.com/twinfoundation/framework/compare/core-v0.0.3-next.23...core-v0.0.3-next.24) (2026-03-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* ensure __decorate is defined for decorators ([103a563](https://github.com/twinfoundation/framework/commit/103a563ce01ebdef6240d2e590e7b026e8692684))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/nameof bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
16
|
+
* devDependencies
|
|
17
|
+
* @twin.org/nameof-transformer bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
18
|
+
* @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.23 to 0.0.3-next.24
|
|
19
|
+
|
|
3
20
|
## [0.0.3-next.23](https://github.com/twinfoundation/framework/compare/core-v0.0.3-next.22...core-v0.0.3-next.23) (2026-03-17)
|
|
4
21
|
|
|
5
22
|
|
|
@@ -64,7 +64,7 @@ Runtime name for the class.
|
|
|
64
64
|
|
|
65
65
|
### source? {#source}
|
|
66
66
|
|
|
67
|
-
> `optional` **source
|
|
67
|
+
> `optional` **source?**: `string`
|
|
68
68
|
|
|
69
69
|
The source of the error.
|
|
70
70
|
|
|
@@ -76,7 +76,7 @@ The source of the error.
|
|
|
76
76
|
|
|
77
77
|
### properties? {#properties}
|
|
78
78
|
|
|
79
|
-
> `optional` **properties
|
|
79
|
+
> `optional` **properties?**: `object`
|
|
80
80
|
|
|
81
81
|
Any additional information for the error.
|
|
82
82
|
|
|
@@ -92,7 +92,7 @@ Any additional information for the error.
|
|
|
92
92
|
|
|
93
93
|
### cause? {#cause}
|
|
94
94
|
|
|
95
|
-
> `optional` **cause
|
|
95
|
+
> `optional` **cause?**: [`IError`](../interfaces/IError.md)
|
|
96
96
|
|
|
97
97
|
The cause of the error.
|
|
98
98
|
|
|
@@ -164,9 +164,9 @@ Expand an error tree.
|
|
|
164
164
|
|
|
165
165
|
##### errors
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
[`IError`](../interfaces/IError.md)[] \| `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
|
|
|
@@ -73,7 +73,7 @@ The cause of error if we have wrapped another error.
|
|
|
73
73
|
|
|
74
74
|
### source? {#source}
|
|
75
75
|
|
|
76
|
-
> `optional` **source
|
|
76
|
+
> `optional` **source?**: `string`
|
|
77
77
|
|
|
78
78
|
The source of the error.
|
|
79
79
|
|
|
@@ -85,7 +85,7 @@ The source of the error.
|
|
|
85
85
|
|
|
86
86
|
### properties? {#properties}
|
|
87
87
|
|
|
88
|
-
> `optional` **properties
|
|
88
|
+
> `optional` **properties?**: `object`
|
|
89
89
|
|
|
90
90
|
Any additional information for the error.
|
|
91
91
|
|
|
@@ -101,7 +101,7 @@ Any additional information for the error.
|
|
|
101
101
|
|
|
102
102
|
### cause? {#cause}
|
|
103
103
|
|
|
104
|
-
> `optional` **cause
|
|
104
|
+
> `optional` **cause?**: [`IError`](../interfaces/IError.md)
|
|
105
105
|
|
|
106
106
|
The cause of the error.
|
|
107
107
|
|
|
@@ -169,9 +169,9 @@ Expand an error tree.
|
|
|
169
169
|
|
|
170
170
|
##### errors
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
[`IError`](../interfaces/IError.md)[] \| `undefined`
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
The list of errors to expand.
|
|
175
175
|
|
|
176
176
|
#### Returns
|
|
177
177
|
|
|
@@ -197,9 +197,9 @@ The error to test.
|
|
|
197
197
|
|
|
198
198
|
##### name
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
`string` \| `RegExp`
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
The name to check for.
|
|
203
203
|
|
|
204
204
|
#### Returns
|
|
205
205
|
|
|
@@ -225,9 +225,9 @@ The error to test.
|
|
|
225
225
|
|
|
226
226
|
##### message
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
`string` \| `RegExp`
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
The message to check for.
|
|
231
231
|
|
|
232
232
|
#### Returns
|
|
233
233
|
|
|
@@ -253,9 +253,9 @@ The error to test.
|
|
|
253
253
|
|
|
254
254
|
##### code
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
`string` \| `RegExp`
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
The code to check for.
|
|
259
259
|
|
|
260
260
|
#### Returns
|
|
261
261
|
|
|
@@ -281,9 +281,9 @@ The error to test.
|
|
|
281
281
|
|
|
282
282
|
##### name
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
`string` \| `RegExp`
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
The name to check for.
|
|
287
287
|
|
|
288
288
|
#### Returns
|
|
289
289
|
|
|
@@ -309,9 +309,9 @@ The error to test.
|
|
|
309
309
|
|
|
310
310
|
##### message
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
`string` \| `RegExp`
|
|
313
313
|
|
|
314
|
-
|
|
314
|
+
The message to check for.
|
|
315
315
|
|
|
316
316
|
#### Returns
|
|
317
317
|
|
|
@@ -365,9 +365,9 @@ The error to test.
|
|
|
365
365
|
|
|
366
366
|
##### code
|
|
367
367
|
|
|
368
|
-
|
|
368
|
+
`string` \| `RegExp`
|
|
369
369
|
|
|
370
|
-
|
|
370
|
+
The code to check for.
|
|
371
371
|
|
|
372
372
|
#### Returns
|
|
373
373
|
|
|
@@ -62,7 +62,7 @@ The cause or the error if we have wrapped another error.
|
|
|
62
62
|
|
|
63
63
|
### source? {#source}
|
|
64
64
|
|
|
65
|
-
> `optional` **source
|
|
65
|
+
> `optional` **source?**: `string`
|
|
66
66
|
|
|
67
67
|
The source of the error.
|
|
68
68
|
|
|
@@ -74,7 +74,7 @@ The source of the error.
|
|
|
74
74
|
|
|
75
75
|
### properties? {#properties}
|
|
76
76
|
|
|
77
|
-
> `optional` **properties
|
|
77
|
+
> `optional` **properties?**: `object`
|
|
78
78
|
|
|
79
79
|
Any additional information for the error.
|
|
80
80
|
|
|
@@ -90,7 +90,7 @@ Any additional information for the error.
|
|
|
90
90
|
|
|
91
91
|
### cause? {#cause}
|
|
92
92
|
|
|
93
|
-
> `optional` **cause
|
|
93
|
+
> `optional` **cause?**: [`IError`](../interfaces/IError.md)
|
|
94
94
|
|
|
95
95
|
The cause of the error.
|
|
96
96
|
|
|
@@ -170,9 +170,9 @@ Expand an error tree.
|
|
|
170
170
|
|
|
171
171
|
##### errors
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
[`IError`](../interfaces/IError.md)[] \| `undefined`
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
The list of errors to expand.
|
|
176
176
|
|
|
177
177
|
#### Returns
|
|
178
178
|
|
|
@@ -202,9 +202,9 @@ The error to test.
|
|
|
202
202
|
|
|
203
203
|
##### name
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
`string` \| `RegExp`
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
The name to check for.
|
|
208
208
|
|
|
209
209
|
#### Returns
|
|
210
210
|
|
|
@@ -234,9 +234,9 @@ The error to test.
|
|
|
234
234
|
|
|
235
235
|
##### message
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
`string` \| `RegExp`
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
The message to check for.
|
|
240
240
|
|
|
241
241
|
#### Returns
|
|
242
242
|
|
|
@@ -266,9 +266,9 @@ The error to test.
|
|
|
266
266
|
|
|
267
267
|
##### code
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
`string` \| `RegExp`
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
The code to check for.
|
|
272
272
|
|
|
273
273
|
#### Returns
|
|
274
274
|
|
|
@@ -298,9 +298,9 @@ The error to test.
|
|
|
298
298
|
|
|
299
299
|
##### name
|
|
300
300
|
|
|
301
|
-
|
|
301
|
+
`string` \| `RegExp`
|
|
302
302
|
|
|
303
|
-
|
|
303
|
+
The name to check for.
|
|
304
304
|
|
|
305
305
|
#### Returns
|
|
306
306
|
|
|
@@ -330,9 +330,9 @@ The error to test.
|
|
|
330
330
|
|
|
331
331
|
##### message
|
|
332
332
|
|
|
333
|
-
|
|
333
|
+
`string` \| `RegExp`
|
|
334
334
|
|
|
335
|
-
|
|
335
|
+
The message to check for.
|
|
336
336
|
|
|
337
337
|
#### Returns
|
|
338
338
|
|
|
@@ -394,9 +394,9 @@ The error to test.
|
|
|
394
394
|
|
|
395
395
|
##### code
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
`string` \| `RegExp`
|
|
398
398
|
|
|
399
|
-
|
|
399
|
+
The code to check for.
|
|
400
400
|
|
|
401
401
|
#### Returns
|
|
402
402
|
|
|
@@ -50,7 +50,7 @@ The cause of the error if we have wrapped another error.
|
|
|
50
50
|
|
|
51
51
|
### source? {#source}
|
|
52
52
|
|
|
53
|
-
> `optional` **source
|
|
53
|
+
> `optional` **source?**: `string`
|
|
54
54
|
|
|
55
55
|
The source of the error.
|
|
56
56
|
|
|
@@ -62,7 +62,7 @@ The source of the error.
|
|
|
62
62
|
|
|
63
63
|
### properties? {#properties}
|
|
64
64
|
|
|
65
|
-
> `optional` **properties
|
|
65
|
+
> `optional` **properties?**: `object`
|
|
66
66
|
|
|
67
67
|
Any additional information for the error.
|
|
68
68
|
|
|
@@ -78,7 +78,7 @@ Any additional information for the error.
|
|
|
78
78
|
|
|
79
79
|
### cause? {#cause}
|
|
80
80
|
|
|
81
|
-
> `optional` **cause
|
|
81
|
+
> `optional` **cause?**: [`IError`](../interfaces/IError.md)
|
|
82
82
|
|
|
83
83
|
The cause of the error.
|
|
84
84
|
|
|
@@ -158,9 +158,9 @@ Expand an error tree.
|
|
|
158
158
|
|
|
159
159
|
##### errors
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
[`IError`](../interfaces/IError.md)[] \| `undefined`
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
The list of errors to expand.
|
|
164
164
|
|
|
165
165
|
#### Returns
|
|
166
166
|
|
|
@@ -190,9 +190,9 @@ The error to test.
|
|
|
190
190
|
|
|
191
191
|
##### name
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
`string` \| `RegExp`
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
The name to check for.
|
|
196
196
|
|
|
197
197
|
#### Returns
|
|
198
198
|
|
|
@@ -222,9 +222,9 @@ The error to test.
|
|
|
222
222
|
|
|
223
223
|
##### message
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
`string` \| `RegExp`
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
The message to check for.
|
|
228
228
|
|
|
229
229
|
#### Returns
|
|
230
230
|
|
|
@@ -254,9 +254,9 @@ The error to test.
|
|
|
254
254
|
|
|
255
255
|
##### code
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
`string` \| `RegExp`
|
|
258
258
|
|
|
259
|
-
|
|
259
|
+
The code to check for.
|
|
260
260
|
|
|
261
261
|
#### Returns
|
|
262
262
|
|
|
@@ -286,9 +286,9 @@ The error to test.
|
|
|
286
286
|
|
|
287
287
|
##### name
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
`string` \| `RegExp`
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
The name to check for.
|
|
292
292
|
|
|
293
293
|
#### Returns
|
|
294
294
|
|
|
@@ -318,9 +318,9 @@ The error to test.
|
|
|
318
318
|
|
|
319
319
|
##### message
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
`string` \| `RegExp`
|
|
322
322
|
|
|
323
|
-
|
|
323
|
+
The message to check for.
|
|
324
324
|
|
|
325
325
|
#### Returns
|
|
326
326
|
|
|
@@ -382,9 +382,9 @@ The error to test.
|
|
|
382
382
|
|
|
383
383
|
##### code
|
|
384
384
|
|
|
385
|
-
|
|
385
|
+
`string` \| `RegExp`
|
|
386
386
|
|
|
387
|
-
|
|
387
|
+
The code to check for.
|
|
388
388
|
|
|
389
389
|
#### Returns
|
|
390
390
|
|
|
@@ -58,7 +58,7 @@ The property options which might be allowed.
|
|
|
58
58
|
|
|
59
59
|
### source? {#source}
|
|
60
60
|
|
|
61
|
-
> `optional` **source
|
|
61
|
+
> `optional` **source?**: `string`
|
|
62
62
|
|
|
63
63
|
The source of the error.
|
|
64
64
|
|
|
@@ -70,7 +70,7 @@ The source of the error.
|
|
|
70
70
|
|
|
71
71
|
### properties? {#properties}
|
|
72
72
|
|
|
73
|
-
> `optional` **properties
|
|
73
|
+
> `optional` **properties?**: `object`
|
|
74
74
|
|
|
75
75
|
Any additional information for the error.
|
|
76
76
|
|
|
@@ -86,7 +86,7 @@ Any additional information for the error.
|
|
|
86
86
|
|
|
87
87
|
### cause? {#cause}
|
|
88
88
|
|
|
89
|
-
> `optional` **cause
|
|
89
|
+
> `optional` **cause?**: [`IError`](../interfaces/IError.md)
|
|
90
90
|
|
|
91
91
|
The cause of the error.
|
|
92
92
|
|
|
@@ -166,9 +166,9 @@ Expand an error tree.
|
|
|
166
166
|
|
|
167
167
|
##### errors
|
|
168
168
|
|
|
169
|
-
|
|
169
|
+
[`IError`](../interfaces/IError.md)[] \| `undefined`
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
The list of errors to expand.
|
|
172
172
|
|
|
173
173
|
#### Returns
|
|
174
174
|
|
|
@@ -198,9 +198,9 @@ The error to test.
|
|
|
198
198
|
|
|
199
199
|
##### name
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
`string` \| `RegExp`
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
The name to check for.
|
|
204
204
|
|
|
205
205
|
#### Returns
|
|
206
206
|
|
|
@@ -230,9 +230,9 @@ The error to test.
|
|
|
230
230
|
|
|
231
231
|
##### message
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
`string` \| `RegExp`
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
The message to check for.
|
|
236
236
|
|
|
237
237
|
#### Returns
|
|
238
238
|
|
|
@@ -262,9 +262,9 @@ The error to test.
|
|
|
262
262
|
|
|
263
263
|
##### code
|
|
264
264
|
|
|
265
|
-
|
|
265
|
+
`string` \| `RegExp`
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
The code to check for.
|
|
268
268
|
|
|
269
269
|
#### Returns
|
|
270
270
|
|
|
@@ -294,9 +294,9 @@ The error to test.
|
|
|
294
294
|
|
|
295
295
|
##### name
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
`string` \| `RegExp`
|
|
298
298
|
|
|
299
|
-
|
|
299
|
+
The name to check for.
|
|
300
300
|
|
|
301
301
|
#### Returns
|
|
302
302
|
|
|
@@ -326,9 +326,9 @@ The error to test.
|
|
|
326
326
|
|
|
327
327
|
##### message
|
|
328
328
|
|
|
329
|
-
|
|
329
|
+
`string` \| `RegExp`
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
The message to check for.
|
|
332
332
|
|
|
333
333
|
#### Returns
|
|
334
334
|
|
|
@@ -390,9 +390,9 @@ The error to test.
|
|
|
390
390
|
|
|
391
391
|
##### code
|
|
392
392
|
|
|
393
|
-
|
|
393
|
+
`string` \| `RegExp`
|
|
394
394
|
|
|
395
|
-
|
|
395
|
+
The code to check for.
|
|
396
396
|
|
|
397
397
|
#### Returns
|
|
398
398
|
|
|
@@ -1062,9 +1062,9 @@ The value to test.
|
|
|
1062
1062
|
|
|
1063
1063
|
##### format?
|
|
1064
1064
|
|
|
1065
|
-
|
|
1065
|
+
`"standard"` \| `"compact"`
|
|
1066
1066
|
|
|
1067
|
-
|
|
1067
|
+
The format of the uuidV7, either standard or compact.
|
|
1068
1068
|
|
|
1069
1069
|
#### Returns
|
|
1070
1070
|
|
|
@@ -135,9 +135,9 @@ The object to stringify.
|
|
|
135
135
|
|
|
136
136
|
##### space?
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
`string` \| `number`
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
141
141
|
|
|
142
142
|
#### Returns
|
|
143
143
|
|