@venizia/ignis-atlas 0.1.1 → 0.1.2-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.
- package/dist/corpus/changelogs/2026-10-11-error-message-placeholders.md +1 -1
- package/dist/corpus/changelogs/2026-10-14-error-filled-text.md +38 -0
- package/dist/corpus/changelogs/2026-10-14-temporal-browser-and-locale.md +61 -0
- package/dist/corpus/changelogs/index.md +2 -0
- package/dist/corpus/releases.json +108 -0
- package/dist/corpus/symbols.json +265 -25
- package/dist/corpus/wiki/extensions/helpers/error/index.md +29 -0
- package/dist/corpus/wiki/extensions/helpers/temporal/index.md +69 -9
- package/package.json +2 -2
|
@@ -51,6 +51,6 @@ A route error inside a Worker host goes through the same middleware, so it answe
|
|
|
51
51
|
|
|
52
52
|
The fill runs in the response only. Filling `Error.message` too would print each value inline in the log line, outside the redacted `args` map.
|
|
53
53
|
|
|
54
|
-
**Files:** [`packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts), [`packages/
|
|
54
|
+
**Files:** [`packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts), [`packages/inversion/src/modules/error/message-template.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/inversion/src/modules/error/message-template.ts)
|
|
55
55
|
|
|
56
56
|
See [Read the error response shape](/extensions/helpers/error/#read-the-error-response-shape) for the full response.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: An Error Hands Out Its Filled Text
|
|
3
|
+
description: "ApplicationError.toFilledText() fills the args into the message template, for a reader that only knows .message - a queue's failure reason, a third-party log. message itself stays the template."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-10-14
|
|
7
|
+
|
|
8
|
+
## An error hands out its filled text
|
|
9
|
+
|
|
10
|
+
<Badge type="tip" text="Enhancement" />
|
|
11
|
+
|
|
12
|
+
**In one line.** `error.toFilledText()` gives the sentence a person reads; `error.message` stays the template.
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
const error = getError({
|
|
16
|
+
message: { text: 'Only %{available} left of %{sku}.', code: 'stock.unavailable' },
|
|
17
|
+
messageArgs: { available: 2, sku: 'TRA-01' },
|
|
18
|
+
statusCode: 409,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
error.toFilledText(); // 'Only 2 left of TRA-01.'
|
|
22
|
+
error.message; // 'Only %{available} left of %{sku}.'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What changed
|
|
26
|
+
|
|
27
|
+
The error response already filled its `message` (2026-10-11). A reader outside the response did not get that: a BullMQ job stores `job.failedReason = error.message`, so its dashboard showed `%{available}`.
|
|
28
|
+
|
|
29
|
+
- **`toFilledText()`** on `ApplicationError` fills each `%{key}` from `normalized.args`. A key with no arg stays as written.
|
|
30
|
+
- **`MessageTemplate.render({ text, args })`** is the fill itself, exported from `@venizia/ignis-inversion` and `@venizia/ignis-helpers`. It also returns the keys it found no arg for. The error middleware uses it, so the response and `toFilledText()` fill the same way.
|
|
31
|
+
- **`message` does not change.** A filled `message` would print every arg value in each log line and error tracker, outside the `args` map the log redacts by key. Fill where you choose to store the text.
|
|
32
|
+
|
|
33
|
+
## Who is affected
|
|
34
|
+
|
|
35
|
+
- **A queue, tracker or log that stores `error.message`.** Call `toFilledText()` where you hand the error over - see [Store the filled text](/extensions/helpers/error/#store-the-filled-text-where-a-plain-reader-shows-it).
|
|
36
|
+
- **Everyone else.** No change.
|
|
37
|
+
|
|
38
|
+
**Files:** [`packages/inversion/src/modules/error/message-template.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/inversion/src/modules/error/message-template.ts), [`packages/inversion/src/modules/error/app-error.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/inversion/src/modules/error/app-error.ts), [`packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts)
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: TemporalHelper Runs in Every Browser and Speaks a Locale
|
|
3
|
+
description: "IntlTemporalAdapter needs no Temporal, so TemporalHelper works in every browser. Month and weekday names, 12-hour time, relative time, diff, compare, a non-throwing parse and duration formatting replace what a frontend kept dayjs for."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-10-14
|
|
7
|
+
|
|
8
|
+
## TemporalHelper runs in every browser and speaks a locale
|
|
9
|
+
|
|
10
|
+
<Badge type="tip" text="Feature" />
|
|
11
|
+
|
|
12
|
+
**In one line.** A browser app can drop dayjs: `TemporalHelper` now covers names, relative time and comparisons, without needing `Temporal`.
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { TemporalHelper, TemporalUnits } from '@venizia/ignis-helpers/temporal';
|
|
16
|
+
|
|
17
|
+
const temporal = new TemporalHelper({ timeZone: 'Asia/Ho_Chi_Minh', locale: 'vi-VN' });
|
|
18
|
+
|
|
19
|
+
temporal.format({ value: order.createdAt, pattern: 'dddd, D MMMM YYYY hh:mm A' }); // 'Thứ Bảy, 19 Tháng 9 2026 12:00 CH'
|
|
20
|
+
temporal.relative({ value: order.createdAt }); // '3 giờ trước'
|
|
21
|
+
temporal.relative({ value: order.createdAt, unit: TemporalUnits.DAY, numeric: 'auto' }); // 'Hôm qua'
|
|
22
|
+
temporal.diff({ value: end, other: start, unit: TemporalUnits.MONTH }); // whole months
|
|
23
|
+
temporal.tryParse({ value: input }); // a Date, or null
|
|
24
|
+
temporal.formatDuration({ milliseconds: 91_800_000 }); // '1d1h30m'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## What changed
|
|
28
|
+
|
|
29
|
+
Before, the default adapter needed the runtime's `Temporal`, which not every browser ships, and the pattern dialect wrote digits only.
|
|
30
|
+
|
|
31
|
+
**A browser-safe adapter.** `IntlTemporalAdapter` reads offsets through `Intl.DateTimeFormat` alone. It matched `NativeTemporalAdapter` on 240,000 random instants across 12 zones, years 1 to 9999. A helper built without an `adapter` uses `Temporal` where the runtime has it and `IntlTemporalAdapter` everywhere else.
|
|
32
|
+
|
|
33
|
+
**Writing in a locale.** The constructor takes `locale` (default `en-US`); every call can pass its own.
|
|
34
|
+
|
|
35
|
+
| New | What it writes |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `MMMM` / `MMM` | Month name, long / short |
|
|
38
|
+
| `dddd` / `ddd` | Weekday name, long / short |
|
|
39
|
+
| `hh` / `h`, `A` / `a` | 12-hour clock and its AM/PM marker |
|
|
40
|
+
| `L` / `LL` | The date in the locale's numeric order / its long form |
|
|
41
|
+
| `formatIntl({ value, options })` | Any `Intl.DateTimeFormat` options, in the helper's zone |
|
|
42
|
+
|
|
43
|
+
These tokens write only. `parse` stays numeric and strict, and a parse pattern holding one throws a 500.
|
|
44
|
+
|
|
45
|
+
**New methods.**
|
|
46
|
+
|
|
47
|
+
| Method | Answers |
|
|
48
|
+
|---|---|
|
|
49
|
+
| `relative({ value, base, unit, numeric })` | `3 hours ago`, `yesterday`, through `Intl.RelativeTimeFormat`. With a `unit`, it counts the unit's boundaries in the zone |
|
|
50
|
+
| `diff({ value, other, unit })` | Whole units, truncated. The inverse of `add`: `diff(add(x, n), x)` is `n`, outside a zone that skipped a whole day |
|
|
51
|
+
| `compare({ value, other, unit })` | `-1`, `0` or `1`, at a unit's granularity in the zone |
|
|
52
|
+
| `tryParse(...)` / `isValid({ value })` | `null` / `false` where `parse` would throw a 400 |
|
|
53
|
+
| `durationParts({ milliseconds })` / `formatDuration(...)` | `{ days, hours, ... }` / `1d1h30m`, or the locale's unit words |
|
|
54
|
+
|
|
55
|
+
## Who is affected
|
|
56
|
+
|
|
57
|
+
- **A browser app on a runtime without `Temporal`.** `new TemporalHelper()` used to throw; it now works through `Intl`. Nothing to change.
|
|
58
|
+
- **A pattern with `MMM`, `MMMM` or `dddd`.** It used to throw an "unknown token" 500 when formatting; it now writes the name. As a parse pattern it still throws.
|
|
59
|
+
- **Everyone else.** No change. Existing tokens, units, strict parsing and the 1-9999 year range behave as before.
|
|
60
|
+
|
|
61
|
+
**Files:** [`packages/helpers/src/modules/temporal/adapters/intl.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/adapters/intl.ts), [`packages/helpers/src/modules/temporal/locale.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/locale.ts), [`packages/helpers/src/modules/temporal/duration.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/duration.ts), [`packages/helpers/src/modules/temporal/helper.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/helper.ts), [`packages/helpers/src/modules/temporal/tokens.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/tokens.ts)
|
|
@@ -17,6 +17,8 @@ This section tracks the history of significant changes, refactors, and updates t
|
|
|
17
17
|
|
|
18
18
|
| Date | Title | Type |
|
|
19
19
|
|------|-------|------|
|
|
20
|
+
| 2026-10-14 | [An Error Hands Out Its Filled Text](./2026-10-14-error-filled-text) | Enhancement |
|
|
21
|
+
| 2026-10-14 | [TemporalHelper Runs in Every Browser and Speaks a Locale](./2026-10-14-temporal-browser-and-locale) | Feature |
|
|
20
22
|
| 2026-10-11 | [Error Messages Fill Their Placeholders](./2026-10-11-error-message-placeholders) | Enhancement, Behavior Change |
|
|
21
23
|
| 2026-10-09 | [Const Values Stay Literal](./2026-10-09-const-value-literals) | Bug Fix, Breaking Change |
|
|
22
24
|
| 2026-10-07 | [HttpResponseReader Moves Next to the Server Contract](./2026-10-07-response-reader-in-kernel) | Enhancement |
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
],
|
|
14
14
|
"releases": {
|
|
15
15
|
"atlas": [
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.2-0",
|
|
18
|
+
"date": "2026-10-14",
|
|
19
|
+
"sha": "7a13b114",
|
|
20
|
+
"order": 1625
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.1.1",
|
|
24
|
+
"date": "2026-10-12",
|
|
25
|
+
"sha": "30375e1e",
|
|
26
|
+
"order": 1617
|
|
27
|
+
},
|
|
16
28
|
{
|
|
17
29
|
"version": "0.1.1-9",
|
|
18
30
|
"date": "2026-10-12",
|
|
@@ -809,6 +821,18 @@
|
|
|
809
821
|
}
|
|
810
822
|
],
|
|
811
823
|
"connectors": [
|
|
824
|
+
{
|
|
825
|
+
"version": "0.2.2-1",
|
|
826
|
+
"date": "2026-10-14",
|
|
827
|
+
"sha": "a0960da2",
|
|
828
|
+
"order": 1631
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
"version": "0.2.2-0",
|
|
832
|
+
"date": "2026-10-14",
|
|
833
|
+
"sha": "abd59b0b",
|
|
834
|
+
"order": 1621
|
|
835
|
+
},
|
|
812
836
|
{
|
|
813
837
|
"version": "0.2.1",
|
|
814
838
|
"date": "2026-10-12",
|
|
@@ -2001,6 +2025,18 @@
|
|
|
2001
2025
|
}
|
|
2002
2026
|
],
|
|
2003
2027
|
"core-server": [
|
|
2028
|
+
{
|
|
2029
|
+
"version": "0.2.2-1",
|
|
2030
|
+
"date": "2026-10-14",
|
|
2031
|
+
"sha": "88b2fe0d",
|
|
2032
|
+
"order": 1633
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"version": "0.2.2-0",
|
|
2036
|
+
"date": "2026-10-14",
|
|
2037
|
+
"sha": "48f82299",
|
|
2038
|
+
"order": 1623
|
|
2039
|
+
},
|
|
2004
2040
|
{
|
|
2005
2041
|
"version": "0.2.1",
|
|
2006
2042
|
"date": "2026-10-12",
|
|
@@ -2369,6 +2405,18 @@
|
|
|
2369
2405
|
}
|
|
2370
2406
|
],
|
|
2371
2407
|
"core-worker": [
|
|
2408
|
+
{
|
|
2409
|
+
"version": "0.2.2-1",
|
|
2410
|
+
"date": "2026-10-14",
|
|
2411
|
+
"sha": "5c81ac61",
|
|
2412
|
+
"order": 1632
|
|
2413
|
+
},
|
|
2414
|
+
{
|
|
2415
|
+
"version": "0.2.2-0",
|
|
2416
|
+
"date": "2026-10-14",
|
|
2417
|
+
"sha": "169144f7",
|
|
2418
|
+
"order": 1622
|
|
2419
|
+
},
|
|
2372
2420
|
{
|
|
2373
2421
|
"version": "0.2.1",
|
|
2374
2422
|
"date": "2026-10-12",
|
|
@@ -3103,6 +3151,12 @@
|
|
|
3103
3151
|
}
|
|
3104
3152
|
],
|
|
3105
3153
|
"filter": [
|
|
3154
|
+
{
|
|
3155
|
+
"version": "0.2.2-0",
|
|
3156
|
+
"date": "2026-10-14",
|
|
3157
|
+
"sha": "10de4309",
|
|
3158
|
+
"order": 1628
|
|
3159
|
+
},
|
|
3106
3160
|
{
|
|
3107
3161
|
"version": "0.2.1",
|
|
3108
3162
|
"date": "2026-10-12",
|
|
@@ -3297,6 +3351,18 @@
|
|
|
3297
3351
|
}
|
|
3298
3352
|
],
|
|
3299
3353
|
"helpers": [
|
|
3354
|
+
{
|
|
3355
|
+
"version": "0.2.2-1",
|
|
3356
|
+
"date": "2026-10-14",
|
|
3357
|
+
"sha": "7d9c118b",
|
|
3358
|
+
"order": 1629
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"version": "0.2.2-0",
|
|
3362
|
+
"date": "2026-10-14",
|
|
3363
|
+
"sha": "1038c658",
|
|
3364
|
+
"order": 1619
|
|
3365
|
+
},
|
|
3300
3366
|
{
|
|
3301
3367
|
"version": "0.2.1",
|
|
3302
3368
|
"date": "2026-10-12",
|
|
@@ -4043,6 +4109,12 @@
|
|
|
4043
4109
|
}
|
|
4044
4110
|
],
|
|
4045
4111
|
"inversion": [
|
|
4112
|
+
{
|
|
4113
|
+
"version": "0.2.2-0",
|
|
4114
|
+
"date": "2026-10-14",
|
|
4115
|
+
"sha": "b079323a",
|
|
4116
|
+
"order": 1627
|
|
4117
|
+
},
|
|
4046
4118
|
{
|
|
4047
4119
|
"version": "0.2.1",
|
|
4048
4120
|
"date": "2026-10-12",
|
|
@@ -4393,6 +4465,18 @@
|
|
|
4393
4465
|
}
|
|
4394
4466
|
],
|
|
4395
4467
|
"kernel": [
|
|
4468
|
+
{
|
|
4469
|
+
"version": "0.2.2-1",
|
|
4470
|
+
"date": "2026-10-14",
|
|
4471
|
+
"sha": "e9a0a0a6",
|
|
4472
|
+
"order": 1630
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
"version": "0.2.2-0",
|
|
4476
|
+
"date": "2026-10-14",
|
|
4477
|
+
"sha": "1ff784cd",
|
|
4478
|
+
"order": 1620
|
|
4479
|
+
},
|
|
4396
4480
|
{
|
|
4397
4481
|
"version": "0.2.1",
|
|
4398
4482
|
"date": "2026-10-12",
|
|
@@ -4738,12 +4822,36 @@
|
|
|
4738
4822
|
]
|
|
4739
4823
|
},
|
|
4740
4824
|
"changelogs": [
|
|
4825
|
+
{
|
|
4826
|
+
"id": "changelog:2026-10-14-temporal-browser-and-locale",
|
|
4827
|
+
"file": "2026-10-14-temporal-browser-and-locale.md",
|
|
4828
|
+
"date": "2026-10-14",
|
|
4829
|
+
"title": "TemporalHelper Runs in Every Browser and Speaks a Locale",
|
|
4830
|
+
"packages": [
|
|
4831
|
+
"helpers"
|
|
4832
|
+
],
|
|
4833
|
+
"kind": "Feature",
|
|
4834
|
+
"order": 1618
|
|
4835
|
+
},
|
|
4836
|
+
{
|
|
4837
|
+
"id": "changelog:2026-10-14-error-filled-text",
|
|
4838
|
+
"file": "2026-10-14-error-filled-text.md",
|
|
4839
|
+
"date": "2026-10-14",
|
|
4840
|
+
"title": "An Error Hands Out Its Filled Text",
|
|
4841
|
+
"packages": [
|
|
4842
|
+
"helpers",
|
|
4843
|
+
"inversion"
|
|
4844
|
+
],
|
|
4845
|
+
"kind": "Enhancement",
|
|
4846
|
+
"order": 1626
|
|
4847
|
+
},
|
|
4741
4848
|
{
|
|
4742
4849
|
"id": "changelog:2026-10-11-error-message-placeholders",
|
|
4743
4850
|
"file": "2026-10-11-error-message-placeholders.md",
|
|
4744
4851
|
"date": "2026-10-11",
|
|
4745
4852
|
"title": "Error Messages Fill Their Placeholders",
|
|
4746
4853
|
"packages": [
|
|
4854
|
+
"inversion",
|
|
4747
4855
|
"kernel"
|
|
4748
4856
|
],
|
|
4749
4857
|
"kind": "Enhancement",
|
package/dist/corpus/symbols.json
CHANGED
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"specifier": "@venizia/ignis",
|
|
330
330
|
"kind": "class",
|
|
331
331
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
332
|
-
"line":
|
|
332
|
+
"line": 21,
|
|
333
333
|
"signature": "class ApplicationError extends Error"
|
|
334
334
|
},
|
|
335
335
|
{
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
"specifier": "@venizia/ignis",
|
|
630
630
|
"kind": "class",
|
|
631
631
|
"file": "packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts",
|
|
632
|
-
"line":
|
|
632
|
+
"line": 93,
|
|
633
633
|
"signature": "class BaseAppErrorMiddleware extends BaseHelper implements IProvider<ErrorHandler>"
|
|
634
634
|
},
|
|
635
635
|
{
|
|
@@ -1303,6 +1303,16 @@
|
|
|
1303
1303
|
"line": 6,
|
|
1304
1304
|
"signature": "DEFAULT_PAD_END: string"
|
|
1305
1305
|
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "DEFAULT_TEMPORAL_LOCALE",
|
|
1308
|
+
"package": "@venizia/ignis",
|
|
1309
|
+
"subpath": ".",
|
|
1310
|
+
"specifier": "@venizia/ignis",
|
|
1311
|
+
"kind": "const",
|
|
1312
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
1313
|
+
"line": 39,
|
|
1314
|
+
"signature": "DEFAULT_TEMPORAL_LOCALE = \"en-US\""
|
|
1315
|
+
},
|
|
1306
1316
|
{
|
|
1307
1317
|
"name": "DEFAULT_TEMPORAL_PATTERN",
|
|
1308
1318
|
"package": "@venizia/ignis",
|
|
@@ -3984,6 +3994,16 @@
|
|
|
3984
3994
|
"line": 28,
|
|
3985
3995
|
"signature": "interface ITemporalAdapter"
|
|
3986
3996
|
},
|
|
3997
|
+
{
|
|
3998
|
+
"name": "ITemporalDurationParts",
|
|
3999
|
+
"package": "@venizia/ignis",
|
|
4000
|
+
"subpath": ".",
|
|
4001
|
+
"specifier": "@venizia/ignis",
|
|
4002
|
+
"kind": "interface",
|
|
4003
|
+
"file": "packages/helpers/src/modules/temporal/common/types.ts",
|
|
4004
|
+
"line": 77,
|
|
4005
|
+
"signature": "interface ITemporalDurationParts"
|
|
4006
|
+
},
|
|
3987
4007
|
{
|
|
3988
4008
|
"name": "ITemporalNamespace",
|
|
3989
4009
|
"package": "@venizia/ignis",
|
|
@@ -4324,6 +4344,16 @@
|
|
|
4324
4344
|
"line": 14,
|
|
4325
4345
|
"signature": "InclusionSchema: any"
|
|
4326
4346
|
},
|
|
4347
|
+
{
|
|
4348
|
+
"name": "IntlTemporalAdapter",
|
|
4349
|
+
"package": "@venizia/ignis",
|
|
4350
|
+
"subpath": ".",
|
|
4351
|
+
"specifier": "@venizia/ignis",
|
|
4352
|
+
"kind": "class",
|
|
4353
|
+
"file": "packages/helpers/src/modules/temporal/adapters/intl.ts",
|
|
4354
|
+
"line": 15,
|
|
4355
|
+
"signature": "class IntlTemporalAdapter implements ITemporalAdapter"
|
|
4356
|
+
},
|
|
4327
4357
|
{
|
|
4328
4358
|
"name": "IsolationLevels",
|
|
4329
4359
|
"package": "@venizia/ignis",
|
|
@@ -4604,6 +4634,16 @@
|
|
|
4604
4634
|
"line": 6,
|
|
4605
4635
|
"signature": "class MessageCode"
|
|
4606
4636
|
},
|
|
4637
|
+
{
|
|
4638
|
+
"name": "MessageTemplate",
|
|
4639
|
+
"package": "@venizia/ignis",
|
|
4640
|
+
"subpath": ".",
|
|
4641
|
+
"specifier": "@venizia/ignis",
|
|
4642
|
+
"kind": "class",
|
|
4643
|
+
"file": "packages/inversion/src/modules/error/message-template.ts",
|
|
4644
|
+
"line": 9,
|
|
4645
|
+
"signature": "class MessageTemplate"
|
|
4646
|
+
},
|
|
4607
4647
|
{
|
|
4608
4648
|
"name": "MetadataKeys",
|
|
4609
4649
|
"package": "@venizia/ignis",
|
|
@@ -6472,7 +6512,7 @@
|
|
|
6472
6512
|
"specifier": "@venizia/ignis",
|
|
6473
6513
|
"kind": "type",
|
|
6474
6514
|
"file": "packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts",
|
|
6475
|
-
"line":
|
|
6515
|
+
"line": 31,
|
|
6476
6516
|
"signature": "type TErrorLogFormatter = (opts: { error: unknown; messageCode?: string; extra?: Record<string, unknown>; includeStack?: boolean; maxStackFrames?: number; }) => string"
|
|
6477
6517
|
},
|
|
6478
6518
|
{
|
|
@@ -8035,6 +8075,16 @@
|
|
|
8035
8075
|
"line": 5,
|
|
8036
8076
|
"signature": "type TTask<T> = (...args: any[]) => Promise<T>"
|
|
8037
8077
|
},
|
|
8078
|
+
{
|
|
8079
|
+
"name": "TTemporalDurationStyle",
|
|
8080
|
+
"package": "@venizia/ignis",
|
|
8081
|
+
"subpath": ".",
|
|
8082
|
+
"specifier": "@venizia/ignis",
|
|
8083
|
+
"kind": "type",
|
|
8084
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
8085
|
+
"line": 55,
|
|
8086
|
+
"signature": "type TTemporalDurationStyle = TConstValue<typeof TemporalDurationStyles>"
|
|
8087
|
+
},
|
|
8038
8088
|
{
|
|
8039
8089
|
"name": "TTemporalInput",
|
|
8040
8090
|
"package": "@venizia/ignis",
|
|
@@ -8325,6 +8375,16 @@
|
|
|
8325
8375
|
"line": 6,
|
|
8326
8376
|
"signature": "class TableColumnCache"
|
|
8327
8377
|
},
|
|
8378
|
+
{
|
|
8379
|
+
"name": "TemporalDurationStyles",
|
|
8380
|
+
"package": "@venizia/ignis",
|
|
8381
|
+
"subpath": ".",
|
|
8382
|
+
"specifier": "@venizia/ignis",
|
|
8383
|
+
"kind": "class",
|
|
8384
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
8385
|
+
"line": 42,
|
|
8386
|
+
"signature": "class TemporalDurationStyles"
|
|
8387
|
+
},
|
|
8328
8388
|
{
|
|
8329
8389
|
"name": "TemporalHelper",
|
|
8330
8390
|
"package": "@venizia/ignis",
|
|
@@ -8332,7 +8392,7 @@
|
|
|
8332
8392
|
"specifier": "@venizia/ignis",
|
|
8333
8393
|
"kind": "class",
|
|
8334
8394
|
"file": "packages/helpers/src/modules/temporal/helper.ts",
|
|
8335
|
-
"line":
|
|
8395
|
+
"line": 81,
|
|
8336
8396
|
"signature": "class TemporalHelper extends BaseHelper"
|
|
8337
8397
|
},
|
|
8338
8398
|
{
|
|
@@ -9132,7 +9192,7 @@
|
|
|
9132
9192
|
"specifier": "@venizia/ignis",
|
|
9133
9193
|
"kind": "const",
|
|
9134
9194
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
9135
|
-
"line":
|
|
9195
|
+
"line": 101,
|
|
9136
9196
|
"signature": "fromError: (opts: { error: TResponsedError; }) => ApplicationError"
|
|
9137
9197
|
},
|
|
9138
9198
|
{
|
|
@@ -9232,7 +9292,7 @@
|
|
|
9232
9292
|
"specifier": "@venizia/ignis",
|
|
9233
9293
|
"kind": "const",
|
|
9234
9294
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
9235
|
-
"line":
|
|
9295
|
+
"line": 99,
|
|
9236
9296
|
"signature": "getError: (opts: TError) => ApplicationError"
|
|
9237
9297
|
},
|
|
9238
9298
|
{
|
|
@@ -9362,7 +9422,7 @@
|
|
|
9362
9422
|
"specifier": "@venizia/ignis",
|
|
9363
9423
|
"kind": "const",
|
|
9364
9424
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
9365
|
-
"line":
|
|
9425
|
+
"line": 104,
|
|
9366
9426
|
"signature": "isApplicationError: (error: unknown) => error is ApplicationError"
|
|
9367
9427
|
},
|
|
9368
9428
|
{
|
|
@@ -22070,7 +22130,7 @@
|
|
|
22070
22130
|
"specifier": "@venizia/ignis-helpers",
|
|
22071
22131
|
"kind": "class",
|
|
22072
22132
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
22073
|
-
"line":
|
|
22133
|
+
"line": 21,
|
|
22074
22134
|
"signature": "class ApplicationError extends Error"
|
|
22075
22135
|
},
|
|
22076
22136
|
{
|
|
@@ -22334,6 +22394,16 @@
|
|
|
22334
22394
|
"line": 6,
|
|
22335
22395
|
"signature": "DEFAULT_PAD_END: string"
|
|
22336
22396
|
},
|
|
22397
|
+
{
|
|
22398
|
+
"name": "DEFAULT_TEMPORAL_LOCALE",
|
|
22399
|
+
"package": "@venizia/ignis-helpers",
|
|
22400
|
+
"subpath": ".",
|
|
22401
|
+
"specifier": "@venizia/ignis-helpers",
|
|
22402
|
+
"kind": "const",
|
|
22403
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
22404
|
+
"line": 39,
|
|
22405
|
+
"signature": "DEFAULT_TEMPORAL_LOCALE = \"en-US\""
|
|
22406
|
+
},
|
|
22337
22407
|
{
|
|
22338
22408
|
"name": "DEFAULT_TEMPORAL_PATTERN",
|
|
22339
22409
|
"package": "@venizia/ignis-helpers",
|
|
@@ -23565,6 +23635,16 @@
|
|
|
23565
23635
|
"line": 28,
|
|
23566
23636
|
"signature": "interface ITemporalAdapter"
|
|
23567
23637
|
},
|
|
23638
|
+
{
|
|
23639
|
+
"name": "ITemporalDurationParts",
|
|
23640
|
+
"package": "@venizia/ignis-helpers",
|
|
23641
|
+
"subpath": ".",
|
|
23642
|
+
"specifier": "@venizia/ignis-helpers",
|
|
23643
|
+
"kind": "interface",
|
|
23644
|
+
"file": "packages/helpers/src/modules/temporal/common/types.ts",
|
|
23645
|
+
"line": 77,
|
|
23646
|
+
"signature": "interface ITemporalDurationParts"
|
|
23647
|
+
},
|
|
23568
23648
|
{
|
|
23569
23649
|
"name": "ITemporalNamespace",
|
|
23570
23650
|
"package": "@venizia/ignis-helpers",
|
|
@@ -23795,6 +23875,16 @@
|
|
|
23795
23875
|
"line": 16,
|
|
23796
23876
|
"signature": "interface IZonedTemporalParts extends ITemporalParts"
|
|
23797
23877
|
},
|
|
23878
|
+
{
|
|
23879
|
+
"name": "IntlTemporalAdapter",
|
|
23880
|
+
"package": "@venizia/ignis-helpers",
|
|
23881
|
+
"subpath": ".",
|
|
23882
|
+
"specifier": "@venizia/ignis-helpers",
|
|
23883
|
+
"kind": "class",
|
|
23884
|
+
"file": "packages/helpers/src/modules/temporal/adapters/intl.ts",
|
|
23885
|
+
"line": 15,
|
|
23886
|
+
"signature": "class IntlTemporalAdapter implements ITemporalAdapter"
|
|
23887
|
+
},
|
|
23798
23888
|
{
|
|
23799
23889
|
"name": "LEADING_OR_TRAILING_HYPHENS_PATTERN",
|
|
23800
23890
|
"package": "@venizia/ignis-helpers",
|
|
@@ -23915,6 +24005,16 @@
|
|
|
23915
24005
|
"line": 6,
|
|
23916
24006
|
"signature": "class MessageCode"
|
|
23917
24007
|
},
|
|
24008
|
+
{
|
|
24009
|
+
"name": "MessageTemplate",
|
|
24010
|
+
"package": "@venizia/ignis-helpers",
|
|
24011
|
+
"subpath": ".",
|
|
24012
|
+
"specifier": "@venizia/ignis-helpers",
|
|
24013
|
+
"kind": "class",
|
|
24014
|
+
"file": "packages/inversion/src/modules/error/message-template.ts",
|
|
24015
|
+
"line": 9,
|
|
24016
|
+
"signature": "class MessageTemplate"
|
|
24017
|
+
},
|
|
23918
24018
|
{
|
|
23919
24019
|
"name": "MimeTypes",
|
|
23920
24020
|
"package": "@venizia/ignis-helpers",
|
|
@@ -25026,6 +25126,16 @@
|
|
|
25026
25126
|
"line": 5,
|
|
25027
25127
|
"signature": "type TTask<T> = (...args: any[]) => Promise<T>"
|
|
25028
25128
|
},
|
|
25129
|
+
{
|
|
25130
|
+
"name": "TTemporalDurationStyle",
|
|
25131
|
+
"package": "@venizia/ignis-helpers",
|
|
25132
|
+
"subpath": ".",
|
|
25133
|
+
"specifier": "@venizia/ignis-helpers",
|
|
25134
|
+
"kind": "type",
|
|
25135
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
25136
|
+
"line": 55,
|
|
25137
|
+
"signature": "type TTemporalDurationStyle = TConstValue<typeof TemporalDurationStyles>"
|
|
25138
|
+
},
|
|
25029
25139
|
{
|
|
25030
25140
|
"name": "TTemporalInput",
|
|
25031
25141
|
"package": "@venizia/ignis-helpers",
|
|
@@ -25216,6 +25326,16 @@
|
|
|
25216
25326
|
"line": 21,
|
|
25217
25327
|
"signature": "type TWebSocketValidateRoomFn = (opts: { clientId: string; userId?: string; rooms: string[]; }) => ValueOrPromise<string[]>"
|
|
25218
25328
|
},
|
|
25329
|
+
{
|
|
25330
|
+
"name": "TemporalDurationStyles",
|
|
25331
|
+
"package": "@venizia/ignis-helpers",
|
|
25332
|
+
"subpath": ".",
|
|
25333
|
+
"specifier": "@venizia/ignis-helpers",
|
|
25334
|
+
"kind": "class",
|
|
25335
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
25336
|
+
"line": 42,
|
|
25337
|
+
"signature": "class TemporalDurationStyles"
|
|
25338
|
+
},
|
|
25219
25339
|
{
|
|
25220
25340
|
"name": "TemporalHelper",
|
|
25221
25341
|
"package": "@venizia/ignis-helpers",
|
|
@@ -25223,7 +25343,7 @@
|
|
|
25223
25343
|
"specifier": "@venizia/ignis-helpers",
|
|
25224
25344
|
"kind": "class",
|
|
25225
25345
|
"file": "packages/helpers/src/modules/temporal/helper.ts",
|
|
25226
|
-
"line":
|
|
25346
|
+
"line": 81,
|
|
25227
25347
|
"signature": "class TemporalHelper extends BaseHelper"
|
|
25228
25348
|
},
|
|
25229
25349
|
{
|
|
@@ -25643,7 +25763,7 @@
|
|
|
25643
25763
|
"specifier": "@venizia/ignis-helpers",
|
|
25644
25764
|
"kind": "const",
|
|
25645
25765
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
25646
|
-
"line":
|
|
25766
|
+
"line": 101,
|
|
25647
25767
|
"signature": "fromError: (opts: { error: TResponsedError; }) => ApplicationError"
|
|
25648
25768
|
},
|
|
25649
25769
|
{
|
|
@@ -25663,7 +25783,7 @@
|
|
|
25663
25783
|
"specifier": "@venizia/ignis-helpers",
|
|
25664
25784
|
"kind": "const",
|
|
25665
25785
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
25666
|
-
"line":
|
|
25786
|
+
"line": 99,
|
|
25667
25787
|
"signature": "getError: (opts: TError) => ApplicationError"
|
|
25668
25788
|
},
|
|
25669
25789
|
{
|
|
@@ -25733,7 +25853,7 @@
|
|
|
25733
25853
|
"specifier": "@venizia/ignis-helpers",
|
|
25734
25854
|
"kind": "const",
|
|
25735
25855
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
25736
|
-
"line":
|
|
25856
|
+
"line": 104,
|
|
25737
25857
|
"signature": "isApplicationError: (error: unknown) => error is ApplicationError"
|
|
25738
25858
|
},
|
|
25739
25859
|
{
|
|
@@ -26833,7 +26953,7 @@
|
|
|
26833
26953
|
"specifier": "@venizia/ignis-helpers/core",
|
|
26834
26954
|
"kind": "class",
|
|
26835
26955
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
26836
|
-
"line":
|
|
26956
|
+
"line": 21,
|
|
26837
26957
|
"signature": "class ApplicationError extends Error"
|
|
26838
26958
|
},
|
|
26839
26959
|
{
|
|
@@ -26876,6 +26996,16 @@
|
|
|
26876
26996
|
"line": 22,
|
|
26877
26997
|
"signature": "class BuildInfoRegistry"
|
|
26878
26998
|
},
|
|
26999
|
+
{
|
|
27000
|
+
"name": "DEFAULT_TEMPORAL_LOCALE",
|
|
27001
|
+
"package": "@venizia/ignis-helpers",
|
|
27002
|
+
"subpath": "./core",
|
|
27003
|
+
"specifier": "@venizia/ignis-helpers/core",
|
|
27004
|
+
"kind": "const",
|
|
27005
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
27006
|
+
"line": 39,
|
|
27007
|
+
"signature": "DEFAULT_TEMPORAL_LOCALE = \"en-US\""
|
|
27008
|
+
},
|
|
26879
27009
|
{
|
|
26880
27010
|
"name": "DEFAULT_TEMPORAL_PATTERN",
|
|
26881
27011
|
"package": "@venizia/ignis-helpers",
|
|
@@ -27286,6 +27416,16 @@
|
|
|
27286
27416
|
"line": 28,
|
|
27287
27417
|
"signature": "interface ITemporalAdapter"
|
|
27288
27418
|
},
|
|
27419
|
+
{
|
|
27420
|
+
"name": "ITemporalDurationParts",
|
|
27421
|
+
"package": "@venizia/ignis-helpers",
|
|
27422
|
+
"subpath": "./core",
|
|
27423
|
+
"specifier": "@venizia/ignis-helpers/core",
|
|
27424
|
+
"kind": "interface",
|
|
27425
|
+
"file": "packages/helpers/src/modules/temporal/common/types.ts",
|
|
27426
|
+
"line": 77,
|
|
27427
|
+
"signature": "interface ITemporalDurationParts"
|
|
27428
|
+
},
|
|
27289
27429
|
{
|
|
27290
27430
|
"name": "ITemporalNamespace",
|
|
27291
27431
|
"package": "@venizia/ignis-helpers",
|
|
@@ -27386,6 +27526,16 @@
|
|
|
27386
27526
|
"line": 16,
|
|
27387
27527
|
"signature": "interface IZonedTemporalParts extends ITemporalParts"
|
|
27388
27528
|
},
|
|
27529
|
+
{
|
|
27530
|
+
"name": "IntlTemporalAdapter",
|
|
27531
|
+
"package": "@venizia/ignis-helpers",
|
|
27532
|
+
"subpath": "./core",
|
|
27533
|
+
"specifier": "@venizia/ignis-helpers/core",
|
|
27534
|
+
"kind": "class",
|
|
27535
|
+
"file": "packages/helpers/src/modules/temporal/adapters/intl.ts",
|
|
27536
|
+
"line": 15,
|
|
27537
|
+
"signature": "class IntlTemporalAdapter implements ITemporalAdapter"
|
|
27538
|
+
},
|
|
27389
27539
|
{
|
|
27390
27540
|
"name": "LogLevels",
|
|
27391
27541
|
"package": "@venizia/ignis-helpers",
|
|
@@ -27426,6 +27576,16 @@
|
|
|
27426
27576
|
"line": 6,
|
|
27427
27577
|
"signature": "class MessageCode"
|
|
27428
27578
|
},
|
|
27579
|
+
{
|
|
27580
|
+
"name": "MessageTemplate",
|
|
27581
|
+
"package": "@venizia/ignis-helpers",
|
|
27582
|
+
"subpath": "./core",
|
|
27583
|
+
"specifier": "@venizia/ignis-helpers/core",
|
|
27584
|
+
"kind": "class",
|
|
27585
|
+
"file": "packages/inversion/src/modules/error/message-template.ts",
|
|
27586
|
+
"line": 9,
|
|
27587
|
+
"signature": "class MessageTemplate"
|
|
27588
|
+
},
|
|
27429
27589
|
{
|
|
27430
27590
|
"name": "NativeTemporalAdapter",
|
|
27431
27591
|
"package": "@venizia/ignis-helpers",
|
|
@@ -27786,6 +27946,16 @@
|
|
|
27786
27946
|
"line": 42,
|
|
27787
27947
|
"signature": "type TRetryJitterMode = TConstValue<typeof RetryJitterModes>"
|
|
27788
27948
|
},
|
|
27949
|
+
{
|
|
27950
|
+
"name": "TTemporalDurationStyle",
|
|
27951
|
+
"package": "@venizia/ignis-helpers",
|
|
27952
|
+
"subpath": "./core",
|
|
27953
|
+
"specifier": "@venizia/ignis-helpers/core",
|
|
27954
|
+
"kind": "type",
|
|
27955
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
27956
|
+
"line": 55,
|
|
27957
|
+
"signature": "type TTemporalDurationStyle = TConstValue<typeof TemporalDurationStyles>"
|
|
27958
|
+
},
|
|
27789
27959
|
{
|
|
27790
27960
|
"name": "TTemporalInput",
|
|
27791
27961
|
"package": "@venizia/ignis-helpers",
|
|
@@ -27826,6 +27996,16 @@
|
|
|
27826
27996
|
"line": 14,
|
|
27827
27997
|
"signature": "type TUrlScheme = TConstValue<typeof UrlSchemes>"
|
|
27828
27998
|
},
|
|
27999
|
+
{
|
|
28000
|
+
"name": "TemporalDurationStyles",
|
|
28001
|
+
"package": "@venizia/ignis-helpers",
|
|
28002
|
+
"subpath": "./core",
|
|
28003
|
+
"specifier": "@venizia/ignis-helpers/core",
|
|
28004
|
+
"kind": "class",
|
|
28005
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
28006
|
+
"line": 42,
|
|
28007
|
+
"signature": "class TemporalDurationStyles"
|
|
28008
|
+
},
|
|
27829
28009
|
{
|
|
27830
28010
|
"name": "TemporalHelper",
|
|
27831
28011
|
"package": "@venizia/ignis-helpers",
|
|
@@ -27833,7 +28013,7 @@
|
|
|
27833
28013
|
"specifier": "@venizia/ignis-helpers/core",
|
|
27834
28014
|
"kind": "class",
|
|
27835
28015
|
"file": "packages/helpers/src/modules/temporal/helper.ts",
|
|
27836
|
-
"line":
|
|
28016
|
+
"line": 81,
|
|
27837
28017
|
"signature": "class TemporalHelper extends BaseHelper"
|
|
27838
28018
|
},
|
|
27839
28019
|
{
|
|
@@ -28003,7 +28183,7 @@
|
|
|
28003
28183
|
"specifier": "@venizia/ignis-helpers/core",
|
|
28004
28184
|
"kind": "const",
|
|
28005
28185
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
28006
|
-
"line":
|
|
28186
|
+
"line": 101,
|
|
28007
28187
|
"signature": "fromError: (opts: { error: TResponsedError; }) => ApplicationError"
|
|
28008
28188
|
},
|
|
28009
28189
|
{
|
|
@@ -28013,7 +28193,7 @@
|
|
|
28013
28193
|
"specifier": "@venizia/ignis-helpers/core",
|
|
28014
28194
|
"kind": "const",
|
|
28015
28195
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
28016
|
-
"line":
|
|
28196
|
+
"line": 99,
|
|
28017
28197
|
"signature": "getError: (opts: TError) => ApplicationError"
|
|
28018
28198
|
},
|
|
28019
28199
|
{
|
|
@@ -28033,7 +28213,7 @@
|
|
|
28033
28213
|
"specifier": "@venizia/ignis-helpers/core",
|
|
28034
28214
|
"kind": "const",
|
|
28035
28215
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
28036
|
-
"line":
|
|
28216
|
+
"line": 104,
|
|
28037
28217
|
"signature": "isApplicationError: (error: unknown) => error is ApplicationError"
|
|
28038
28218
|
},
|
|
28039
28219
|
{
|
|
@@ -28966,6 +29146,16 @@
|
|
|
28966
29146
|
"line": 7,
|
|
28967
29147
|
"signature": "type TSocketIOValidateRoomFn = (opts: { socket: IOSocket; rooms: string[]; }) => ValueOrPromise<string[]>"
|
|
28968
29148
|
},
|
|
29149
|
+
{
|
|
29150
|
+
"name": "DEFAULT_TEMPORAL_LOCALE",
|
|
29151
|
+
"package": "@venizia/ignis-helpers",
|
|
29152
|
+
"subpath": "./temporal",
|
|
29153
|
+
"specifier": "@venizia/ignis-helpers/temporal",
|
|
29154
|
+
"kind": "const",
|
|
29155
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
29156
|
+
"line": 39,
|
|
29157
|
+
"signature": "DEFAULT_TEMPORAL_LOCALE = \"en-US\""
|
|
29158
|
+
},
|
|
28969
29159
|
{
|
|
28970
29160
|
"name": "DEFAULT_TEMPORAL_PATTERN",
|
|
28971
29161
|
"package": "@venizia/ignis-helpers",
|
|
@@ -29046,6 +29236,16 @@
|
|
|
29046
29236
|
"line": 28,
|
|
29047
29237
|
"signature": "interface ITemporalAdapter"
|
|
29048
29238
|
},
|
|
29239
|
+
{
|
|
29240
|
+
"name": "ITemporalDurationParts",
|
|
29241
|
+
"package": "@venizia/ignis-helpers",
|
|
29242
|
+
"subpath": "./temporal",
|
|
29243
|
+
"specifier": "@venizia/ignis-helpers/temporal",
|
|
29244
|
+
"kind": "interface",
|
|
29245
|
+
"file": "packages/helpers/src/modules/temporal/common/types.ts",
|
|
29246
|
+
"line": 77,
|
|
29247
|
+
"signature": "interface ITemporalDurationParts"
|
|
29248
|
+
},
|
|
29049
29249
|
{
|
|
29050
29250
|
"name": "ITemporalNamespace",
|
|
29051
29251
|
"package": "@venizia/ignis-helpers",
|
|
@@ -29086,6 +29286,16 @@
|
|
|
29086
29286
|
"line": 16,
|
|
29087
29287
|
"signature": "interface IZonedTemporalParts extends ITemporalParts"
|
|
29088
29288
|
},
|
|
29289
|
+
{
|
|
29290
|
+
"name": "IntlTemporalAdapter",
|
|
29291
|
+
"package": "@venizia/ignis-helpers",
|
|
29292
|
+
"subpath": "./temporal",
|
|
29293
|
+
"specifier": "@venizia/ignis-helpers/temporal",
|
|
29294
|
+
"kind": "class",
|
|
29295
|
+
"file": "packages/helpers/src/modules/temporal/adapters/intl.ts",
|
|
29296
|
+
"line": 15,
|
|
29297
|
+
"signature": "class IntlTemporalAdapter implements ITemporalAdapter"
|
|
29298
|
+
},
|
|
29089
29299
|
{
|
|
29090
29300
|
"name": "LuxonTemporalAdapter",
|
|
29091
29301
|
"package": "@venizia/ignis-helpers",
|
|
@@ -29106,6 +29316,16 @@
|
|
|
29106
29316
|
"line": 12,
|
|
29107
29317
|
"signature": "class NativeTemporalAdapter implements ITemporalAdapter"
|
|
29108
29318
|
},
|
|
29319
|
+
{
|
|
29320
|
+
"name": "TTemporalDurationStyle",
|
|
29321
|
+
"package": "@venizia/ignis-helpers",
|
|
29322
|
+
"subpath": "./temporal",
|
|
29323
|
+
"specifier": "@venizia/ignis-helpers/temporal",
|
|
29324
|
+
"kind": "type",
|
|
29325
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
29326
|
+
"line": 55,
|
|
29327
|
+
"signature": "type TTemporalDurationStyle = TConstValue<typeof TemporalDurationStyles>"
|
|
29328
|
+
},
|
|
29109
29329
|
{
|
|
29110
29330
|
"name": "TTemporalInput",
|
|
29111
29331
|
"package": "@venizia/ignis-helpers",
|
|
@@ -29126,6 +29346,16 @@
|
|
|
29126
29346
|
"line": 30,
|
|
29127
29347
|
"signature": "type TTemporalUnit = TConstValue<typeof TemporalUnits>"
|
|
29128
29348
|
},
|
|
29349
|
+
{
|
|
29350
|
+
"name": "TemporalDurationStyles",
|
|
29351
|
+
"package": "@venizia/ignis-helpers",
|
|
29352
|
+
"subpath": "./temporal",
|
|
29353
|
+
"specifier": "@venizia/ignis-helpers/temporal",
|
|
29354
|
+
"kind": "class",
|
|
29355
|
+
"file": "packages/helpers/src/modules/temporal/common/constants.ts",
|
|
29356
|
+
"line": 42,
|
|
29357
|
+
"signature": "class TemporalDurationStyles"
|
|
29358
|
+
},
|
|
29129
29359
|
{
|
|
29130
29360
|
"name": "TemporalHelper",
|
|
29131
29361
|
"package": "@venizia/ignis-helpers",
|
|
@@ -29133,7 +29363,7 @@
|
|
|
29133
29363
|
"specifier": "@venizia/ignis-helpers/temporal",
|
|
29134
29364
|
"kind": "class",
|
|
29135
29365
|
"file": "packages/helpers/src/modules/temporal/helper.ts",
|
|
29136
|
-
"line":
|
|
29366
|
+
"line": 81,
|
|
29137
29367
|
"signature": "class TemporalHelper extends BaseHelper"
|
|
29138
29368
|
},
|
|
29139
29369
|
{
|
|
@@ -29403,7 +29633,7 @@
|
|
|
29403
29633
|
"specifier": "@venizia/ignis-inversion",
|
|
29404
29634
|
"kind": "class",
|
|
29405
29635
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
29406
|
-
"line":
|
|
29636
|
+
"line": 21,
|
|
29407
29637
|
"signature": "class ApplicationError extends Error"
|
|
29408
29638
|
},
|
|
29409
29639
|
{
|
|
@@ -29586,6 +29816,16 @@
|
|
|
29586
29816
|
"line": 6,
|
|
29587
29817
|
"signature": "class MessageCode"
|
|
29588
29818
|
},
|
|
29819
|
+
{
|
|
29820
|
+
"name": "MessageTemplate",
|
|
29821
|
+
"package": "@venizia/ignis-inversion",
|
|
29822
|
+
"subpath": ".",
|
|
29823
|
+
"specifier": "@venizia/ignis-inversion",
|
|
29824
|
+
"kind": "class",
|
|
29825
|
+
"file": "packages/inversion/src/modules/error/message-template.ts",
|
|
29826
|
+
"line": 9,
|
|
29827
|
+
"signature": "class MessageTemplate"
|
|
29828
|
+
},
|
|
29589
29829
|
{
|
|
29590
29830
|
"name": "MetadataKeys",
|
|
29591
29831
|
"package": "@venizia/ignis-inversion",
|
|
@@ -29623,7 +29863,7 @@
|
|
|
29623
29863
|
"specifier": "@venizia/ignis-inversion",
|
|
29624
29864
|
"kind": "type",
|
|
29625
29865
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
29626
|
-
"line":
|
|
29866
|
+
"line": 108,
|
|
29627
29867
|
"signature": "type TApplicationError = ApplicationError"
|
|
29628
29868
|
},
|
|
29629
29869
|
{
|
|
@@ -29953,7 +30193,7 @@
|
|
|
29953
30193
|
"specifier": "@venizia/ignis-inversion",
|
|
29954
30194
|
"kind": "const",
|
|
29955
30195
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
29956
|
-
"line":
|
|
30196
|
+
"line": 101,
|
|
29957
30197
|
"signature": "fromError: (opts: { error: TResponsedError; }) => ApplicationError"
|
|
29958
30198
|
},
|
|
29959
30199
|
{
|
|
@@ -29963,7 +30203,7 @@
|
|
|
29963
30203
|
"specifier": "@venizia/ignis-inversion",
|
|
29964
30204
|
"kind": "const",
|
|
29965
30205
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
29966
|
-
"line":
|
|
30206
|
+
"line": 99,
|
|
29967
30207
|
"signature": "getError: (opts: TError) => ApplicationError"
|
|
29968
30208
|
},
|
|
29969
30209
|
{
|
|
@@ -29983,7 +30223,7 @@
|
|
|
29983
30223
|
"specifier": "@venizia/ignis-inversion",
|
|
29984
30224
|
"kind": "const",
|
|
29985
30225
|
"file": "packages/inversion/src/modules/error/app-error.ts",
|
|
29986
|
-
"line":
|
|
30226
|
+
"line": 104,
|
|
29987
30227
|
"signature": "isApplicationError: (error: unknown) => error is ApplicationError"
|
|
29988
30228
|
},
|
|
29989
30229
|
{
|
|
@@ -30413,7 +30653,7 @@
|
|
|
30413
30653
|
"specifier": "@venizia/ignis-kernel",
|
|
30414
30654
|
"kind": "class",
|
|
30415
30655
|
"file": "packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts",
|
|
30416
|
-
"line":
|
|
30656
|
+
"line": 93,
|
|
30417
30657
|
"signature": "class BaseAppErrorMiddleware extends BaseHelper implements IProvider<ErrorHandler>"
|
|
30418
30658
|
},
|
|
30419
30659
|
{
|
|
@@ -32763,7 +33003,7 @@
|
|
|
32763
33003
|
"specifier": "@venizia/ignis-kernel",
|
|
32764
33004
|
"kind": "type",
|
|
32765
33005
|
"file": "packages/kernel/src/base/middlewares/app-error/app-error.middleware.ts",
|
|
32766
|
-
"line":
|
|
33006
|
+
"line": 31,
|
|
32767
33007
|
"signature": "type TErrorLogFormatter = (opts: { error: unknown; messageCode?: string; extra?: Record<string, unknown>; includeStack?: boolean; maxStackFrames?: number; }) => string"
|
|
32768
33008
|
},
|
|
32769
33009
|
{
|
|
@@ -304,6 +304,35 @@ The handler is fail-closed on environment. It exposes `stack` and `cause` in `de
|
|
|
304
304
|
>
|
|
305
305
|
> A key with no arg stays as written. Outside production, the middleware logs one warning naming the code and the missing keys. `Error.message` and the log line keep the template, so an arg value never leaves the redacted `args` map.
|
|
306
306
|
|
|
307
|
+
### Store the filled text where a plain reader shows it
|
|
308
|
+
|
|
309
|
+
`error.message` stays the template, so a reader that only knows `.message` - a job queue's failure reason, a third-party log - shows `%{key}`. Fill it where you hand the error over:
|
|
310
|
+
|
|
311
|
+
```typescript
|
|
312
|
+
const error = getError({
|
|
313
|
+
message: { text: 'Only %{available} left of %{sku}.', code: 'stock.unavailable' },
|
|
314
|
+
messageArgs: { available: 2, sku: 'TRA-01' },
|
|
315
|
+
statusCode: 409,
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
error.toFilledText(); // 'Only 2 left of TRA-01.'
|
|
319
|
+
error.message; // 'Only %{available} left of %{sku}.' - unchanged
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
For a BullMQ processor, which stores `job.failedReason = error.message`:
|
|
323
|
+
|
|
324
|
+
```typescript
|
|
325
|
+
const processor = async (job: Job) => {
|
|
326
|
+
try {
|
|
327
|
+
return await handle(job);
|
|
328
|
+
} catch (error) {
|
|
329
|
+
throw isApplicationError(error) ? new Error(error.toFilledText(), { cause: error }) : error;
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
Fill only where you choose to. A filled text carries every arg value inline, outside the `args` map a log redacts by key. `MessageTemplate.render({ text, args })` is the same fill, and also returns the keys it found no arg for.
|
|
335
|
+
|
|
307
336
|
### Consume the error response from a browser client
|
|
308
337
|
|
|
309
338
|
The error layer lives in `@venizia/ignis-inversion`, not in helpers, precisely so a browser app can
|
|
@@ -28,7 +28,8 @@ An **adapter** answers one question: which UTC offset a zone observes at an inst
|
|
|
28
28
|
|
|
29
29
|
| Adapter | Build it with | Needs | Reach for it when |
|
|
30
30
|
|---|---|---|---|
|
|
31
|
-
| `NativeTemporalAdapter` (the default) | `new NativeTemporalAdapter()` | The runtime's `Temporal` API - Bun
|
|
31
|
+
| `NativeTemporalAdapter` (the default when the runtime has `Temporal`) | `new NativeTemporalAdapter()` | The runtime's `Temporal` API - Bun has it, not every browser does | You run on Bun |
|
|
32
|
+
| `IntlTemporalAdapter` (the default otherwise) | `new IntlTemporalAdapter()` | Nothing: `Intl.DateTimeFormat` ships in every browser and runtime | You run in a browser, or want one behaviour everywhere |
|
|
32
33
|
| `NativeTemporalAdapter` | `new NativeTemporalAdapter({ temporal })` | A Temporal polyfill's namespace | Your runtime has no `Temporal` and you want the standard API |
|
|
33
34
|
| `DayjsTemporalAdapter` | `new DayjsTemporalAdapter({ dayjs })` | Your `dayjs`, with the `utc` and `timezone` plugins extended | Your app already ships dayjs |
|
|
34
35
|
| `LuxonTemporalAdapter` | `new LuxonTemporalAdapter({ DateTime })` | Your Luxon `DateTime` class | Your app already ships Luxon |
|
|
@@ -105,7 +106,43 @@ temporal.format({ value: paidAt, pattern: '[on] D/M/YYYY [at] H:mm' }); // 'on 1
|
|
|
105
106
|
|
|
106
107
|
Without a pattern you get ISO 8601 with the zone's offset. Wrap literal text in `[brackets]`.
|
|
107
108
|
|
|
108
|
-
Patterns use the dayjs spelling
|
|
109
|
+
Patterns use the dayjs spelling - see [Pattern tokens](#pattern-tokens). Any other letter throws when the pattern is read, so a date-fns pattern like `yyyy-MM-dd` fails loudly instead of printing garbage.
|
|
110
|
+
|
|
111
|
+
### Write month names, weekdays and 12-hour time
|
|
112
|
+
|
|
113
|
+
```typescript
|
|
114
|
+
const vietnamese = new TemporalHelper({ timeZone: 'Asia/Ho_Chi_Minh', locale: 'vi-VN' });
|
|
115
|
+
|
|
116
|
+
vietnamese.format({ value: paidAt, pattern: 'dddd, D MMMM YYYY hh:mm A' }); // 'Thứ Bảy, 19 Tháng 9 2026 12:00 CH'
|
|
117
|
+
temporal.format({ value: paidAt, pattern: 'ddd, MMM D, h:mm a', locale: 'en-US' }); // 'Sat, Sep 19, 12:00 pm'
|
|
118
|
+
temporal.format({ value: paidAt, pattern: 'LL', locale: 'en-US' }); // 'September 19, 2026'
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
The names are what `Intl` spells for the locale, so a browser can differ slightly from Bun. These tokens write only: `parse` stays numeric. For anything a token cannot say, pass `Intl.DateTimeFormat` options to `formatIntl`:
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
temporal.formatIntl({ value: paidAt, options: { weekday: 'long', hour: 'numeric' }, locale: 'en-US' }); // 'Saturday 12 PM'
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Say how long ago
|
|
128
|
+
|
|
129
|
+
```typescript
|
|
130
|
+
temporal.relative({ value: paidAt, base: '2026-09-19T08:00:00Z' }); // '3 hours ago'
|
|
131
|
+
temporal.relative({ value: paidAt, unit: TemporalUnits.DAY, numeric: 'auto' }); // 'yesterday', 'today', 'tomorrow'
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
Without a `unit`, `relative` says the largest whole unit that has passed. With one, it counts that unit's boundaries in the zone: 23:00 yesterday, seen at 01:00, is `yesterday`. `base` defaults to now.
|
|
135
|
+
|
|
136
|
+
### Compare and measure
|
|
137
|
+
|
|
138
|
+
```typescript
|
|
139
|
+
temporal.compare({ value: a, other: b, unit: TemporalUnits.DAY }); // -1, 0 or 1 - is a before, on, or after b's day?
|
|
140
|
+
temporal.diff({ value: b, other: a, unit: TemporalUnits.MONTH }); // whole months from a to b
|
|
141
|
+
temporal.tryParse({ value: input }); // a Date, or null where parse would throw
|
|
142
|
+
temporal.formatDuration({ milliseconds: 5_400_000 }); // '1h30m'
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
`diff` is the inverse of `add`: `diff(add(x, n), x)` is `n`, except in a zone that skipped a whole day (Samoa on 2011-12-30). Hours and smaller count elapsed time; days and larger count the calendar, so the 23-hour day of a spring-forward jump is one day.
|
|
109
146
|
|
|
110
147
|
### Move a date by days, months or hours
|
|
111
148
|
|
|
@@ -213,7 +250,7 @@ Those five plugins and that zone are what IGNIS configured. Then point every imp
|
|
|
213
250
|
| `isWeekday(date)` | `temporal.isWeekday({ value })` |
|
|
214
251
|
| `getNextWeekday({ date })` | `temporal.nextWeekday({ value })` |
|
|
215
252
|
| `getPreviousWeekday({ date })` | `temporal.previousWeekday({ value })` |
|
|
216
|
-
| `getDateTz({ date, timezone })` | `temporal.format({ value, timeZone })` for
|
|
253
|
+
| `getDateTz({ date, timezone })` | `temporal.format({ value, timeZone })` for text, with `dddd` for the weekday name; `temporal.parts({ value, timeZone })` for fields |
|
|
217
254
|
| `getDateTz({ ..., timeOffset })` | `temporal.add({ value, amount: timeOffset, unit: TemporalUnits.HOUR })` |
|
|
218
255
|
| `sleep()`, `hrTime()` | Unchanged - both still ship from `@venizia/ignis-helpers` |
|
|
219
256
|
|
|
@@ -235,8 +272,9 @@ The same names ship from `@venizia/ignis-helpers` and from the browser-safe `@ve
|
|
|
235
272
|
|
|
236
273
|
| Option | Type | Default | Meaning |
|
|
237
274
|
|---|---|---|---|
|
|
238
|
-
| `adapter` | `ITemporalAdapter` | `
|
|
275
|
+
| `adapter` | `ITemporalAdapter` | `NativeTemporalAdapter` when the runtime has `Temporal`, `IntlTemporalAdapter` otherwise | Converts time zones |
|
|
239
276
|
| `timeZone` | `string` | `'UTC'` | The IANA zone every call uses unless it passes its own. Checked when the helper is built |
|
|
277
|
+
| `locale` | `string` | `'en-US'` | Spells name tokens, relative time and durations, unless a call passes its own. A malformed tag is a 400 |
|
|
240
278
|
| `scope` | `string` | `'TemporalHelper'` | Logger scope, from `BaseHelper` |
|
|
241
279
|
|
|
242
280
|
### Methods
|
|
@@ -246,11 +284,15 @@ Every method takes one options object. `value` is a `TTemporalInput`: a `Date`,
|
|
|
246
284
|
| Method | Returns | What it does |
|
|
247
285
|
|---|---|---|
|
|
248
286
|
| `getTimeZone()` | `string` | The helper's zone |
|
|
287
|
+
| `getLocale()` | `string` | The helper's locale |
|
|
249
288
|
| `now()` | `Date` | The current instant |
|
|
250
289
|
| `toDate({ value, timeZone })` | `Date` | The instant `value` names. An ISO string without an offset is wall clock in the zone |
|
|
251
290
|
| `parts({ value, timeZone })` | `IZonedTemporalParts` | The wall clock in the zone, with the ISO weekday and the offset |
|
|
252
291
|
| `parse({ value, pattern, timeZone })` | `Date` | Reads a string: an exact match with `pattern`, ISO 8601 without. An offset in the value wins over the zone |
|
|
253
|
-
| `
|
|
292
|
+
| `tryParse({ value, pattern, timeZone })` | `Date \| null` | `parse`, answering `null` where `parse` throws a 400. A broken pattern still throws |
|
|
293
|
+
| `isValid({ value, pattern, timeZone })` | `boolean` | Whether the value names an instant in years 1-9999; a string is read as `parse` reads it |
|
|
294
|
+
| `format({ value, pattern, timeZone, locale })` | `string` | Writes the value in the zone. `pattern` defaults to `YYYY-MM-DDTHH:mm:ss.SSSZ` |
|
|
295
|
+
| `formatIntl({ value, options, timeZone, locale })` | `string` | Writes the value with `Intl.DateTimeFormat` options, in the zone |
|
|
254
296
|
| `add({ value, amount, unit, timeZone })` | `Date` | Moves the value by whole units - see [Units](#units) |
|
|
255
297
|
| `subtract({ value, amount, unit, timeZone })` | `Date` | `add` with the sign flipped |
|
|
256
298
|
| `startOf({ value, unit, timeZone })` | `Date` | The first instant of the unit containing the value |
|
|
@@ -258,6 +300,11 @@ Every method takes one options object. `value` is a `TTemporalInput`: a `Date`,
|
|
|
258
300
|
| `isWeekday({ value, timeZone })` | `boolean` | Monday to Friday, on the zone's wall clock |
|
|
259
301
|
| `nextWeekday({ value, timeZone })` | `Date` | The next Monday-to-Friday day, same wall time |
|
|
260
302
|
| `previousWeekday({ value, timeZone })` | `Date` | The previous Monday-to-Friday day, same wall time |
|
|
303
|
+
| `diff({ value, other, unit, timeZone })` | `number` | Whole units from `other` to `value`, truncated toward zero. The largest `n` that `add` can move `other` by without passing `value` |
|
|
304
|
+
| `compare({ value, other, unit, timeZone })` | `-1 \| 0 \| 1` | Before, in or after the unit holding `other`. Without `unit`, to the millisecond |
|
|
305
|
+
| `relative({ value, base, unit, numeric, style, timeZone, locale })` | `string` | `value` relative to `base` (default now), through `Intl.RelativeTimeFormat`. `unit` has no millisecond |
|
|
306
|
+
| `durationParts({ milliseconds })` | `ITemporalDurationParts` | Days, hours, minutes, seconds and milliseconds; a day is 24 hours |
|
|
307
|
+
| `formatDuration({ milliseconds, style, locale })` | `string` | `compact` (default) writes `1d1h30m`; `narrow`, `short` and `long` use the locale's unit words. Zero units and milliseconds are left out |
|
|
261
308
|
|
|
262
309
|
### Units
|
|
263
310
|
|
|
@@ -287,10 +334,16 @@ Examples format `2026-09-19T05:04:03.021Z` in `Asia/Ho_Chi_Minh`.
|
|
|
287
334
|
| `SSS` | Millisecond, three digits | `021` |
|
|
288
335
|
| `Z` | Offset with a colon, and seconds when it has them. Parsing also takes `Z` | `+07:00` |
|
|
289
336
|
| `ZZ` | Offset without a colon, and seconds when it has them. Parsing also takes `Z` | `+0700` |
|
|
337
|
+
| `MMMM` / `MMM` | Month name, long / short, on the Gregorian calendar whatever the locale's own. Writing only | `September` / `Sep` |
|
|
338
|
+
| `dddd` / `ddd` | Weekday name, long / short. Writing only | `Saturday` / `Sat` |
|
|
339
|
+
| `hh` / `h` | Hour 1-12, padded / unpadded. Writing only | `12` / `12` |
|
|
340
|
+
| `A` / `a` | AM/PM marker, as written / lower case. Writing only | `PM` / `pm` |
|
|
341
|
+
| `L` / `LL` | The date in the locale's numeric order / its long form. Writing only | `09/19/2026` / `September 19, 2026` |
|
|
290
342
|
| `[text]` | Literal text | `[at]` writes `at` |
|
|
291
343
|
| `T` | A literal `T` - the one letter allowed without brackets | `T` |
|
|
292
344
|
|
|
293
|
-
- A run of one letter is one token. `
|
|
345
|
+
- A run of one letter is one token. `DDDD` or `ZZZ` throws a 500 that names it, rather than being read as smaller tokens.
|
|
346
|
+
- Name examples are `en-US`. The writing-only tokens take the call's `locale`, or the helper's. A parse pattern holding one throws a 500.
|
|
294
347
|
- Any other letter throws the same way. Spaces and punctuation are literals.
|
|
295
348
|
- An offset with seconds is historic local mean time: `Asia/Ho_Chi_Minh` in 1900 writes `+07:06:30`. Parsing refuses an offset hour above 23, or a minute or second above 59.
|
|
296
349
|
- Parsing fills a field the pattern leaves out with its start: year 1970, month 1, day 1, 00:00:00.000.
|
|
@@ -317,8 +370,10 @@ Examples format `2026-09-19T05:04:03.021Z` in `Asia/Ho_Chi_Minh`.
|
|
|
317
370
|
| A value outside years 1-9999, or an `add` that leaves them | 400 | `[TemporalHelper]` ... `outside the years 1-9999` |
|
|
318
371
|
| An adapter called directly with a zone it cannot read | 400 | `[NativeTemporalAdapter] no offset for` (and the same for the other two) |
|
|
319
372
|
| An unknown unit, or a fractional `amount` | 400 | `[TemporalHelper] unknown unit` / `[TemporalHelper] amount must be an integer` |
|
|
320
|
-
| An unknown token, or an unclosed `[`, in a pattern | 500 | `[TemporalPattern]` |
|
|
321
|
-
|
|
|
373
|
+
| An unknown token, or an unclosed `[`, in a pattern; a writing-only token in a parse pattern | 500 | `[TemporalPattern]` |
|
|
374
|
+
| A malformed `locale` | 400 | `[TemporalLocale] invalid locale` |
|
|
375
|
+
| A fractional `milliseconds`, or an unknown duration `style` | 400 | `[TemporalDuration]` |
|
|
376
|
+
| `new NativeTemporalAdapter()` finds no `Temporal` | 500 | `[NativeTemporalAdapter] Temporal is not available on this runtime` |
|
|
322
377
|
| dayjs without the `timezone` plugin | 500 | ``[DayjsTemporalAdapter] dayjs has no `tz` `` |
|
|
323
378
|
|
|
324
379
|
### Types
|
|
@@ -335,8 +390,10 @@ interface ITemporalAdapter {
|
|
|
335
390
|
| `TTemporalInput` | `Date \| number \| string` |
|
|
336
391
|
| `ITemporalParts` | `year`, `month` (1-12), `day` (1-31), `hour`, `minute`, `second`, `millisecond` |
|
|
337
392
|
| `IZonedTemporalParts` | `ITemporalParts` plus `dayOfWeek` (ISO: 1 is Monday, 7 is Sunday) and `offsetMinutes` (east of UTC: `420` for `+07:00`; a fraction when the offset has seconds) |
|
|
393
|
+
| `ITemporalDurationParts` | `isNegative`, and non-negative `days`, `hours`, `minutes`, `seconds`, `milliseconds` |
|
|
338
394
|
|
|
339
|
-
- `DEFAULT_TEMPORAL_TIME_ZONE` is `'UTC'`. `DEFAULT_TEMPORAL_PATTERN` is `'YYYY-MM-DDTHH:mm:ss.SSSZ'`.
|
|
395
|
+
- `DEFAULT_TEMPORAL_TIME_ZONE` is `'UTC'`. `DEFAULT_TEMPORAL_PATTERN` is `'YYYY-MM-DDTHH:mm:ss.SSSZ'`. `DEFAULT_TEMPORAL_LOCALE` is `'en-US'`.
|
|
396
|
+
- `TemporalDurationStyles` holds `COMPACT`, `NARROW`, `SHORT` and `LONG`.
|
|
340
397
|
- The adapters type their library argument structurally (`ITemporalNamespace`, `IDayjsFactory`, `ILuxonDateTimeFactory`), so no date library's types ship with this package.
|
|
341
398
|
|
|
342
399
|
## See also
|
|
@@ -351,6 +408,9 @@ interface ITemporalAdapter {
|
|
|
351
408
|
- [`packages/helpers/src/modules/temporal/helper.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/helper.ts) - `TemporalHelper`
|
|
352
409
|
- [`packages/helpers/src/modules/temporal/pattern.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/pattern.ts) - the pattern dialect
|
|
353
410
|
- [`packages/helpers/src/modules/temporal/calendar.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/calendar.ts) - day and month arithmetic
|
|
411
|
+
- [`packages/helpers/src/modules/temporal/adapters/intl.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/adapters/intl.ts) - `IntlTemporalAdapter`
|
|
412
|
+
- [`packages/helpers/src/modules/temporal/locale.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/locale.ts) - month and weekday names per locale
|
|
413
|
+
- [`packages/helpers/src/modules/temporal/duration.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/duration.ts) - `durationParts` and `formatDuration`
|
|
354
414
|
- [`packages/helpers/src/modules/temporal/adapters/native.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/adapters/native.ts) - `NativeTemporalAdapter`
|
|
355
415
|
- [`packages/helpers/src/modules/temporal/adapters/dayjs.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/adapters/dayjs.ts) - `DayjsTemporalAdapter`
|
|
356
416
|
- [`packages/helpers/src/modules/temporal/adapters/luxon.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/adapters/luxon.ts) - `LuxonTemporalAdapter`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ignis-atlas",
|
|
3
|
-
"version": "0.1.1",
|
|
3
|
+
"version": "0.1.2-1",
|
|
4
4
|
"description": "MCP server for IGNIS: search and read the wiki, changelogs and knowledge bundle by section, with citations. Bun-only, zero-dependency transport.",
|
|
5
5
|
"homepage": "https://ignis.venizia.ai",
|
|
6
6
|
"repository": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@hono/zod-openapi": "^1.6.3",
|
|
63
|
-
"@venizia/ignis-helpers": "^0.2.1",
|
|
63
|
+
"@venizia/ignis-helpers": "^0.2.2-1",
|
|
64
64
|
"zod": "^4.5.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|