mirror of
https://github.com/acamarata/moment-hijri-plus.git
synced 2026-06-30 18:54:29 +00:00
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.
1.2 KiB
1.2 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
Fixed
.toHijri()now converts the calendar date the moment instance displays (year/month/day components, respecting.utc()mode) rather than passing the raw instant to hijri-core. This eliminates wrong-Hijri-day results around UTC-midnight for hosts east or west of UTC. Lock-step with the unreleased hijri-core fix onfix/utc-day-boundary.
[1.0.2] - 2026-05-30
Changed
- Trim README to concise quick-start format (E6 P1 polish)
- Expand TSDoc on all exported symbols with full @param/@returns/@example blocks
- Add docs, postbuild, and improved coverage scripts
- Adopt shared config packages (@acamarata/eslint-config, tsconfig, prettier-config)
[1.0.1] - 2026-05-28
Changed
- Flatten exports map to ADR-015 standard (import/require/types at top level)
- Add "./package.json" export condition
- Add coverage script (c8 --reporter=lcov)
- Migrate CI from pnpm/action-setup to corepack enable
[1.0.0] - 2026-05-28
Added
- Initial release