@venizia/ignis-atlas 0.1.2-2 → 0.1.2-4
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-temporal-browser-and-locale.md +1 -1
- package/dist/corpus/changelogs/2026-10-15-temporal-wrapper-surface.md +48 -0
- package/dist/corpus/changelogs/index.md +1 -0
- package/dist/corpus/releases.json +83 -0
- package/dist/corpus/symbols.json +368 -88
- package/dist/corpus/wiki/extensions/helpers/temporal/index.md +118 -42
- package/dist/corpus/wiki/references/configuration/environment-variables.md +1 -1
- package/package.json +2 -2
|
@@ -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,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. The constructor takes a `fallback` too, used by `format` and `formatIntl` when a call passes none |
|
|
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, and a call in another tag of the same language uses the entry; 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,7 @@ 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 |
|
|
20
21
|
| 2026-10-15 | [isApplicationError Checks the Whole Shape](./2026-10-15-is-application-error-shape) | Bug Fix, Behavior Change |
|
|
21
22
|
| 2026-10-14 | [An Error Hands Out Its Filled Text](./2026-10-14-error-filled-text) | Enhancement |
|
|
22
23
|
| 2026-10-14 | [TemporalHelper Runs in Every Browser and Speaks a Locale](./2026-10-14-temporal-browser-and-locale) | Feature |
|
|
@@ -13,6 +13,18 @@
|
|
|
13
13
|
],
|
|
14
14
|
"releases": {
|
|
15
15
|
"atlas": [
|
|
16
|
+
{
|
|
17
|
+
"version": "0.1.2-3",
|
|
18
|
+
"date": "2026-10-15",
|
|
19
|
+
"sha": "4b687e41",
|
|
20
|
+
"order": 1654
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"version": "0.1.2-2",
|
|
24
|
+
"date": "2026-10-15",
|
|
25
|
+
"sha": "aecfe564",
|
|
26
|
+
"order": 1646
|
|
27
|
+
},
|
|
16
28
|
{
|
|
17
29
|
"version": "0.1.2-1",
|
|
18
30
|
"date": "2026-10-14",
|
|
@@ -827,6 +839,18 @@
|
|
|
827
839
|
}
|
|
828
840
|
],
|
|
829
841
|
"connectors": [
|
|
842
|
+
{
|
|
843
|
+
"version": "0.2.2-4",
|
|
844
|
+
"date": "2026-10-15",
|
|
845
|
+
"sha": "bbfe2654",
|
|
846
|
+
"order": 1661
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"version": "0.2.2-3",
|
|
850
|
+
"date": "2026-10-15",
|
|
851
|
+
"sha": "548cec18",
|
|
852
|
+
"order": 1650
|
|
853
|
+
},
|
|
830
854
|
{
|
|
831
855
|
"version": "0.2.2-2",
|
|
832
856
|
"date": "2026-10-15",
|
|
@@ -2037,6 +2061,18 @@
|
|
|
2037
2061
|
}
|
|
2038
2062
|
],
|
|
2039
2063
|
"core-server": [
|
|
2064
|
+
{
|
|
2065
|
+
"version": "0.2.2-4",
|
|
2066
|
+
"date": "2026-10-15",
|
|
2067
|
+
"sha": "1d1b1591",
|
|
2068
|
+
"order": 1663
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"version": "0.2.2-3",
|
|
2072
|
+
"date": "2026-10-15",
|
|
2073
|
+
"sha": "a5b95d99",
|
|
2074
|
+
"order": 1652
|
|
2075
|
+
},
|
|
2040
2076
|
{
|
|
2041
2077
|
"version": "0.2.2-2",
|
|
2042
2078
|
"date": "2026-10-15",
|
|
@@ -2423,6 +2459,18 @@
|
|
|
2423
2459
|
}
|
|
2424
2460
|
],
|
|
2425
2461
|
"core-worker": [
|
|
2462
|
+
{
|
|
2463
|
+
"version": "0.2.2-4",
|
|
2464
|
+
"date": "2026-10-15",
|
|
2465
|
+
"sha": "e1647174",
|
|
2466
|
+
"order": 1662
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"version": "0.2.2-3",
|
|
2470
|
+
"date": "2026-10-15",
|
|
2471
|
+
"sha": "52407ff6",
|
|
2472
|
+
"order": 1651
|
|
2473
|
+
},
|
|
2426
2474
|
{
|
|
2427
2475
|
"version": "0.2.2-2",
|
|
2428
2476
|
"date": "2026-10-15",
|
|
@@ -3381,6 +3429,18 @@
|
|
|
3381
3429
|
}
|
|
3382
3430
|
],
|
|
3383
3431
|
"helpers": [
|
|
3432
|
+
{
|
|
3433
|
+
"version": "0.2.2-4",
|
|
3434
|
+
"date": "2026-10-15",
|
|
3435
|
+
"sha": "3b8e14e3",
|
|
3436
|
+
"order": 1656
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
"version": "0.2.2-3",
|
|
3440
|
+
"date": "2026-10-15",
|
|
3441
|
+
"sha": "bf68017c",
|
|
3442
|
+
"order": 1648
|
|
3443
|
+
},
|
|
3384
3444
|
{
|
|
3385
3445
|
"version": "0.2.2-2",
|
|
3386
3446
|
"date": "2026-10-15",
|
|
@@ -4507,6 +4567,18 @@
|
|
|
4507
4567
|
}
|
|
4508
4568
|
],
|
|
4509
4569
|
"kernel": [
|
|
4570
|
+
{
|
|
4571
|
+
"version": "0.2.2-4",
|
|
4572
|
+
"date": "2026-10-15",
|
|
4573
|
+
"sha": "2349c496",
|
|
4574
|
+
"order": 1657
|
|
4575
|
+
},
|
|
4576
|
+
{
|
|
4577
|
+
"version": "0.2.2-3",
|
|
4578
|
+
"date": "2026-10-15",
|
|
4579
|
+
"sha": "a29b9868",
|
|
4580
|
+
"order": 1649
|
|
4581
|
+
},
|
|
4510
4582
|
{
|
|
4511
4583
|
"version": "0.2.2-2",
|
|
4512
4584
|
"date": "2026-10-15",
|
|
@@ -4870,6 +4942,17 @@
|
|
|
4870
4942
|
]
|
|
4871
4943
|
},
|
|
4872
4944
|
"changelogs": [
|
|
4945
|
+
{
|
|
4946
|
+
"id": "changelog:2026-10-15-temporal-wrapper-surface",
|
|
4947
|
+
"file": "2026-10-15-temporal-wrapper-surface.md",
|
|
4948
|
+
"date": "2026-10-15",
|
|
4949
|
+
"title": "TemporalHelper Covers What a dayjs Wrapper Did",
|
|
4950
|
+
"packages": [
|
|
4951
|
+
"helpers"
|
|
4952
|
+
],
|
|
4953
|
+
"kind": "Feature",
|
|
4954
|
+
"order": 1647
|
|
4955
|
+
},
|
|
4873
4956
|
{
|
|
4874
4957
|
"id": "changelog:2026-10-15-is-application-error-shape",
|
|
4875
4958
|
"file": "2026-10-15-is-application-error-shape.md",
|