Commit graph

7 commits

Author SHA1 Message Date
Aric Camarata
a0643e0b86 chore: bump to v1.0.4 2026-06-13 11:52:42 -04:00
Aric Camarata
903fa34896 chore: bump to v1.0.3 2026-06-10 16:50:42 -04:00
Aric Camarata
c6e9a49d19 fix: convert the displayed calendar date in toHijri for hijri-core's UTC-day contract
moment.fn.toHijri now passes new Date(Date.UTC(this.year(), this.month(), this.date()))
to hijri-core instead of the raw instant (this.toDate()). This converts the calendar
date the moment instance displays, respecting utc() mode, rather than the underlying
millisecond value — eliminating wrong-Hijri-day results around UTC-midnight for hosts
east or west of UTC.

Lock-step with hijri-core fix/utc-day-boundary (commit 3419378). fromHijri path
was already correct; its comment updated for clarity.
2026-06-10 16:35:48 -04:00
Aric Camarata
b1fba5f68d chore: bump to v1.0.2 2026-05-30 19:19:21 -04:00
Aric Camarata
308e5e2c48 chore: bump to v1.0.1
- Flatten exports map to ADR-015 standard
- Add coverage script (c8)
- Migrate CI to corepack enable
2026-05-28 13:55:02 -04:00
Aric Camarata
baf7fc616b chore(config): add AGENTS.md for dual-harness parity 2026-05-25 15:51:10 -04:00
Aric Camarata
295dbf8680 feat: initial release of moment-hijri-plus v1.0.0
Moment.js plugin adding Hijri calendar support via hijri-core. Adds
toHijri(), fromHijri(), hijriYear/Month/Day(), isValidHijri(), and
formatHijri() to all Moment instances via fn prototype and module
augmentation. Format token escaping wraps substituted values in
moment bracket syntax [...] to prevent re-interpretation. UTC-midnight
date shift corrected by using getUTC* components + moment([y, m, d])
construction. 14 ESM + 8 CJS tests passing. Dual CJS/ESM build.
2026-02-25 14:15:18 -05:00