mirror of
https://github.com/acamarata/qibla.git
synced 2026-06-30 19:04:28 +00:00
690 B
690 B
Changelog
All notable changes to this project will be documented in this file.
[1.0.0] - 2026-03-08
Added
qiblaAngle(lat, lng)computes bearing to Ka'bah in degrees from northcompassDir(bearing)returns 8-point compass abbreviationcompassName(bearing)returns full compass direction nameqiblaGreatCircle(lat, lng, steps?)generates great-circle waypoints to Ka'bahdistanceKm(lat1, lng1, lat2, lng2)computes haversine distanceKAABA_LAT,KAABA_LNG,EARTH_RADIUS_KMconstants- Input validation with RangeError for out-of-bounds coordinates
- Dual CJS/ESM build with full TypeScript definitions
- Comprehensive test suite (46 ESM + 14 CJS tests)