date-fns-hijri/CHANGELOG.md
2026-06-13 11:52:28 -04:00

1.5 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.

[1.0.4] - 2026-06-13

Fixed

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

[1.0.3] - 2026-06-10

Fixed

  • toHijriDate and all field getters now produce exact round-trips on every host timezone (input Date interpreted by its local calendar day, matching date-fns conventions; previously used raw Date which failed in timezones west of UTC against hijri-core's UTC-day contract).

Changed

  • fromHijriDate and all arithmetic/boundary helpers (addHijriMonths, addHijriYears, startOfHijriMonth, endOfHijriMonth) now return local-midnight Dates instead of UTC midnight / local noon. Use getFullYear()/getMonth()/getDate() (or date-fns format()) on the result — not toISOString().
  • Requires hijri-core 1.0.3 (UTC-day contract).

[1.0.2] - 2026-05-30

Changed

  • Trim README to concise reference format; remove redundant em-dash connectors
  • Add TypeDoc API documentation generation

[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