@zodiacs/engine 0.1.1-rc.16 → 1.1.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 +1478 -0
- package/LICENSING.md +184 -30
- package/NOTICE +81 -14
- package/README.md +345 -67
- package/dist/{api-VOW6Umy5.d.ts → api-ChL1N2Sr.d.ts} +44 -7
- package/dist/ayanamsa-ClFzkKmV.d.ts +135 -0
- package/dist/calc.d.ts +218 -21
- package/dist/calc.js +580 -160
- package/dist/chunk-2PZYJQV5.js +83 -0
- package/dist/chunk-47ERTK5X.js +27 -0
- package/dist/{chunk-O3NJRGJ2.js → chunk-4XOYTBLS.js} +1 -1
- package/dist/chunk-767FTO7O.js +48 -0
- package/dist/{chunk-N4B5JNMA.js → chunk-7Y2F2IWN.js} +40 -28
- package/dist/chunk-B4M2Y7FT.js +96 -0
- package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
- package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
- package/dist/{chunk-PFGUCNOK.js → chunk-BMDASNPB.js} +6 -6
- package/dist/chunk-I3L4POY7.js +18 -0
- package/dist/{chunk-I7O5EGFV.js → chunk-LNGURVNH.js} +3 -3
- package/dist/{chunk-4NV4ZEFZ.js → chunk-NNOSOOWS.js} +4 -4
- package/dist/chunk-OVXQQEXL.js +41 -0
- package/dist/{chunk-WOU7JVD3.js → chunk-QLIEEICB.js} +205 -194
- package/dist/chunk-RMBWKZI2.js +130 -0
- package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
- package/dist/{chunk-L6ZHWJZ6.js → chunk-TZVPZHZM.js} +51 -29
- package/dist/chunk-WBTWY2OB.js +478 -0
- package/dist/chunk-Y4E3WJU5.js +87 -0
- package/dist/chunk-YPU3MDNI.js +852 -0
- package/dist/conventions.d.ts +70 -0
- package/dist/conventions.js +26 -0
- package/dist/crossings.d.ts +22 -10
- package/dist/crossings.js +1 -1
- package/dist/de440-pack.d.ts +43 -0
- package/dist/de440-pack.js +16 -0
- package/dist/de440.d.ts +113 -0
- package/dist/de440.js +19 -0
- package/dist/deltat.d.ts +28 -3
- package/dist/deltat.js +1 -1
- package/dist/ephemeris-exTSqBgb.d.ts +60 -0
- package/dist/geo.d.ts +46 -13
- package/dist/geo.js +4 -2
- package/dist/{houses-q1O2GGp4.d.ts → houses-Bh7GCnPi.d.ts} +14 -4
- package/dist/houses-extra.d.ts +22 -7
- package/dist/houses-extra.js +4 -2
- package/dist/index.d.ts +36 -49
- package/dist/index.js +54 -34
- package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-CxenuGfm.d.ts} +41 -27
- package/dist/internal-math.d.ts +4 -3
- package/dist/internal-math.js +14 -12
- package/dist/internal.d.ts +16 -7
- package/dist/internal.js +27 -6
- package/dist/lite-composite.js +114 -0
- package/dist/lite-declinations.js +253 -0
- package/dist/lite-dignities.js +333 -0
- package/dist/lite-sect.js +72 -0
- package/dist/lite.d.ts +82 -0
- package/dist/lite.js +4 -0
- package/dist/receipt.d.ts +3 -268
- package/dist/receipt.js +202 -89
- package/dist/reference-span-CILpclrz.d.ts +40 -0
- package/dist/{rulers-9wljfVaO.d.ts → rulers-CSSWtiWF.d.ts} +7 -2
- package/dist/sky.d.ts +26 -10
- package/dist/sky.js +23 -14
- package/dist/techniques.d.ts +160 -21
- package/dist/techniques.js +157 -89
- package/dist/time-bands-CZA9AlLg.d.ts +36 -0
- package/dist/time-scale-DIFNa0gz.d.ts +47 -0
- package/dist/time.d.ts +81 -0
- package/dist/time.js +74 -0
- package/dist/timing.d.ts +55 -17
- package/dist/timing.js +33 -45
- package/dist/types-DpPdtXgO.d.ts +335 -0
- package/dist/vedic.d.ts +150 -123
- package/dist/vedic.js +398 -440
- package/dist/window.d.ts +102 -80
- package/dist/window.js +108 -51
- package/dist/zone-history-BxmDCcTK.d.ts +290 -0
- package/package.json +26 -3
- package/dist/chunk-2OWGBT3O.js +0 -219
- package/dist/types-B4MCoCCS.d.ts +0 -228
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,1483 @@
|
|
|
1
1
|
# Engine changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.0 (2026-11-16)
|
|
4
|
+
|
|
5
|
+
A minor release: 1.1.0-rc.13 with the version changed. Checks:
|
|
6
|
+
`docs/evidence/1.1.0-20261116/`.
|
|
7
|
+
|
|
8
|
+
- **What 1.1.0 is over 1.0.0.** The entries below, 1.1.0-rc.1 to
|
|
9
|
+
1.1.0-rc.13, are its history, and a caller moving from 1.0.0 reads them.
|
|
10
|
+
The largest change: a plain call computes on a DE440 pack the package
|
|
11
|
+
ships, for 1790 to 2210, in place of astronomy-engine, so positions inside
|
|
12
|
+
those years move by the difference between the two ephemerides. Measured
|
|
13
|
+
on JPL's kernel at noon TT on each day from 1800 to 2199, the largest is
|
|
14
|
+
29.19 arcseconds of ecliptic longitude for the Sun, the Moon and the
|
|
15
|
+
planets (Pluto, still growing at the end of the span) and 32.64 for the
|
|
16
|
+
true node; 1790 to 1799 and 2200 to 2209 were not swept, so these are the
|
|
17
|
+
largest measured, not a bound for the pack's whole span (1.1.0-rc.10,
|
|
18
|
+
below). `setDefaultEphemeris("astronomy-engine")`
|
|
19
|
+
gives 1.0.0's positions. On the pack a plain `natalChart` is within 1
|
|
20
|
+
arcsecond of JPL Horizons (DE441) at all 240 position vectors of the
|
|
21
|
+
conformance suite, 24 instants from 1851 to 2148
|
|
22
|
+
(`src/de440-default.test.ts`).
|
|
23
|
+
- **No code or value changes from 1.1.0-rc.13.** The only change under
|
|
24
|
+
`src/` is the version string (`ENGINE_VERSION`, the two tests and the
|
|
25
|
+
fixture that hold it), and `dist/` is rc.13's but for that string
|
|
26
|
+
(`docs/evidence/1.1.0-20261116/`).
|
|
27
|
+
- **The DE440 pack, accepted by the owner.** `LICENSING.md` held shipping the
|
|
28
|
+
pack, which rests on the owner's reading that DE440 is JPL's public data,
|
|
29
|
+
as an open question to be accepted by the owner in writing before
|
|
30
|
+
publication. On 2026-11-16 the owner answered, in writing, the question "Do
|
|
31
|
+
you accept shipping the NASA DE440 data in 1.1.0?" with "Yes. I delegate
|
|
32
|
+
these decisions to you." `LICENSING.md` now records that answer. Its three
|
|
33
|
+
other open questions (IERS EOP 20 C04, the CDS star values, Reid and
|
|
34
|
+
Brunthaler's two values) are as they were at 1.0.0. It also now names the
|
|
35
|
+
versions in its note on the licence field: 0.1.1-rc.8 to 0.1.1-rc.13
|
|
36
|
+
declared `MIT` alone, and 0.1.1-rc.14 corrected it.
|
|
37
|
+
- **The size budgets raised in 1.1.0-rc.12, approved.** rc.12 raised nine
|
|
38
|
+
import-graph budgets by about one per cent and the package cap from
|
|
39
|
+
1,245,000 to 1,265,000 bytes beside the pack, for the owner to decide with
|
|
40
|
+
the candidate. The maintainer approved them on 2026-11-16, after the
|
|
41
|
+
owner's written answer above delegated the release's decisions, and they
|
|
42
|
+
stand as rc.12 set them.
|
|
43
|
+
- **README.md.** The version line; the install section, which named
|
|
44
|
+
1.1.0-rc.10's archive, now gives `npm install @zodiacs/engine` and this
|
|
45
|
+
release's archive; the list of drafts; the unpacked size; the evidence
|
|
46
|
+
folders.
|
|
47
|
+
- **Conformance results.** Run again on Node 22.22.2: the verdicts are
|
|
48
|
+
rc.13's, and the results now name 1.1.0.
|
|
49
|
+
|
|
50
|
+
## 1.1.0-rc.13 (unreleased candidate)
|
|
51
|
+
|
|
52
|
+
The candidate for **1.1.0**, a minor release: 1.1.0-rc.12 with its
|
|
53
|
+
documentation corrected and nothing else. It is a draft for the owner, and is
|
|
54
|
+
not to be published on npm until the owner approves it. Checks:
|
|
55
|
+
`docs/evidence/1.1.0-rc.13-20261115/`.
|
|
56
|
+
|
|
57
|
+
1.1.0-rc.12 was a draft on this same pull request (101), reviewed with no
|
|
58
|
+
blocker and not tagged or published: this candidate replaces it. The
|
|
59
|
+
corrections below change `README.md`, `CHANGELOG.md`, `LICENSING.md` and
|
|
60
|
+
`NOTICE`, which the package holds, and rc.12's archive is carried, so by the
|
|
61
|
+
rule in `artifacts/README.md` the corrected package takes a new number. The
|
|
62
|
+
code is rc.12's: the only change under `src/` is the version string
|
|
63
|
+
(`ENGINE_VERSION`, and the tests and fixture that hold it), and `dist/` is
|
|
64
|
+
rc.12's but for that string (`docs/evidence/1.1.0-rc.13-20261115/`). No
|
|
65
|
+
position, bound, flag or size budget changes.
|
|
66
|
+
|
|
67
|
+
- **Credit to NASA JPL for the rule behind the Sun's disc.** The pack bends
|
|
68
|
+
no light from a planet behind the Sun's disc because that is what NASA
|
|
69
|
+
JPL's Horizons system does, and its radius of the Sun, 695,700 km, is
|
|
70
|
+
Horizons's (1.1.0-rc.12, below). `NOTICE`, `LICENSING.md` and the README
|
|
71
|
+
now say so and credit NASA JPL for the convention. Horizons's responses
|
|
72
|
+
were the arbiter it was measured against; no Horizons response is in the
|
|
73
|
+
package.
|
|
74
|
+
- **At the Sun's limb, said exactly.** rc.12's entry below and
|
|
75
|
+
`docs/de440.md` gave the pack as within 0.0005 arcseconds of Horizons
|
|
76
|
+
within 3 arcseconds of the limb. That holds only where both put the planet
|
|
77
|
+
on the same side of the limb. Within a second or two of a limb crossing
|
|
78
|
+
they can put it on different sides and then differ by the step at the
|
|
79
|
+
limb: the rc.12 review found 4 such instants of 50, 1.4732 to 1.6956
|
|
80
|
+
arcseconds apart, inside the 1.8 that `calc()` quotes there
|
|
81
|
+
(`docs/evidence/1.1.0-rc.12-20261115/breaker/BREAKER.md`, should-fix 3).
|
|
82
|
+
ERFA's `eraLdsun` figure is 5.76 arcseconds (5.761255 in the evidence),
|
|
83
|
+
not 5.77.
|
|
84
|
+
- **A longitude search at the limb step, documented.** For a planet whose
|
|
85
|
+
longitude steps back at the limb, a target longitude within the step is
|
|
86
|
+
crossed three times, and `searchLongitudeCrossings` and calc's `events()`
|
|
87
|
+
return one of them, the last, with a complete status
|
|
88
|
+
(`docs/evidence/1.1.0-rc.12-20261115/breaker/BREAKER.md`, should-fix 2).
|
|
89
|
+
`docs/de440.md` now says so. The search is unchanged.
|
|
90
|
+
- **rc.11's Neptune figure, marked as rc.11's.** The 1.1.0-rc.11 entry gave
|
|
91
|
+
33.37 arcseconds for Neptune near the Sun as the size of the change; that
|
|
92
|
+
came from rc.11's bending behind the disc, which rc.12 removed. The entry
|
|
93
|
+
now says so and no longer reads as a property of this package.
|
|
94
|
+
- **The near-Sun evidence names its build.** The rows in
|
|
95
|
+
`docs/evidence/1.1.0-rc.12-20261115/near-sun/` record the engine version
|
|
96
|
+
`1.1.0-rc.11`: they were run on rc.12's source before its version string
|
|
97
|
+
was raised. The rc.12 review recomputed all 6,720 rows on the installed
|
|
98
|
+
rc.12 archive and found them identical to the bit (should-fix 1); that
|
|
99
|
+
evidence's README now says so. rc.13's code is rc.12's, so they hold for
|
|
100
|
+
this candidate too.
|
|
101
|
+
- **Not changed.** The size of the change from earlier releases stays as
|
|
102
|
+
measured: up to 29.19 arcseconds of ecliptic longitude for the Sun, the
|
|
103
|
+
Moon and the planets and 32.64 for the true node at noon TT on each day
|
|
104
|
+
from 1800 to 2199 (1.1.0-rc.10, below). No larger round figure is given.
|
|
105
|
+
The size budgets rc.12 raised are as rc.12 left them, for the owner to
|
|
106
|
+
decide with the candidate.
|
|
107
|
+
|
|
108
|
+
## 1.1.0-rc.12 (unreleased candidate)
|
|
109
|
+
|
|
110
|
+
The candidate for **1.1.0**, a minor release: 1.1.0-rc.11 with the place of
|
|
111
|
+
a planet behind the Sun's disc made JPL Horizons's, the dense sweep's check
|
|
112
|
+
on the default source restored, and two more root results labelled. It is a
|
|
113
|
+
draft for the owner, and is not to be published on npm until the owner
|
|
114
|
+
approves it. Checks: `docs/evidence/1.1.0-rc.12-20261115/`.
|
|
115
|
+
|
|
116
|
+
1.1.0-rc.11 was a draft on this same pull request (101), reviewed and not
|
|
117
|
+
tagged or published: this candidate replaces it. Its archive stays in
|
|
118
|
+
`artifacts/`, as every carried archive does (`artifacts/README.md`), which is
|
|
119
|
+
why this cut has a new number. Everything below is against 1.1.0-rc.11.
|
|
120
|
+
|
|
121
|
+
- **No light deflection behind the Sun's disc, as JPL Horizons.** The
|
|
122
|
+
pack's reduction bent a planet's light by the Sun with the form of ERFA's
|
|
123
|
+
`eraLd` and a limiter of 1e-14, so behind the Sun's disc the deflection
|
|
124
|
+
grew towards the centre without limit, and the default place was far from
|
|
125
|
+
Horizons's: the rc.11 review measured 307.9 arcseconds for Mercury on
|
|
126
|
+
1954-05-08, 195.5 for Uranus on 2029-06-04, 56.3 for Jupiter on
|
|
127
|
+
2032-01-01, where `calc()` quoted 0.0037. Horizons applies the deflection
|
|
128
|
+
outside the disc and none inside it: its places at three passages, every
|
|
129
|
+
15 minutes for a day, are the kernel's with the deflection outside the
|
|
130
|
+
disc and without it inside, to the change at the limb. Now the reduction
|
|
131
|
+
bends no light from a planet farther than the Sun whose direction is within
|
|
132
|
+
the Sun's apparent radius of the Sun's (R = 695,700 km, Horizons's).
|
|
133
|
+
Measured against Horizons at every passage of Mercury to Pluto behind the
|
|
134
|
+
Sun from 1800 to 2199 (393 passages, 3,490 instants inside the disc, 66
|
|
135
|
+
within 3 arcseconds of the limb, 3,164 outside it), as the planet's
|
|
136
|
+
offset from the Sun, which takes out the two frames' difference: within
|
|
137
|
+
0.0023 arcseconds inside the disc and 0.0047 outside, where the 0.0047 is
|
|
138
|
+
the comparison's own remainder (a reduction of `de440.bsp` with the same
|
|
139
|
+
rule gives it too, and the pack is within 0.0038 of that reduction at all
|
|
140
|
+
6,720 instants). Within 3 arcseconds of the limb the two agree to 0.0005
|
|
141
|
+
only where both put the planet on the same side of it, as at all 66 of
|
|
142
|
+
those instants here; within a second or two of a limb crossing they can
|
|
143
|
+
put it on different sides, and then differ by the step at the limb: the
|
|
144
|
+
rc.12 review found 4 such instants of its 50 in that band, 1.4732 to
|
|
145
|
+
1.6956 arcseconds apart (`docs/evidence/1.1.0-rc.12-20261115/breaker/BREAKER.md`,
|
|
146
|
+
should-fix 3), inside the 1.8 that `calc()` quotes there. The formula of
|
|
147
|
+
rc.11, reduced from `de440.bsp`, is up to 333.48 arcseconds from Horizons
|
|
148
|
+
inside the disc (Mercury), and ERFA's `eraLdsun` limiter, which tapers the
|
|
149
|
+
deflection inside about 0.08 degrees, up to 5.76 (Uranus): which is why
|
|
150
|
+
the candidate follows Horizons and not `eraLdsun`
|
|
151
|
+
(`docs/evidence/1.1.0-rc.12-20261115/near-sun/`; [docs/de440.md](docs/de440.md),
|
|
152
|
+
*Behind the Sun's disc*). What changes: the apparent place of Mercury to
|
|
153
|
+
Pluto while behind the disc, in `natalChart()`, `positions()`, `calc()`
|
|
154
|
+
and everything built on them. Elsewhere nothing changes, bit for bit:
|
|
155
|
+
`positions()` of this build and of the carried rc.11 archive, at 20,000
|
|
156
|
+
pseudo-random instants from 1800 to 2199 and the 6,720 near-Sun ones,
|
|
157
|
+
differ in 3,583 of 320,640 rows, each a planet behind the disc
|
|
158
|
+
(`docs/evidence/1.1.0-rc.12-20261115/results/unchanged.json`); the 2026 Sagittarius ingress
|
|
159
|
+
is 2026-11-22T07:23:21 UTC to the second on every default-path search
|
|
160
|
+
(`src/de440-ingress.test.ts`). At the limb the place steps by the
|
|
161
|
+
deflection there, at most 4GM/c²R = 1.7512 arcseconds; Horizons's edge was
|
|
162
|
+
found 0.06 to 0.17 arcseconds inside the engine's at five limb crossings,
|
|
163
|
+
so within 3 arcseconds of the limb `calc()` quotes 1.8 arcseconds,
|
|
164
|
+
estimated (`DE440_AT_LIMB`). A speed's two samples (±0.001 day) take the
|
|
165
|
+
decision of the instant the speed is for, so a speed is the rate of the
|
|
166
|
+
place on that side and never the step over 0.002 day (1.7512 arcseconds
|
|
167
|
+
over 0.002 day is 876 arcseconds a day; `src/de440-behind-sun.test.ts`):
|
|
168
|
+
`place(body, ttDays, behind?)` of a source returns `behindDisc` and takes
|
|
169
|
+
`behind`, both optional, both new. The calc convention id is now
|
|
170
|
+
`deflection:sun-outside-disc` (rc.10 and rc.11 wrote `deflection:sun`).
|
|
171
|
+
The reduction is no longer the research runtime's operation for operation:
|
|
172
|
+
zodiacs.org's check C9 will find the two apart for a planet behind the
|
|
173
|
+
disc, and in a speed within 0.001 day of a limb crossing.
|
|
174
|
+
- **The birth-time window search near the Sun.** rc.10 raised a planet's
|
|
175
|
+
rate bound near the Sun by the inverse square of its elongation and
|
|
176
|
+
compared single milliseconds within 0.01° of the Sun's centre, because the
|
|
177
|
+
deflection grew there. Behind the disc there is none now, so that raise is
|
|
178
|
+
gone: within a degree of the Sun in longitude the search takes the
|
|
179
|
+
deflection as a displacement of at most 1.8 arcseconds, as it takes the
|
|
180
|
+
true node's jitter (`Sky.bend` in `src/window.ts`). The rate scan on the
|
|
181
|
+
pack (`docs/evidence/1.1.0-rc.12-20261115/window/`) finds every bound
|
|
182
|
+
held with its margin, bound over largest rate plus what the grid can miss
|
|
183
|
+
1.634 to 2.057 (rc.10: 0.395 for Neptune, 1.455 for Uranus, 1.480 for
|
|
184
|
+
Saturn).
|
|
185
|
+
- **The dense sweep checks the default source again.** From rc.11 the
|
|
186
|
+
workflow swept astronomy-engine only. It now also sweeps the pack
|
|
187
|
+
(`engine_sweep.mjs --ephemeris de440`) against the kernel's place with the
|
|
188
|
+
Sun's deflection, none behind the disc, and a new job, *Sweep results on
|
|
189
|
+
the DE440 pack*, holds every body's largest angle to
|
|
190
|
+
`src/calc-bounds-de440.ts` (`check_pack.py`). The astronomy-engine run and
|
|
191
|
+
its check against `src/calc-bounds.ts` are as they were. Run on this
|
|
192
|
+
build over the 146,097 days: every body but the Moon within 0.0040
|
|
193
|
+
arcseconds of the kernel (largest 0.003948), the Moon within 0.0045
|
|
194
|
+
(0.004422), near the Sun too, where rc.11 was up to 17.308.
|
|
195
|
+
- **The pack's position bounds cover the dense sweep.** They were the
|
|
196
|
+
largest angle from Horizons at the 240 L1 vectors alone, 0.0034 to 0.0038
|
|
197
|
+
arcseconds for the Sun and the planets; the sweep finds up to 0.00395
|
|
198
|
+
(the engine's IAU 2000B nutation against ERFA's 2000A in the frames of
|
|
199
|
+
date). Each is now the larger of the two, rounded up: the Moon 0.013,
|
|
200
|
+
Saturn 0.0039, every other body 0.0040 (`src/calc-bounds-de440.test.ts`
|
|
201
|
+
holds both).
|
|
202
|
+
- **No silent fallback in `chartPoints` and `chartDeclinations`.** Given a
|
|
203
|
+
birth they computed the chart themselves and their results named no
|
|
204
|
+
ephemeris and carried no flag, so with the pack damaged, or at 1750 or
|
|
205
|
+
2230, they returned astronomy-engine's values and said nothing. Both
|
|
206
|
+
results now carry `ephemeris` (the chart's: `{ name: "jpl-de440", version }`
|
|
207
|
+
or astronomy-engine's; null for a supplied chart that names none) and
|
|
208
|
+
`flags` (the chart's `"de440-unavailable"` or `"outside-de440-span"`),
|
|
209
|
+
given a birth or a chart (`src/ephemeris-fallback-root.test.ts`, and the
|
|
210
|
+
packed-consumer check with the pack removed, damaged and undecodable). No
|
|
211
|
+
other export that reads positions was found without a label (the sweep of
|
|
212
|
+
every entry point's exports is in the evidence).
|
|
213
|
+
- **`saturnReturn` names astronomy-engine wherever its flags hold a
|
|
214
|
+
fallback.** A search that began on the pack and ran past its end named
|
|
215
|
+
`jpl-de440` beside `"outside-de440-span"`.
|
|
216
|
+
- **What names its ephemeris, said exactly.** `docs/de440.md` said every
|
|
217
|
+
result names its ephemeris; the timing and vedic results,
|
|
218
|
+
`moonSignCandidates` and `searchLongitudeCrossings` carry the fallback
|
|
219
|
+
flags and name none. It now lists which do which.
|
|
220
|
+
- **Sizes.** The root entry's import graph is 150,170 bytes beside the pack,
|
|
221
|
+
2,034 more than rc.11's (the disc rule, the labels, a speed's side of the
|
|
222
|
+
disc), over its budget of 149,400: raised to 151,700. Eight graphs that
|
|
223
|
+
share the root's chunks go over theirs with it and are raised the same
|
|
224
|
+
way, to the measurement and about one per cent: `./calc` 202,042 to
|
|
225
|
+
204,100, `./window` 149,947 to 151,500, `./timing` 169,473 to 171,200,
|
|
226
|
+
`./vedic` 185,205 to 187,100, `./sky` 137,224 to 138,600, `./internal`
|
|
227
|
+
109,770 to 110,900, `./de440` 53,988 to 54,600 and `./de440/pack` 55,208
|
|
228
|
+
to 55,800. The package beside the pack is 1,253,195 bytes unpacked, over
|
|
229
|
+
the cap of 1,245,000 (this entry, the README's lines and the code): raised
|
|
230
|
+
to 1,265,000. None of these has the owner's approval; they are for the
|
|
231
|
+
owner to decide with the candidate (`scripts/verify-package-contents.mjs`).
|
|
232
|
+
- **`docs/calc.md` on the deflection.** It said an apparent place has no
|
|
233
|
+
deflection and that `SEFLG_NOGDEFL` is always so, which is astronomy-engine's
|
|
234
|
+
case only; the pack's apparent place has it. `flags.deflection` is a request
|
|
235
|
+
(`true` is refused) and a receipt echoes it as given; the conventions say
|
|
236
|
+
what was applied.
|
|
237
|
+
|
|
238
|
+
## 1.1.0-rc.11 (unreleased candidate)
|
|
239
|
+
|
|
240
|
+
The candidate for **1.1.0**, a minor release: 1.1.0-rc.10 with every
|
|
241
|
+
techniques result labelled, the dense DE440 sweep's check fixed, and the
|
|
242
|
+
size of the change to positions said exactly. It is a draft for the owner,
|
|
243
|
+
and is not to be published on npm until the owner approves it. Checks:
|
|
244
|
+
`docs/evidence/1.1.0-rc.11-20261115/`.
|
|
245
|
+
|
|
246
|
+
1.1.0-rc.10 was a draft on this same pull request (101), reviewed and not
|
|
247
|
+
tagged or published: this candidate replaces it. Its archive stays in
|
|
248
|
+
`artifacts/`, as every carried archive does (`artifacts/README.md`), which is
|
|
249
|
+
why this cut has a new number. Everything below is against 1.1.0-rc.10.
|
|
250
|
+
|
|
251
|
+
- **No silent fallback in `@zodiacs/engine/techniques` either.** In
|
|
252
|
+
1.1.0-rc.10 ten of its functions returned astronomy-engine's answer
|
|
253
|
+
with no flag and no ephemeris name where the shipped DE440 pack could not
|
|
254
|
+
be opened or the instant was outside it. Now each result says so, with the
|
|
255
|
+
names and flags the rest of the package uses (`ephemeris`
|
|
256
|
+
`{ name: "jpl-de440", version }` or astronomy-engine's; `flags`
|
|
257
|
+
`"de440-unavailable"` or `"outside-de440-span"`, after
|
|
258
|
+
`"outside-reference-span"`; the caller's own choice of astronomy-engine
|
|
259
|
+
named and not flagged):
|
|
260
|
+
- new fields `ephemeris` and `flags` on `voidOfCourseAt`'s result, on
|
|
261
|
+
`compositeChart`'s (`ephemeris` null where the two charts do not name
|
|
262
|
+
one and the same) and on `chartAspectPatterns`'s, now typed
|
|
263
|
+
`ChartAspectPatterns` (`AspectPatterns` with the two fields;
|
|
264
|
+
`aspectPatterns` is unchanged);
|
|
265
|
+
- the same two fields on each element of `moonIngresses`,
|
|
266
|
+
`moonAspects` and `voidOfCourseWindows` (and a window's `lastAspect`),
|
|
267
|
+
each labelled by the positions it was found from, so a list that runs
|
|
268
|
+
past an end of the pack labels each side;
|
|
269
|
+
- new functions for those that return a bare value, which cannot carry a
|
|
270
|
+
label: `solarReturnInstantDetailed`,
|
|
271
|
+
`mostRecentSolarReturnInstantDetailed`, `lunarReturnInstantDetailed` and
|
|
272
|
+
`moonSignsBetweenDetailed` take the same arguments as the plain function
|
|
273
|
+
and return `{ value, ephemeris, flags }` (new type `DetailedResult`),
|
|
274
|
+
`value` being the plain function's result; the plain functions are
|
|
275
|
+
unchanged. `./internal` has `bodyLongitudeDetailed` and
|
|
276
|
+
`longitudeSpeedDetailed` beside `bodyLongitude` and `longitudeSpeed`.
|
|
277
|
+
`findLongitudeCrossings` keeps `searchLongitudeCrossings` as its labelled
|
|
278
|
+
form. New types `TechniqueEphemeris`, `ChartAspectPatterns`,
|
|
279
|
+
`DetailedResult`. No signature or existing field changes.
|
|
280
|
+
Tests: `src/ephemeris-fallback-techniques.test.ts` (each of the twelve,
|
|
281
|
+
with the pack whole, damaged, and outside it at 1750 and 2230, and after
|
|
282
|
+
the caller's choice), and the packed-consumer check, which now also
|
|
283
|
+
checks a techniques `Date` through its detailed form, its objects and a
|
|
284
|
+
list's elements on the installed package with the pack removed, damaged
|
|
285
|
+
and undecodable.
|
|
286
|
+
- **The size of the change to positions, said exactly.** The 29 arcseconds
|
|
287
|
+
of 1.1.0-rc.10's first line are the largest difference at noon TT on each
|
|
288
|
+
of the 146,097 days the sweep read, not a limit. In this candidate a
|
|
289
|
+
planet passing behind the Sun moved more, because its pack bent the
|
|
290
|
+
planet's light by the Sun behind the disc too
|
|
291
|
+
(`docs/evidence/1.1.0-rc.11-20261115/results/near-sun.json` has the figures
|
|
292
|
+
measured on this build). That no longer holds: from 1.1.0-rc.12 the pack
|
|
293
|
+
bends no light behind the disc (1.1.0-rc.12, above), and outside it the
|
|
294
|
+
bending is at most 1.7512 arcseconds, at the limb.
|
|
295
|
+
- **The dense DE440 sweep measures what its table holds.**
|
|
296
|
+
`src/calc-bounds.ts` holds the bounds `calc()` quotes for astronomy-engine's
|
|
297
|
+
results (on the pack it quotes `src/calc-bounds-de440.ts`), but from
|
|
298
|
+
1.1.0-rc.10, when `calc()`'s default became the pack, the sweep's engine
|
|
299
|
+
side measured the pack's apparent places and its check compared them with
|
|
300
|
+
astronomy-engine's limits, and with an arbiter that leaves out the light
|
|
301
|
+
deflection the pack applies. Its workflow failed on 1.1.0-rc.10 (run
|
|
302
|
+
43618467433: the rates of Mercury to Pluto hundreds of arcseconds a day
|
|
303
|
+
over, at the days a planet passed behind the Sun). The sweep's engine side
|
|
304
|
+
now names the source it runs on (`--ephemeris`, astronomy-engine for the
|
|
305
|
+
table), refuses a result another source computed, and compares a run on
|
|
306
|
+
the pack with the kernel's place with the deflection; the table's tools
|
|
307
|
+
refuse a run on the pack. Run with the fixed tools on 1.1.0-rc.10's head,
|
|
308
|
+
whose position code this candidate keeps, over the same 146,097 instants,
|
|
309
|
+
the engine's values on astronomy-engine are the same bytes as 1.1.0-rc.3's
|
|
310
|
+
committed sweep in all eight eras, and every largest difference is within
|
|
311
|
+
the limit the table quotes, so `src/calc-bounds.ts` is unchanged
|
|
312
|
+
(`docs/evidence/1.1.0-rc.11-20261115/sweep/`). The workflow's run on this
|
|
313
|
+
candidate's head is the measurement of this build. The pack's own bounds
|
|
314
|
+
are still the 240 L1 vectors' (`src/calc-bounds-de440.ts`).
|
|
315
|
+
- **PR 102's flag on the pack.** `src/calc-delta-t-de440.test.ts` holds the
|
|
316
|
+
`"delta-t-extrapolated"` flag and the widened bound on the pack, as
|
|
317
|
+
`src/calc-delta-t.test.ts` does on astronomy-engine.
|
|
318
|
+
- **Sizes.** The techniques entry's import graph is 201,294 bytes, 3,483
|
|
319
|
+
more than 1.1.0-rc.10's, over its budget of 199,900: raised to 203,800.
|
|
320
|
+
The package beside the pack is 1,238,281 bytes unpacked, over the cap of
|
|
321
|
+
1,225,000 (this entry and the README's lines, and the labels): raised to
|
|
322
|
+
1,245,000. Neither has the owner's approval; both are for the owner to
|
|
323
|
+
decide with the candidate (`scripts/verify-package-contents.mjs`).
|
|
324
|
+
|
|
325
|
+
## 1.1.0-rc.10 (unreleased candidate)
|
|
326
|
+
|
|
327
|
+
The candidate for **1.1.0**, a minor release: the DE440 default of
|
|
328
|
+
1.1.0-rc.9, now under every function, and a fallback that is never silent.
|
|
329
|
+
It contains 1.1.0-rc.7 and 1.1.0-rc.9, and the far-future ΔT warning of pull
|
|
330
|
+
request 102 (ZOD-65). It is a draft for the owner, and is not to be published
|
|
331
|
+
on npm until the owner approves it. Checks:
|
|
332
|
+
`docs/evidence/1.1.0-rc.10-20261114/`.
|
|
333
|
+
|
|
334
|
+
1.1.0-rc.9 was a draft on this same pull request (101). It was superseded
|
|
335
|
+
before review and was never tagged or published: this candidate replaces it.
|
|
336
|
+
Its archive stays in `artifacts/`, as every carried archive does, because a
|
|
337
|
+
version names one byte sequence and an archive is never repacked
|
|
338
|
+
(`artifacts/README.md`); that is why this cut has a new number.
|
|
339
|
+
|
|
340
|
+
- **Default positions move to DE440, and can shift by up to 29 arcseconds
|
|
341
|
+
for the Sun, the Moon and the planets (33 for the true node).** From
|
|
342
|
+
1.1.0-rc.9 `natalChart()`, `positions()` and the functions built on them
|
|
343
|
+
compute on the shipped DE440 pack; from this candidate `calc()`, `chart()`,
|
|
344
|
+
`events()` and `birthWindow()` do too, so every function gives the same
|
|
345
|
+
position for the same instant. Against 1.1.0-rc.7 and every release before
|
|
346
|
+
it, which computed on astronomy-engine, a position inside 1790 to 2210
|
|
347
|
+
changes by the difference between the two ephemerides. The largest
|
|
348
|
+
differences measured, astronomy-engine's apparent place against DE440 at
|
|
349
|
+
noon TT on each of the 146,097 days from 1800-01-01 to 2199-12-31
|
|
350
|
+
(`docs/evidence/de440-sweep-20261111/`), in arcseconds of ecliptic
|
|
351
|
+
longitude of date: Pluto 29.19 (on 2199-12-31, and still growing), Venus
|
|
352
|
+
22.92, Neptune 19.71, Mars 14.32, Mercury 14.12, Saturn 13.10, Uranus
|
|
353
|
+
12.09, the Moon 11.92, Jupiter 10.64, the Sun 2.39; and the true node
|
|
354
|
+
32.64, which is more than 29. As a whole angle the largest is Pluto's,
|
|
355
|
+
29.86. The sweep read JPL's kernel, not the pack, whose places are within
|
|
356
|
+
0.0016 arcseconds of the kernel's and whose true node is within 0.84
|
|
357
|
+
(`docs/evidence/de440-20261110/pack-accuracy.json`); the years 1790 to
|
|
358
|
+
1799 and 2200 to 2209 were not swept. Signs, houses near a cusp, aspects
|
|
359
|
+
near their orb, speeds, and ingress and return times move with the
|
|
360
|
+
positions: the Moon's 12 arcseconds are about 20 seconds of its motion.
|
|
361
|
+
Mars to Pluto become planetary-system barycentres.
|
|
362
|
+
`setDefaultEphemeris("astronomy-engine")` gives the earlier values at
|
|
363
|
+
every instant.
|
|
364
|
+
- **`calc()`, `chart()`, `events()` and `birthWindow()` on DE440.** In
|
|
365
|
+
1.1.0-rc.9 these stayed on astronomy-engine, so a default `calc()` and
|
|
366
|
+
`positions()` could differ by up to 29.19 arcseconds for one instant.
|
|
367
|
+
Now `calc()` takes from the pack what `natalChart()` takes from it: the
|
|
368
|
+
apparent geocentric place of the Sun, the Moon and Mercury to Pluto, and
|
|
369
|
+
the true node and its opposite point, in all eight frames (the pack's
|
|
370
|
+
place is of date; another frame is reached from it with the engine's own
|
|
371
|
+
nutation and precession). With every default it is `positions()`'s
|
|
372
|
+
longitude, latitude and speed to the bit again, and `chart()` is
|
|
373
|
+
`natalChart()`'s chart. `events()` searches the same longitudes as
|
|
374
|
+
`searchLongitudeCrossings`. A `birthWindow()` is partitioned on the pack,
|
|
375
|
+
so each cell holds what a lone `natalChart()` call gives. Each receipt
|
|
376
|
+
names the ephemeris it used (`receipt.engine.ephemeris`, and
|
|
377
|
+
`ephemeris:jpl-de440@<the pack's SHA-256>` among its conventions), and a
|
|
378
|
+
window has a new `ephemeris` field.
|
|
379
|
+
- **What `calc()` still computes on astronomy-engine, and says so in its
|
|
380
|
+
receipt:** a heliocentric, barycentric or topocentric position, an
|
|
381
|
+
astrometric or geometric one, and the Earth. The pack's reduction makes
|
|
382
|
+
the apparent geocentric place only; the others are defined by
|
|
383
|
+
astronomy-engine's own steps (its barycentre, planet centres, no light
|
|
384
|
+
deflection) and their bounds were measured on it. `natalChart()` gives
|
|
385
|
+
none of them, so none disagrees with it, but a topocentric or geometric
|
|
386
|
+
position and the default one for the same body rest on two ephemerides.
|
|
387
|
+
Also unchanged, on astronomy-engine: the sky entry's rising, setting and
|
|
388
|
+
planetary hours, and the vedic entry's star-anchored ayanamsas and
|
|
389
|
+
`vargaSensitivity`. The mean node, the mean south node and Black Moon
|
|
390
|
+
Lilith use no ephemeris. `houses()` uses none either.
|
|
391
|
+
- **Bounds of a `calc()` position from the pack.** They are no longer
|
|
392
|
+
astronomy-engine's. `bounds.position` is the largest angle from JPL
|
|
393
|
+
Horizons (DE441) at the conformance suite's 240 L1 vectors, 24 TT instants
|
|
394
|
+
a body from 1851 to 2148, rounded up to two significant figures: the Moon
|
|
395
|
+
0.013 arcseconds, the Sun and the planets 0.0034 to 0.0038
|
|
396
|
+
(`src/calc-bounds-de440.ts`; `src/calc-bounds-de440.test.ts` recomputes
|
|
397
|
+
every row and fails on a stale one). It is labelled `measured` in the true
|
|
398
|
+
ecliptic of date, where it was measured, and `estimated` in the seven other
|
|
399
|
+
frames. Twenty-four instants a body are few. The distance and the speed of
|
|
400
|
+
such a position, and the true node, have been compared with no arbiter
|
|
401
|
+
on the pack: their bounds are `null`, not astronomy-engine's.
|
|
402
|
+
- **Never a silent fallback.** Where a result that would have come from the
|
|
403
|
+
pack comes from astronomy-engine instead, the result itself says so. Two
|
|
404
|
+
new `ChartFlag` values (the type `EphemerisFallback`):
|
|
405
|
+
`"de440-unavailable"`, when the pack could not be opened (its bytes are
|
|
406
|
+
missing, their SHA-256 is not the sealed pack's, or they cannot be
|
|
407
|
+
decoded; `defaultEphemeris().de440.error` says which), and
|
|
408
|
+
`"outside-de440-span"`, when the instant is outside the pack's coverage
|
|
409
|
+
less a day at each end. They appear last in `chart.flags`, in
|
|
410
|
+
`calc()`'s and `events()`'s `flags`, in a window's `flags`
|
|
411
|
+
(`"de440-unavailable"`; a window lies inside the pack's years), in
|
|
412
|
+
the timing and techniques entries' `flags`, and in a natal receipt's
|
|
413
|
+
`resultFlags`. And every result names its ephemeris: `chart.ephemeris` is
|
|
414
|
+
now on every chart (`{ name: "astronomy-engine", version: "2.1.19" }`
|
|
415
|
+
where it was absent before), each `BodyPosition` from the engine carries
|
|
416
|
+
`ephemeris` (a name) and, on a fallback, `fallback` (the reason), so
|
|
417
|
+
`positions()`, `transits()` and `progressedBodies()` say so row by row;
|
|
418
|
+
`moonPhase()` carries the same two fields; `saturnReturn()` and a complete
|
|
419
|
+
`searchLongitudeCrossings()` carry `flags`, which also report a search
|
|
420
|
+
that runs past the end of the pack. `setDefaultEphemeris("astronomy-engine")`
|
|
421
|
+
is the caller's own choice: the result names astronomy-engine and carries
|
|
422
|
+
no fallback flag. `findLongitudeCrossings()` returns bare crossings and
|
|
423
|
+
cannot say; use `searchLongitudeCrossings()` where it matters.
|
|
424
|
+
Tests: `src/ephemeris-fallback.test.ts` (the pack missing, changed in one
|
|
425
|
+
character, cut short, not base64; an instant outside it; the caller's
|
|
426
|
+
choice), and the packed-consumer check, which does the same to the
|
|
427
|
+
installed package's own file (`scripts/verify-packed-consumer.mjs`).
|
|
428
|
+
- **Compatibility of the new fields.** A chart's bodies now have two more
|
|
429
|
+
possible keys, so code that compares a computed chart's bodies with a
|
|
430
|
+
natal record's must leave `ephemeris` and `fallback` out: a record keeps
|
|
431
|
+
the computed fields and names the ephemeris once. A natal receipt whose
|
|
432
|
+
chart fell back carries the flag, which an engine before this candidate
|
|
433
|
+
refuses as an unknown flag. A supplied chart may carry a fallback flag
|
|
434
|
+
only if it names astronomy-engine (or, as a chart from an earlier
|
|
435
|
+
release, names nothing).
|
|
436
|
+
- **Birth-time windows and the pack's records.** The pack is a series of
|
|
437
|
+
Chebyshev fits; where a read passes from one record to the next, two fits
|
|
438
|
+
meet within the pack's budget and not exactly: the true node steps by up
|
|
439
|
+
to 1.11 arcseconds across the 96,049 such instants from 1800 to 2200, the
|
|
440
|
+
Moon by up to 0.0011, the Sun and the planets by under 0.00025
|
|
441
|
+
(`docs/evidence/1.1.0-rc.10-20261114/results/window-pack-seams.json`). The window search's bounds describe smooth motion, so it now
|
|
442
|
+
treats each such instant as a seam, as it treats a leap second: the
|
|
443
|
+
DE440 source's new `steps(fromTtDays, toTtDays)` lists them, a few in 48
|
|
444
|
+
hours. `src/window-de440.test.ts` holds windows on the pack to
|
|
445
|
+
`natalChart()` at every whole second and, around each seam, at every
|
|
446
|
+
millisecond. The pack's reduction also bends light at the Sun, by the
|
|
447
|
+
inverse of the angle from it, so a planet passing behind the Sun moves far
|
|
448
|
+
faster in `natalChart()` than the body does (Neptune, 0.022° from the
|
|
449
|
+
Sun's centre on 1920-08-03, at more than ten times the search's rate bound); the
|
|
450
|
+
search raises its bound for Mercury to Pluto within a degree of the Sun by
|
|
451
|
+
what that deflection allows. On the 1,000 preregistered random windows of `docs/evidence/birth-window/` (1800 to 2200, all thirteen systems), run on the pack, all 24,188 sampled transitions were matched, none missed and none extra, over 12,259,372 whole-second samples, and no window was flagged `bound-exceeded` (`docs/evidence/1.1.0-rc.10-20261114/`). On astronomy-engine the search
|
|
452
|
+
is as it was.
|
|
453
|
+
- **A far-future clock time is flagged, and its bounds widened (pull request
|
|
454
|
+
102, ZOD-65).** After the IERS table ends (2027-10-02 for this release's
|
|
455
|
+
table) ΔT is extrapolated, and no arbiter can check it. A result that
|
|
456
|
+
moves with it carries the new `ChartFlag` value `"delta-t-extrapolated"`:
|
|
457
|
+
`natalChart()` and `chart()` on UTC or UT1 input, and on TT input where
|
|
458
|
+
the chart has houses; `calc()` (new `flags`), `houses()` and `events()`
|
|
459
|
+
(new `flags`), whose bounds grow by how far the result moves while TT and
|
|
460
|
+
UT1 move by their 1-σ bands and are then labelled `estimated`
|
|
461
|
+
(`docs/calc.md`, *Bounds*; `src/calc-delta-t.test.ts`). A natal receipt
|
|
462
|
+
written by this candidate or later must carry the flag where its ΔT, time
|
|
463
|
+
scale and houses call for it; earlier records, 1.1.0-rc.9's among them,
|
|
464
|
+
are read without it. The topocentric Sun, Moon and Mars take the
|
|
465
|
+
geocentric bound, labelled `estimated`, as every other topocentric body
|
|
466
|
+
does. `ChartFlag` now has nine values.
|
|
467
|
+
- **API, additive.** `EphemerisFallback`; `Chart.ephemeris` on every chart;
|
|
468
|
+
`BodyPosition.ephemeris` and `.fallback`; `MoonPhase.ephemeris` and
|
|
469
|
+
`.fallback`; `SaturnReturnResult.ephemeris` and `.flags`;
|
|
470
|
+
`CrossingSearchResult` `flags`; `BirthWindow.ephemeris` and the
|
|
471
|
+
`BirthWindowFlag` value; `CalcPosition.flags`, `EventsResult.flags`;
|
|
472
|
+
`PositionSource.place` may give `dist`, and `PositionSource.steps` is
|
|
473
|
+
optional; a DE440 source gives both. `CalcReceipt`'s
|
|
474
|
+
`engine.ephemeris.name` is typed `string`, where it was the literal
|
|
475
|
+
`"astronomy-engine"`. New convention ids of a `calc()` receipt on the
|
|
476
|
+
pack: `light-time:iterated`, `deflection:sun`,
|
|
477
|
+
`aberration:relativistic-annual`, `target:system-barycentre`,
|
|
478
|
+
`place:icrf-to-true-ecliptic-of-date`,
|
|
479
|
+
`frame-bias:iau2006-fukushima-williams`, `nutation:iau2000b-p03`,
|
|
480
|
+
`time:tdb-three-term` and `frame-turn:from-true-ecliptic-of-date`
|
|
481
|
+
(`docs/calc.md`).
|
|
482
|
+
- **Conformance.** Regenerated on this candidate
|
|
483
|
+
(`conformance/RESULTS.md`): the verdicts are 1.1.0-rc.9's. A plain call
|
|
484
|
+
passes 459 of the 500 vectors, fails none, and 41 are unsupported (all 240
|
|
485
|
+
position vectors pass); started with `--ephemeris astronomy-engine` the
|
|
486
|
+
adapter gives 267, 192 and 41. Each position's `meta` now names the
|
|
487
|
+
ephemeris on either run.
|
|
488
|
+
- **Licensing.** Unchanged from 1.1.0-rc.9: the pack is data refitted from
|
|
489
|
+
JPL's DE440, `NOTICE` credits JPL and cites the ephemeris, and
|
|
490
|
+
`LICENSING.md` (*DE440 pack*) records what the pack rests on.
|
|
491
|
+
- **Sizes.** The package is 4,540,059 bytes unpacked in 98 files, against
|
|
492
|
+
1.1.0-rc.9's 4,502,147 and 1.1.0-rc.7's 1,152,017. 3,319,552 of them are
|
|
493
|
+
the pack's base64 text, unchanged; the rest is 1,220,507, 37,912 more than
|
|
494
|
+
1.1.0-rc.9's: documents 17,347 (this entry and the README's lines),
|
|
495
|
+
JavaScript 14,156 (5,139 of it in the root's import graph, which is
|
|
496
|
+
147,832 bytes beside the pack), declarations 6,408 and the
|
|
497
|
+
manifest 1 (`docs/evidence/1.1.0-rc.10-20261114/sizes.json`, which
|
|
498
|
+
also gives the packed sizes). The cap on the rest rises from 1,185,000 to
|
|
499
|
+
1,225,000. Eleven import-graph budgets rise, each to its measurement and
|
|
500
|
+
about one per cent: the root's from 144,000 to 149,400, `./calc`'s from
|
|
501
|
+
190,000 to 199,900, `./window`'s from 142,500 to 149,500, `./techniques`'s
|
|
502
|
+
from 194,500 to 199,900, `./timing`'s from 163,500 to 168,900, `./vedic`'s
|
|
503
|
+
from 179,500 to 184,800, `./sky`'s from 132,000 to 136,400, `./internal`'s
|
|
504
|
+
from 104,000 to 108,200, `./de440`'s from 50,700 to 53,200,
|
|
505
|
+
`./de440/pack`'s from 52,000 to 54,400 and `./geo`'s from 35,600 to 35,700
|
|
506
|
+
(`scripts/verify-package-contents.mjs` has each measurement and what the
|
|
507
|
+
bytes are). Part of the growth is pull request 102's. None of these
|
|
508
|
+
figures has the owner's approval: they are for the owner to decide with
|
|
509
|
+
this candidate.
|
|
510
|
+
|
|
511
|
+
## 1.1.0-rc.9 (draft, superseded by 1.1.0-rc.10 before review)
|
|
512
|
+
|
|
513
|
+
Never tagged or published. 1.1.0-rc.10 above contains it and changes what
|
|
514
|
+
this entry's *The fallback, and what says so* and *What stays on
|
|
515
|
+
astronomy-engine* describe.
|
|
516
|
+
|
|
517
|
+
The next candidate for 1.1.0 after 1.1.0-rc.7, which it contains: the sealed
|
|
518
|
+
DE440 pack, shipped in the package, and the root entry computing on it by
|
|
519
|
+
default. It is a draft for the owner, and is not to be published on npm until
|
|
520
|
+
the owner approves it. Checks: `docs/evidence/1.1.0-rc.9-20261114/`.
|
|
521
|
+
|
|
522
|
+
There is no 1.1.0-rc.8 archive. 1.1.0-rc.8 was a draft cut on 1.1.0-rc.3 in
|
|
523
|
+
pull request 101 that shipped the pack behind `withEphemeris` only: a plain
|
|
524
|
+
call still computed on astronomy-engine. Before it was reviewed, main moved
|
|
525
|
+
to 1.1.0-rc.7, and its archive, which held none of 1.1.0-rc.6's or
|
|
526
|
+
1.1.0-rc.7's changes, was withdrawn where the branch joined main. The number
|
|
527
|
+
is not used again (`artifacts/README.md`).
|
|
528
|
+
|
|
529
|
+
- **DE440 by default.** A call in the root entry outside `withEphemeris`
|
|
530
|
+
(`natalChart`, `positions` and the functions built on them, the crossing
|
|
531
|
+
searches, `moonPhase`, and the opt-in entries that build on them) takes the
|
|
532
|
+
Sun, the Moon, the planets and the true node from the shipped pack when its
|
|
533
|
+
instant is at least a day inside the pack's coverage, which is 1790 to 2210,
|
|
534
|
+
and from astronomy-engine otherwise. Nothing is opened, supplied or fetched
|
|
535
|
+
by the caller, and no environment variable is read. A chart from the pack
|
|
536
|
+
names it in `chart.ephemeris` (`jpl-de440`, with the pack's SHA-256), and
|
|
537
|
+
its receipt is a DE440 receipt, which engines before 1.1.0-rc.3 refuse; a
|
|
538
|
+
chart from astronomy-engine has no `ephemeris` property, as before.
|
|
539
|
+
- **Positions change.** `docs/versioning.md` lets a value change in a minor
|
|
540
|
+
release when the engine computes it more accurately, with its size listed.
|
|
541
|
+
Inside the pack's years every default position of the root moves from
|
|
542
|
+
astronomy-engine's value to DE440's. The largest such moves found by the
|
|
543
|
+
sweep of 1.1.0-rc.7, which compared astronomy-engine's apparent places with
|
|
544
|
+
DE440 at noon TT on each of the 146,097 days from 1800-01-01 to 2199-12-31
|
|
545
|
+
(`docs/evidence/de440-sweep-20261111/`), are, in arcseconds: Sun 3.4, Moon
|
|
546
|
+
12, Mercury 17, Venus 24, Mars 23, Jupiter 17, Saturn 24, Uranus 20,
|
|
547
|
+
Neptune 22, Pluto 30, the true node 33. (The sweep read the kernel; the
|
|
548
|
+
pack's own places were not swept, and 1790 to 1799 and 2200 to 2209 were
|
|
549
|
+
not in it.) Mars to Pluto become planetary-system barycentres. Speeds,
|
|
550
|
+
aspects, house placements near a cusp, ingress and return times move with
|
|
551
|
+
them. `setDefaultEphemeris("astronomy-engine")` gives 1.1.0-rc.7's values
|
|
552
|
+
at every instant, to the bit.
|
|
553
|
+
- **Accuracy against Horizons.** A plain `natalChart` is within 1″ in
|
|
554
|
+
longitude and in latitude of JPL Horizons (DE441, in the IAU 2006/2000A
|
|
555
|
+
true ecliptic of date) at all 240 L1 vectors of the conformance suite: 24
|
|
556
|
+
TT instants from 1851 to 2148, the Sun, the Moon and the planets, Mars to
|
|
557
|
+
Pluto as system barycentres. The largest differences are 0.0127″ in
|
|
558
|
+
longitude and 0.0011″ in latitude, both the Moon's
|
|
559
|
+
(`src/de440-default.test.ts`, which enforces them; the same on the package
|
|
560
|
+
installed from its archive, `docs/evidence/1.1.0-rc.9-20261114/`). On
|
|
561
|
+
astronomy-engine 48 of the 240 pass. The vectors do not test the true node,
|
|
562
|
+
speeds, or instants outside those years.
|
|
563
|
+
- **The fallback, and what says so.** New in the root: `defaultEphemeris()`
|
|
564
|
+
reports the default (`"de440"` or `"astronomy-engine"`), whether the pack
|
|
565
|
+
opened, its SHA-256, the two instants between which it is used, and why it
|
|
566
|
+
did not open if it did not; `setDefaultEphemeris(name)` chooses. If the
|
|
567
|
+
pack's bytes are not the sealed pack's, or the runtime cannot decode them,
|
|
568
|
+
the engine computes on astronomy-engine, does not throw, and every chart
|
|
569
|
+
says which ephemeris it came from. A search across an end of the pack reads
|
|
570
|
+
two ephemerides, one on each side (`docs/de440.md`, *The default source*).
|
|
571
|
+
- **What stays on astronomy-engine.** The calc entry (`calc`, `houses`,
|
|
572
|
+
`chart`, `events`), `birthWindow`, the sky entry's rising, setting and
|
|
573
|
+
planetary hours, and the vedic entry's star-anchored ayanamsas and
|
|
574
|
+
`vargaSensitivity` compute as before, with the bounds measured on
|
|
575
|
+
astronomy-engine, and name it; they still refuse inside `withEphemeris`. A
|
|
576
|
+
default `calc()` position and the root's `positions()` were equal to the
|
|
577
|
+
bit; inside the pack's years they now differ, within the limits `calc()`
|
|
578
|
+
quotes. No receipt of `calc()` carries a bound for a DE440 position.
|
|
579
|
+
- **`@zodiacs/engine/de440/pack`**, a new entry point (seventeen public entry
|
|
580
|
+
points): `DE440_PACK` describes the pack (`de440-1790-2210.v2.zeph`,
|
|
581
|
+
2,489,664 bytes, SHA-256
|
|
582
|
+
`51428874d9a47213abc0ff42cbcec65f338624eaa2d8831f0e6ddc3654bf1fa7`, refitted
|
|
583
|
+
by zodiacs.org's pack compiler 2.0.0 from NAIF's `de440.bsp`),
|
|
584
|
+
`de440PackBytes()` gives its bytes, and `shippedDe440Source()` the source
|
|
585
|
+
the root's default uses (`openShippedDe440Pack()`, the same as a promise).
|
|
586
|
+
- **`@zodiacs/engine/de440`** gains `openDe440PackSync`, `openDe440Pack`
|
|
587
|
+
without WebCrypto and without a promise, which checks the digest with the
|
|
588
|
+
engine's own SHA-256 (`src/de440/sha256.test.ts` compares it with Node's).
|
|
589
|
+
- **Conformance.** The suite's adapter answers every request with a plain
|
|
590
|
+
call: 459 of the 500 vectors pass, none fails and 41 are unsupported, where
|
|
591
|
+
1.1.0-rc.7 had 267, 192 and 41. Started with `--ephemeris
|
|
592
|
+
astronomy-engine` it sets the fallback, and those results (267, 192 and
|
|
593
|
+
41, 1.1.0-rc.7's verdicts) are committed beside the first and checked in
|
|
594
|
+
continuous integration (`conformance/RESULTS.md`).
|
|
595
|
+
- **Licensing.** The pack is data refitted from JPL's DE440. `NOTICE` cites
|
|
596
|
+
the ephemeris and says that Zodiacs.org made the pack; `LICENSING.md`
|
|
597
|
+
(*DE440 pack*) records what NAIF's rules for SPICE kernels state, that they
|
|
598
|
+
do not speak of data refitted from a kernel, and that shipping the pack
|
|
599
|
+
rests on the owner's position of 2026-11-13 that DE440 is JPL's public
|
|
600
|
+
data: an open question for the owner before publication. The licence
|
|
601
|
+
expression is unchanged.
|
|
602
|
+
- **Sizes.** The package is 4,502,147 bytes unpacked in 98 files, against
|
|
603
|
+
1.1.0-rc.7's 1,152,017 in 94: 3.9 times. 3,319,552 of those bytes are the
|
|
604
|
+
pack's base64 text, in one shared chunk; the rest is 1,182,595, 30,578 more
|
|
605
|
+
than 1.1.0-rc.7 (`docs/evidence/1.1.0-rc.9-20261114/sizes.json`, which
|
|
606
|
+
also gives the packed sizes). The pack compresses little, so every install
|
|
607
|
+
downloads about eight times what 1.1.0-rc.7's did, and, because the root
|
|
608
|
+
entry now imports the pack, so does every application that bundles the
|
|
609
|
+
root, `./calc`, `./sky`, `./techniques`, `./timing`, `./vedic` or
|
|
610
|
+
`./window`: the root's import graph is 142,693 bytes beside the pack's
|
|
611
|
+
3,319,552, where 1.1.0-rc.7's was 108,531. The package gate holds the pack
|
|
612
|
+
to its exact size and digest, in one file, measures every graph without it,
|
|
613
|
+
and caps the rest of the package: that cap rises from 1,155,000 to
|
|
614
|
+
1,185,000, the budgets of the eight graphs that load the ephemeris rise by
|
|
615
|
+
the code that reads a pack (the root's from 109,000 to 144,000), `./de440`'s
|
|
616
|
+
from 48,000 to 50,700, and `./de440/pack` gets 52,000
|
|
617
|
+
(`scripts/verify-package-contents.mjs`). None of these figures, and not the
|
|
618
|
+
size itself, has the owner's approval: they are for the owner to decide
|
|
619
|
+
with this candidate.
|
|
620
|
+
|
|
621
|
+
## 1.1.0-rc.7 (unreleased candidate)
|
|
622
|
+
|
|
623
|
+
The next candidate for 1.1.0 after 1.1.0-rc.6, which it contains: the error
|
|
624
|
+
limits a `calc()` result quotes, now from a far larger comparison. It is not
|
|
625
|
+
to be published on npm until the owner approves it.
|
|
626
|
+
|
|
627
|
+
- **Error limits from 146,097 daily comparisons with DE440.** Each position
|
|
628
|
+
from `@zodiacs/engine/calc` carries `bounds`: how far its position,
|
|
629
|
+
distance and speed were found to be from an independent ephemeris. For
|
|
630
|
+
the geocentric Sun, Moon, Mercury to Pluto (each correction) and the true
|
|
631
|
+
node and its opposite point, these were the largest differences from JPL
|
|
632
|
+
Horizons at 32 instants, and on other days the engine went past ten of
|
|
633
|
+
the eleven apparent position limits. They are now the largest differences
|
|
634
|
+
from JPL's DE440 at noon TT on each of the 146,097 days from 1800-01-01 to
|
|
635
|
+
2199-12-31, in all eight frames, rounded up to two significant figures
|
|
636
|
+
(`docs/evidence/de440-sweep-20261111/`). Position limits of the apparent
|
|
637
|
+
places, in arcseconds, old to new: Sun 3.0 to 3.4, Moon 8.3 to 12,
|
|
638
|
+
Mercury 9.3 to 17, Venus 11 to 24, Mars 6.6 to 23, Jupiter 13 to 17,
|
|
639
|
+
Saturn 18 to 24, Uranus 20 (unchanged), Neptune 21 to 22, Pluto 25 to 30,
|
|
640
|
+
and the true node and its opposite point 16 to 33. The astrometric and
|
|
641
|
+
geometric rows and the distance and speed limits of the same bodies move
|
|
642
|
+
by the same rule (`src/calc-bounds.ts`); none falls. `docs/versioning.md`
|
|
643
|
+
lets a bound found to be wrong be corrected in a minor release; these are
|
|
644
|
+
such corrections. Each bound's `basis` now names the comparison it rests
|
|
645
|
+
on.
|
|
646
|
+
- **What they mean.** They are the largest differences found at one instant
|
|
647
|
+
a day, not proven limits. The true node's is 33 arcseconds, so "within 30
|
|
648
|
+
arcseconds of DE440" holds for the Sun, the Moon and the planets only.
|
|
649
|
+
Pluto's largest is 29.86 arcseconds (29.19 in ecliptic longitude), on the
|
|
650
|
+
last day and still growing: a thin margin, for 1800 to 2199 only.
|
|
651
|
+
- **What keeps the old limits.** The 72 rows the sweep did not take
|
|
652
|
+
(heliocentric, barycentric and topocentric positions, and the mean nodes
|
|
653
|
+
and Black Moon Lilith) keep their values and their basis. The topocentric
|
|
654
|
+
Sun, Moon and Mars keep limits (3.0, 7.8 and 6.6 arcseconds) below the
|
|
655
|
+
geocentric ones the sweep found ([docs/calc.md](docs/calc.md)).
|
|
656
|
+
- **No position changes.** This candidate computes the positions 1.1.0-rc.6
|
|
657
|
+
and 1.1.0-rc.3 compute (`docs/evidence/1.1.0-rc.7-20261111/`).
|
|
658
|
+
- **Sizes.** The package is 1,152,017 bytes unpacked in 94 files, 3,690 more
|
|
659
|
+
than 1.1.0-rc.6's 1,148,327: this entry 2,888, the README's lines 379,
|
|
660
|
+
LICENSING.md and NOTICE 365, and JavaScript 58. That is over the cap
|
|
661
|
+
of 1,150,000, which rises to 1,155,000 (`scripts/verify-package-contents.mjs`,
|
|
662
|
+
`docs/evidence/1.1.0-rc.7-20261111/sizes.json`), a rise the owner decides
|
|
663
|
+
with this candidate. No entry point's budget changes.
|
|
664
|
+
|
|
665
|
+
## 1.1.0-rc.6 (unreleased candidate)
|
|
666
|
+
|
|
667
|
+
The next candidate for 1.1.0 after 1.1.0-rc.3 (main at `bc0b5a7`): a choice
|
|
668
|
+
for a birth in an hour the clock showed twice. It is not to be published on
|
|
669
|
+
npm until the owner approves it.
|
|
670
|
+
|
|
671
|
+
Two drafts came before it, and neither archive is carried here. 1.1.0-rc.4
|
|
672
|
+
was drafted in pull request 89 with this choice and with a refusal of a birth
|
|
673
|
+
given as a calendar date with no time. It was not merged. The refusal changes
|
|
674
|
+
documented behaviour, and by the owner's decision of 2026-11-11 it is held
|
|
675
|
+
for 2.0.0: in 1.x a birth's `utc` given as `YYYY-MM-DD` is read as midnight
|
|
676
|
+
UTC, as the README's *Resolved instant inputs* says. 1.1.0-rc.5 was drafted
|
|
677
|
+
in pull request 90 with the choice alone. An independent review of it found
|
|
678
|
+
that it recorded `"later"` for times that have no second pass, and it was
|
|
679
|
+
superseded by this candidate before merging.
|
|
680
|
+
|
|
681
|
+
- **`fold: "earlier" | "later"`** in `@zodiacs/engine/geo`.
|
|
682
|
+
`resolveLocalToUtc`, `resolveLocalBirth` and `resolveBirth` take the new
|
|
683
|
+
option for a wall time the clock showed twice. The default, `"earlier"`,
|
|
684
|
+
gives what earlier versions gave. With `fold: "later"`, 01:30 in New York
|
|
685
|
+
on 2021-11-07 resolves to 06:30 UTC where the default gives 05:30 UTC.
|
|
686
|
+
Both passes carry the `dst-fold` flag and the same `jump` and `transition`,
|
|
687
|
+
so a birth form can ask which pass it was and resolve again. The option
|
|
688
|
+
changes nothing for a time the clock showed once, neither the result nor
|
|
689
|
+
the record a receipt keeps, and a skipped time moves forward by the jump
|
|
690
|
+
whichever value is given. The expected instants in
|
|
691
|
+
`src/geo/fold-choice.test.ts` are written out from the IANA time zone
|
|
692
|
+
database's rules ([docs/time.md](docs/time.md)).
|
|
693
|
+
- **Receipts.** `localResolution.policy.fold` records the pass taken:
|
|
694
|
+
`"later"` only for a repeated time whose later pass was asked for,
|
|
695
|
+
`"earlier"` for every other time. The codec checks it against the instant
|
|
696
|
+
and the recorded clock change: an `"earlier"` record of a repeated time
|
|
697
|
+
must fall before the change, a `"later"` one at or after it, inside the
|
|
698
|
+
repeated span, and a `"later"` record without the `dst-fold` flag is
|
|
699
|
+
refused as `invalid_context`. 1.1.0-rc.1 and 1.1.0-rc.3 refuse a record
|
|
700
|
+
that says `"later"` as `unsupported_feature`, and read this candidate's
|
|
701
|
+
`"earlier"` records, among them those of an ordinary and of a skipped time
|
|
702
|
+
asked for their later pass (`docs/evidence/1.1.0-rc.6-20261111/`).
|
|
703
|
+
Records that say `"earlier"`, which is every record written before this
|
|
704
|
+
candidate, are read as before.
|
|
705
|
+
- **`api/`.** `api/geo.api.md` gains the exported type `FoldChoice` and the
|
|
706
|
+
optional `fold` of the three functions' options. It and
|
|
707
|
+
`api/receipt.api.md` widen `policy.fold` from `"earlier"` to
|
|
708
|
+
`"earlier" | "later"`, a new member of a union a result carries, which
|
|
709
|
+
`docs/versioning.md` allows in a minor release.
|
|
710
|
+
- **`lunarReturn`** still refuses a birth flagged `dst-fold`, whichever pass
|
|
711
|
+
was chosen.
|
|
712
|
+
- **Sizes.** The option, its input check and its error message make
|
|
713
|
+
`./geo`'s import graph 35,584 bytes, over its budget of 35,500, which
|
|
714
|
+
rises to 35,600. The package is 1,148,327 bytes unpacked in 94 files,
|
|
715
|
+
5,509 more than 1.1.0-rc.3's 1,142,818: this entry 3,499, the README's
|
|
716
|
+
lines 355, declarations 927 and JavaScript 728. That is over the
|
|
717
|
+
cap of 1,145,000, which rises to 1,150,000
|
|
718
|
+
(`scripts/verify-package-contents.mjs`,
|
|
719
|
+
`docs/evidence/1.1.0-rc.6-20261111/sizes.json`). The owner approved both
|
|
720
|
+
rises on 2026-11-11.
|
|
721
|
+
|
|
722
|
+
## 1.1.0-rc.3 (unreleased candidate)
|
|
723
|
+
|
|
724
|
+
The third candidate for 1.1.0, on 1.1.0-rc.2 (main at `883371f`): positions
|
|
725
|
+
from JPL's DE440, for zodiacs.org's hosted compute API (its programme unit
|
|
726
|
+
P4.1), with sixteen public entry points. It is not to be published on npm
|
|
727
|
+
until the owner approves it.
|
|
728
|
+
|
|
729
|
+
- **`@zodiacs/engine/de440`**, a new entry point. `openDe440Pack(bytes,
|
|
730
|
+
{ expectDigest })` opens a sealed pack (`ZODEPH02`) of Chebyshev series that
|
|
731
|
+
zodiacs.org's research runtime refits from NAIF's `de440.bsp` and quantises,
|
|
732
|
+
refuses it unless its SHA-256 is the one expected and its trailer and
|
|
733
|
+
header check, and returns a source that places the Sun, the Moon, the
|
|
734
|
+
planets and the true node. The reduction is the research runtime's, ported
|
|
735
|
+
operation for operation: light-time, deflection of light by the Sun,
|
|
736
|
+
relativistic annual aberration, IAU 2006 precession with frame bias, IAU
|
|
737
|
+
2000B nutation (the engine's own terms, arguments and offsets,
|
|
738
|
+
P03-adjusted) and the true obliquity; Mars to Pluto are planetary-system
|
|
739
|
+
barycentres. The geocentric Moon is formed from the Earth-Moon system's
|
|
740
|
+
parts, so that the barycentre's speed never multiplies the rounding of the
|
|
741
|
+
light-time epoch. Six-byte quantised fields, which the runtime's reader
|
|
742
|
+
decodes wrongly, are refused. The entry fetches nothing and ships no pack.
|
|
743
|
+
- **Accuracy.** On the raw kernel the reduction is within 1e-6″ of an ERFA
|
|
744
|
+
chain over `de440.bsp` at 200 instants from 1800 to 2200, place and node.
|
|
745
|
+
A pack adds its refit: on the pack compiled for 1790 to 2210, against the
|
|
746
|
+
kernel at 20,001 instants from 1800 to 2200 TT and at the edges of its
|
|
747
|
+
records, the Moon's place differs by at most 0.0016″, every other body's by
|
|
748
|
+
at most 0.0008″, and the true node by at most 0.84″, at an edge of the
|
|
749
|
+
Moon's records (`docs/evidence/de440-20261110/pack-accuracy.json`).
|
|
750
|
+
- **`withEphemeris(source, fn)`** in the root runs `fn` with the root's body
|
|
751
|
+
positions from a source (`positions`, `natalChart` and what is built on
|
|
752
|
+
them, the crossing searches, `moonPhase`), and restores the one before. A
|
|
753
|
+
chart computed inside names it (`chart.ephemeris`); a chart from
|
|
754
|
+
astronomy-engine is unchanged. The functions that compute positions from
|
|
755
|
+
astronomy-engine themselves, or whose bounds were measured on it (the calc
|
|
756
|
+
entry, the sky entry's rising, setting and planetary hours, the vedic
|
|
757
|
+
entry's star-anchored ayanamsas and `vargaSensitivity`, the window entry's
|
|
758
|
+
`birthWindow`), throw a TypeError inside it.
|
|
759
|
+
- **Natal receipts** of a chart from a DE440 pack carry a new conventions
|
|
760
|
+
set, the current one with the positions, the Moon and the frame of the
|
|
761
|
+
DE440 reduction, name the ephemeris `jpl-de440` with the pack's SHA-256 as
|
|
762
|
+
its version, and require the feature `ephemeris-jpl-de440`, so that an
|
|
763
|
+
earlier engine refuses them. The set is the last of
|
|
764
|
+
`NATAL_RECEIPT_CONVENTION_SETS`, so no earlier set's index moved. On a
|
|
765
|
+
DE440 receipt, a provenance claim about the ephemeris must name its pack.
|
|
766
|
+
- **Checks.** `src/de440.test.ts` and `src/de440-format.test.ts` (synthetic
|
|
767
|
+
packs, float64 and quantised, against values written independently: the
|
|
768
|
+
digest checks, the reader, the switch, the refusals, the receipts),
|
|
769
|
+
`src/de440-sources.test.ts` (no astronomy-engine position function is
|
|
770
|
+
called under a DE440 source in the calls zodiacs.org's compute API makes)
|
|
771
|
+
and `src/de440-kernel.test.ts` (with PRECISION_KERNEL set, the 1e-6″ gates).
|
|
772
|
+
- **Sizes.** The entry and the switch make the package 1,142,818 bytes
|
|
773
|
+
unpacked, 46,035 more than 1.1.0-rc.2's 1,096,783: opt-in JavaScript
|
|
774
|
+
(`dist/de440.js`, its own chunks and the refusals) 29,536, the root's
|
|
775
|
+
JavaScript 2,206 (`withEphemeris` and the source's path in the ephemeris
|
|
776
|
+
chunk, which every entry that loads it carries), declarations 6,866,
|
|
777
|
+
documents 7,271 and the manifest 156
|
|
778
|
+
(`docs/evidence/de440-20261110/sizes.json`). The cap rises from
|
|
779
|
+
1,100,000 to 1,145,000, with a budget of 48,000 for `./de440` and raised
|
|
780
|
+
budgets for `./internal` (69,000), `./time` (42,600) and `./window`
|
|
781
|
+
(107,000), with the owner's approval of 2026-11-10; the root's rises to
|
|
782
|
+
109,000 and `./vedic`'s to 144,500 under the owner's delegation of
|
|
783
|
+
2026-11-04 (`scripts/verify-package-contents.mjs`).
|
|
784
|
+
|
|
785
|
+
## 1.1.0-rc.2 (unreleased candidate)
|
|
786
|
+
|
|
787
|
+
The second candidate for 1.1.0, on 1.1.0-rc.1 (main at `a253973`):
|
|
788
|
+
corrections of statements that said more than their evidence; two new entry
|
|
789
|
+
points that load no ephemeris, `@zodiacs/engine/time` and
|
|
790
|
+
`@zodiacs/engine/lite`, which make fifteen public entry points; time bands in
|
|
791
|
+
`@zodiacs/engine/calc`; and the birth-time sensitivity of the vargas in
|
|
792
|
+
`@zodiacs/engine/vedic`. The 500 conformance verdicts are 1.1.0-rc.1's: 267
|
|
793
|
+
pass, 192 fail, 41 unsupported, none in error. It is not to be published on
|
|
794
|
+
npm until the owner approves it. Checks: `docs/evidence/1.1.0-rc.2-20261102/`.
|
|
795
|
+
|
|
796
|
+
- **Corrections (zodiacs.org's finding F-89).** Statements that 1.0.0 and
|
|
797
|
+
1.1.0-rc.1 made in the README, NOTICE, LICENSING.md and doc comments, and
|
|
798
|
+
that zodiacs.org's claims ledger found to say more than their evidence, now
|
|
799
|
+
say what was measured or what the code does
|
|
800
|
+
(`docs/evidence/1.1.0-rc.2-20261102/f89/`). The README no longer says that
|
|
801
|
+
the Vertex and the East Point agree with Swiss Ephemeris's
|
|
802
|
+
`swe_houses_armc` to within 0.00001″ given its inputs, which zodiacs.org's
|
|
803
|
+
points record of 0.1.1-rc.10 does not bear out; it gives the conformance
|
|
804
|
+
suite's figures instead, within 0.014″ and 0.007″ on its ten L2 vectors for
|
|
805
|
+
them, from 1833 to 2182, whose arbiter is ERFA (`conformance/RESULTS.md`,
|
|
806
|
+
which rounds to the nearest 0.001″, and `conformance/results/summary.json`).
|
|
807
|
+
A plain 5-day crossing scan can miss a station that takes the body less than
|
|
808
|
+
|f″|h²/8 past the target: up to 0.0056° for Saturn and 0.011° for Jupiter at
|
|
809
|
+
their stations from 2019 to 2024, not the 0.0103° and 0.0205° given before. A
|
|
810
|
+
local-time resolution names a transition only where there is one, and no
|
|
811
|
+
tzdb version where the runtime reports none. The Gregorian adoption table is
|
|
812
|
+
in a shared chunk that `dist/geo.js` and `dist/techniques.js` import. The
|
|
813
|
+
calc bounds of the mean node, the mean south node and Black Moon Lilith were
|
|
814
|
+
measured against their definitions evaluated with ERFA, and their `basis`
|
|
815
|
+
now says so; their speed bounds' basis also says that their speeds were
|
|
816
|
+
compared in the true ecliptic of date only. No bound's value changes.
|
|
817
|
+
Placidus's step count near the polar limit is no longer given. Munkasey's
|
|
818
|
+
co-ascendant can lie west of the meridian within ε of the equator, not
|
|
819
|
+
within 90° − ε. `ChartInput.deltaT` falls back to the engine's time basis.
|
|
820
|
+
Receipts name the ephemeris from the rc.8 conventions set on, not only in
|
|
821
|
+
the current one.
|
|
822
|
+
- **`@zodiacs/engine/time`** (zodiacs.org's finding F-53), a new entry point
|
|
823
|
+
that loads no ephemeris: `timeBasis(ms, scale, pin)`, an instant's UT1 and
|
|
824
|
+
TT with the `deltaT` and `timeScale` records a chart carries, and
|
|
825
|
+
`elapsedDays`; `EPHEMERIS_SPAN`; and the frame of date the ephemeris uses,
|
|
826
|
+
`tilt`, `eclipticFrame`, `meanEcliptic` and `eclipticOfDate`; with
|
|
827
|
+
`DELTA_T_IERS_MODEL`, `TIME_SCALE_NAMES` and the types they take and give
|
|
828
|
+
(`api/time.api.md`, `docs/time.md`). Each is the function a chart computes
|
|
829
|
+
with, behind a check that throws `RangeError` for an argument it refuses;
|
|
830
|
+
`tilt` and `eclipticFrame` give frozen results, so a caller cannot change
|
|
831
|
+
the frame the engine keeps for its next chart. Through them
|
|
832
|
+
astronomy-engine's vectors give `natalChart`'s longitudes to the bit
|
|
833
|
+
(`src/time.test.ts`; the preregistered checks are in
|
|
834
|
+
`docs/evidence/1.1.0-rc.2-20261102/time-entry/`). The root does not import
|
|
835
|
+
the entry. zodiacs.org bundled these functions from `dist/` until now. The
|
|
836
|
+
nutation and frame modules move out of the ephemeris chunk into a shared
|
|
837
|
+
chunk that it and `dist/time.js` import (NOTICE, LICENSING.md), so each
|
|
838
|
+
graph that loads the ephemeris grows by the imports and exports that join
|
|
839
|
+
the two.
|
|
840
|
+
- **Bands from the time basis** (zodiacs.org's unit P1.M3c).
|
|
841
|
+
`timeBands(record)`, exported by `@zodiacs/engine/time`, gives the 1-σ
|
|
842
|
+
bands, in seconds, of the TT and the UT1 of a recorded instant (a
|
|
843
|
+
`TimeBasis`, a chart, a calc instant, or a natal result from the time-basis
|
|
844
|
+
set on) from its two recorded bands, `deltaT.sigma` and
|
|
845
|
+
`timeScale.ut1MinusUtc.sigma`, by the scale the instant was given on and the
|
|
846
|
+
basis that gave UT1 and TT (`docs/time.md`, *The time bands*). On UTC input
|
|
847
|
+
from 1972-01-01 to 2027-10-02 without a pinned ΔT, TT comes from the leap
|
|
848
|
+
seconds (exactly to 2027-06-28, when the shipped list expires; after it the
|
|
849
|
+
list's last value is carried, with no band for a leap second not yet
|
|
850
|
+
announced), so its band is 0, and UT1 carries the band of UT1 − UTC; with a
|
|
851
|
+
pin, TT is UT1 plus the pin and takes UT1's band; after the table, TT takes
|
|
852
|
+
both bands, combined as the root of the sum of their squares. It reads the
|
|
853
|
+
recorded fields only, and throws `RangeError` for a record without a time
|
|
854
|
+
scale. `@zodiacs/engine/calc` carries the bands into its results, to first
|
|
855
|
+
order, as a new `band` field kept apart from `bounds` (`docs/calc.md`,
|
|
856
|
+
*Bands*), and exports the `TimeBands` and `CalcTimeBand` types they use:
|
|
857
|
+
`calc()`'s positions (null without speeds), from each coordinate's rate
|
|
858
|
+
times the TT band, with a conservative bound on the observer's turn for a
|
|
859
|
+
topocentric one, and for the true nodes from their speed over ±0.25 day,
|
|
860
|
+
which smooths their short-period motion; `houses()`' angles and cusps, from
|
|
861
|
+
each one's rate on UT1 times the UT1 band plus its rate on TT times the TT
|
|
862
|
+
band (in the sidereal zodiac the sidereal longitude's, the ayanamsa's rate
|
|
863
|
+
in it), whole-sign and fallback cusps 0; each event's UTC and UT1; and
|
|
864
|
+
`chart()`'s bodies, ascendant and midheaven. So on UTC input from
|
|
865
|
+
1972-01-01 to 2027-10-02 without a pinned ΔT every geocentric, heliocentric
|
|
866
|
+
and barycentric position's band is 0. Each receipt names the new id
|
|
867
|
+
`time-band:first-order`, last, but `calc()`'s without speeds; `events()`'
|
|
868
|
+
even when it finds no event. A band is not a bound on the error and leaves
|
|
869
|
+
out the ephemeris's error. Root charts, natal envelopes and the other
|
|
870
|
+
entries' results carry none. The preregistered
|
|
871
|
+
checks are in `docs/evidence/1.1.0-rc.2-20261102/time-bands/`.
|
|
872
|
+
- **`@zodiacs/engine/lite`** (zodiacs.org's units P2.E: declinations, sect,
|
|
873
|
+
composite and dignities), a new entry point that loads no ephemeris: the
|
|
874
|
+
root's declination parallels and out-of-bounds flags
|
|
875
|
+
(`findDeclinationAspects`, `declinationsForBodies`, `declinationOf`,
|
|
876
|
+
`declinationOrb`, `eclipticToEquatorial`, with their constants and types),
|
|
877
|
+
`@zodiacs/engine/techniques`' composite midpoints and their aspects and its
|
|
878
|
+
essential dignities with their tables and mutual reception, and
|
|
879
|
+
`sectReading`, new: a chart's sect under the convention a caller names,
|
|
880
|
+
`"altitude"` (the Sun's altitude, which the caller computes; day from 0 up)
|
|
881
|
+
or `"ecliptic"` (the root's `sectOf`), with the sect light, Mercury's side
|
|
882
|
+
of the Sun (`orientality`) and the planets in and out of sect
|
|
883
|
+
(`docs/lite.md`, `api/lite.api.md`). There is no default convention, and
|
|
884
|
+
`sectOf` does not change. Each function and table of the declination,
|
|
885
|
+
composite and dignity parts is a copy of the root's or the techniques
|
|
886
|
+
entry's, with the same results and not the same object; the declarations are
|
|
887
|
+
theirs. Each of the four parts is built into a file of its own that imports
|
|
888
|
+
nothing (`scripts/build-lite.mjs`, which `npm run build` runs after tsup),
|
|
889
|
+
and `npm run exports:smoke` checks that the entry holds only its pinned
|
|
890
|
+
modules and loads in a Node process that cannot load astronomy-engine
|
|
891
|
+
(`scripts/lite-entry.mjs`; the preregistered checks are in
|
|
892
|
+
`docs/evidence/1.1.0-rc.2-20261102/lite/`). The composite functions and the
|
|
893
|
+
techniques' name helpers move to modules of their own
|
|
894
|
+
(`src/techniques/composite.ts`, `src/techniques/names.ts`), with no public
|
|
895
|
+
change. esbuild 0.27.7, the version tsup runs, is now a direct dev
|
|
896
|
+
dependency.
|
|
897
|
+
- **The birth-time sensitivity of the vargas** (zodiacs.org's unit
|
|
898
|
+
P2.B.vargas). `vargaSensitivity(natal, ayanamsa, options?)`, exported by
|
|
899
|
+
`@zodiacs/engine/vedic` with `VARGA_POINTS` and seven types, gives for each
|
|
900
|
+
point and varga the first millisecond after the birth at which the point's
|
|
901
|
+
varga sign changes and the last change before it, up to 2,880 minutes on
|
|
902
|
+
each side: the instant, its minutes from the birth, the boundary crossed and
|
|
903
|
+
the signs on either side (`docs/vedic.md`, *Birth-time sensitivity*). The
|
|
904
|
+
points are the Ascendant, the Sun to Pluto and the two mean nodes; the true
|
|
905
|
+
node is not offered. Each instant is exact in the engine's own arithmetic on
|
|
906
|
+
the chart's clock, as `siderealChart` and `chartPoints` compute the
|
|
907
|
+
positions, which is not a claim of accuracy. That none is missed rests on
|
|
908
|
+
derived rate bounds for the Ascendant and the mean nodes, and on bounds
|
|
909
|
+
scanned, not derived, for the bodies. A row the search cannot compute
|
|
910
|
+
carries a typed refusal:
|
|
911
|
+
`no-angles`, `polar` (more than 66° from the equator), `out-of-range`
|
|
912
|
+
(outside 1800 to 2200), `rate-bound` or `evaluation-budget` (2,000,000
|
|
913
|
+
evaluations a call). `vargaOf` places a longitude as before, through an
|
|
914
|
+
internal function that takes a whole tick, and the vargas' change
|
|
915
|
+
boundaries are held to an engine-free fixture,
|
|
916
|
+
`src/vedic/fixtures/varga-changes.json` (the preregistered checks are in
|
|
917
|
+
`docs/evidence/1.1.0-rc.2-20261102/varga-sensitivity/`).
|
|
918
|
+
- **Sizes.** `./time`'s import graph is 42,306 bytes in 7 files and
|
|
919
|
+
`./lite`'s 28,930 in 5, under budgets of their own, 42,400 and 29,000
|
|
920
|
+
(94 and 70 bytes left). `./calc`'s is 151,426 bytes, 6,165 more than
|
|
921
|
+
1.1.0-rc.1's 145,261, for the corrections, the time bands and the chunks it
|
|
922
|
+
shares with `./time`: over its budget of 145,500, which this candidate
|
|
923
|
+
raises to 156,000. `./vedic`'s is 141,340, 13,589 more than 127,751, for
|
|
924
|
+
the varga sensitivity and the same chunks: over its budget of 128,000,
|
|
925
|
+
raised to 143,000. The graphs of the root, `./internal`, `./internal/math`,
|
|
926
|
+
`./receipt`, `./sky`, `./techniques`, `./timing` and `./window` grow by 49
|
|
927
|
+
to 405 bytes, the root's by 345 to 106,325, for the imports and exports
|
|
928
|
+
that join the chunks `./time` shares with them (and, in `./techniques`, the
|
|
929
|
+
two modules the composite functions and the name helpers moved to); none
|
|
930
|
+
of their budgets is raised, and `./window`'s leaves 443 bytes. The package
|
|
931
|
+
is 1,096,783 bytes unpacked in 90 files, 90,289 more than 1.1.0-rc.1's
|
|
932
|
+
1,006,494, over the cap of 1,020,000, which this candidate raises to
|
|
933
|
+
1,100,000 for the two entries, the bands, the varga sensitivity, the
|
|
934
|
+
corrections and their documentation, rather than move the CHANGELOG's 0.x
|
|
935
|
+
history out of the package: 50,692 bytes of JavaScript that only the
|
|
936
|
+
opt-in entry points load, 21,520 of declarations, 17,312 of README,
|
|
937
|
+
CHANGELOG, LICENSING.md and NOTICE, 420 of manifest and 345 of the root's
|
|
938
|
+
graph (`sizes.json`). The two new budgets, the two raised ones and the cap
|
|
939
|
+
are the ceilings approved under the owner's delegation of 2026-11-03 (OQ3
|
|
940
|
+
in `docs/evidence/1.1.0-rc.2-20261102/OWNER-ANSWERS.md`), not about 5 per
|
|
941
|
+
cent over a measured graph as before; `scripts/verify-package-contents.mjs`
|
|
942
|
+
gives each graph's headroom.
|
|
943
|
+
|
|
944
|
+
## 1.1.0-rc.1 — unreleased candidate
|
|
945
|
+
|
|
946
|
+
The first candidate for 1.1.0, on 1.0.0 (main at `4771fa6`): natal receipts
|
|
947
|
+
name their conventions as ids of the Zodiacs conventions registry, and a new
|
|
948
|
+
entry point gives those ids. No value changes. It is not to be published on
|
|
949
|
+
npm until the owner approves it. Checks: `docs/evidence/1.1.0-rc.1-20261026/`.
|
|
950
|
+
|
|
951
|
+
- **Receipts carry their ids.** `createNatalEnvelope` writes a new
|
|
952
|
+
conventions set, 1.0.0's with `conventionIds:
|
|
953
|
+
"zodiacs-conventions-registry;receipt-and-result;sorted-unique;in-receipt"`,
|
|
954
|
+
and `receipt.conventionIds`: every id, in the registry's syntax (a
|
|
955
|
+
namespace, a colon and a value), that the receipt and its result name, in
|
|
956
|
+
code-unit order, each once. From the receipt, each conventions and coverage
|
|
957
|
+
field's key and value (`zodiac:tropical`), the requested and actual house
|
|
958
|
+
systems (`house:placidus`), why there are no houses, each flag, the
|
|
959
|
+
reference, the instant's scale (`time-scale:utc`) and the ephemeris
|
|
960
|
+
(`ephemeris:astronomy-engine@2.1.19`); from the result, the ΔT model and
|
|
961
|
+
segment, the time basis and the source of UT1 − UTC (`time-basis:iers`).
|
|
962
|
+
That is the rule of zodiacs.org's registry tests, and the registry it
|
|
963
|
+
publishes (version 2026-10-18) holds every id these receipts name but the
|
|
964
|
+
new set's own, which the site adds when it adopts this release
|
|
965
|
+
(`results/site-rule.txt`). The tests' timed chart in New York with
|
|
966
|
+
Placidus houses names 26; a flag or a polar fallback adds its own. The
|
|
967
|
+
codec requires the ids under the new set, exactly as the envelope's fields
|
|
968
|
+
give them, and refuses them under any other.
|
|
969
|
+
- **Records.** An envelope of the new set requires the feature
|
|
970
|
+
`convention-ids`. Each carried archive from 0.1.1-rc.7 to 1.0.0 refuses
|
|
971
|
+
such a record as `unsupported_feature`, as docs/versioning.md says an
|
|
972
|
+
earlier release refuses a set it does not know; without the feature they
|
|
973
|
+
would refuse it as `invalid_shape`, because they read a receipt's fields
|
|
974
|
+
before its set (`results/earlier-readers.json`). docs/versioning.md now
|
|
975
|
+
asks a feature of every new set. This release reads every record 1.0.0
|
|
976
|
+
reads. A receipt names the engine that computed its chart, which may be
|
|
977
|
+
earlier or later than the one that wrote it, so the new set is accepted
|
|
978
|
+
from 0.1.1-rc.16, as 1.0.0's is, with no upper bound. A receipt written by
|
|
979
|
+
the carried 1.0.0 archive (`src/fixtures/receipt-1.0.0.json`) parses,
|
|
980
|
+
serializes to its own bytes, and replays to positions, angles and cusps
|
|
981
|
+
within 1e-9° of its own (`src/receipt-ids.test.ts`).
|
|
982
|
+
- **`@zodiacs/engine/conventions`**, a new entry point that imports no
|
|
983
|
+
module of another entry: `natalConventionIds(envelope)`, which names a
|
|
984
|
+
1.0.0 envelope's ids too; `conventionId(namespace, value)`;
|
|
985
|
+
`parseConventionId(id)`, which gives a `ConventionIdParts`, the value being
|
|
986
|
+
everything after the first colon;
|
|
987
|
+
`conventionAddress(id)`, the registry's page with the id through
|
|
988
|
+
`encodeURI` as its fragment; and `CONVENTIONS_REGISTRY`. The three that
|
|
989
|
+
take an id throw a `RangeError` for a malformed one. The root does not
|
|
990
|
+
import the entry. `NatalReceipt` gains the optional `conventionIds`; `api/`
|
|
991
|
+
records both.
|
|
992
|
+
- **Migration.** Reading records needs nothing. Code that builds an envelope
|
|
993
|
+
by hand may keep writing 1.0.0's set; code that writes the new set writes
|
|
994
|
+
its ids and its feature too. On 1.0.x a 1.1 record is
|
|
995
|
+
`unsupported_feature`: read it with 1.1. `NATAL_RECEIPT_CONVENTION_SETS`
|
|
996
|
+
gains the new set at index 0, so each earlier set moves one place: take a
|
|
997
|
+
set by its content, as its doc comment asks. The ids take room under
|
|
998
|
+
`NATAL_ENVELOPE_LIMITS`: for the tests' chart the envelope grows from 5,585
|
|
999
|
+
to 6,976 bytes, the longest string `createNatalEnvelope` accepts in
|
|
1000
|
+
`extensions` falls from 59,927 to 58,536 characters, and the longest array
|
|
1001
|
+
of numbers from 3,816 to 3,787 entries (`results/extension-room.txt`). An
|
|
1002
|
+
envelope near those limits that 1.0.0 accepted can now be refused
|
|
1003
|
+
(`size_limit`, `complexity_limit`).
|
|
1004
|
+
- **No value changes.** 1.0.0-rc.1's battery of 6,417 calls over 1.0.0's
|
|
1005
|
+
twelve entry points (the new `./conventions` is not in it) prints the same
|
|
1006
|
+
bytes on the carried 1.0.0 archive and on this build, run on one machine
|
|
1007
|
+
(darwin-arm64), but in the 129 lines that hold a natal envelope or the list
|
|
1008
|
+
of sets, which differ only by what this candidate adds to them. Of the
|
|
1009
|
+
build's 48 JavaScript files, three are new code: the receipt entry, the new
|
|
1010
|
+
entry and the chunk of ids the two share; ten hold 1.0.0's lines in another
|
|
1011
|
+
order, their chunks renamed; and the other 35 are 1.0.0's once chunk-name
|
|
1012
|
+
hashes and the version are set aside.
|
|
1013
|
+
- **Sizes.** The new entry's graph is 2,754 bytes, under a budget of 2,900.
|
|
1014
|
+
`./receipt` loads its ids: 72,500 bytes, 3,009 more than 1.0.0's 69,491,
|
|
1015
|
+
over its budget of 70,000, which this candidate raises to 76,500 with the
|
|
1016
|
+
owner's approval of 2026-10-26. The package is 1,006,494 bytes unpacked in
|
|
1017
|
+
77 files, 14,579 more than 1.0.0's 991,915, over the cap of 1,000,000, which
|
|
1018
|
+
it raises to 1,020,000 with the same approval: 3,740 bytes of JavaScript and
|
|
1019
|
+
3,370 of declarations for the new entry and the receipt's ids, 7,328 of
|
|
1020
|
+
README and CHANGELOG, 136 of manifest and the 5 of the version in the root's
|
|
1021
|
+
graph (`sizes.json`).
|
|
1022
|
+
|
|
1023
|
+
## 1.0.0 — 2026-10-11
|
|
1024
|
+
|
|
1025
|
+
The first stable release: 1.0.0-rc.2 with the version changed. From this
|
|
1026
|
+
release the package follows Semantic Versioning as docs/versioning.md
|
|
1027
|
+
describes, and `api/` records the public declarations of the twelve entry
|
|
1028
|
+
points. Checks: `docs/evidence/1.0.0-20261011/`.
|
|
1029
|
+
|
|
1030
|
+
- Before this release npm carried 0.1.1-rc.14 to 0.1.1-rc.16 (`latest`
|
|
1031
|
+
0.1.1-rc.15, `next` 0.1.1-rc.16). 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2
|
|
1032
|
+
were never published, so a caller moving from npm reads their entries
|
|
1033
|
+
below: 1.0.0-rc.1's *Migration* lists each breaking change and deprecation
|
|
1034
|
+
from rc.17 with what a caller does about it. A caller on 0.1.1-rc.15 reads
|
|
1035
|
+
0.1.1-rc.16's entry too, which has its own breaking changes and
|
|
1036
|
+
*Migration*, and one on rc.14 rc.15's as well.
|
|
1037
|
+
- No API and no value changes from 1.0.0-rc.2. Every declaration file of the
|
|
1038
|
+
build is 1.0.0-rc.2's byte for byte, and 1.0.0-rc.1's battery of 6,417
|
|
1039
|
+
calls over the twelve entry points prints the same bytes on 1.0.0-rc.2's
|
|
1040
|
+
archive and on this build, run on one machine, with the version written
|
|
1041
|
+
as a placeholder. The 500 conformance verdicts are 1.0.0-rc.2's: 267 pass,
|
|
1042
|
+
192 fail, 41 unsupported, none in error.
|
|
1043
|
+
- Results depend on the JavaScript engine, its version and the processor, by
|
|
1044
|
+
amounts far below any bound this package publishes. The tests' exact pins
|
|
1045
|
+
are x86-64 V8's, as CI runs, where none fails. On arm64 (an Apple M4, Node
|
|
1046
|
+
20, 22 and 24) 4 of the 3,853 tests fail: one calc round-trip case, which
|
|
1047
|
+
two tests replay, has a longitude speed 1.42e-11° a day from the pinned
|
|
1048
|
+
one, against the test's 1e-12; and the site-parity checks find 42 of 120
|
|
1049
|
+
return charts and 1 of 60 void-of-course windows not equal, every instant
|
|
1050
|
+
agreeing (a Moon longitude by 5.69e-14°). Over 1.0.0-rc.1's 6,417 calls the
|
|
1051
|
+
largest arm64 difference is 1.31e-8° in a true node's longitude and
|
|
1052
|
+
2.17e-8° a day in its speed; Node 24.17.0 differs from Node 22.22.2 on
|
|
1053
|
+
x86-64 by at most 1.14e-13. In JavaScriptCore the calc round trip differs
|
|
1054
|
+
by up to 1.26e-9° in a longitude and 3.56e-9° a day in a speed. One
|
|
1055
|
+
conformance residual rounds differently in its ninth decimal on arm64; no
|
|
1056
|
+
verdict changes. A comparison "to the bit" in these notes is between runs
|
|
1057
|
+
on one runtime and processor.
|
|
1058
|
+
|
|
1059
|
+
## 1.0.0-rc.2 — unreleased candidate
|
|
1060
|
+
|
|
1061
|
+
The second candidate for 1.0.0, on 1.0.0-rc.1 (main at `c6b5490`, the merge
|
|
1062
|
+
of zodiacs-org/engine#30). It changes no API and no value: it lets a bundler
|
|
1063
|
+
leave out the tables a program does not read, and it adds to 1.0.0-rc.1's
|
|
1064
|
+
migration the step a TypeScript caller takes. 1.0.0-rc.1 froze the exported
|
|
1065
|
+
tables where they are declared, and a bundler keeps such a freeze, and the
|
|
1066
|
+
other calls a table is built with, in a program that never reads the table,
|
|
1067
|
+
because a call might have effects: on zodiacs.org that put the chart
|
|
1068
|
+
bundle's engine chunks over their size budget. It is not to be published on
|
|
1069
|
+
npm until the owner approves 1.0.0. Checks:
|
|
1070
|
+
`docs/evidence/1.0.0-rc.2-20261006/`.
|
|
1071
|
+
|
|
1072
|
+
- Each call a table's declaration makes when its module loads is marked
|
|
1073
|
+
`/*#__PURE__*/`: the freeze, the freezes of its entries, the `map`,
|
|
1074
|
+
`Array.from` or `Object.keys` that builds it, and a `Set` or `Map` built
|
|
1075
|
+
from data. Nothing else in a table is what a bundler takes for an effect:
|
|
1076
|
+
the receipt's convention sets built with a spread of the set before are
|
|
1077
|
+
built in a function called in place, and `RELEASING_UNIT_DAYS`' quotients
|
|
1078
|
+
are written as numbers, the same doubles. A program that reads a table
|
|
1079
|
+
gets it as before; one that does not no longer carries it. Bundled alone
|
|
1080
|
+
with esbuild, Rollup or Rolldown, each of the 66 such tables in the build
|
|
1081
|
+
is left out of a program that reads nothing; 1.0.0-rc.1 kept 43 of them
|
|
1082
|
+
under esbuild, 11 under Rollup and 42 under Rolldown. In programs that
|
|
1083
|
+
each load one entry point and read nothing, 1.0.0-rc.1 kept 43, 20 and 42
|
|
1084
|
+
of them, and this candidate keeps three, which modules only `./calc` and
|
|
1085
|
+
`./vedic` load read (below).
|
|
1086
|
+
- Nothing else a module does when it loads reads a table, but in the
|
|
1087
|
+
modules that only `./calc` and `./vedic` load (below). `src/time-scale.ts`
|
|
1088
|
+
computed six bounds from `UT1_DATA` and `LEAP_SECOND_LIST` when it loaded,
|
|
1089
|
+
which kept both tables in every program that loaded the chunk they share
|
|
1090
|
+
with `REFERENCE_SPAN`; the generator now writes the six into
|
|
1091
|
+
`src/time-scale-data.ts` as numbers, the same values. The five values
|
|
1092
|
+
`./window` computes from tables when it loads are marked. Bundled with
|
|
1093
|
+
esbuild and minified, a program that calls only `outsideReferenceSpan` is
|
|
1094
|
+
180 bytes gzipped, where it was 7,475 on 1.0.0-rc.1.
|
|
1095
|
+
- `DEFAULT_ASPECT_POLICY = createAspectPolicy()`, which the root builds when
|
|
1096
|
+
it loads, is marked too, so a bundler leaves the policy, and the code that
|
|
1097
|
+
builds it, out of a program that does not read it. Bundled with esbuild
|
|
1098
|
+
and minified, a program that calls only `normalizeLongitude` is 137 bytes
|
|
1099
|
+
gzipped, where it was 4,169 on 1.0.0-rc.1 and 3,936 on rc.17, and one
|
|
1100
|
+
that calls `natalChart` 35,132, where it was 37,000 and 36,736.
|
|
1101
|
+
- `CHALDEAN_FACES` (`./techniques`) was marked, but not the `Array.from`
|
|
1102
|
+
that builds it, so bundlers kept it; it is marked now.
|
|
1103
|
+
- The tables that only `./calc` and `./vedic` load are as 1.0.0-rc.1 had
|
|
1104
|
+
them, and so is what those modules read of the others when they load: a
|
|
1105
|
+
program that loads either entry carries `REFERENCE_SPAN`, and one that
|
|
1106
|
+
loads `./vedic` `SIGNS` and `SIGN_SLUGS`, whether it reads them or not.
|
|
1107
|
+
Their marks, 16 bytes each in the built files, would add at least 288
|
|
1108
|
+
bytes to `./calc`'s graph and 432 to `./vedic`'s, which have 239 and 249
|
|
1109
|
+
left, and a budget is raised only with the owner's approval.
|
|
1110
|
+
`UNMARKED_SOURCE` in `scripts/pure-tables.mjs` names their modules.
|
|
1111
|
+
- `scripts/pure-tables.mjs` states the rule and checks it: its tests run it
|
|
1112
|
+
on the source, and the export smoke test on the build, module by module.
|
|
1113
|
+
It holds to the rule whatever reads a table when its module loads, its
|
|
1114
|
+
own module's or one it imports, by name, as a default or through a
|
|
1115
|
+
namespace. It refuses a freeze outside a table's declaration; a mark on a
|
|
1116
|
+
call whose value is discarded, which a bundler would drop with its
|
|
1117
|
+
effect; and a mark on a call it finds may freeze a value that exists
|
|
1118
|
+
before it, which a bundler would leave unfrozen, with a freeze of its
|
|
1119
|
+
own, in a function it calls or constructs, or in one it runs. It does not
|
|
1120
|
+
read every form of code, so it is an aid to reading a mark, not a proof;
|
|
1121
|
+
the release's record reads each mark in `src/` by hand. The export smoke
|
|
1122
|
+
test also checks that no entry point but `./calc` and `./vedic` reaches
|
|
1123
|
+
the modules it leaves out through its static imports. The generated
|
|
1124
|
+
`src/time-scale-data.ts` and `src/tzdb/tzdb-2025c.ts` carry the marks
|
|
1125
|
+
from their generators.
|
|
1126
|
+
- 1.0.0-rc.1's migration, below, gains its step for TypeScript: declare
|
|
1127
|
+
what you keep of the constants its *Types only* bullet lists as their
|
|
1128
|
+
`string` or `number`, and of a birth window's result as readonly. The
|
|
1129
|
+
packed-consumer check, which failed on 1.0.0-rc.1's archive until its own
|
|
1130
|
+
TypeScript was so declared, now also exercises 1.0's additions:
|
|
1131
|
+
`ZoneHistoryNotLoadedError` by its class, `./calc`'s epochs inside
|
|
1132
|
+
`EPHEMERIS_SPAN` and its `epoch-out-of-range` refusal beyond, the frozen
|
|
1133
|
+
tables and the lookups that return their entries, and
|
|
1134
|
+
`SIDEREAL_TIME_RATE`.
|
|
1135
|
+
- Sizes: each entry's graph grows by what it loads of the marks and the
|
|
1136
|
+
functions called in place, less 105 bytes where it loads the time scale,
|
|
1137
|
+
whose six bounds are now numbers: from none (`./crossings`, `./houses`)
|
|
1138
|
+
to 759 bytes (`./techniques`); the root's is 105,980 bytes, 615 more. No
|
|
1139
|
+
budget is raised. The tightest are `./crossings`, 9,942 of 10,000;
|
|
1140
|
+
`./geo`, 35,439 of 35,500; `./calc`, 145,261 of 145,500; and `./vedic`,
|
|
1141
|
+
127,751 of 128,000.
|
|
1142
|
+
- No value moved: 1.0.0-rc.1's battery of 6,417 calls over the twelve entry
|
|
1143
|
+
points prints the same bytes on both candidates, every declaration file
|
|
1144
|
+
is 1.0.0-rc.1's, and the conformance results are 1.0.0-rc.1's.
|
|
1145
|
+
|
|
1146
|
+
## 1.0.0-rc.1 — unreleased candidate
|
|
1147
|
+
|
|
1148
|
+
The first candidate for 1.0.0, on rc.17 (main at `782b496`, the merge of
|
|
1149
|
+
zodiacs-org/engine#26). 1.0 is a promise about the API rather than new
|
|
1150
|
+
calculations: from 1.0.0 the package follows Semantic Versioning, and
|
|
1151
|
+
`docs/versioning.md` says what that covers, how a number may change, which
|
|
1152
|
+
records stay readable and how something public is deprecated (twelve months'
|
|
1153
|
+
notice, removal only in a major release). Before the promise was made, three
|
|
1154
|
+
reviews read every public declaration of the twelve entry points for what
|
|
1155
|
+
should not be frozen as it stood; a fourth read the changes, and two more
|
|
1156
|
+
this candidate. It acts on what they found, and each change below says what
|
|
1157
|
+
a caller does about it. No calculated value moved: in a comparison of 6,411
|
|
1158
|
+
calls across the twelve entry points, each result that differs from rc.17's
|
|
1159
|
+
is one of the changes listed here. It is not to be published on npm until
|
|
1160
|
+
the owner approves 1.0.0. Checks: `docs/evidence/1.0.0-rc.1-20261006/`.
|
|
1161
|
+
|
|
1162
|
+
- `api/` holds the public declarations of each of the twelve public entry
|
|
1163
|
+
points as the build gives them, without comments, with the declarations
|
|
1164
|
+
they refer to that the entry point does not export. `npm run api:check`
|
|
1165
|
+
runs in CI after the build and fails, with a diff, when the build declares
|
|
1166
|
+
anything else; `npm run api:report` rewrites the files, which are committed
|
|
1167
|
+
with the change. The two release tags the policy gives a meaning to,
|
|
1168
|
+
`@experimental` and `@deprecated`, are shown above the declarations, the
|
|
1169
|
+
members and the exports under another name that carry them.
|
|
1170
|
+
- `docs/versioning.md`: the policy. What is public (the twelve entry points,
|
|
1171
|
+
their declarations, documented behaviour and records), what a minor release
|
|
1172
|
+
may add, the experimental tier, how numbers may change, which records the
|
|
1173
|
+
codec reads, deprecation, and the Node.js lines supported.
|
|
1174
|
+
- Experimental in 1.0, outside the promise until a minor release takes the tag
|
|
1175
|
+
away: `lunarMeanArguments`, `MEAN_LUNAR_INCLINATION`, `meanNodeLongitude`
|
|
1176
|
+
and `meanApogee` (root); `houseSpeeds` and `HouseSpeeds` (`./houses`);
|
|
1177
|
+
`davisonChart`, `davisonPlace` and their three types (`./techniques`);
|
|
1178
|
+
`planetaryReturns`, its three types, `ReturnBody`, `RETURN_BODIES` and
|
|
1179
|
+
`RETURN_STEP_DAYS` (`./timing`); `yoginiDasha`, `ashtottariDasha`,
|
|
1180
|
+
`YOGINIS`, `ASHTOTTARI_YEARS` and `CycleOptions` (`./vedic`). Each
|
|
1181
|
+
declaration's comment, and its guide, say what may change.
|
|
1182
|
+
- `./calc` computes a caller's ayanamsa carried by precession from an epoch
|
|
1183
|
+
anywhere in `EPHEMERIS_SPAN`, 0001-04-30T12:00 to 3998-09-03T12:00 TT, the
|
|
1184
|
+
owner's decision of 2026-10-06 on the site's finding F-80, where rc.17
|
|
1185
|
+
refused one from an epoch outside 1800 to 2200. Its bound outside that
|
|
1186
|
+
span comes from two new bands, measured against ERFA in 64,974 comparisons
|
|
1187
|
+
(`docs/evidence/calc-epochs-2026-10-06/`): 0.0037″ and 1.3 × 10⁻⁷″ a day on
|
|
1188
|
+
the engine's precession, which parts from ERFA's the further the epoch is
|
|
1189
|
+
from J2000.0, and 1.8 × 10⁻⁵″ and 1.2 × 10⁻⁷″ a day on Newcomb's or IAU
|
|
1190
|
+
1976's, held at J2000.0. An epoch beyond `EPHEMERIS_SPAN` is refused with a
|
|
1191
|
+
new reason, `epoch-out-of-range`, whose `epochSpan` is `EPHEMERIS_SPAN`.
|
|
1192
|
+
- New names: `SIGN_SLUGS`, `ASPECT_POLICY_SCHEMA`, `CONFIGURED_ASPECTS_SCHEMA`
|
|
1193
|
+
and `DELTA_T_IERS_MODEL` (root); `SIDEREAL_TIME_RATE`, and the types
|
|
1194
|
+
`Angles` and `HouseSystem` (`./houses`); `ZoneHistoryNotLoadedError`
|
|
1195
|
+
(`./geo`); `BIRTH_WINDOW_SCHEMA` (`./window`); `ReturnChart`
|
|
1196
|
+
(`./techniques`); `AyanamsaFlag` (`./vedic`); the type `BodyName`
|
|
1197
|
+
(`./crossings`); `CalcLocation` (`./calc`); `NatalConventionSet`,
|
|
1198
|
+
`NatalCoverage` and the record types `NatalRecordedResult`,
|
|
1199
|
+
`NatalBodyRecord`, `NatalAnglesRecord`, `NatalHousesRecord`,
|
|
1200
|
+
`NatalAspectRecord`, `NatalDeltaTRecord` and `NatalTimeScaleRecord`
|
|
1201
|
+
(`./receipt`).
|
|
1202
|
+
- `./receipt`: a natal record has its own types, the same shapes as rc.17's,
|
|
1203
|
+
rather than the chart's. `createNatalEnvelope` copies the fields a record
|
|
1204
|
+
holds and leaves out any other field of the chart's result, so that a field
|
|
1205
|
+
a minor release adds to a chart does not change the records it writes; a
|
|
1206
|
+
chart's `input` is still read strictly, because an input the receipt cannot
|
|
1207
|
+
describe may have changed the numbers. The reader compares a record's ΔT
|
|
1208
|
+
and time scale with this engine's own as a record holds them. A record
|
|
1209
|
+
this candidate writes has the fields and the conventions of rc.17's, which
|
|
1210
|
+
reads it, and it reads rc.17's.
|
|
1211
|
+
- `./geo`: before `prepareLocalTime` has loaded a zone's history, the
|
|
1212
|
+
functions that need it, `./geo`'s and `./techniques`' `moonSignCandidates`,
|
|
1213
|
+
throw a `ZoneHistoryNotLoadedError` (exported by `./geo`), an `Error` with
|
|
1214
|
+
the same message as before, so that a caller can catch that case by its
|
|
1215
|
+
class.
|
|
1216
|
+
- `./geo`: a Julian date late in 9999 that resolves into the Gregorian year
|
|
1217
|
+
10000 gets its calendar note, `"new-style"`, which rc.17 left out: it
|
|
1218
|
+
compared the dates as text, where a five-digit year sorts first.
|
|
1219
|
+
- `./sky`: a refused `planetaryHours` day carries `reason: "sample-budget"`,
|
|
1220
|
+
as a refused `skyEventsOn` does.
|
|
1221
|
+
- `./crossings`: the two functions take a body name type of the caller's own,
|
|
1222
|
+
`BodyLongitudeAt<B>`, with `BodyName` the default. The root's
|
|
1223
|
+
`findLongitudeCrossings` and `searchLongitudeCrossings` take a window's ends
|
|
1224
|
+
as any `DateInput`, as the root's other functions do; the crossings entry
|
|
1225
|
+
itself still takes Dates, which keeps it within its size budget.
|
|
1226
|
+
- `./calc`: `CALC_AYANAMSAS` is taken from `./vedic`'s `AYANAMSAS`, in its
|
|
1227
|
+
order, so that the two cannot drift; `CalcAyanamsa`, `CalcAyanamsaModel` and
|
|
1228
|
+
`CalcScale` are `./vedic`'s `AyanamsaName` and `AyanamsaPrecessionModel` and
|
|
1229
|
+
the root's `TimeScaleName`.
|
|
1230
|
+
- Documentation of what the reviews found unclear: `BirthInput.utc`,
|
|
1231
|
+
`ChartInput.utc` and `AyanamsaValue.utc` (the instant on the scale
|
|
1232
|
+
`timeScale` names; the names are kept because receipts record them),
|
|
1233
|
+
`AngleInput`'s units, the ΔT segment `"fallback"` (written by rc.15's first
|
|
1234
|
+
cut only, kept so that its records stay readable), `DeltaTTable` (its shape
|
|
1235
|
+
is the model's; a model of another shape would be a new export),
|
|
1236
|
+
`EPHEMERIS_SPAN.timeScale` (a label, like `fromTT`), `offsetAt` (the host
|
|
1237
|
+
Intl's answer, a cross-check on `zoneOffsetAt`), the two place types
|
|
1238
|
+
(`Observer` on WGS84, `CalcPlace` on the IERS 2003 ellipsoid), the identity
|
|
1239
|
+
of `./vedic`'s values (a copy through JSON or `structuredClone` is refused,
|
|
1240
|
+
although the types carry no brand), the three tables of sign rulers (one
|
|
1241
|
+
each in `./techniques`, `./timing` and `./vedic`, now kept equal by a test),
|
|
1242
|
+
and which return finder to use.
|
|
1243
|
+
- Sizes: the package is 982,086 bytes unpacked in 74 files, 35,737 more
|
|
1244
|
+
than rc.17's 946,349 in 70: 1,828 bytes (5.12 per cent of the growth) of
|
|
1245
|
+
the root's JavaScript, the reviews' checks and frozen tables; 4,607
|
|
1246
|
+
(12.89) of JavaScript that only the opt-in entry points load; 13,515
|
|
1247
|
+
(37.82) of declarations, most of it the documentation of the 1.0 API;
|
|
1248
|
+
15,683 (43.88) of documents, this entry above all; and 104 (0.29) of
|
|
1249
|
+
manifest. The owner approved raising the cap from 950,000 to 1,000,000 on
|
|
1250
|
+
2026-10-06, which leaves 1.82 per cent of headroom. Every entry is within
|
|
1251
|
+
its budget; `./geo`'s was raised from 35,000 to 35,500 with the same
|
|
1252
|
+
approval, for `ZoneHistoryNotLoadedError` and `calendarNote`'s checks, and
|
|
1253
|
+
its graph is 35,375 bytes, the tightest of all. The next are `./calc`,
|
|
1254
|
+
144,694 of 145,500; `./crossings`, 9,942 of 10,000; and `./vedic`, 127,184
|
|
1255
|
+
of 128,000.
|
|
1256
|
+
|
|
1257
|
+
Breaking changes, each with what to do:
|
|
1258
|
+
|
|
1259
|
+
- `./calc`: a Julian date's scale is `"utc"`, `"ut1"` or `"tt"`, the root's
|
|
1260
|
+
`TimeScaleName`; `"UTC"`, `"UT1"` and `"TT"` throw a RangeError that says
|
|
1261
|
+
so. Write the scale in lower case. (`./calc` came in rc.16, which is on npm
|
|
1262
|
+
under `next`.)
|
|
1263
|
+
- `./calc`: `houses()` takes `houseSystem`, as `chart()` and `natalChart()`
|
|
1264
|
+
do, and its receipt records `houseSystem`; `system` throws. Rename the
|
|
1265
|
+
field. A result's `requested` and `system` keep their names.
|
|
1266
|
+
- `./calc`: a receipt's schema is `zodiacs.calc-receipt.v1`, where rc.16 and
|
|
1267
|
+
rc.17 wrote `zodiacs.calc-receipt.draft-v1` with requests in their own
|
|
1268
|
+
vocabulary; a stored rc.16 or rc.17 request needs the two renames above
|
|
1269
|
+
before it is passed back.
|
|
1270
|
+
- `./calc`: a caller's ayanamsa from an epoch outside 1800 to 2200 but inside
|
|
1271
|
+
`EPHEMERIS_SPAN`, refused `out-of-range` in rc.17, is computed; beyond it,
|
|
1272
|
+
it is refused `epoch-out-of-range`, a new member of `CalcRefusal["reason"]`.
|
|
1273
|
+
Handle the new reason; `out-of-range` now means an instant only.
|
|
1274
|
+
- Options a function does not name now throw a RangeError instead of being
|
|
1275
|
+
ignored, so that a misspelling such as `timescale` is not a silently
|
|
1276
|
+
different answer: `ayanamsa`, `userAyanamsa`'s input and its `epoch`,
|
|
1277
|
+
`declareSiderealLongitude`'s declaration, the four dasha functions and the
|
|
1278
|
+
crossing searches' options. They also refuse what the techniques and timing
|
|
1279
|
+
entries already refused: options that are not a plain object (`null`, an
|
|
1280
|
+
array, a string, an instance of a class), an inherited key and a getter.
|
|
1281
|
+
Check the names, and pass a plain object or nothing. An option set to
|
|
1282
|
+
`undefined` still counts as absent, and the options types now say so
|
|
1283
|
+
(`| undefined`).
|
|
1284
|
+
- `userAyanamsa` refuses a bare-number `epoch`, which it read as epoch
|
|
1285
|
+
milliseconds although a Julian date was the likelier meaning. Pass
|
|
1286
|
+
`{ julianDateTT }`, a `Date` or an ISO string.
|
|
1287
|
+
- `davisonPlace` refuses a place outside latitudes −90 to 90 and longitudes
|
|
1288
|
+
−180 to 180 (rc.17 averaged it as given) and a convention it does not name
|
|
1289
|
+
(rc.17 used the great-circle midpoint). `calendarNote` refuses a date that
|
|
1290
|
+
is not a valid Gregorian YYYY-MM-DD, a calendar other than `"gregorian"`
|
|
1291
|
+
and `"julian"`, and a country that is not a nonempty string, which rc.17
|
|
1292
|
+
answered for.
|
|
1293
|
+
- `deltaT` and `deltaTAt` throw a RangeError for a UT that is not a finite
|
|
1294
|
+
number. rc.17 returned NaN for NaN and ±Infinity (`deltaTAt` a record with
|
|
1295
|
+
NaN seconds) and read anything else as a number, `null` as 0 and `"1"` as
|
|
1296
|
+
1. Pass a finite number.
|
|
1297
|
+
- The exported tables are frozen, and their declarations readonly:
|
|
1298
|
+
`ASPECTS` and its entries, `ASPECT_TYPES`, `SIGNS` and its entries,
|
|
1299
|
+
`SIGN_NAMES` (now the same array as `SIGN_SLUGS`), `ELEMENTS`,
|
|
1300
|
+
`MODALITIES`, `HOUSE_SYSTEMS`, `POLAR_UNDEFINED_HOUSE_SYSTEMS`, `LOTS`,
|
|
1301
|
+
`CALC_BODIES`, `CALC_AYANAMSAS` and `CALC_FRAMES`; `signForLongitude`
|
|
1302
|
+
returns, and `matchAspect`'s `definition` is, one of the frozen entries.
|
|
1303
|
+
Code that changed one throws in strict mode; copy it first. `ASPECT_BODIES`,
|
|
1304
|
+
a Set, cannot be frozen: it is now typed `ReadonlySet`, and the engine no
|
|
1305
|
+
longer reads it, so changing it changes nothing the engine computes.
|
|
1306
|
+
- Types only: `ENGINE_VERSION`, `EPHEMERIS.version`, `TZDB.version` and
|
|
1307
|
+
`TZDB.sha256` are typed `string`, `WINDOW_VERIFICATION` `string`, and
|
|
1308
|
+
`MAX_WINDOW_MS`, `WindowBudgetError.limit` and the techniques' search
|
|
1309
|
+
constants (`SOLAR_RETURN_*`, `LUNAR_RETURN_*`, `MOON_SIGN_MAX_SPAN_DAYS`,
|
|
1310
|
+
`VOID_OF_COURSE_MAX_DAYS`) `number`, so that a release can change them; the
|
|
1311
|
+
values are rc.17's. `CALC_FRAMES` is `readonly CalcFrame[]`. The birth
|
|
1312
|
+
window's result types and the sky's options are readonly. `vimshottariAt`'s
|
|
1313
|
+
`levels` is `1 | 2 | 3 | 4 | 5`. `NatalEnvelope["result"]` is
|
|
1314
|
+
`NatalRecordedResult`, and `NATAL_RECEIPT_CONVENTION_SETS` is
|
|
1315
|
+
`readonly NatalConventionSet[]`, newest first: take a set by its content,
|
|
1316
|
+
not by an index other than 0. `NatalReceipt.conventions` and `.coverage`
|
|
1317
|
+
are `NatalConventionSet` and `NatalCoverage`, records of strings, where
|
|
1318
|
+
rc.17 typed each set's literal values: compare them as strings.
|
|
1319
|
+
`NatalZoneTransition.cause` is `./geo`'s `TransitionCause`, the same three
|
|
1320
|
+
names. `AspectDefinition` and `SignDefinition` have readonly members, as do
|
|
1321
|
+
the inputs `CrossingSearchOptions`, `BirthWindowInput`, `WindowRounding` and
|
|
1322
|
+
`PlanetaryReturnOptions`: build such an object whole, or copy it, rather
|
|
1323
|
+
than assign to its fields. `houses()` and `chart()` take a `CalcLocation`,
|
|
1324
|
+
with no height, where rc.17 declared a `CalcPlace` whose height they
|
|
1325
|
+
refused.
|
|
1326
|
+
|
|
1327
|
+
Deprecated, each kept working at least until twelve months after 1.0.0 and
|
|
1328
|
+
removed only in a major release:
|
|
1329
|
+
|
|
1330
|
+
- `SIGN_NAMES`: it holds slugs (`"aries"`), not names. Use `SIGN_SLUGS`.
|
|
1331
|
+
- `ConfiguredAspectMotion`: use `AspectMotion`, the same type.
|
|
1332
|
+
- `PLACIDUS_POLAR_FALLBACK`: Koch falls back too. Use `POLAR_FALLBACK`.
|
|
1333
|
+
- `DECLINATION_ORB` and `DECLINATION_ORB_LUMINARY`: use
|
|
1334
|
+
`DEFAULT_DECLINATION_ORB_POLICY.orb` and `.luminaryOrb`, the same values.
|
|
1335
|
+
- `SIDEREAL_RATE` (`./houses`): use `SIDEREAL_TIME_RATE`, the same value.
|
|
1336
|
+
- `PlanetaryReturn` (`./techniques`): use `ReturnChart`, the same type;
|
|
1337
|
+
`./timing`'s `PlanetaryReturn` is another one.
|
|
1338
|
+
|
|
1339
|
+
Considered and left as they are: calc's `status: "ok"` (calc's own word for a
|
|
1340
|
+
computed request, beside `CalcRefusal`); calc is not experimental;
|
|
1341
|
+
`EPHEMERIS_SPAN.timeScale` stays `"TT"`; no brand types in 1.x; the three
|
|
1342
|
+
return finders stay, and the guides say which to use.
|
|
1343
|
+
|
|
1344
|
+
Migration: write calc's time scales in lower case and `houses()`'s
|
|
1345
|
+
`houseSystem`, in a stored calc request too before it is passed back; handle
|
|
1346
|
+
`epoch-out-of-range`; check option names and pass plain objects; give
|
|
1347
|
+
`userAyanamsa` an epoch that is not a bare number; give `davisonPlace` places
|
|
1348
|
+
in range, `calendarNote` a valid date, a named calendar and a country, and
|
|
1349
|
+
`deltaT` a finite number; copy any exported table before changing it, and do
|
|
1350
|
+
not change `ASPECT_BODIES` to change what the engine computes; in
|
|
1351
|
+
TypeScript, declare what you keep of a constant the *Types only* bullet lists
|
|
1352
|
+
(`ENGINE_VERSION`, `TZDB.version`, `WINDOW_VERIFICATION`, `MAX_WINDOW_MS` and
|
|
1353
|
+
the others) as its `string` or `number`, not rc.17's literal, and what you
|
|
1354
|
+
keep of a birth window's result as readonly (`readonly WindowChange[]`,
|
|
1355
|
+
`readonly WindowUnresolved[]`); and move off the seven deprecated names when
|
|
1356
|
+
convenient.
|
|
1357
|
+
|
|
1358
|
+
### Corrections
|
|
1359
|
+
|
|
1360
|
+
- `docs/time.md` called the flags `dst-gap` and `dst-fold` deprecated. They
|
|
1361
|
+
are permanent: stored receipts carry them and no other name replaces them.
|
|
1362
|
+
- `docs/timing-hellenistic.md`, *Limits*, described failures far from the
|
|
1363
|
+
present that cannot happen since rc.14 refuses instants outside
|
|
1364
|
+
`EPHEMERIS_SPAN`.
|
|
1365
|
+
- Three of rc.17's doc comments named a package where TypeScript reads a
|
|
1366
|
+
tag, which cut editors' hovers short; package names in comments are now in
|
|
1367
|
+
backticks.
|
|
1368
|
+
|
|
1369
|
+
## 0.1.1-rc.17 — unreleased candidate
|
|
1370
|
+
|
|
1371
|
+
rc.17 adds the sidereal zodiac to the calc entry (`@zodiacs/engine/calc`), on
|
|
1372
|
+
rc.16 (main at `23660f5`, the merge of zodiacs-org/engine#25). In rc.16 its
|
|
1373
|
+
four functions refused `zodiac: { sidereal }` with `not-in-this-version`,
|
|
1374
|
+
though the entry's own map of Swiss Ephemeris's `calc_ut` flags typed the
|
|
1375
|
+
option in and `@zodiacs/engine/vedic` computed sidereal longitudes. Tropical
|
|
1376
|
+
values are rc.16's: the root entry and eleven others build to rc.16's files
|
|
1377
|
+
but for the version's value and the hashed chunk names that follow from it,
|
|
1378
|
+
calc's tropical round-trip values are unchanged, and so are the conformance
|
|
1379
|
+
suite's 500 verdicts and values. rc.17 is not to be published on npm: under
|
|
1380
|
+
the owner's decision of 2026-10-05 the next publication is the 1.0
|
|
1381
|
+
candidate. Checks: `docs/evidence/calc-sidereal-2026-10-05/` and
|
|
1382
|
+
`docs/evidence/rc17-20261005/`.
|
|
1383
|
+
|
|
1384
|
+
- `calc()`, `houses()`, `events()` and `chart()` take `zodiac: { sidereal }`
|
|
1385
|
+
with one of the nine built-in ayanamsas by name, or a caller's own,
|
|
1386
|
+
`{ name?, epoch, value, rate?, model? }` (`CalcUserAyanamsa`):
|
|
1387
|
+
`userAyanamsa` in JSON, and the counterpart of `SE_SIDM_USER`. A sidereal
|
|
1388
|
+
longitude is the longitude in the ecliptic of date less the ayanamsa, the
|
|
1389
|
+
true one in the true ecliptic of date and the mean one in the mean
|
|
1390
|
+
ecliptic of date, subtracted as `siderealLongitude()` subtracts it: with
|
|
1391
|
+
every other default, `calc()` gives `siderealChart()`'s longitudes to the
|
|
1392
|
+
bit. Speeds are the sidereal longitude's, and a cartesian position turns
|
|
1393
|
+
with it. `houses()` rebuilds whole-sign cusps from the sidereal
|
|
1394
|
+
ascendant's sign, as `siderealChart()` does; `events()` searches sidereal
|
|
1395
|
+
longitudes; `chart()` adds `sidereal`, `siderealChart()`'s longitudes as
|
|
1396
|
+
plain numbers.
|
|
1397
|
+
- Two new refusals: the sidereal zodiac in a frame other than the two
|
|
1398
|
+
ecliptics of date (`unsupported-combination`), and a caller's ayanamsa
|
|
1399
|
+
carried by precession from an epoch outside 1800 to 2200 (`out-of-range`).
|
|
1400
|
+
A malformed caller's ayanamsa throws a RangeError that names its field
|
|
1401
|
+
under `zodiac.sidereal`, an epoch whose TT falls outside the range of a
|
|
1402
|
+
Date among them.
|
|
1403
|
+
- `CalcPosition` and `HousesResult` gain `ayanamsa`, and `ChartResult` gains
|
|
1404
|
+
`sidereal`, whose own `ayanamsa` has the same shape; both are null in the
|
|
1405
|
+
tropical zodiac. That shape, `CalcAyanamsaValue`, is `{ name, mean,
|
|
1406
|
+
nutation, true, subtracted, bound }`, in the result's angular unit:
|
|
1407
|
+
`subtracted` says whether the true or the mean ayanamsa was subtracted, and
|
|
1408
|
+
`bound` is the mean ayanamsa's. Receipts name `zodiac:sidereal` and
|
|
1409
|
+
`ayanamsa:<name>`, or `ayanamsa:user-epoch` or `ayanamsa:user-linear`, and
|
|
1410
|
+
record a caller's ayanamsa with every default filled in.
|
|
1411
|
+
- In the sidereal zodiac each bound adds the ayanamsa's own: the largest
|
|
1412
|
+
difference of the engine's mean ayanamsa, and of its rate, from ERFA's
|
|
1413
|
+
construction of the same definition, over 2,333,979 comparisons: every
|
|
1414
|
+
star definition in every year from 1800 to 2199, densely around its pass
|
|
1415
|
+
by the Sun, and callers' ayanamsas at the ends of what calc accepts. That
|
|
1416
|
+
is 4.6 × 10⁻⁷″ and 1.6 × 10⁻⁷″ a day for epoch and linear definitions,
|
|
1417
|
+
the rate's the floor of a linear ayanamsa's own rounding; a speed adds a
|
|
1418
|
+
few tenths of a microarcsecond a day of rounding of its own, which no
|
|
1419
|
+
bound includes (`docs/calc.md`). For a star definition it depends on the
|
|
1420
|
+
star's angle from the Sun: 0.0013″ and 0.00039″ a day at 2° or more,
|
|
1421
|
+
0.0048″ and 0.026″ a day from 0.3° to 2°, and 0.058″ and 27″ a day within
|
|
1422
|
+
0.3°, where the star is on or beside the Sun's disc. The fixtures
|
|
1423
|
+
`src/fixtures/ayanamsa-rates.json` and
|
|
1424
|
+
`src/fixtures/ayanamsa-rates-dense.json`, which keep the years and callers
|
|
1425
|
+
that hold each band's largest differences, and `src/calc-sidereal.test.ts`
|
|
1426
|
+
hold the engine to them.
|
|
1427
|
+
- `@zodiacs/engine/vedic`: `ayanamsa()` now computes through an internal
|
|
1428
|
+
`ayanamsaAt`, which also gives a star definition's star's angle from the
|
|
1429
|
+
Sun. A linear ayanamsa is now its value at J2000.0, less whole turns, plus
|
|
1430
|
+
its rate times TT days since J2000.0. It was counted from its epoch, so
|
|
1431
|
+
that from an epoch far from the span its value ran to hundreds of
|
|
1432
|
+
thousands of degrees, whose rounding put up to 2 × 10⁻⁴″ a day into its
|
|
1433
|
+
rate at 3,600″ a year; and from a Julian date rebuilt from TT days, held
|
|
1434
|
+
near 2.4 million only to about 5 × 10⁻¹⁰ day, which put up to 2 × 10⁻⁶″ a
|
|
1435
|
+
day there. A linear ayanamsa moves by the rounding this removes: Raman's and
|
|
1436
|
+
Sri Yukteswar's by less than 10⁻¹³°, and a caller's by less than 10⁻¹²°
|
|
1437
|
+
from an epoch from 1800 to 2200 and by up to 8.6 × 10⁻¹¹° from an epoch at
|
|
1438
|
+
the end of a Date's range (`docs/evidence/rc17-20261005/`). Every epoch and
|
|
1439
|
+
star definition's value is rc.16's. `docs/vedic.md` corrects its agreement
|
|
1440
|
+
with ERFA: none of its first comparison's 164 was within 17° of the Sun,
|
|
1441
|
+
and near the Sun the engine and ERFA part by up to 0.058″.
|
|
1442
|
+
- The calc round-trip fixture gains twelve cases, among them its first four
|
|
1443
|
+
of `chart()`. Of its 25 earlier cases, the sidereal Moon, refused
|
|
1444
|
+
`not-in-this-version` in rc.16, is now computed; 15 gain `ayanamsa: null`;
|
|
1445
|
+
and every receipt names rc.17. The conformance results are regenerated: 267
|
|
1446
|
+
pass, 192 fail and 41 unsupported of 500, every verdict and value as in
|
|
1447
|
+
rc.16.
|
|
1448
|
+
- Sizes: the calc entry's import graph grows from 113,904 to 139,836 bytes,
|
|
1449
|
+
and its budget is raised from 115,000 to 145,500, because it now loads the
|
|
1450
|
+
ayanamsas, with their star catalogue and apparent places, and the sidereal
|
|
1451
|
+
charts, in a chunk it shares with `./vedic`. `./vedic`'s graph grows by
|
|
1452
|
+
1,508 bytes, to 123,639 of its 128,000. The package is 946,349 bytes
|
|
1453
|
+
unpacked in 70 files (rc.16: 923,282 in 69): of the 23,067 bytes it grows
|
|
1454
|
+
by, 9,844 are opt-in JavaScript, 4,618 declarations and 8,605 documents.
|
|
1455
|
+
That leaves 0.38 per cent of the cap of 950,000, which was not raised; a
|
|
1456
|
+
candidate that grows by more than about 3,600 bytes will need it raised, or
|
|
1457
|
+
the package trimmed.
|
|
1458
|
+
|
|
1459
|
+
Breaking changes:
|
|
1460
|
+
|
|
1461
|
+
- A calc request with `zodiac: { sidereal }`, refused `not-in-this-version`
|
|
1462
|
+
in rc.16, is now computed, or refused `unsupported-combination` in a frame
|
|
1463
|
+
outside the ecliptics of date. `not-in-this-version` now means only
|
|
1464
|
+
gravitational deflection.
|
|
1465
|
+
- Every `CalcPosition` and `HousesResult` has a new key, `ayanamsa`, and
|
|
1466
|
+
every `ChartResult` one, `sidereal`, null in the tropical zodiac. Code that
|
|
1467
|
+
compares a whole rc.16 result needs them; no tropical value changes.
|
|
1468
|
+
|
|
1469
|
+
Migration: expect the new keys, null in the tropical zodiac. A sidereal
|
|
1470
|
+
longitude that came from `siderealLongitude()` or `siderealChart()` in rc.16
|
|
1471
|
+
is the same number from calc in rc.17 with calc's other defaults: to the bit,
|
|
1472
|
+
but where a linear ayanamsa moved (above), by as much as it moved.
|
|
1473
|
+
|
|
1474
|
+
### Corrections
|
|
1475
|
+
|
|
1476
|
+
- rc.14's, rc.15's and rc.16's entries call each an unreleased candidate. They
|
|
1477
|
+
were published on npm afterwards: rc.14 and rc.15 on 2026-09-30, rc.16 on
|
|
1478
|
+
2026-10-01, and on 2026-10-05 `latest` was rc.15 and `next` rc.16
|
|
1479
|
+
(`docs/evidence/rc17-20261005/npm-view.txt`).
|
|
1480
|
+
|
|
3
1481
|
## 0.1.1-rc.16 — unreleased candidate
|
|
4
1482
|
|
|
5
1483
|
rc.16 brings six pieces of work onto rc.15 (main at `93ebae9`, the merge of
|