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

35 lines
1.2 KiB
Markdown

# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [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 on `fix/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