@venizia/ignis-atlas 0.1.2-1 → 0.1.2-3
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-14-error-filled-text.md +2 -0
- package/dist/corpus/changelogs/2026-10-14-temporal-browser-and-locale.md +1 -1
- package/dist/corpus/changelogs/2026-10-15-is-application-error-shape.md +37 -0
- package/dist/corpus/changelogs/2026-10-15-temporal-wrapper-surface.md +48 -0
- package/dist/corpus/changelogs/index.md +2 -0
- package/dist/corpus/releases.json +106 -0
- package/dist/corpus/symbols.json +373 -93
- package/dist/corpus/wiki/extensions/helpers/error/index.md +6 -1
- package/dist/corpus/wiki/extensions/helpers/temporal/index.md +116 -42
- package/dist/corpus/wiki/references/configuration/environment-variables.md +1 -1
- package/package.json +2 -2
|
@@ -33,6 +33,8 @@ The error response already filled its `message` (2026-10-11). A reader outside t
|
|
|
33
33
|
## Who is affected
|
|
34
34
|
|
|
35
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
|
+
- **A client that casts a response error to `ApplicationError`.** The cast object has no `toFilledText()`; calling it throws at run time. Use `fromError({ error }).toFilledText()`, or the response `message`, which the server already fills.
|
|
37
|
+
- **An object literal typed `ApplicationError`** - a test fixture, a mock - no longer compiles, because it lacks the method. Build it with `getError(...)`.
|
|
36
38
|
- **Everyone else.** No change.
|
|
37
39
|
|
|
38
40
|
**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)
|
|
@@ -58,4 +58,4 @@ These tokens write only. `parse` stays numeric and strict, and a parse pattern h
|
|
|
58
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
59
|
- **Everyone else.** No change. Existing tokens, units, strict parsing and the 1-9999 year range behave as before.
|
|
60
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)
|
|
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/locale.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/locale/locale.ts), [`packages/helpers/src/modules/temporal/duration/duration.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/duration/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/pattern/tokens.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/pattern/tokens.ts)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: isApplicationError Checks the Whole Shape
|
|
3
|
+
description: "isApplicationError() now also requires normalized.text, so a plain Error that only carries a statusCode - an HTTP client's, an engine's - is no longer taken for an ApplicationError."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-10-15
|
|
7
|
+
|
|
8
|
+
## isApplicationError checks the whole shape
|
|
9
|
+
|
|
10
|
+
<Badge type="danger" text="Bug Fix" /> <Badge type="warning" text="Behavior Change" />
|
|
11
|
+
|
|
12
|
+
**In one line.** A plain `Error` with a `statusCode` is no longer an `ApplicationError`.
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
const httpError = Object.assign(new Error('Request failed'), { statusCode: 502 });
|
|
16
|
+
|
|
17
|
+
isApplicationError(httpError); // false - it was true
|
|
18
|
+
isApplicationError(getError({ message: 'x', statusCode: 400 })); // true, as before
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What changed
|
|
22
|
+
|
|
23
|
+
`isApplicationError()` checked only `instanceof Error` and a numeric `statusCode`, yet narrowed the type to `ApplicationError`. Code after the guard then read `normalized` or called `toFilledText()` on an error that had neither, and crashed.
|
|
24
|
+
|
|
25
|
+
The guard now also requires `normalized` to be an object with a string `text`. It still tests shape, not class identity, so an `ApplicationError` from the other build copy (CJS against ESM) still matches.
|
|
26
|
+
|
|
27
|
+
Inside IGNIS this also fixes three paths that trusted the guard:
|
|
28
|
+
- A worker encoded such an error as an `ApplicationError` envelope with no `normalized`.
|
|
29
|
+
- The search connectors and the mail service rethrew it unwrapped, instead of sanitizing it as a 503 or 500.
|
|
30
|
+
|
|
31
|
+
## Who is affected
|
|
32
|
+
|
|
33
|
+
- **Code that relied on a `statusCode`-only error passing the guard.** Build the error with `getError`, or check `statusCode` yourself.
|
|
34
|
+
- **An `ApplicationError` from a copy older than 0.2.2-0.** It still matches, but has no `toFilledText()`.
|
|
35
|
+
- **Everyone else.** No change.
|
|
36
|
+
|
|
37
|
+
**Files:** [`packages/inversion/src/modules/error/app-error.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/inversion/src/modules/error/app-error.ts)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: TemporalHelper Covers What a dayjs Wrapper Did
|
|
3
|
+
description: "null is no longer 1970, a quarter unit, set, the boolean comparisons and isBetween, clock-face durations, clone, your own names per locale, and diff counted as dayjs counts."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Changelog - 2026-10-15
|
|
7
|
+
|
|
8
|
+
## TemporalHelper covers what a dayjs wrapper did
|
|
9
|
+
|
|
10
|
+
<Badge type="tip" text="Feature" /> <Badge type="danger" text="Bug Fix" /> <Badge type="danger" text="Breaking Change" />
|
|
11
|
+
|
|
12
|
+
**In one line.** An app can call `TemporalHelper` directly instead of keeping its own date wrapper.
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
temporal.format({ value: row.paidAt, pattern: 'DD/MM/YYYY', fallback: '--' }); // '--' when paidAt is null
|
|
16
|
+
temporal.startOf({ value, unit: TemporalUnits.QUARTER });
|
|
17
|
+
temporal.set({ value, hour: 9, minute: 0 });
|
|
18
|
+
temporal.isBetween({ value, from, to, inclusivity: '[]' });
|
|
19
|
+
temporal.formatDuration({ milliseconds, pattern: 'mm:ss' });
|
|
20
|
+
const english = temporal.clone({ locale: 'en-US' });
|
|
21
|
+
temporal.fromWallClock({ value: pickedDay }); // the picked day, kept in the helper's zone
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## What changed
|
|
25
|
+
|
|
26
|
+
| Area | Now |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `null` | **Bug fix.** `toDate`, `compare` and `format` threw nothing and answered 1970 for `null`, and `isValid(null)` was `true`. Now `null` is a 400, and `isValid` is `false` |
|
|
29
|
+
| Reading without throwing | `tryToDate({ value })` answers `null`; `format({ ..., fallback })` writes the fallback for a value that is not a date |
|
|
30
|
+
| Quarter | `TemporalUnits.QUARTER` for `add`, `startOf`, `endOf`, `diff`, `compare` and `relative`; the `Q` token writes 1-4 |
|
|
31
|
+
| `set` | Replaces wall-clock fields in the zone; the day clamps to the month |
|
|
32
|
+
| Comparisons | `isBefore`, `isAfter`, `isSame`, `isSameOrBefore`, `isSameOrAfter`, and `isBetween` with `()`, `[]`, `[)` or `(]` |
|
|
33
|
+
| Durations | `formatDuration` takes a clock-face `pattern` (`HH:mm:ss`, `mm:ss`) and `maxUnits` |
|
|
34
|
+
| Locales | `clone({ locale, tz })`; the constructor's `names` replaces `Intl`'s month and weekday names and AM/PM marker per locale; the `dd` token writes the narrowest weekday |
|
|
35
|
+
| Date pickers | `fromWallClock({ value })` moves a picker's host-zone wall clock into the helper's zone; `toWallClock` feeds it back; `TemporalHelper.getHostTz()` names the host's zone |
|
|
36
|
+
| `add` | An hour or smaller takes a fraction: 1.5 hours is 90 minutes. A calendar unit still takes whole numbers only |
|
|
37
|
+
| The zone option | **Breaking.** `timeZone` is now `tz` everywhere on `TemporalHelper` and `ITemporalAdapter`: the constructor, every per-call option, `getTz()`, `TemporalHelper.getHostTz()`, `DEFAULT_TEMPORAL_TZ`, and `getOffsetMilliseconds({ value, tz })`. `Intl`'s own `timeZone` option is unchanged |
|
|
38
|
+
| Structure | `ITemporalHelper` (the contract), `AbstractTemporalHelper` (the zone machinery) and `TemporalHelper` (the operations). The internals are classes in scope folders: `TemporalCalendar` with one `shift` method, `TemporalTokens`, `TemporalPattern`, `TemporalLocale`, `TemporalDuration` |
|
|
39
|
+
| `diff` | **Behavior change.** Counted as dayjs counts: days by the wall clocks, months anchored on the later day of the month. `diff(a, b)` is always `-diff(b, a)` |
|
|
40
|
+
|
|
41
|
+
## Who is affected
|
|
42
|
+
|
|
43
|
+
- **Every caller that passes a zone.** Rename `timeZone` to `tz`: `new TemporalHelper({ tz: 'Asia/Ho_Chi_Minh' })`, `format({ value, tz: 'UTC' })`, `getTimeZone()` to `getTz()`. A custom adapter reads `opts.tz`.
|
|
44
|
+
- **Code that passed `null` and got 1970.** It now gets a 400. Use `tryToDate`, `isValid` or `format({ fallback })` where a date may be missing.
|
|
45
|
+
- **A `diff` in months or years that ends on a month end.** A few month-end cases change by one. Example: from 2026-02-28 back to 2024-02-29 was -23 months and is now -24, as dayjs answers. It matched 2,160 of 2,160 dayjs answers on a set of month-end and day-edge instants.
|
|
46
|
+
- **Everyone else.** No change.
|
|
47
|
+
|
|
48
|
+
**Files:** [`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/calendar/calendar.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/calendar/calendar.ts), [`packages/helpers/src/modules/temporal/pattern/tokens.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/pattern/tokens.ts), [`packages/helpers/src/modules/temporal/duration/duration.ts`](https://github.com/VENIZIA-AI/ignis/blob/main/packages/helpers/src/modules/temporal/duration/duration.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-15 | [TemporalHelper Covers What a dayjs Wrapper Did](./2026-10-15-temporal-wrapper-surface) | Feature, Bug Fix, Breaking Change |
|
|
21
|
+
| 2026-10-15 | [isApplicationError Checks the Whole Shape](./2026-10-15-is-application-error-shape) | Bug Fix, Behavior Change |
|
|
20
22
|
| 2026-10-14 | [An Error Hands Out Its Filled Text](./2026-10-14-error-filled-text) | Enhancement |
|
|
21
23
|
| 2026-10-14 | [TemporalHelper Runs in Every Browser and Speaks a Locale](./2026-10-14-temporal-browser-and-locale) | Feature |
|
|
22
24
|
| 2026-10-11 | [Error Messages Fill Their Placeholders](./2026-10-11-error-message-placeholders) | Enhancement, Behavior Change |
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
],
|
|
14
14
|
"releases": {
|
|
15
15
|
"atlas": [
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.2-2",
|
|
18
|
+
"date": "2026-10-15",
|
|
19
|
+
"sha": "aecfe564",
|
|
20
|
+
"order": 1646
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.1.2-1",
|
|
24
|
+
"date": "2026-10-14",
|
|
25
|
+
"sha": "f1b874e2",
|
|
26
|
+
"order": 1635
|
|
27
|
+
},
|
|
16
28
|
{
|
|
17
29
|
"version": "0.1.2-0",
|
|
18
30
|
"date": "2026-10-14",
|
|
@@ -821,6 +833,18 @@
|
|
|
821
833
|
}
|
|
822
834
|
],
|
|
823
835
|
"connectors": [
|
|
836
|
+
{
|
|
837
|
+
"version": "0.2.2-3",
|
|
838
|
+
"date": "2026-10-15",
|
|
839
|
+
"sha": "548cec18",
|
|
840
|
+
"order": 1650
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
"version": "0.2.2-2",
|
|
844
|
+
"date": "2026-10-15",
|
|
845
|
+
"sha": "603e7e36",
|
|
846
|
+
"order": 1642
|
|
847
|
+
},
|
|
824
848
|
{
|
|
825
849
|
"version": "0.2.2-1",
|
|
826
850
|
"date": "2026-10-14",
|
|
@@ -2025,6 +2049,18 @@
|
|
|
2025
2049
|
}
|
|
2026
2050
|
],
|
|
2027
2051
|
"core-server": [
|
|
2052
|
+
{
|
|
2053
|
+
"version": "0.2.2-3",
|
|
2054
|
+
"date": "2026-10-15",
|
|
2055
|
+
"sha": "a5b95d99",
|
|
2056
|
+
"order": 1652
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"version": "0.2.2-2",
|
|
2060
|
+
"date": "2026-10-15",
|
|
2061
|
+
"sha": "0891916f",
|
|
2062
|
+
"order": 1644
|
|
2063
|
+
},
|
|
2028
2064
|
{
|
|
2029
2065
|
"version": "0.2.2-1",
|
|
2030
2066
|
"date": "2026-10-14",
|
|
@@ -2405,6 +2441,18 @@
|
|
|
2405
2441
|
}
|
|
2406
2442
|
],
|
|
2407
2443
|
"core-worker": [
|
|
2444
|
+
{
|
|
2445
|
+
"version": "0.2.2-3",
|
|
2446
|
+
"date": "2026-10-15",
|
|
2447
|
+
"sha": "52407ff6",
|
|
2448
|
+
"order": 1651
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
"version": "0.2.2-2",
|
|
2452
|
+
"date": "2026-10-15",
|
|
2453
|
+
"sha": "ea156f9f",
|
|
2454
|
+
"order": 1643
|
|
2455
|
+
},
|
|
2408
2456
|
{
|
|
2409
2457
|
"version": "0.2.2-1",
|
|
2410
2458
|
"date": "2026-10-14",
|
|
@@ -3151,6 +3199,12 @@
|
|
|
3151
3199
|
}
|
|
3152
3200
|
],
|
|
3153
3201
|
"filter": [
|
|
3202
|
+
{
|
|
3203
|
+
"version": "0.2.2-1",
|
|
3204
|
+
"date": "2026-10-15",
|
|
3205
|
+
"sha": "fe28ce8d",
|
|
3206
|
+
"order": 1639
|
|
3207
|
+
},
|
|
3154
3208
|
{
|
|
3155
3209
|
"version": "0.2.2-0",
|
|
3156
3210
|
"date": "2026-10-14",
|
|
@@ -3351,6 +3405,18 @@
|
|
|
3351
3405
|
}
|
|
3352
3406
|
],
|
|
3353
3407
|
"helpers": [
|
|
3408
|
+
{
|
|
3409
|
+
"version": "0.2.2-3",
|
|
3410
|
+
"date": "2026-10-15",
|
|
3411
|
+
"sha": "bf68017c",
|
|
3412
|
+
"order": 1648
|
|
3413
|
+
},
|
|
3414
|
+
{
|
|
3415
|
+
"version": "0.2.2-2",
|
|
3416
|
+
"date": "2026-10-15",
|
|
3417
|
+
"sha": "d3c49a54",
|
|
3418
|
+
"order": 1640
|
|
3419
|
+
},
|
|
3354
3420
|
{
|
|
3355
3421
|
"version": "0.2.2-1",
|
|
3356
3422
|
"date": "2026-10-14",
|
|
@@ -4109,6 +4175,12 @@
|
|
|
4109
4175
|
}
|
|
4110
4176
|
],
|
|
4111
4177
|
"inversion": [
|
|
4178
|
+
{
|
|
4179
|
+
"version": "0.2.2-1",
|
|
4180
|
+
"date": "2026-10-15",
|
|
4181
|
+
"sha": "20176300",
|
|
4182
|
+
"order": 1638
|
|
4183
|
+
},
|
|
4112
4184
|
{
|
|
4113
4185
|
"version": "0.2.2-0",
|
|
4114
4186
|
"date": "2026-10-14",
|
|
@@ -4465,6 +4537,18 @@
|
|
|
4465
4537
|
}
|
|
4466
4538
|
],
|
|
4467
4539
|
"kernel": [
|
|
4540
|
+
{
|
|
4541
|
+
"version": "0.2.2-3",
|
|
4542
|
+
"date": "2026-10-15",
|
|
4543
|
+
"sha": "a29b9868",
|
|
4544
|
+
"order": 1649
|
|
4545
|
+
},
|
|
4546
|
+
{
|
|
4547
|
+
"version": "0.2.2-2",
|
|
4548
|
+
"date": "2026-10-15",
|
|
4549
|
+
"sha": "30be1585",
|
|
4550
|
+
"order": 1641
|
|
4551
|
+
},
|
|
4468
4552
|
{
|
|
4469
4553
|
"version": "0.2.2-1",
|
|
4470
4554
|
"date": "2026-10-14",
|
|
@@ -4822,6 +4906,28 @@
|
|
|
4822
4906
|
]
|
|
4823
4907
|
},
|
|
4824
4908
|
"changelogs": [
|
|
4909
|
+
{
|
|
4910
|
+
"id": "changelog:2026-10-15-temporal-wrapper-surface",
|
|
4911
|
+
"file": "2026-10-15-temporal-wrapper-surface.md",
|
|
4912
|
+
"date": "2026-10-15",
|
|
4913
|
+
"title": "TemporalHelper Covers What a dayjs Wrapper Did",
|
|
4914
|
+
"packages": [
|
|
4915
|
+
"helpers"
|
|
4916
|
+
],
|
|
4917
|
+
"kind": "Feature",
|
|
4918
|
+
"order": 1647
|
|
4919
|
+
},
|
|
4920
|
+
{
|
|
4921
|
+
"id": "changelog:2026-10-15-is-application-error-shape",
|
|
4922
|
+
"file": "2026-10-15-is-application-error-shape.md",
|
|
4923
|
+
"date": "2026-10-15",
|
|
4924
|
+
"title": "isApplicationError Checks the Whole Shape",
|
|
4925
|
+
"packages": [
|
|
4926
|
+
"inversion"
|
|
4927
|
+
],
|
|
4928
|
+
"kind": "Bug Fix",
|
|
4929
|
+
"order": 1637
|
|
4930
|
+
},
|
|
4825
4931
|
{
|
|
4826
4932
|
"id": "changelog:2026-10-14-temporal-browser-and-locale",
|
|
4827
4933
|
"file": "2026-10-14-temporal-browser-and-locale.md",
|