moment-hijri-plus/CHANGELOG.md
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

789 B

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog.

[1.0.0] - 2026-02-25

Added

  • Initial release
  • toHijri() instance method: convert a moment to a Hijri date object
  • hijriYear(), hijriMonth(), hijriDay() convenience accessors
  • isValidHijri() range check
  • formatHijri() with 13 Hijri-specific format tokens
  • moment.fromHijri() static factory for constructing moments from Hijri dates
  • Umm al-Qura (UAQ) calendar support via hijri-core (default)
  • FCNA/ISNA calendar support via hijri-core
  • Full TypeScript definitions with module augmentation for moment.Moment and moment.MomentStatic
  • Dual CJS/ESM build with separate type declaration files