Skip to content

Releases: udivankin/sunrise-sunset

Demo website

17 Dec 20:08

Choose a tag to compare

v3.1.0

3.1.0

Re-implement library based on NLR's Solar Position Algorithm (SPA)

09 Dec 10:35

Choose a tag to compare

  • Added main SPA calculation module in spa.ts to determine solar position and rise/transit/set times.
  • Introduced type definitions for SPA in types.ts, including enums for calculation modes and optional parameters.
  • Developed date and Julian day calculation utilities in date.ts for accurate time handling.
  • Created mathematical utility functions in math.ts for degree/radian conversions and value limitations.
  • Implemented time conversion utilities in time.ts for handling local and UTC time conversions.
  • Added unit tests for SPA functionalities in index.test.ts, ensuring accuracy for sunrise, sunset, solar noon, and twilight calculations.
  • Included CommonJS and ESM test files to verify exported methods from the library.
  • Configured Vitest for testing with coverage reporting.

Rewrite to TS

06 Dec 10:48

Choose a tag to compare

2.2.1

get back dist/index.js to enable travis run coveralls

Travis & coveralls

08 Jul 21:30

Choose a tag to compare

2.1.1

Fix coverage badge

2.1.0

14 Apr 17:26

Choose a tag to compare

version bump + fix security warning