luxon-hijri/CHANGELOG.md
2026-06-13 11:52:27 -04:00

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.

[3.0.3] - 2026-06-13

Fixed

  • Published package now includes dist/index.d.mts so ESM type resolution under node16/nodenext resolves the import condition.

[3.0.2] - 2026-06-10

Fixed

  • Inherits hijri-core's UTC-day fix: toHijri with UTC-midnight Dates is now exact on all hosts (previously, LOCAL date components were read, causing off-by-one errors west of UTC and on UTC+13+).
  • Round-trips (toGregorian then toHijri) are now exact for both the UAQ (default) and FCNA engines.
  • Tests updated to use new Date(Date.UTC(...)) anchors throughout; UAQ engine round-trip regression suite added. Lock-step release with hijri-core 1.0.3 fix (commit 3419378).

[3.0.1] - 2026-05-30

Fixed

  • Improved type safety in formatHijriDate: explicit return type annotation on replace callback and non-null assertions on array lookups with JSDoc justification comments.
  • Added in-code comment blocks to all source modules documenting purpose, inputs, outputs, constraints, and SPORT references.

[3.0.0] - 2026-05-28

Changed

  • BREAKING: luxon and hijri-core moved from dependencies to peerDependencies. Consumers must now install both alongside luxon-hijri. See the migration note below.
  • Peer range for luxon widened from ^3.5.0 to ^3.0.0 — any Luxon 3.x release is compatible.

Migration from v2.x

pnpm add luxon-hijri luxon hijri-core
# or
npm install luxon-hijri luxon hijri-core

Prior to v3.0.0, luxon and hijri-core were bundled as runtime dependencies. This caused Luxon to appear twice in bundled applications where it was already installed. v3.0.0 aligns with the peer-dependency pattern used by all other hijri wrapper packages (date-fns-hijri, dayjs-hijri-plus, moment-hijri-plus, temporal-hijri).

[2.1.0] - 2026-05-28

Added

  • Initial release