diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f091d3..0b06be3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,14 +5,14 @@ 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] +## [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()`. -- Lock-step with unreleased hijri-core `fix/utc-day-boundary` (UTC-day contract). +- Requires hijri-core 1.0.3 (UTC-day contract). ## [1.0.2] - 2026-05-30 diff --git a/package.json b/package.json index 6e4dc64..8f2eb00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "date-fns-hijri", - "version": "1.0.2", + "version": "1.0.3", "description": "date-fns-style utility functions for Hijri calendar operations. Wraps hijri-core with a functional API for converting, formatting, and validating Hijri dates.", "author": "Aric Camarata", "license": "MIT", @@ -69,7 +69,7 @@ "c8": "^10.1.3", "eslint": "^10.0.3", "eslint-config-prettier": "^10.1.8", - "hijri-core": "^1.0.0", + "hijri-core": "^1.0.3", "prettier": "^3.8.1", "tsup": "^8.0.0", "typedoc": "^0.28.19",