Skip to content

Lunar Phase v1.0.6

Choose a tag to compare

@jasonsturges jasonsturges released this 22 May 06:03
· 97 commits to main since this release

Release Notes

New Features

Emoji now represents choice of Northern and Southern Hemispheres.

Added Blown Lunation Number (BLN) using Ernest William Brown's lunar theory, based on Lunation 1 being the first new moon of 1923 at approximately 02:41 UTC, January 17, 1923.

Synodic month accuracy increased, based on Mean Synodic Month, 2000 AD mean solar days.

Project Updates

The following updates were implemented.

Project

Converting project to TypeScript, but retaining functional implementation as modules.

Imports

Replacing the glob import with a module export.

This is currently implemented as:

import * as Moon from 'lunarphase-js';

Instead, I'm changing this to:

import { Moon } from 'lunarphase-js';

RESTful API

Eliminating all the get prefixes on the method signatures for a more RESTful API.

Structure

Isolating some enumerations, constants, and date calculations.