Skip to content

Bump @openwaters/almanac from 0.7.0 to 0.12.1 - #223

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/openwaters/almanac-0.12.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/openwaters/almanac-0.12.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 28, 2026

Copy link
Copy Markdown
Contributor

Bumps @openwaters/almanac from 0.7.0 to 0.12.1.

Release notes

Sourced from @​openwaters/almanac's releases.

Faster Swift star catalogs

Almanac 0.12.1 makes the Swift port draw many stars at one instant about twice as fast, for sky domes, star charts, and watch faces. The TypeScript and Kotlin ports and every result are unchanged.

  • Swift caches Earth's nutation and heliocentric state for the last instant it computed. Every star drawn at that instant reuses them. The cache is shared across threads behind a lock, needs no newer OS, and answers only the exact same instant, so a result never depends on earlier calls. #94

On an M-series Mac, a 1,024-star catalog at one instant costs 0.53 µs a star, down from 1.15 µs in 0.12.0. A single star followed across many instants costs the same as before, about 1.2 µs a call. Swift's other workloads are unchanged within the 20% gate.

npm install @openwaters/almanac@0.12.1
.package(url: "https://github.com/openwatersio/almanac.git", exact: "0.12.1")

Kotlin consumers can pin the v0.12.1 source checkout using the installation guide. No Maven artifact is published.

Swift star cache and benchmarks: #94. Release preparation: #95.

Full changelog.

Star places and sidereal time for sight reduction

Almanac 0.12.0 gives sight reduction what it needs from the sky: a star's apparent place and Greenwich sidereal time, in TypeScript, Swift, and Kotlin. Celestial navigation apps can now form any body's Greenwich hour angle and declination from Almanac alone.

starAltAz results move by up to 20.5″. It now applies annual aberration, so stars land where the Nautical Almanac and USNO put them. No code changes are needed.

  • starPosition(raDeg, decDeg, time) / starPosition(raDeg:decDeg:at:) returns a star's apparent right ascension and declination of date from its J2000 catalog position, with annual aberration, precession, and nutation. #90
  • greenwichSiderealTime(time) returns Greenwich apparent sidereal time in degrees, [0, 360). A body's GHA is this minus its right ascension, wrapped into [0, 360), for the Sun, the Moon, or a star. #90
  • Sidereal time, right ascension, azimuth, and hour angle no longer return exactly 360 for an angle a hair below zero. #90
  • The Astronomy Engine migration guide maps DefineStar with Equator, and SiderealTime, to the new calls.

Proper motion is still not applied. By 2026 a J2000 position is more than 0.1′ off for navigational stars moving faster than about 230 milliarcseconds a year, among them Sirius, Procyon, and Arcturus. A caller that needs those stars at that precision propagates its catalog's proper motion to the date first; the scope has the details.

Against USNO's celestial-navigation GHA and declination for the navigational stars, with each star's catalog proper motion carried to the date, every one of 226 rows from 1999 to 2050 matches within 1″; the worst is 0.34″. Star places and sidereal time match Astronomy Engine 2.1.19 within a milliarcsecond in all three ports.

A star now costs about what the Sun does when its instant changes, about 2.3 µs a call in TypeScript. TypeScript and Kotlin cache Earth's state on the exact instant, so a catalog drawn at one moment stays at its earlier speed; Swift recomputes it on every call.

npm install @openwaters/almanac@0.12.0
import { starPosition, greenwichSiderealTime } from '@openwaters/almanac';
const place = starPosition(88.792939, 7.407064, time);   // Betelgeuse, J2000
const ghaDeg = (greenwichSiderealTime(time) - place.raDeg + 360) % 360;
.package(url: "https://github.com/openwatersio/almanac.git", exact: "0.12.0")

... (truncated)

Commits
  • 9284b63 Release Almanac 0.12.1
  • 7609d42 Release Almanac 0.12.0
  • 835a900 Hold star places to an arcsecond and keep angles below 360
  • e9087e1 Cache Earth's state for star catalogs drawn at one instant
  • c3c2735 Give sight reduction star places and Greenwich sidereal time
  • 887504f chore(deps-dev): bump vitest in /typescript in the npm group
  • b190063 Release Almanac 0.11.0
  • cf9015f Name the Earth apsis distance tolerance in meters
  • add6b9c Add Earth perihelion and aphelion events
  • ef9e2ef Release Almanac 0.10.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@openwaters/almanac](https://github.com/openwatersio/almanac/tree/HEAD/typescript) from 0.7.0 to 0.12.1.
- [Release notes](https://github.com/openwatersio/almanac/releases)
- [Commits](https://github.com/openwatersio/almanac/commits/v0.12.1/typescript)

---
updated-dependencies:
- dependency-name: "@openwaters/almanac"
  dependency-version: 0.12.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 28, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Roadmap Oct 28, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #229.

@dependabot dependabot Bot closed this Nov 11, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/openwaters/almanac-0.12.1 branch November 11, 2026 06:17
@github-project-automation github-project-automation Bot moved this from Todo to Done in Roadmap Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

0 participants