Releases: onekiloparsec/aa-js
v3.5.2 Bugfix + Sun
One important bugfix of Rise Transit and Set times. Times were correct, but transit altitude was wrong.
One has also improved the computations of rise, transit and set times by using the 0h Dynamical Time (instead of 0h UT) for the input coordinates times.
Improved Sun coordinates by provided a new method for apparent equatorial coordinates, and for computing the rise, transit and set times easily.
v3.5
Mostly aligning fast low-precision algorithms of Pluto with other Planets, and making Planets and DwarfPlanet inherit from the same base type. Bugfix of return type of Planets semi diameters.
v3.4
v3.4 brings a few but important changes since v3.3:
- Some modules have been reorganised (
dates
insidetimes
,precessions
insidecoordinates
) - The default precision of
Decimal
is now left unset (in the past, it was set to a way too high value of 30 – Decimal.js default is 20) - All Planet & Earth & Moon coordinates functions now accepts the
highPrecision
flag (default alwaystrue
) - Some fast algorithms were made even faster by avoiding an Decimal trigonometric and
.toNumber()
calls. - Many more benchmarks were added.
- Fixed the missing usage of the
highPrecision
flag left in v3.3
V3.3
This new minor release of aa-js
fairly soon after the release of V3.0 (and v3.2) is adding implementation of low-precision fast algorithms for Planet coordinates including Earth, as well as for ther rise, transit and set times.
It is also correcting multiple issues with :
- Saturn ring system
- Planet magnitudes
- calls of rise, transit and set times for planets
- consistency of parameter order and names
It also introduce distinct types for coordinates based on numbers. It allows to better indicate that the input coordinates can be in Decimals or numbers, but the output is always Decimals.
Known problems: the computations of Jupiter and Mars specific details are incomplete and untested.
v3!
Rewrite of the library using arbitrary-precision computations. In summary:
- All computations are using
decimal.js
for arbitrary-precision. Hence the output of every function is now aDecimal
instance. - Added numerous accessors for orbital elements of planets
- Fixed and improved all the coordinates accessors, making easy to grab heliocentric coordinates vs geocentric, apparent or not.
- Added transformation for topocentric coordinates.
- Added various times getters (apparent sidereal time, decimal year etc)
- Added (mean) Moon phases!
- Added tests across the library
- Improved the documentation that is now published in https://onekiloparsec.dev/aa-js
V2!
- Much more consistent APIs
- Fixed various bugs in
transits
,sun
, andjuliandays
- Added types everywhere, the lib is entirely in TypeScript
- Added documentation (almost) everywhere
Slowly rolling types...
This release simply declare typescript types in a correct way. We have also reworked the structure of the RiseSetTransit type.
Adding precession & more coordinates transformations
In order to support the new Coordinates Converter of arcsecond.io (http://www.arcsecond.io/converters/coordinates), we completed some of the algorithms for coordinates conversion (including the precession).
Major improvement of coordinates
Triggered by the request of https://www.arcsecond.io/iobserve user to add Moon illumination fraction, an important review of the coordinates computations were made.
The documentation (yet still very sparse) has been improved in key functions, especially when distinguishing true from apparent coordinates.
Finally, tests were added, and the Moon illumination can now be obtained with AA.js