@zodiacs/engine 2.0.0-rc.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +519 -0
- package/LICENSING.md +55 -16
- package/NOTICE +28 -10
- package/README.md +192 -53
- package/dist/{api-C_SVd9BJ.d.ts → api-G8RVGizH.d.ts} +1 -1
- package/dist/{ayanamsa-Clgkekhh.d.ts → ayanamsa-C4-pYjzm.d.ts} +2 -2
- package/dist/calc.d.ts +4 -4
- package/dist/calc.js +13 -9
- package/dist/{chunk-WONTOC5W.js → chunk-4RCOOAGI.js} +1 -1
- package/dist/{chunk-NX4PHQBL.js → chunk-JY2LU4VC.js} +61 -80
- package/dist/{chunk-B5LKF437.js → chunk-M65JXRFN.js} +40 -0
- package/dist/{chunk-FVGA776A.js → chunk-PSZAKTDL.js} +2 -2
- package/dist/{chunk-T6F4FYYS.js → chunk-SCBK24HR.js} +1 -1
- package/dist/{chunk-PNXIA7MI.js → chunk-X5ANRWDK.js} +18 -7
- package/dist/{chunk-I3L4POY7.js → chunk-XO7MHH32.js} +2 -1
- package/dist/{chunk-N4UQLCBN.js → chunk-ZL74QHBE.js} +1 -1
- package/dist/{chunk-IXFUYEUF.js → chunk-ZPHWUFTZ.js} +20 -4
- package/dist/core.d.ts +21 -0
- package/dist/core.js +2960 -0
- package/dist/crossings.d.ts +2 -2
- package/dist/de440-pack.d.ts +2 -2
- package/dist/de440.d.ts +2 -2
- package/dist/{ephemeris-D1lM832F.d.ts → ephemeris-Bnmowcsk.d.ts} +1 -1
- package/dist/esm-only.cjs +3 -0
- package/dist/geo.d.ts +74 -16
- package/dist/geo.js +139 -5
- package/dist/{houses-icK01yXi.d.ts → houses-CAiYEICK.d.ts} +1 -1
- package/dist/houses-extra.d.ts +3 -3
- package/dist/index.d.ts +8 -8
- package/dist/index.js +6 -6
- package/dist/{internal-math-BGX23p4h.d.ts → internal-math-rq6do9IR.d.ts} +2 -2
- package/dist/internal-math.d.ts +4 -4
- package/dist/internal-math.js +1 -1
- package/dist/internal.d.ts +4 -4
- package/dist/internal.js +3 -3
- package/dist/receipt.d.ts +3 -3
- package/dist/receipt.js +65 -26
- package/dist/{rulers-CpS9qkvu.d.ts → rulers-CFGiWJza.d.ts} +1 -1
- package/dist/sky.d.ts +4 -4
- package/dist/sky.js +3 -3
- package/dist/techniques.d.ts +4 -4
- package/dist/techniques.js +9 -9
- package/dist/{time-bands-CZA9AlLg.d.ts → time-bands-BCmfa8FR.d.ts} +5 -4
- package/dist/{time-scale-DIFNa0gz.d.ts → time-scale-9vmKQPCn.d.ts} +14 -4
- package/dist/time.d.ts +3 -3
- package/dist/time.js +2 -2
- package/dist/timing.d.ts +5 -5
- package/dist/timing.js +6 -6
- package/dist/{types-BCnyWBQZ.d.ts → types-CkuiCcsV.d.ts} +7 -4
- package/dist/{tzdb-2025c-00-6GVG6RYL.js → tzdb-2026f-00-RAB4YONA.js} +4 -4
- package/dist/{tzdb-2025c-01-CEYMG3LE.js → tzdb-2026f-01-SWR7EW5U.js} +4 -4
- package/dist/{tzdb-2025c-02-NWQJCVUU.js → tzdb-2026f-02-SOLHCLDL.js} +3 -3
- package/dist/{tzdb-2025c-03-PLHP6VH4.js → tzdb-2026f-03-LYLMCVL7.js} +3 -3
- package/dist/{tzdb-2025c-04-MEKUJA6M.js → tzdb-2026f-04-XTKMZPKX.js} +4 -4
- package/dist/{tzdb-2025c-05-3K5YKZBL.js → tzdb-2026f-05-EOKCMY5O.js} +4 -4
- package/dist/{tzdb-2025c-06-L2VV5XJV.js → tzdb-2026f-06-O4LQW2N6.js} +4 -4
- package/dist/{tzdb-2025c-07-H3GLGJGY.js → tzdb-2026f-07-2FDJ5OJ7.js} +4 -4
- package/dist/{tzdb-2025c-08-DA7QQIGD.js → tzdb-2026f-08-OKEWSMIX.js} +4 -4
- package/dist/{tzdb-2025c-09-MTXIO3QL.js → tzdb-2026f-09-5GB7FKLF.js} +4 -4
- package/dist/{tzdb-2025c-10-ASL4UW5C.js → tzdb-2026f-10-GXHCIASR.js} +4 -4
- package/dist/{tzdb-2025c-11-EQEOANYB.js → tzdb-2026f-11-66EMKXFG.js} +4 -4
- package/dist/{tzdb-2025c-12-NKCCXJ5G.js → tzdb-2026f-12-YK3CZCIY.js} +3 -3
- package/dist/{tzdb-2025c-13-DYTF3UC7.js → tzdb-2026f-13-UNZD3QIH.js} +4 -4
- package/dist/{tzdb-2025c-14-C25H45R5.js → tzdb-2026f-14-4FQNGNZM.js} +4 -4
- package/dist/{tzdb-2025c-15-7OYYZWRY.js → tzdb-2026f-15-5TA3B2WI.js} +4 -4
- package/dist/vedic.d.ts +4 -4
- package/dist/vedic.js +6 -6
- package/dist/window.d.ts +2 -2
- package/dist/window.js +8 -5
- package/dist/{zone-history-0XzMGx9V.d.ts → zone-history-2UYUKA43.d.ts} +26 -9
- package/package.json +47 -22
package/NOTICE
CHANGED
|
@@ -10,7 +10,8 @@ retains the full MIT permission and warranty notice. Source and license metadata
|
|
|
10
10
|
https://github.com/cosinekitty/astronomy
|
|
11
11
|
|
|
12
12
|
The package's frame module (src/frame.ts, built into a shared chunk under
|
|
13
|
-
dist/ that the ephemeris chunk and dist/time.js import
|
|
13
|
+
dist/ that the ephemeris chunk and dist/time.js import, and copied into
|
|
14
|
+
dist/core.js, the file of @zodiacs/engine/core) reproduces
|
|
14
15
|
astronomy-engine's precession function, precession_rot, and the calc entry's
|
|
15
16
|
reduction module (src/calc-reduce.ts, built into dist/calc.js) its function
|
|
16
17
|
for an observer on the Earth's ellipsoid, terra:
|
|
@@ -23,9 +24,10 @@ IAU 2000B nutation
|
|
|
23
24
|
------------------
|
|
24
25
|
|
|
25
26
|
The package's nutation module (src/nutation.ts, built into a shared chunk
|
|
26
|
-
under dist/ that the ephemeris chunk, dist/time.js and dist/de440.js import
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
under dist/ that the ephemeris chunk, dist/time.js and dist/de440.js import,
|
|
28
|
+
and copied into dist/core.js, the file of @zodiacs/engine/core) carries the
|
|
29
|
+
77 luni-solar terms, fundamental arguments and fixed planetary offsets of the
|
|
30
|
+
IAU 2000B nutation model,
|
|
29
31
|
|
|
30
32
|
D. D. McCarthy and B. J. Luzum 2003, An abridged model of the
|
|
31
33
|
precession-nutation of the celestial pole. Celestial Mechanics and Dynamical
|
|
@@ -175,7 +177,8 @@ exports as @zodiacs/engine/deltat, contains 32 values of Table S15, rounded
|
|
|
175
177
|
to 0.01 s, and constants of equations (4.1) and (5.1) from the work below.
|
|
176
178
|
The build places that module in a shared chunk under dist/, which
|
|
177
179
|
dist/deltat.js re-exports, so the values are in that chunk rather than in
|
|
178
|
-
dist/deltat.js itself.
|
|
180
|
+
dist/deltat.js itself. dist/core.js, the file of @zodiacs/engine/core,
|
|
181
|
+
carries its own copy of the module, and so of the values.
|
|
179
182
|
|
|
180
183
|
Stephenson, F. R., Morrison, L. V. & Hohenkerk, C. Y. 2016, Measurement of
|
|
181
184
|
the Earth's rotation: 720 BC to AD 2015. Proc. R. Soc. A 472: 20160404.
|
|
@@ -212,10 +215,23 @@ Time zone, leap-second and UT1 data
|
|
|
212
215
|
-----------------------------------
|
|
213
216
|
|
|
214
217
|
@zodiacs/engine/geo ships zone histories before 1970 compiled from the IANA
|
|
215
|
-
Time Zone Database
|
|
216
|
-
|
|
217
|
-
the
|
|
218
|
-
|
|
218
|
+
Time Zone Database 2026f with its backzone file (tzdata2026f.tar.gz, sha256
|
|
219
|
+
01b4a91cec5167ed48c11e8ab78f2048cead78ce94b0cafcad0ae8c5a3044d3d), except
|
|
220
|
+
America/Yellowknife, compiled from the four backzone lines of the IANA Time
|
|
221
|
+
Zone Database 2025c that define it (tzdata2025c.tar.gz, sha256
|
|
222
|
+
4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957). Both are
|
|
223
|
+
in the public domain: https://www.iana.org/time-zones. From 1970 local time
|
|
224
|
+
comes from the host runtime's Intl/ICU data, which it checks against a table
|
|
225
|
+
of the spans in which tzdata 2021a or 2025c gives a different offset from
|
|
226
|
+
2026f. The table gives 2026f's offsets and is compiled from these
|
|
227
|
+
public-domain IANA Time Zone Database releases:
|
|
228
|
+
|
|
229
|
+
tzdata2021a.tar.gz (SHA-256
|
|
230
|
+
39e7d2ba08c68cbaefc8de3227aab0dec2521be8042cf56855f7dc3a9fb14e08)
|
|
231
|
+
tzdata2025c.tar.gz (SHA-256
|
|
232
|
+
4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957)
|
|
233
|
+
tzdata2026f.tar.gz (SHA-256
|
|
234
|
+
01b4a91cec5167ed48c11e8ab78f2048cead78ce94b0cafcad0ae8c5a3044d3d)
|
|
219
235
|
|
|
220
236
|
The core carries TAI - UTC from the IERS leap-second list, leap-seconds.list,
|
|
221
237
|
updated 2026-07-06 through IERS Bulletin C 72 and expiring 2027-06-28 (sha256
|
|
@@ -270,7 +286,9 @@ Astronomical Observatory, France:
|
|
|
270
286
|
|
|
271
287
|
F. van Leeuwen 2007, A&A 474, 653 (VizieR I/311, Hipparcos, the New
|
|
272
288
|
Reduction): the positions, proper motions and parallaxes of Spica,
|
|
273
|
-
zeta Psc A and delta Cnc.
|
|
289
|
+
zeta Psc A and delta Cnc. The European Space Agency's Hipparcos mission
|
|
290
|
+
supplied the underlying observations.
|
|
291
|
+
Credit: ESA
|
|
274
292
|
G. A. Gontcharov 2006, Astronomy Letters 32, 759 (VizieR III/252, Pulkovo
|
|
275
293
|
radial velocities): the radial velocity of zeta Psc A.
|
|
276
294
|
B. Famaey et al. 2005, A&A 430, 165 (VizieR J/A+A/430/165,
|
package/README.md
CHANGED
|
@@ -16,17 +16,29 @@ import-time side effects, and performs no network request from its core
|
|
|
16
16
|
entry point. Its one runtime side effect is the ΔT it installs in
|
|
17
17
|
astronomy-engine (see Time below).
|
|
18
18
|
|
|
19
|
-
**2.0.0
|
|
20
|
-
(CHANGELOG.md).
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
**2.0.0**, a major release: 2.0.0-rc.6 with the version changed
|
|
20
|
+
(CHANGELOG.md). Callers moving from 1.1.0 should read
|
|
21
|
+
[docs/migrating-to-2.md](docs/migrating-to-2.md). Over 1.1.0 (through
|
|
22
|
+
candidates 2.0.0-rc.1 to 2.0.0-rc.6), it refuses a birth given as a calendar
|
|
23
|
+
date with no time unless `timeKnown` is `false` (*Resolved instant inputs*
|
|
24
|
+
below); refuses common near-miss names for a birth field, such as `lat`,
|
|
25
|
+
`lng`, `houses` and `scale`, which were ignored (*Birth settings* below);
|
|
26
|
+
reads UTC after the IERS UT1 table, which ends on 2027-10-02, on the
|
|
27
|
+
continuous-UTC rule, TT = UTC + 69.184 s (*Time*); reads wall times before
|
|
28
|
+
1970 on tzdata 2026f's zone histories, America/Yellowknife held at tzdata
|
|
29
|
+
2025c by the owner's decision; flags a wall time where the device's time zone
|
|
30
|
+
data differs from tzdata 2026f (`host-zone-data-differs`, probing both
|
|
31
|
+
tzdata 2021a and 2025c baselines across 705 spans in 77 names), flags a chart
|
|
32
|
+
whose angles are inside the polar circle (`polar-angles`), flags a local date
|
|
33
|
+
that a calendar changeover may have skipped when given with no country
|
|
34
|
+
(`calendar-unknown`, [docs/time.md](docs/time.md)), and gives each
|
|
35
|
+
`positions()` row the flags `natalChart()` gives at the same instant; adds
|
|
36
|
+
`@zodiacs/engine/core`, the root's functions without the DE440 pack (*Bundle
|
|
37
|
+
size in a web page*), and adds Julian Day Numbers and local mean time from a
|
|
38
|
+
longitude to `@zodiacs/engine/geo`; throws `ERR_ZODIACS_ESM_ONLY` on
|
|
39
|
+
`require()` of any entry point; and throws `RangeError` for an unknown body
|
|
40
|
+
name on every source including root crossing searches. Nothing deprecated is
|
|
41
|
+
removed.
|
|
30
42
|
|
|
31
43
|
**1.1.0**, the release before it, a minor release: 1.1.0-rc.13 with the
|
|
32
44
|
version changed (CHANGELOG.md). It ships a sealed
|
|
@@ -93,8 +105,9 @@ later pass (`fold: "later"` in `@zodiacs/engine/geo`; see
|
|
|
93
105
|
1.1.0-rc.3 added
|
|
94
106
|
`@zodiacs/engine/de440`, positions from JPL's DE440 through a pack the caller
|
|
95
107
|
supplies, which the root's `withEphemeris` puts in place of the default
|
|
96
|
-
source; with `@zodiacs/engine/de440/pack`
|
|
97
|
-
points (see
|
|
108
|
+
source; with `@zodiacs/engine/de440/pack` and 2.0.0-rc.3's
|
|
109
|
+
`@zodiacs/engine/core` there are eighteen public entry points (see
|
|
110
|
+
[docs/de440.md](docs/de440.md)). Over
|
|
98
111
|
1.0.0, natal receipts name their conventions as ids of the Zodiacs
|
|
99
112
|
conventions registry, which a new entry, `@zodiacs/engine/conventions`,
|
|
100
113
|
gives (from 1.1.0-rc.1; see *Draft natal receipts*). 1.1.0-rc.2 added two
|
|
@@ -112,9 +125,9 @@ Install it from npm:
|
|
|
112
125
|
npm install @zodiacs/engine
|
|
113
126
|
```
|
|
114
127
|
|
|
115
|
-
|
|
116
|
-
`artifacts/
|
|
117
|
-
|
|
128
|
+
`artifacts/zodiacs-engine-2.0.0.tgz` in the repository, with its SHA-256
|
|
129
|
+
receipt, is this release's exact archive (`artifacts/README.md` records its
|
|
130
|
+
publication status). 1.1.0 is the previous release; 1.0.0, npm's `latest`
|
|
118
131
|
before 1.1.0, has no `./conventions`, `./time`, `./lite`, `./de440` or DE440
|
|
119
132
|
pack, computes on astronomy-engine and writes no ids.
|
|
120
133
|
|
|
@@ -128,7 +141,7 @@ until 1.0.0, reads 0.1.1-rc.16's too.
|
|
|
128
141
|
The package runs in browsers through a bundler, and in Node.js 20.19.0 or a
|
|
129
142
|
later 20.x, or 22.7.0 or later (`"engines": { "node": "^20.19.0 || >=22.7.0" }`).
|
|
130
143
|
Node.js 20 reached its end of life on 2026-04-30: the package is still tested
|
|
131
|
-
there, but a
|
|
144
|
+
there, but a 2.x minor release may drop it (docs/versioning.md, *Runtimes*).
|
|
132
145
|
Its dependency, astronomy-engine 2.1.19, ships ES modules in a package that does
|
|
133
146
|
not declare `"type": "module"`. Earlier Node versions load that file as
|
|
134
147
|
CommonJS, so a plain Node import of this package fails there with "Named export
|
|
@@ -137,14 +150,31 @@ loads it with a harmless `MODULE_TYPELESS_PACKAGE_JSON` warning, which 22.22.2
|
|
|
137
150
|
no longer prints. Bundlers resolve the dependency's `import` condition
|
|
138
151
|
themselves and are not affected.
|
|
139
152
|
|
|
153
|
+
In the six-runtime conformance check on 2.0.0
|
|
154
|
+
(`docs/evidence/runtime-conformance-2.0.0-20261121/`, suite 0.3.0), all 569
|
|
155
|
+
supported verdicts on both the root and `@zodiacs/engine/core` agreed with
|
|
156
|
+
Node 22.22.2 in Bun 1.4.4, Deno 2.9.6, Chromium 156.0.8078.4, Firefox 157.0
|
|
157
|
+
and WebKit 27.2 (with 71 unsupported vectors: 1 leap-second instant, 30
|
|
158
|
+
stations and 40 lunations). Outputs are not identical to the last bit across
|
|
159
|
+
all runtimes (on the root, 458 of 569 were bit-identical to Node in Bun, Deno,
|
|
160
|
+
Chromium and WebKit, and 569 of 569 in Firefox; on core, 468 in Bun and
|
|
161
|
+
WebKit, 485 in Deno and Chromium, and 540 in Firefox), and synthetic receipt
|
|
162
|
+
digests differ from Node's where outputs differ.
|
|
163
|
+
|
|
164
|
+
The package is ES modules only and has no CommonJS build. `require()` of
|
|
165
|
+
`@zodiacs/engine` or of any of its entry points throws an `Error` with code
|
|
166
|
+
`ERR_ZODIACS_ESM_ONLY` whose message says to use `import`; from CommonJS,
|
|
167
|
+
load it with `await import("@zodiacs/engine")`.
|
|
168
|
+
|
|
140
169
|
From a source checkout, run `npm ci` and `npm run build`, then
|
|
141
170
|
`npm pack --ignore-scripts`. Test the packed file in a clean consumer using
|
|
142
|
-
`npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-2.0.0
|
|
171
|
+
`npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-2.0.0.tgz`.
|
|
143
172
|
The smoke check
|
|
144
173
|
downloads the artifact's public dependencies and TypeScript 5.9.3; its output
|
|
145
174
|
records the artifact hash and runtime, and it removes its temporary consumer
|
|
146
175
|
directory, which must have no `node_modules` above it (set `TMPDIR` if
|
|
147
|
-
needed). A
|
|
176
|
+
needed). A carried archive is published only by the owner via the Release
|
|
177
|
+
workflow.
|
|
148
178
|
|
|
149
179
|
`artifacts/archives.json` records every carried archive: its digest, size, file
|
|
150
180
|
count and the commit it was packed from. On the history it is given, CI checks
|
|
@@ -197,13 +227,15 @@ gained a conventions set that names the nutation; rc.15's receipts stay
|
|
|
197
227
|
readable. As in rc.15, a chart's instant is read on a time basis: from 1972
|
|
198
228
|
to 2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS
|
|
199
229
|
UT1 − UTC, and otherwise as UT1 with the ΔT model, or on UT1 or TT when
|
|
200
|
-
`timeScale` says so (see Time)
|
|
230
|
+
`timeScale` says so (see Time); from 2.0.0-rc.3, a UTC instant after that
|
|
231
|
+
IERS table is read on the continuous-UTC rule instead, TT = UTC + 69.184 s
|
|
232
|
+
with UT1 from the ΔT model. From 1.1.0-rc.9 the ephemeris is the shipped
|
|
201
233
|
DE440 pack inside its years and astronomy-engine 2.1.19 elsewhere; where this
|
|
202
234
|
document speaks of the ephemeris's accuracy or of its error limits without
|
|
203
235
|
naming DE440, it speaks of astronomy-engine, the fallback and the ephemeris
|
|
204
236
|
of what the pack does not give. See CHANGELOG.md for the release history and
|
|
205
|
-
`docs/evidence/2.0.0-rc.
|
|
206
|
-
(2.0.0-rc.
|
|
237
|
+
`docs/evidence/2.0.0-rc.4-20261120/` for 2.0.0-rc.4's checks (this candidate's package, archive-binding and packed-consumer gates run in CI)
|
|
238
|
+
(2.0.0-rc.3's are in `docs/evidence/2.0.0-rc.3-20261117/`, 2.0.0-rc.2's in `docs/evidence/2.0.0-rc.2-20261116/`, 2.0.0-rc.1's in `docs/evidence/2.0.0-rc.1-20261116/`, 1.1.0's in `docs/evidence/1.1.0-20261116/`, 1.1.0-rc.13's in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
|
|
207
239
|
`docs/evidence/1.1.0-rc.12-20261115/`, 1.1.0-rc.11's and 1.1.0-rc.10's in
|
|
208
240
|
their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
|
|
209
241
|
`docs/evidence/1.1.0-rc.9-20261114/`)
|
|
@@ -215,6 +247,55 @@ their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
|
|
|
215
247
|
`docs/evidence/1.0.0-rc.1-20261006/`, rc.17's in
|
|
216
248
|
`docs/evidence/rc17-20261005/`). Site adoption is reviewed separately.
|
|
217
249
|
|
|
250
|
+
## Bundle size in a web page
|
|
251
|
+
|
|
252
|
+
Measured on 17 November 2026 with esbuild 0.28.2, Rollup 4.67.4, Vite 8.3.5
|
|
253
|
+
and webpack 5.112.2, each in production mode and minified, on 2.0.0-rc.3's
|
|
254
|
+
archive; brotli is quality 11 (Node 22.22.2's zlib). The programs and the
|
|
255
|
+
method are in `tools/bundle-weight/` and `docs/evidence/bundle-weight-20261117/`;
|
|
256
|
+
every number here is in
|
|
257
|
+
`docs/evidence/2.0.0-rc.3-20261117/results/bundle-weight/results.json`. Load
|
|
258
|
+
times in a browser were not measured.
|
|
259
|
+
|
|
260
|
+
- **The root entry.** A page that imports `natalChart` from
|
|
261
|
+
`@zodiacs/engine` carries the shipped DE440 pack: 3,416,191 to 3,418,817
|
|
262
|
+
bytes of script under the four bundlers (about 3.42 MB), 2,279,842 to
|
|
263
|
+
2,281,947 bytes with brotli (about 2.28 MB).
|
|
264
|
+
`setDefaultEphemeris("astronomy-engine")` does not make it smaller: the
|
|
265
|
+
pack stays in the bundle (3,416,351 to 3,418,978 bytes).
|
|
266
|
+
- **`@zodiacs/engine/core`** exports the root's names and computes on
|
|
267
|
+
astronomy-engine, without the pack. The same page is then 77,042 to 80,192
|
|
268
|
+
bytes (about 77 to 80 KB), 28,800 to 30,554 bytes with brotli (about
|
|
269
|
+
29 to 31 KB). Its positions are less exact: on the conformance suite's 240
|
|
270
|
+
position tests (within 1″ of JPL's DE441), 48 pass, against 240 for the
|
|
271
|
+
root on the pack. Both figures are the root's in `conformance/RESULTS.md`:
|
|
272
|
+
the 48 from its run after `setDefaultEphemeris("astronomy-engine")`, which
|
|
273
|
+
the package's smoke test checks the core entry matches, test for test.
|
|
274
|
+
Every chart from it names astronomy-engine as its ephemeris, as the root's
|
|
275
|
+
does after `setDefaultEphemeris("astronomy-engine")`, and equals that
|
|
276
|
+
chart. The entry
|
|
277
|
+
is a copy of the root's code with its own settings: `setDefaultEphemeris`
|
|
278
|
+
in one entry does not change the other, an aspect policy made by one
|
|
279
|
+
entry's `createAspectPolicy` is refused by the other's, and a page that
|
|
280
|
+
imports both carries both.
|
|
281
|
+
`setDefaultEphemeris("de440")` in it still computes on astronomy-engine and
|
|
282
|
+
flags each result `"de440-unavailable"`; for DE440 positions, import the
|
|
283
|
+
root, or supply a pack through `@zodiacs/engine/de440` and the core entry's
|
|
284
|
+
`withEphemeris`.
|
|
285
|
+
- **Loading the root when it is needed.** To keep DE440 positions and a
|
|
286
|
+
small first script, import the root on demand:
|
|
287
|
+
|
|
288
|
+
```js
|
|
289
|
+
button.addEventListener("click", async () => {
|
|
290
|
+
const { natalChart } = await import("@zodiacs/engine");
|
|
291
|
+
show(natalChart(birth));
|
|
292
|
+
});
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
All four bundlers put the pack in a file of its own: the page's first
|
|
296
|
+
script is 745 to 2,534 bytes, and the pack arrives on the click, in one
|
|
297
|
+
file of 3,415,737 to 3,446,051 bytes. The first chart waits for that file.
|
|
298
|
+
|
|
218
299
|
## Natal chart in 10 lines
|
|
219
300
|
|
|
220
301
|
```ts
|
|
@@ -307,7 +388,9 @@ for (const aspect of today.aspects) {
|
|
|
307
388
|
a sample budget. `@zodiacs/engine/crossings` provides the same solver for a
|
|
308
389
|
longitude function of your own, without the ephemeris.
|
|
309
390
|
- `@zodiacs/engine/geo` provides IANA local-time resolution, Julian calendar
|
|
310
|
-
dates
|
|
391
|
+
dates, Julian Day Numbers and a longitude's local mean time
|
|
392
|
+
(`julianDayNumber`, `dateOfJulianDayNumber`, `localMeanTimeOffset`, new in
|
|
393
|
+
2.0.0-rc.3) and a client for a separately hosted, sharded GeoNames index.
|
|
311
394
|
- `@zodiacs/engine/techniques` provides solar and lunar returns, composite and
|
|
312
395
|
Davison charts, the void-of-course Moon, aspect patterns, essential
|
|
313
396
|
dignities and the Moon signs possible over a date (see `docs/techniques.md`).
|
|
@@ -366,6 +449,10 @@ for (const aspect of today.aspects) {
|
|
|
366
449
|
`@zodiacs/engine/techniques`', with the same results; its sect part
|
|
367
450
|
(`sectReading`, `orientality` and their constants) is new (see
|
|
368
451
|
[docs/lite.md](docs/lite.md)).
|
|
452
|
+
- `@zodiacs/engine/core`, new in 2.0.0-rc.3, exports every name the root
|
|
453
|
+
exports and computes on astronomy-engine, without the DE440 pack, for pages
|
|
454
|
+
where script size matters more than the pack's accuracy (see *Bundle size
|
|
455
|
+
in a web page*).
|
|
369
456
|
|
|
370
457
|
### Uniform calculation API
|
|
371
458
|
|
|
@@ -411,7 +498,11 @@ bound on its first-order movement, not that movement. On UTC input from
|
|
|
411
498
|
(exactly to 2027-06-28, when the shipped list expires; after it the list's
|
|
412
499
|
last value is carried), so every geocentric, heliocentric and barycentric
|
|
413
500
|
position's band is 0 there, and the band falls on the angles and cusps,
|
|
414
|
-
topocentric positions and each event's UT1 (docs/calc.md, *Bands*).
|
|
501
|
+
topocentric positions and each event's UT1 (docs/calc.md, *Bands*). From
|
|
502
|
+
2.0.0-rc.3 the same holds on UTC input after 2027-10-02, where TT is
|
|
503
|
+
UTC + 69.184 s on the continuous-UTC rule: a result there is still flagged
|
|
504
|
+
`delta-t-extrapolated`, but only what turns with UT1 widens its bounds (up
|
|
505
|
+
to 2.0.0-rc.2 every result widened there; docs/calc.md, *Bounds*).
|
|
415
506
|
Root charts and natal envelopes carry none. What this version does not compute
|
|
416
507
|
comes back as a typed refusal, such as gravitational deflection, or an
|
|
417
508
|
instant whose UT1 or TT is outside 1800 to 2200: there calc has no
|
|
@@ -498,8 +589,9 @@ unrounded result. See `docs/evidence/rc12-20260928/sources.md`.
|
|
|
498
589
|
### Configurable aspects
|
|
499
590
|
|
|
500
591
|
```ts
|
|
501
|
-
import { createAspectPolicy, findConfiguredAspects } from "@zodiacs/engine";
|
|
592
|
+
import { createAspectPolicy, findConfiguredAspects, natalChart } from "@zodiacs/engine";
|
|
502
593
|
|
|
594
|
+
const chart = natalChart({ utc: "1990-06-15T12:30:00Z" });
|
|
503
595
|
const policy = createAspectPolicy({
|
|
504
596
|
aspects: [
|
|
505
597
|
{ type: "conjunction", orb: 8, luminaryOrb: 10 },
|
|
@@ -577,8 +669,9 @@ boundary decisions can differ from the configured API's at roundoff scale.
|
|
|
577
669
|
### Declinations and parallels
|
|
578
670
|
|
|
579
671
|
```ts
|
|
580
|
-
import { chartDeclinations, findDeclinationAspects } from "@zodiacs/engine";
|
|
672
|
+
import { chartDeclinations, findDeclinationAspects, natalChart } from "@zodiacs/engine";
|
|
581
673
|
|
|
674
|
+
const chart = natalChart({ utc: "1990-06-15T12:30:00Z" });
|
|
582
675
|
const equatorial = chartDeclinations(chart);
|
|
583
676
|
console.log(equatorial.utc, equatorial.deltaT, equatorial.trueObliquity);
|
|
584
677
|
console.log(equatorial.rows); // lon, lat, ra, dec, outOfBounds, boundMarginArcsec
|
|
@@ -763,8 +856,9 @@ arcminutes from Swiss's.
|
|
|
763
856
|
|
|
764
857
|
### Input flag compatibility
|
|
765
858
|
|
|
766
|
-
Public birth inputs accept all
|
|
767
|
-
assertions: `dst-gap`, `dst-fold`, `lmt
|
|
859
|
+
Public birth inputs accept all twelve `ChartFlag` values. Five are caller
|
|
860
|
+
assertions: `dst-gap`, `dst-fold`, `lmt`, `calendar-unknown` and
|
|
861
|
+
`host-zone-data-differs` (from 2.0.0-rc.3). The other
|
|
768
862
|
seven are derived by the calculation, and a caller may echo each only where
|
|
769
863
|
the calculation derives it: `no-time`, `polar-fallback`, `polar-angles`,
|
|
770
864
|
`outside-reference-span`, `delta-t-extrapolated` (see Time) and the two
|
|
@@ -774,15 +868,20 @@ Repeated values collapse in first-occurrence order. Unknown strings, sparse
|
|
|
774
868
|
slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
|
|
775
869
|
claims reject with a `RangeError` that does not include supplied flag values.
|
|
776
870
|
|
|
777
|
-
`dst-gap`, `dst-fold`, `lmt
|
|
778
|
-
assertions: a UTC instant alone
|
|
779
|
-
resolution. The geo resolver sets `dst-gap` or `dst-fold` for a skipped or
|
|
871
|
+
`dst-gap`, `dst-fold`, `lmt`, `calendar-unknown` and
|
|
872
|
+
`host-zone-data-differs` remain caller assertions: a UTC instant alone
|
|
873
|
+
cannot verify a historical local-time resolution. The geo resolver sets `dst-gap` or `dst-fold` for a skipped or
|
|
780
874
|
repeated wall time of any cause (the names are kept; its `jump.cause` gives
|
|
781
875
|
the cause) and `lmt` when a local mean time clock read it; it and the birth
|
|
782
876
|
resolvers set `calendar-unknown` on a local date, given with no country, that
|
|
783
877
|
a calendar changeover may have skipped ([docs/time.md](docs/time.md)). A
|
|
784
878
|
natal receipt refuses `calendar-unknown` on an instant before 1582-10-04 or
|
|
785
|
-
from 1918-02-28 (UTC).
|
|
879
|
+
from 1918-02-28 (UTC). The geo resolver and the birth resolvers set
|
|
880
|
+
`host-zone-data-differs` on a wall time from 1970 on that the host's `Intl`
|
|
881
|
+
read where the host's time zone data differs from tzdata 2026f nearby
|
|
882
|
+
([docs/time.md](docs/time.md), *Host time zone data*); a natal receipt
|
|
883
|
+
refuses it on an instant before 1970-01-01T00:00Z and on a local record whose
|
|
884
|
+
data form names the shipped history.
|
|
786
885
|
`no-time`, `polar-fallback`, `polar-angles`, `outside-reference-span`,
|
|
787
886
|
`delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` may be
|
|
788
887
|
echoed for compatibility, but must agree with the calculation. Set
|
|
@@ -951,7 +1050,9 @@ UT1 run on continuously. The time basis steps at the ΔT model's seam,
|
|
|
951
1050
|
1940-12-31T18:00:00Z, where ΔT steps from
|
|
952
1051
|
24.834 s to 24.820 s; at 1972-01-01, where the leap seconds begin; at each
|
|
953
1052
|
leap second, where TT and UT1 step by a second; and where the IERS UT1 table
|
|
954
|
-
ends, 2027-10-02.
|
|
1053
|
+
ends, 2027-10-02. From 2.0.0-rc.3, on UTC input TT runs on there (the
|
|
1054
|
+
continuous-UTC rule, see Time), and the seam is the change of basis, where
|
|
1055
|
+
UT1 steps by about 2 ms ([docs/time.md](docs/time.md)). Each sample installs its own ΔT, so every position and
|
|
955
1056
|
angle steps there together: the search finds each step inside the window
|
|
956
1057
|
from the engine's own arithmetic, splits at its millisecond and compares
|
|
957
1058
|
both sides. Within 1e-8° of the Placidus
|
|
@@ -1078,7 +1179,14 @@ Terrestrial Time, and it covers the speed samples ±0.001 day around the
|
|
|
1078
1179
|
instant (±0.25 day for the true nodes), so an instant must lie six hours
|
|
1079
1180
|
inside. On the model ΔT clock every instant from 0001-05-01T00:00Z to
|
|
1080
1181
|
3998-09-02T00:00Z qualifies; a pinned `deltaT` moves TT and is checked as
|
|
1081
|
-
given.
|
|
1182
|
+
given. On UTC input with the engine's ΔT the last instant `natalChart`
|
|
1183
|
+
accepts is 3998-09-03T05:58:50.816Z, and the last calc computes is
|
|
1184
|
+
2199-12-31T23:58:50.815Z (from 2.0.0-rc.3, on the continuous-UTC rule; up to
|
|
1185
|
+
2.0.0-rc.2 they were 3998-09-03T02:01:41.309Z and
|
|
1186
|
+
2199-12-31T23:57:53.752Z), measured to the millisecond on 2.0.0-rc.4's
|
|
1187
|
+
build (`docs/evidence/2.0.0-rc.4-20261120/results/span-ends.json`; the same
|
|
1188
|
+
on 2.0.0-rc.3's, `docs/evidence/2.0.0-rc.3-20261117/results/span-ends.json`);
|
|
1189
|
+
they were not measured again for this candidate. astronomy-engine reports any other failure by throwing a string, which
|
|
1082
1190
|
reaches the caller as a `RangeError` whose `cause` is the original value.
|
|
1083
1191
|
|
|
1084
1192
|
Inside the span, results are computed but not verified: accuracy was compared
|
|
@@ -1093,7 +1201,15 @@ Birth settings accept only a `houseSystem` from the thirteen above, a boolean
|
|
|
1093
1201
|
what lets a birth be given as a calendar date with no time; with the default
|
|
1094
1202
|
`true` such a date is refused (from 2.0.0). Latitude and longitude
|
|
1095
1203
|
must be supplied together as finite numbers within `[-90, 90]` and
|
|
1096
|
-
`[-180, 180]` respectively.
|
|
1204
|
+
`[-180, 180]` respectively. From 2.0.0-rc.3 a birth refuses these common
|
|
1205
|
+
names for a field, in any letter case, with a `RangeError` that names the
|
|
1206
|
+
field to use: `lat` (`latitude`); `lng`, `lon`, `long` (`longitude`);
|
|
1207
|
+
`house`, `houses`, `hsys`, `housesystem` (`houseSystem`); `scale`,
|
|
1208
|
+
`time_scale` (`timeScale`); `delta_t` (`deltaT`); `time_known`,
|
|
1209
|
+
`unknownTime` (`timeKnown`). Up to 2.0.0-rc.2 they were ignored, so
|
|
1210
|
+
`{ utc, lat, lng }` gave a chart with no angles and no error. Other unknown
|
|
1211
|
+
keys, such as a database row's `id`, `name` or `timezone`, are still
|
|
1212
|
+
ignored.
|
|
1097
1213
|
|
|
1098
1214
|
## Time
|
|
1099
1215
|
|
|
@@ -1107,11 +1223,21 @@ planets on Terrestrial Time (TT). `utc` is on UTC unless `timeScale` says
|
|
|
1107
1223
|
the EOP 20 C04 series in 1972, then `finals2000A.all` of 2026-09-24,
|
|
1108
1224
|
observed then predicted. ΔT = TT − UT1 is then reported with
|
|
1109
1225
|
`model: "iers-utc/1"`.
|
|
1110
|
-
- Before 1972
|
|
1226
|
+
- Before 1972 the instant is read as UT1, and TT = UT1 +
|
|
1111
1227
|
ΔT from the engine's model `zodiacs-deltat/1`: Stephenson, Morrison &
|
|
1112
1228
|
Hohenkerk 2016 (CC BY 4.0) up to 1941, then USNO and IERS observations,
|
|
1113
|
-
Bulletin A's predictions and a damped extrapolation, with a 1-σ band.
|
|
1114
|
-
|
|
1229
|
+
Bulletin A's predictions and a damped extrapolation, with a 1-σ band.
|
|
1230
|
+
- After that table, from 2.0.0-rc.3, UTC is read on the continuous-UTC rule:
|
|
1231
|
+
it runs on with no further leap second, TAI − UTC stays 37 s, so
|
|
1232
|
+
TT = UTC + 69.184 s exactly, and UT1 = TT − ΔT from the model; the chart
|
|
1233
|
+
reports `basis: "continuous-utc"` and UT1 − UTC with `source: "model"`. A
|
|
1234
|
+
UTC birth time after 2027-10-02 therefore gives TT = UTC + 69.184 s, and
|
|
1235
|
+
only UT1 rests on the extrapolated ΔT. Up to 2.0.0-rc.2 the instant was
|
|
1236
|
+
read there as UT1, UT1 − UTC taken as 0 within ±0.9 s, and TT = UT1 + ΔT,
|
|
1237
|
+
so TT − UTC drifted with the model (71.491 s in 2050; docs/time.md). A
|
|
1238
|
+
natal receipt of an after-table UTC birth names a conventions set that
|
|
1239
|
+
requires the feature `time-basis-continuous-utc`, which 1.1.0 and
|
|
1240
|
+
2.0.0-rc.2 refuse.
|
|
1115
1241
|
- `deltaT` (seconds) in a birth input pins ΔT; the chart reports
|
|
1116
1242
|
`model: "pinned"`.
|
|
1117
1243
|
|
|
@@ -1129,13 +1255,24 @@ engine used: on UTC input from 1972-01-01 to 2027-10-02 without a pinned ΔT,
|
|
|
1129
1255
|
TT comes from the leap seconds (exactly to 2027-06-28, when the shipped list
|
|
1130
1256
|
expires; after it the list's last value is carried, with no band for a leap
|
|
1131
1257
|
second not yet announced), so its band is 0, and UT1 carries the band of
|
|
1132
|
-
UT1 − UTC;
|
|
1258
|
+
UT1 − UTC; after 2027-10-02, on the continuous-UTC rule (from 2.0.0-rc.3),
|
|
1259
|
+
TT's band is still 0 and UT1 carries the ΔT model's; with a pin, TT is UT1 plus the pin and takes UT1's band
|
|
1133
1260
|
([docs/time.md](docs/time.md), *The time bands*).
|
|
1134
1261
|
|
|
1135
|
-
`@zodiacs/engine/geo` reads wall times before 1970 on the tzdb
|
|
1136
|
-
with backzone, shipped as 16 lazily imported
|
|
1137
|
-
timeZone)` loads the one a zone needs, and a
|
|
1138
|
-
|
|
1262
|
+
`@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2026f history
|
|
1263
|
+
with backzone (2025c's through 2.0.0-rc.2), shipped as 16 lazily imported
|
|
1264
|
+
chunks: `prepareLocalTime(date, timeZone)` loads the one a zone needs, and a
|
|
1265
|
+
wall time before 1970 throws until it has. America/Yellowknife is held at
|
|
1266
|
+
tzdata 2025c's history by the owner's decision, because tzdata 2026f's
|
|
1267
|
+
change to it has no NEWS entry; before 1970 its results equal 2.0.0-rc.2's,
|
|
1268
|
+
but for the `tzdbVersion` they name, "2026f", the package's pinned release,
|
|
1269
|
+
though the zone's data is 2025c's. From 1970 the host's Intl answers, and from
|
|
1270
|
+
2.0.0-rc.3 (with 2025c added in 2.0.0-rc.6), near a span in which tzdata 2021a
|
|
1271
|
+
or 2025c gives a different offset from 2026f, the engine asks the host for its
|
|
1272
|
+
offset there and flags the result
|
|
1273
|
+
`host-zone-data-differs` where it differs from 2026f's
|
|
1274
|
+
([docs/time.md](docs/time.md), *Host time zone data*); the instant stays the
|
|
1275
|
+
host's. A `longitude` reads a time in a
|
|
1139
1276
|
zone's local mean time era on the birthplace's own mean time; `calendar:
|
|
1140
1277
|
"julian"` takes an Old Style date, and `country` adds a note from the country's
|
|
1141
1278
|
Gregorian adoption. A wall time the clock showed twice takes its first pass,
|
|
@@ -1185,17 +1322,19 @@ full provenance audit and the explicit Swiss Ephemeris exclusion.
|
|
|
1185
1322
|
The package's licence expression is `MIT AND CC-BY-4.0`: the code is MIT
|
|
1186
1323
|
([LICENSE](LICENSE)), and the 32 values of Stephenson, Morrison & Hohenkerk's
|
|
1187
1324
|
Table S15 in the package's ΔT module (`@zodiacs/engine/deltat`, which the build
|
|
1188
|
-
places in a shared chunk under `dist/` that `dist/deltat.js` re-exports
|
|
1189
|
-
CC BY 4.0, attributed in [NOTICE](NOTICE).
|
|
1325
|
+
places in a shared chunk under `dist/` that `dist/deltat.js` re-exports, and
|
|
1326
|
+
copies into `dist/core.js`) are CC BY 4.0, attributed in [NOTICE](NOTICE).
|
|
1190
1327
|
|
|
1191
1328
|
The npm package contains no place database. It carries the DE440 pack
|
|
1192
|
-
(2,489,664 bytes), tzdb
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1329
|
+
(2,489,664 bytes), tzdb 2026f's zone histories before 1970
|
|
1330
|
+
(America/Yellowknife's from tzdb 2025c), a table of where tzdb 2021a's and
|
|
1331
|
+
2025c's offsets from 1970 differ from 2026f's, the IERS leap-second list, an
|
|
1332
|
+
IERS UT1 − UTC
|
|
1333
|
+
table, a table of Gregorian adoption dates from public-domain sources, 22
|
|
1334
|
+
catalogue values for the stars of the Vedic ayanamsas, and the IAU 2000B
|
|
1335
|
+
nutation series from NOVAS C 3.1, a US Government work; [NOTICE](NOTICE)
|
|
1336
|
+
records their sources and the GeoNames attribution, and downstream users
|
|
1337
|
+
should retain it. [LICENSING.md](LICENSING.md) gives the terms of each.
|
|
1199
1338
|
|
|
1200
1339
|
## Internal site entry points
|
|
1201
1340
|
|
|
@@ -1206,7 +1345,7 @@ bundle boundary intact. They are not covered by semantic-versioning guarantees;
|
|
|
1206
1345
|
third-party code must use the documented entry points: the root, `/calc`,
|
|
1207
1346
|
`/geo`, `/houses`, `/sky`, `/techniques`, `/timing`, `/vedic`, `/window`,
|
|
1208
1347
|
`/receipt`, `/conventions`, `/crossings`, `/deltat`, `/time`, `/lite`,
|
|
1209
|
-
`/de440` and `/de440/pack`.
|
|
1348
|
+
`/core`, `/de440` and `/de440/pack`.
|
|
1210
1349
|
|
|
1211
1350
|
## GeoNames request recovery
|
|
1212
1351
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeltaT } from './deltat.js';
|
|
2
|
-
import { E as EphemerisFallback, B as BodyName, e as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, T as TransitResult } from './types-
|
|
2
|
+
import { E as EphemerisFallback, B as BodyName, e as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, T as TransitResult } from './types-CkuiCcsV.js';
|
|
3
3
|
import { LongitudeCrossing, CrossingSearchOptions, CrossingSearchResult } from './crossings.js';
|
|
4
4
|
|
|
5
5
|
/** Geometry over full ecliptic positions; no independent ephemeris is implied. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DeltaT } from './deltat.js';
|
|
2
|
-
import { a as TimeScaleName, T as TimeScale } from './time-scale-
|
|
3
|
-
import { e as DateInput } from './types-
|
|
2
|
+
import { a as TimeScaleName, T as TimeScale } from './time-scale-9vmKQPCn.js';
|
|
3
|
+
import { e as DateInput } from './types-CkuiCcsV.js';
|
|
4
4
|
|
|
5
5
|
/** The precession model of an epoch value: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976. */
|
|
6
6
|
type AyanamsaPrecessionModel = "engine" | "newcomb" | "iau1976";
|
package/dist/calc.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DeltaT } from './deltat.js';
|
|
2
2
|
import { E as EPHEMERIS_SPAN } from './reference-span-CILpclrz.js';
|
|
3
|
-
import { T as TimeBands } from './time-bands-
|
|
4
|
-
import { T as TimeScale, a as TimeScaleName } from './time-scale-
|
|
5
|
-
import { g as ChartFlag, B as BodyName, H as HouseSystem, d as Chart, A as Angles } from './types-
|
|
6
|
-
import { A as AyanamsaName, a as AyanamsaPrecessionModel } from './ayanamsa-
|
|
3
|
+
import { T as TimeBands } from './time-bands-BCmfa8FR.js';
|
|
4
|
+
import { T as TimeScale, a as TimeScaleName } from './time-scale-9vmKQPCn.js';
|
|
5
|
+
import { g as ChartFlag, B as BodyName, H as HouseSystem, d as Chart, A as Angles } from './types-CkuiCcsV.js';
|
|
6
|
+
import { A as AyanamsaName, a as AyanamsaPrecessionModel } from './ayanamsa-C4-pYjzm.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The frames of the calc entry point. A position is first found as a vector on
|
package/dist/calc.js
CHANGED
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
userAyanamsa,
|
|
8
8
|
wholeSignCusps,
|
|
9
9
|
wrap360
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PSZAKTDL.js";
|
|
11
11
|
import {
|
|
12
12
|
eclipticRows,
|
|
13
13
|
equatorRows
|
|
14
14
|
} from "./chunk-LWZS7HI3.js";
|
|
15
15
|
import {
|
|
16
16
|
timeBands
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XO7MHH32.js";
|
|
18
18
|
import "./chunk-47ERTK5X.js";
|
|
19
19
|
import {
|
|
20
20
|
bodyLongitude,
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
meanNodeLongitude,
|
|
27
27
|
onChartClock,
|
|
28
28
|
refuseUnderSource
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-X5ANRWDK.js";
|
|
30
30
|
import {
|
|
31
31
|
dateFrom
|
|
32
32
|
} from "./chunk-CPALRSPC.js";
|
|
33
33
|
import {
|
|
34
34
|
ENGINE_VERSION,
|
|
35
35
|
EPHEMERIS
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SCBK24HR.js";
|
|
37
37
|
import {
|
|
38
38
|
eclipticFrame,
|
|
39
39
|
eclipticOfDate,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
TIME_SCALE_NAMES,
|
|
46
46
|
elapsedDays,
|
|
47
47
|
timeBasis
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-M65JXRFN.js";
|
|
49
49
|
import {
|
|
50
50
|
searchLongitudeCrossingsWith
|
|
51
51
|
} from "./chunk-TSS2SZWQ.js";
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
snapshotFlags,
|
|
73
73
|
timeFlags,
|
|
74
74
|
validateBirthSettings
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-4RCOOAGI.js";
|
|
76
76
|
|
|
77
77
|
// src/calc.ts
|
|
78
78
|
import { AstroTime, GeoMoonState, KM_PER_AU as KM_PER_AU2 } from "astronomy-engine";
|
|
@@ -1113,10 +1113,14 @@ function events(request) {
|
|
|
1113
1113
|
return { status: "refused", reason: "sample-budget", detail: `The search needs more than ${maxSamples} evaluations.`, samples, maxSamples };
|
|
1114
1114
|
}
|
|
1115
1115
|
let late = 0;
|
|
1116
|
+
let flagged = false;
|
|
1116
1117
|
const events2 = found.crossings.map(({ at: at2, retrograde }) => {
|
|
1117
1118
|
const basis = timeBasis(at2.getTime(), "utc");
|
|
1118
1119
|
const utc = timeBands(basis).tt;
|
|
1119
|
-
if (deltaTExtrapolated(basis))
|
|
1120
|
+
if (deltaTExtrapolated(basis)) {
|
|
1121
|
+
flagged = true;
|
|
1122
|
+
late = Math.max(late, utc);
|
|
1123
|
+
}
|
|
1120
1124
|
return {
|
|
1121
1125
|
at: at2.toISOString(),
|
|
1122
1126
|
jdUt1: J2000_JD + basis.ut1Days,
|
|
@@ -1130,7 +1134,7 @@ function events(request) {
|
|
|
1130
1134
|
kind,
|
|
1131
1135
|
events: events2,
|
|
1132
1136
|
samples: found.samples,
|
|
1133
|
-
flags: [...
|
|
1137
|
+
flags: [...flagged ? ["delta-t-extrapolated"] : [], ...chosen.fallback ? [chosen.fallback] : []],
|
|
1134
1138
|
bounds: {
|
|
1135
1139
|
timing: stretched(
|
|
1136
1140
|
{
|
|
@@ -1148,7 +1152,7 @@ function events(request) {
|
|
|
1148
1152
|
[
|
|
1149
1153
|
...positionIds(body, "ecliptic-true-of-date", "geocentric", "apparent", zodiac, chosen.from !== null),
|
|
1150
1154
|
"search:scan-and-bisect",
|
|
1151
|
-
...
|
|
1155
|
+
...flagged ? ["bounds:plus-delta-t-band"] : []
|
|
1152
1156
|
],
|
|
1153
1157
|
void 0,
|
|
1154
1158
|
true,
|
|
@@ -50,7 +50,7 @@ var DERIVED_FLAGS = [
|
|
|
50
50
|
"de440-unavailable",
|
|
51
51
|
"outside-de440-span"
|
|
52
52
|
];
|
|
53
|
-
var FLAGS = ["dst-gap", "dst-fold", "lmt", "calendar-unknown", ...DERIVED_FLAGS];
|
|
53
|
+
var FLAGS = ["dst-gap", "dst-fold", "lmt", "calendar-unknown", "host-zone-data-differs", ...DERIVED_FLAGS];
|
|
54
54
|
function snapshotFlags(value) {
|
|
55
55
|
const length = Array.isArray(value) ? Object.getOwnPropertyDescriptor(value, "length")?.value : void 0;
|
|
56
56
|
if (typeof length !== "number" || !Number.isInteger(length) || length < 0 || length > 64) {
|