mirror of
https://github.com/acamarata/dayjs-hijri-plus.git
synced 2026-07-01 19:24:26 +00:00
Day.js plugin adding Hijri calendar support via hijri-core. Adds toHijri(), fromHijri(), hijriYear/Month/Day(), isValidHijri(), and formatHijri() to all Day.js instances. Supports UAQ and FCNA calendars via ConversionOptions. Format token escaping wraps substituted values in Day.js bracket syntax to prevent re-interpretation as format tokens. 14 ESM + 8 CJS tests passing. Dual CJS/ESM build.
699 B
699 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
- Day.js plugin with
.toHijri(),.fromHijri(),.hijriYear(),.hijriMonth(),.hijriDay(),.isValidHijri(), and.formatHijri()methods - Umm al-Qura (UAQ) calendar support via hijri-core
- FCNA/ISNA calendar support via hijri-core
- Full TypeScript definitions including module augmentation for Day.js types
- Dual CJS/ESM build with separate type declaration files
- Re-exports of
registerCalendar,getCalendar, andlistCalendarsfrom hijri-core for custom calendar registration