v0.44.0
What's Changed
🌃 This minor release introduces the twilight module, providing the getTwilightBandsForDay()
utility which constructs Twilight Bands for UTC midnight to midnight, e.g.,:
[
{
name: 'Night',
interval: { from: 2021-05-15T00:00:00.000Z, to: 2021-05-15T04:02:47.000Z }
},
{
name: 'Astronomical',
interval: { from: 2021-05-15T04:02:47.000Z, to: 2021-05-15T04:31:23.000Z }
},
{
name: 'Nautical',
interval: { from: 2021-05-15T04:31:23.000Z, to: 2021-05-15T04:59:16.000Z }
},
{
name: 'Civil',
interval: { from: 2021-05-15T04:59:16.000Z, to: 2021-05-15T05:26:39.000Z }
},
{
name: 'Day',
interval: { from: 2021-05-15T05:26:39.000Z, to: 2021-05-15T18:23:21.000Z }
},
{
name: 'Civil',
interval: { from: 2021-05-15T18:23:21.000Z, to: 2021-05-15T18:50:46.000Z }
},
{
name: 'Nautical',
interval: { from: 2021-05-15T18:50:46.000Z, to: 2021-05-15T19:18:42.000Z }
},
{
name: 'Astronomical',
interval: { from: 2021-05-15T19:18:42.000Z, to: 2021-05-15T19:47:22.000Z }
},
{
name: 'Night',
interval: { from: 2021-05-15T19:47:22.000Z, to: 2021-05-16T00:00:00.000Z }
}
]
Features
- feat: add twilight module to @observerly/astronometry by @michealroberts in #247
- feat: add Twilight enum to twilight module in @observerly/astrometry by @michealroberts in #248
- feat: add getWhatTwilight() utility to twilight module in @observerly/astrometry by @michealroberts in #249
- feat: add getTwilightBandsForDay() to twilight module in @observerly/astrometry by @michealroberts in #250
Chores
- chore: bump vitest & @vitest/converage-v8 => v2.0.4 across workspace in @observerly/astrometry by @michealroberts in #246
Full Changelog: v0.43.0...v0.44.0