@venizia/ignis-atlas 0.1.2-2 → 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.
@@ -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 |
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,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,12 @@
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
+ },
16
22
  {
17
23
  "version": "0.1.2-1",
18
24
  "date": "2026-10-14",
@@ -827,6 +833,12 @@
827
833
  }
828
834
  ],
829
835
  "connectors": [
836
+ {
837
+ "version": "0.2.2-3",
838
+ "date": "2026-10-15",
839
+ "sha": "548cec18",
840
+ "order": 1650
841
+ },
830
842
  {
831
843
  "version": "0.2.2-2",
832
844
  "date": "2026-10-15",
@@ -2037,6 +2049,12 @@
2037
2049
  }
2038
2050
  ],
2039
2051
  "core-server": [
2052
+ {
2053
+ "version": "0.2.2-3",
2054
+ "date": "2026-10-15",
2055
+ "sha": "a5b95d99",
2056
+ "order": 1652
2057
+ },
2040
2058
  {
2041
2059
  "version": "0.2.2-2",
2042
2060
  "date": "2026-10-15",
@@ -2423,6 +2441,12 @@
2423
2441
  }
2424
2442
  ],
2425
2443
  "core-worker": [
2444
+ {
2445
+ "version": "0.2.2-3",
2446
+ "date": "2026-10-15",
2447
+ "sha": "52407ff6",
2448
+ "order": 1651
2449
+ },
2426
2450
  {
2427
2451
  "version": "0.2.2-2",
2428
2452
  "date": "2026-10-15",
@@ -3381,6 +3405,12 @@
3381
3405
  }
3382
3406
  ],
3383
3407
  "helpers": [
3408
+ {
3409
+ "version": "0.2.2-3",
3410
+ "date": "2026-10-15",
3411
+ "sha": "bf68017c",
3412
+ "order": 1648
3413
+ },
3384
3414
  {
3385
3415
  "version": "0.2.2-2",
3386
3416
  "date": "2026-10-15",
@@ -4507,6 +4537,12 @@
4507
4537
  }
4508
4538
  ],
4509
4539
  "kernel": [
4540
+ {
4541
+ "version": "0.2.2-3",
4542
+ "date": "2026-10-15",
4543
+ "sha": "a29b9868",
4544
+ "order": 1649
4545
+ },
4510
4546
  {
4511
4547
  "version": "0.2.2-2",
4512
4548
  "date": "2026-10-15",
@@ -4870,6 +4906,17 @@
4870
4906
  ]
4871
4907
  },
4872
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
+ },
4873
4920
  {
4874
4921
  "id": "changelog:2026-10-15-is-application-error-shape",
4875
4922
  "file": "2026-10-15-is-application-error-shape.md",