@venizia/ignis-atlas 0.1.2-3 → 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.
|
@@ -26,12 +26,12 @@ temporal.fromWallClock({ value: pickedDay }); // the picked day, kept in the hel
|
|
|
26
26
|
| Area | Now |
|
|
27
27
|
|---|---|
|
|
28
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 |
|
|
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
30
|
| Quarter | `TemporalUnits.QUARTER` for `add`, `startOf`, `endOf`, `diff`, `compare` and `relative`; the `Q` token writes 1-4 |
|
|
31
31
|
| `set` | Replaces wall-clock fields in the zone; the day clamps to the month |
|
|
32
32
|
| Comparisons | `isBefore`, `isAfter`, `isSame`, `isSameOrBefore`, `isSameOrAfter`, and `isBetween` with `()`, `[]`, `[)` or `(]` |
|
|
33
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 |
|
|
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
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
36
|
| `add` | An hour or smaller takes a fraction: 1.5 hours is 90 minutes. A calendar unit still takes whole numbers only |
|
|
37
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 |
|
|
@@ -13,6 +13,12 @@
|
|
|
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
|
+
},
|
|
16
22
|
{
|
|
17
23
|
"version": "0.1.2-2",
|
|
18
24
|
"date": "2026-10-15",
|
|
@@ -833,6 +839,12 @@
|
|
|
833
839
|
}
|
|
834
840
|
],
|
|
835
841
|
"connectors": [
|
|
842
|
+
{
|
|
843
|
+
"version": "0.2.2-4",
|
|
844
|
+
"date": "2026-10-15",
|
|
845
|
+
"sha": "bbfe2654",
|
|
846
|
+
"order": 1661
|
|
847
|
+
},
|
|
836
848
|
{
|
|
837
849
|
"version": "0.2.2-3",
|
|
838
850
|
"date": "2026-10-15",
|
|
@@ -2049,6 +2061,12 @@
|
|
|
2049
2061
|
}
|
|
2050
2062
|
],
|
|
2051
2063
|
"core-server": [
|
|
2064
|
+
{
|
|
2065
|
+
"version": "0.2.2-4",
|
|
2066
|
+
"date": "2026-10-15",
|
|
2067
|
+
"sha": "1d1b1591",
|
|
2068
|
+
"order": 1663
|
|
2069
|
+
},
|
|
2052
2070
|
{
|
|
2053
2071
|
"version": "0.2.2-3",
|
|
2054
2072
|
"date": "2026-10-15",
|
|
@@ -2441,6 +2459,12 @@
|
|
|
2441
2459
|
}
|
|
2442
2460
|
],
|
|
2443
2461
|
"core-worker": [
|
|
2462
|
+
{
|
|
2463
|
+
"version": "0.2.2-4",
|
|
2464
|
+
"date": "2026-10-15",
|
|
2465
|
+
"sha": "e1647174",
|
|
2466
|
+
"order": 1662
|
|
2467
|
+
},
|
|
2444
2468
|
{
|
|
2445
2469
|
"version": "0.2.2-3",
|
|
2446
2470
|
"date": "2026-10-15",
|
|
@@ -3405,6 +3429,12 @@
|
|
|
3405
3429
|
}
|
|
3406
3430
|
],
|
|
3407
3431
|
"helpers": [
|
|
3432
|
+
{
|
|
3433
|
+
"version": "0.2.2-4",
|
|
3434
|
+
"date": "2026-10-15",
|
|
3435
|
+
"sha": "3b8e14e3",
|
|
3436
|
+
"order": 1656
|
|
3437
|
+
},
|
|
3408
3438
|
{
|
|
3409
3439
|
"version": "0.2.2-3",
|
|
3410
3440
|
"date": "2026-10-15",
|
|
@@ -4537,6 +4567,12 @@
|
|
|
4537
4567
|
}
|
|
4538
4568
|
],
|
|
4539
4569
|
"kernel": [
|
|
4570
|
+
{
|
|
4571
|
+
"version": "0.2.2-4",
|
|
4572
|
+
"date": "2026-10-15",
|
|
4573
|
+
"sha": "2349c496",
|
|
4574
|
+
"order": 1657
|
|
4575
|
+
},
|
|
4540
4576
|
{
|
|
4541
4577
|
"version": "0.2.2-3",
|
|
4542
4578
|
"date": "2026-10-15",
|
|
@@ -143,6 +143,7 @@ temporal.diff({ value: b, other: a, unit: TemporalUnits.MONTH }); // whole month
|
|
|
143
143
|
temporal.tryParse({ value: input }); // a Date, or null where parse would throw
|
|
144
144
|
temporal.tryToDate({ value: row.paidAt }); // a Date, or null for null, undefined or bad input
|
|
145
145
|
temporal.format({ value: row.paidAt, pattern: 'DD/MM/YYYY', fallback: '--' }); // '--' when there is no date
|
|
146
|
+
// Or once for every call: new TemporalHelper({ tz, fallback: '--' })
|
|
146
147
|
temporal.formatDuration({ milliseconds: 5_400_000 }); // '1h30m'
|
|
147
148
|
```
|
|
148
149
|
|
|
@@ -337,7 +338,8 @@ The same names ship from `@venizia/ignis-helpers` and from the browser-safe `@ve
|
|
|
337
338
|
| `adapter` | `ITemporalAdapter` | `NativeTemporalAdapter` when the runtime has `Temporal`, `IntlTemporalAdapter` otherwise | Converts time zones |
|
|
338
339
|
| `tz` | `string` | `'UTC'` | The IANA zone every call uses unless it passes its own. Checked when the helper is built |
|
|
339
340
|
| `locale` | `string` | `'en-US'` | Spells name tokens, relative time and durations, unless a call passes its own. A malformed tag is a 400 |
|
|
340
|
-
| `names` | `Record<string, ITemporalLocaleNames>` | none | Your own month and weekday names and AM/PM marker, per locale, over `Intl`'s |
|
|
341
|
+
| `names` | `Record<string, ITemporalLocaleNames>` | none | Your own month and weekday names and AM/PM marker, per locale, over `Intl`'s. A call in another tag of the same language (`vi` for a `vi-VN` entry) uses the entry |
|
|
342
|
+
| `fallback` | `string` | none | What `format` and `formatIntl` write for a value that is not a date - null included - when a call passes none. Without it, such a value is a 400 |
|
|
341
343
|
| `scope` | `string` | `'TemporalHelper'` | Logger scope, from `BaseHelper` |
|
|
342
344
|
|
|
343
345
|
### Methods
|
|
@@ -356,7 +358,7 @@ Every method takes one options object. `value` is a `TTemporalInput`: a `Date`,
|
|
|
356
358
|
| `tryParse({ value, pattern, tz })` | `Date \| null` | `parse`, answering `null` where `parse` throws a 400. A broken pattern still throws |
|
|
357
359
|
| `isValid({ value, pattern, tz })` | `boolean` | Whether the value names an instant in years 1-9999; a string is read as `parse` reads it. `null` and `undefined` are `false` |
|
|
358
360
|
| `format({ value, pattern, tz, locale, fallback })` | `string` | Writes the value in the zone. `pattern` defaults to `YYYY-MM-DDTHH:mm:ss.SSSZ`. With `fallback`, a value that is not a date writes the fallback |
|
|
359
|
-
| `formatIntl({ value, options, tz, locale })` | `string` | Writes the value with `Intl.DateTimeFormat` options, in the zone |
|
|
361
|
+
| `formatIntl({ value, options, tz, locale, fallback })` | `string` | Writes the value with `Intl.DateTimeFormat` options, in the zone |
|
|
360
362
|
| `add({ value, amount, unit, tz })` | `Date` | Moves the value - see [Units](#units). An hour or smaller takes a fraction (`1.5` hours is 90 minutes); a calendar unit takes whole numbers only |
|
|
361
363
|
| `set({ value, year, month, day, hour, minute, second, millisecond, tz })` | `Date` | Replaces wall-clock fields in the zone; `month` is 1-12; the day clamps to the month |
|
|
362
364
|
| `subtract({ value, amount, unit, tz })` | `Date` | `add` with the sign flipped |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venizia/ignis-atlas",
|
|
3
|
-
"version": "0.1.2-
|
|
3
|
+
"version": "0.1.2-4",
|
|
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.2-
|
|
63
|
+
"@venizia/ignis-helpers": "^0.2.2-4",
|
|
64
64
|
"zod": "^4.5.4"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|