mirror of
https://github.com/acamarata/pray-calc-dart.git
synced 2026-07-01 03:14:27 +00:00
Replace the 1280-line bundled SPA implementation with a dependency on the nrel_spa package. SpaResult and SpaAnglesResult are now re-exported from nrel_spa for backwards compatibility. All 24 tests pass unchanged.
1.1 KiB
1.1 KiB
Changelog
All notable changes to this project will be documented in this file.
[Unreleased]
Changed
- Replaced bundled SPA implementation with the
nrel_spapackage dependency - Removed
SpaResultandSpaAnglesResultfrom local types (now re-exported fromnrel_spa)
[1.0.0] - 2026-03-08
Added
getTimes()computes all prayer times using the PrayCalc Dynamic MethodgetAngles()returns adaptive Fajr/Isha twilight depression anglesgetSpa()full NREL Solar Position Algorithm (SPA) implementationsolarEphemeris()low-precision Jean Meeus Ch. 25 ephemerisgetAsr()computes Asr time for Shafi'i or Hanafi conventionsgetQiyam()computes start of the last third of the nightgetMscFajr()andgetMscIsha()MCW seasonal offsetsformatTime()converts fractional hours to HH:MM:SS stringsminutesToDepression()converts time offsets to depression angles- Full type definitions: PrayerTimes, FormattedPrayerTimes, TwilightAngles, SpaResult, SolarEphemeris
- Comprehensive test suite validated against pray-calc TypeScript v2.0.0