chore: bump to v1.0.3

This commit is contained in:
Aric Camarata 2026-06-10 16:50:19 -04:00
parent a8e72ac2b2
commit 750f7e19ad
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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",