@zodiacs/engine 2.0.0-rc.3 → 2.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 +367 -0
- package/LICENSING.md +38 -13
- package/NOTICE +13 -5
- package/README.md +68 -35
- package/dist/calc.d.ts +62 -1
- package/dist/calc.js +791 -898
- package/dist/{chunk-PU4HNPRX.js → chunk-BPZVUBFC.js} +10 -4
- package/dist/{chunk-FXNA2TJM.js → chunk-HBC2ZX6N.js} +1 -1
- package/dist/{chunk-XINOD63H.js → chunk-JRMBVSRS.js} +1 -1
- package/dist/{chunk-QLQRN6RY.js → chunk-OWF2QKB4.js} +1 -1
- package/dist/{chunk-EEKVS6W7.js → chunk-RRZYCXWT.js} +6 -3
- package/dist/{chunk-TSS2SZWQ.js → chunk-U5P32ZD3.js} +34 -36
- package/dist/core.js +44 -40
- package/dist/crossings.js +1 -1
- package/dist/esm-only.cjs +3 -0
- package/dist/geo.js +1 -1
- package/dist/index.js +5 -5
- package/dist/internal-math.js +1 -1
- package/dist/internal.js +2 -2
- package/dist/receipt.js +1 -1
- package/dist/sky.js +3 -3
- package/dist/techniques.js +4 -4
- package/dist/timing.js +5 -5
- package/dist/vedic.js +5 -5
- package/dist/window.js +2 -2
- package/package.json +43 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,372 @@
|
|
|
1
1
|
# Engine changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.0 (cut 2026-11-23)
|
|
4
|
+
|
|
5
|
+
2.1.0 is 2.1.0-rc.1 with only the version changed. Station and lunation
|
|
6
|
+
search are available from `@zodiacs/engine/calc`.
|
|
7
|
+
|
|
8
|
+
## 2.1.0-rc.1
|
|
9
|
+
|
|
10
|
+
`@zodiacs/engine/calc` adds `searchStations()` and `searchLunations()`.
|
|
11
|
+
`events()` keeps its 2.0.0 contract. Chain rounded (from, to] TT windows
|
|
12
|
+
on the same ephemeris name and version. Exhausting `maxSamples` refuses
|
|
13
|
+
the whole search. Events report source and fallback flags, UTC and UT1
|
|
14
|
+
clock bands, and a local TT timing estimate. In L4, DE440 passes all 30
|
|
15
|
+
stations and 40 new or full Moons. Astronomy-engine passes 30 and 21.
|
|
16
|
+
Two-second quarter timing and stations beyond Saturn lack span-wide
|
|
17
|
+
verification. [Guide and evidence](docs/calc.md#station-and-lunation-search)
|
|
18
|
+
|
|
19
|
+
## 2.0.0 (cut 2026-11-21)
|
|
20
|
+
|
|
21
|
+
A major release: 2.0.0-rc.6 with the version changed, cut on 2026-11-21.
|
|
22
|
+
Checks: `docs/evidence/2.0.0-20261121/`. Callers moving from 1.1.0 should
|
|
23
|
+
read `docs/migrating-to-2.md` (held by `src/migration-2.0.test.ts`).
|
|
24
|
+
|
|
25
|
+
- **No code or value changes from 2.0.0-rc.6.** The only change under `src/`
|
|
26
|
+
is the version string (`ENGINE_VERSION`, the two tests and the fixture that
|
|
27
|
+
hold it), and `dist/` is 2.0.0-rc.6's but for that string
|
|
28
|
+
(`docs/evidence/2.0.0-20261121/results/dist-vs-rc6.txt`, 95 files).
|
|
29
|
+
- **What 2.0.0 is over 1.1.0.** The entries below, 2.0.0-rc.1 to 2.0.0-rc.6,
|
|
30
|
+
are its history:
|
|
31
|
+
- **Input refusals (breaking):** a birth given as a calendar date with no
|
|
32
|
+
time is refused unless `timeKnown` is `false` (2.0.0-rc.1); common
|
|
33
|
+
near-miss birth keys such as `lat`, `lng`, `houses` and `scale` are
|
|
34
|
+
refused instead of ignored (2.0.0-rc.3).
|
|
35
|
+
- **UTC after 2027-10-02:** unpinned UTC input after the shipped IERS UT1
|
|
36
|
+
table uses the continuous-UTC rule, `TT = UTC + 69.184 s`, with
|
|
37
|
+
`TimeScale.basis: "continuous-utc"` and `ut1MinusUtc.source: "model"`
|
|
38
|
+
(2.0.0-rc.3).
|
|
39
|
+
- **Zone histories before 1970:** updated from tzdata 2025c to tzdata 2026f
|
|
40
|
+
with `America/Yellowknife` held at 2025c by the owner's decision
|
|
41
|
+
(2.0.0-rc.3).
|
|
42
|
+
- **Flags:** three new `ChartFlag` values (`polar-angles` and
|
|
43
|
+
`calendar-unknown` in 2.0.0-rc.1; `host-zone-data-differs` in 2.0.0-rc.3,
|
|
44
|
+
with tzdata 2025c added beside 2021a as a host-probe baseline in
|
|
45
|
+
2.0.0-rc.6 across 705 spans in 77 names), plus `flags` on `positions()`
|
|
46
|
+
rows (2.0.0-rc.1).
|
|
47
|
+
- **New entry and geo helpers:** `@zodiacs/engine/core` (the root API
|
|
48
|
+
without the DE440 pack, 2.0.0-rc.3), and `julianDayNumber`,
|
|
49
|
+
`dateOfJulianDayNumber` and `localMeanTimeOffset` in `@zodiacs/engine/geo`
|
|
50
|
+
(2.0.0-rc.3).
|
|
51
|
+
- **Errors:** `require()` of any entry point throws `ERR_ZODIACS_ESM_ONLY`
|
|
52
|
+
(2.0.0-rc.4), and an unknown body name throws `RangeError` on every
|
|
53
|
+
source including root crossing searches (2.0.0-rc.4, 2.0.0-rc.5).
|
|
54
|
+
- **Nothing deprecated is removed.** All seven `@deprecated` names remain:
|
|
55
|
+
`docs/versioning.md` requires twelve months after the deprecating release,
|
|
56
|
+
and 1.0.0 is from 2026-10-11.
|
|
57
|
+
- **Records.** 2.0.0 reads every natal record written by 0.1.1-rc.7 through
|
|
58
|
+
2.0.0-rc.6 (`docs/evidence/records-2.0.0-20261120/`). 1.1.0 refuses
|
|
59
|
+
2.0.0's continuous-UTC records as `unsupported_feature`; 2.0.0-rc.3 and
|
|
60
|
+
2.0.0-rc.6 read 2.0.0's envelopes
|
|
61
|
+
(`docs/evidence/2.0.0-20261121/results/earlier-readers.json`).
|
|
62
|
+
- **Conformance.** Measured on this build with Node 22.22.2 against suite
|
|
63
|
+
0.3.0 (640 vectors; `conformance/RESULTS.md`,
|
|
64
|
+
`conformance/results/zodiacs-engine.json`,
|
|
65
|
+
`conformance/results/zodiacs-engine-astronomy-engine.json`): default DE440
|
|
66
|
+
source **569 pass, 0 fail, 71 unsupported, 0 error** (L1 240/240, L2
|
|
67
|
+
150/150, L3 109/110 with 1 unsupported, L4 70/140 with 70 unsupported);
|
|
68
|
+
`astronomy-engine` 2.1.19 fallback **341 pass, 228 fail, 71 unsupported, 0
|
|
69
|
+
error** (L1 48 pass / 192 fail, L2 150/150, L3 109/110 with 1 unsupported,
|
|
70
|
+
L4 34 pass / 36 fail / 70 unsupported). Every verdict equals 2.0.0-rc.6's.
|
|
71
|
+
The 71 unsupported vectors are 1 leap-second instant in L3, 30 stations in
|
|
72
|
+
L4 and 40 lunations in L4 (the engine has no public station or lunation
|
|
73
|
+
search API).
|
|
74
|
+
- **Runtimes.** Measured on this build across six runtimes on Linux x64
|
|
75
|
+
(`docs/evidence/runtime-conformance-2.0.0-20261121/`, suite 0.3.0): all 569
|
|
76
|
+
supported verdicts on both root and `@zodiacs/engine/core` agree with Node
|
|
77
|
+
22.22.2 in Bun 1.4.4, Deno 2.9.6, Chromium 156.0.8078.4, Firefox 157.0 and
|
|
78
|
+
WebKit 27.2 (verdict counts equal 2.0.0-rc.6's). Outputs are not
|
|
79
|
+
bit-identical in every runtime (root: 458 of 569 identical to Node in Bun,
|
|
80
|
+
Deno, Chromium and WebKit, 569 of 569 in Firefox; core: 468 in Bun and
|
|
81
|
+
WebKit, 485 in Deno and Chromium, 540 in Firefox), and synthetic receipt
|
|
82
|
+
digests differ from Node's where outputs differ.
|
|
83
|
+
- **Licence.** Ships with the four open licence questions noted (IERS EOP 20
|
|
84
|
+
C04, CDS commercial use, Reid and Brunthaler, and ESA's non-commercial
|
|
85
|
+
Hipparcos terms as a fourth), per the owner's decision of 2026-11-20 11:16
|
|
86
|
+
Asia/Bangkok (`LICENSING.md`, `NOTICE`). No VSOP2013 series is shipped
|
|
87
|
+
(`docs/evidence/2.0.0-20261121/results/vsop2013-check.log`).
|
|
88
|
+
- **Sizes and cap.** Measured on this build
|
|
89
|
+
(`docs/evidence/2.0.0-20261121/results/package-contents.log`): all 20
|
|
90
|
+
entry-point import graphs remain inside their 2.0.0-rc.6 budgets (no entry
|
|
91
|
+
budget is raised). The package beside the DE440 pack is 1,462,688 bytes
|
|
92
|
+
unpacked in 101 files; `TOTAL_CAP` is raised from 1,459,000 to 1,463,000
|
|
93
|
+
(rounded up to the next 1,000 bytes), approved under the owner's delegation
|
|
94
|
+
of 2026-11-21 15:06 Asia/Bangkok (`scripts/verify-package-contents.mjs`).
|
|
95
|
+
|
|
96
|
+
## 2.0.0-rc.6 (candidate, cut 2026-11-21)
|
|
97
|
+
|
|
98
|
+
The sixth candidate for **2.0.0**, a major release, on 2.0.0-rc.5 (main at
|
|
99
|
+
`ed8be41`, after pull request 140), merging pull request 128 (`f8a7e7e`) with
|
|
100
|
+
a merge commit. A candidate is published only by the owner;
|
|
101
|
+
`artifacts/README.md` in the repository records what happened to it. Callers
|
|
102
|
+
moving from 1.1.0 should read `docs/migrating-to-2.md`. Everything earlier
|
|
103
|
+
2.0.0 candidate entries say holds for rc.6 except where this entry says
|
|
104
|
+
otherwise.
|
|
105
|
+
|
|
106
|
+
### Fixed
|
|
107
|
+
|
|
108
|
+
- **Host time zone probe table (pull request 128, ZOD-340).** Adds IANA
|
|
109
|
+
tzdata 2025c (SHA-256
|
|
110
|
+
`4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957`) as a
|
|
111
|
+
second baseline beside tzdata 2021a when comparing against tzdata 2026f.
|
|
112
|
+
The compiled probe table in `src/geo/host-probes-data.ts` now holds 705
|
|
113
|
+
spans across 77 zone names (up from 703 spans in 77 names, +9 bytes in
|
|
114
|
+
`dist/geo.js`), adding the 1979-05-25T20:30Z to 1979-05-26T20:30Z span for
|
|
115
|
+
`Asia/Tehran` and its link `Iran`, where tzdata 2025c gives UTC+03:30 and
|
|
116
|
+
both 2021a and 2026f give UTC+04:30. A host on tzdata 2025c (including Node
|
|
117
|
+
22.22.2, ICU 78.2) is now flagged `host-zone-data-differs` at 1979-05-26
|
|
118
|
+
12:00 in both names instead of passing unchecked. Held by
|
|
119
|
+
`src/geo/host-zone-check.test.ts` and
|
|
120
|
+
`docs/evidence/host-zone-probes-20261118/`.
|
|
121
|
+
|
|
122
|
+
### Documentation
|
|
123
|
+
|
|
124
|
+
- `LICENSING.md` and `NOTICE` (ZOD-341, pull requests 138 and 139): name
|
|
125
|
+
tzdata 2021a, 2025c and 2026f with their SHA-256 digests as the probe
|
|
126
|
+
table's sources; credit ESA (`Credit: ESA`) for the Hipparcos observations
|
|
127
|
+
behind VizieR I/311; and record the owner's 2026-11-20 11:16 Asia/Bangkok
|
|
128
|
+
decision to ship 2.0.0 with the four open licence questions noted (IERS EOP
|
|
129
|
+
20 C04, CDS commercial use, Reid and Brunthaler, and ESA's non-commercial
|
|
130
|
+
Hipparcos terms as a fourth).
|
|
131
|
+
- `README.md`: updates the public entry-point count to eighteen (with
|
|
132
|
+
`@zodiacs/engine/core`), updates the Node 20 line from "a 1.x minor release"
|
|
133
|
+
to "a 2.x minor release", updates the host-probe descriptions to name both
|
|
134
|
+
tzdata 2021a and 2025c, points callers moving from 1.1.0 to
|
|
135
|
+
`docs/migrating-to-2.md`, and adds a summary of six-runtime conformance.
|
|
136
|
+
The span ends were measured again on this build (`span-ends.mjs`:
|
|
137
|
+
`natalChart` last UTC 3998-09-03T05:58:50.816Z, `calc` last UTC
|
|
138
|
+
2199-12-31T23:58:50.815Z). Bundle sizes remain 2.0.0-rc.3's and say so.
|
|
139
|
+
- Unpacked repository documentation updated before this cut (not packed):
|
|
140
|
+
`docs/migrating-to-2.md` with per-break tests in `src/migration-2.0.test.ts`
|
|
141
|
+
(ZOD-338, pull request 133), `docs/versioning.md`, `SECURITY.md`,
|
|
142
|
+
`artifacts/README.md` and `tools/cli/README.md` for 2.x (ZOD-342, pull
|
|
143
|
+
request 137), records-across-the-major evidence in
|
|
144
|
+
`docs/evidence/records-2.0.0-20261120/` (ZOD-337, pull request 132), and
|
|
145
|
+
draft v1.1.0 release notes and tag commands in `docs/releases/` (ZOD-343
|
|
146
|
+
Part A, pull request 135).
|
|
147
|
+
|
|
148
|
+
### Conformance
|
|
149
|
+
|
|
150
|
+
- Regenerated on this build with Node 22.22.2 against conformance suite 0.3.0
|
|
151
|
+
(640 vectors; `conformance/RESULTS.md`,
|
|
152
|
+
`conformance/results/zodiacs-engine.json`,
|
|
153
|
+
`conformance/results/zodiacs-engine-astronomy-engine.json`):
|
|
154
|
+
- Default source (shipped DE440 pack): **569 pass, 0 fail, 71 unsupported,
|
|
155
|
+
0 error** (L1 240/240, L2 150/150, L3 109/110 with 1 unsupported, L4
|
|
156
|
+
70/140 with 70 unsupported). Every verdict matches `main`.
|
|
157
|
+
- Fallback source (`astronomy-engine` 2.1.19): **341 pass, 228 fail, 71
|
|
158
|
+
unsupported, 0 error** (L1 48 pass / 192 fail, L2 150/150, L3 109/110
|
|
159
|
+
with 1 unsupported, L4 34 pass / 36 fail / 70 unsupported). Every verdict
|
|
160
|
+
matches `main`.
|
|
161
|
+
- The 71 unsupported vectors are 1 leap-second instant in L3 (not
|
|
162
|
+
expressible as a JavaScript Date), 30 station vectors in L4 and 40
|
|
163
|
+
lunation vectors in L4: the engine has no public station or lunation
|
|
164
|
+
search API.
|
|
165
|
+
|
|
166
|
+
### Runtimes
|
|
167
|
+
|
|
168
|
+
- Measured on this candidate's build across six runtimes on Linux x64
|
|
169
|
+
(`docs/evidence/runtime-conformance-20261121/`, suite 0.3.0): all 569
|
|
170
|
+
supported verdicts on both root and `@zodiacs/engine/core` agreed with Node
|
|
171
|
+
22.22.2 in Bun 1.4.4, Deno 2.9.6, Chromium 156.0.8078.4, Firefox 157.0 and
|
|
172
|
+
WebKit 27.2 (71 unsupported: 1 leap second, 30 stations, 40 lunations).
|
|
173
|
+
Outputs are not bit-identical in every runtime (root: 458 of 569 identical
|
|
174
|
+
to Node in Bun, Deno, Chromium and WebKit, 569 of 569 in Firefox; core: 468
|
|
175
|
+
in Bun and WebKit, 485 in Deno and Chromium, 540 in Firefox), and synthetic
|
|
176
|
+
receipt digests differ from Node's where outputs differ.
|
|
177
|
+
|
|
178
|
+
### Corrections
|
|
179
|
+
|
|
180
|
+
Carried from `docs/changelog-corrections.md` (item 18; items 15 to 17 were
|
|
181
|
+
carried into 2.0.0-rc.4's `### Corrections`). The 2.0.0-rc.3 entry is left as
|
|
182
|
+
written.
|
|
183
|
+
|
|
184
|
+
- 2.0.0-rc.3, `CHANGELOG.md` lines 44 to 45 ("each nearby span in which
|
|
185
|
+
tzdata 2021a and 2026f differ (703 spans in 77 names)") and lines 118 to
|
|
186
|
+
119 ("the host-probe table compares tzdata 2021a with 2026f"): pull request
|
|
187
|
+
128 adds tzdata 2025c beside 2021a (705 spans in 77 names), flagging a
|
|
188
|
+
2025c host at `Asia/Tehran` and `Iran` on 1979-05-26
|
|
189
|
+
(`docs/evidence/host-zone-probes-20261118/README.md`). `README.md`,
|
|
190
|
+
`NOTICE` and `LICENSING.md` are updated in this candidate.
|
|
191
|
+
|
|
192
|
+
### Sizes and budgets
|
|
193
|
+
|
|
194
|
+
- Measured on this candidate's build
|
|
195
|
+
(`docs/evidence/2.0.0-rc.6-20261121/results/package-contents.log`): all 20
|
|
196
|
+
entry-point import graphs remain inside their 2.0.0-rc.5 budgets (`./geo`
|
|
197
|
+
grew by 9 bytes, from 47,715 to 47,724 of 47,800, for pull request 128's
|
|
198
|
+
Tehran probe). The package beside the DE440 pack is 1,458,962 bytes
|
|
199
|
+
unpacked in 101 files, over the 2.0.0-rc.5 cap of 1,450,000 because of this
|
|
200
|
+
entry, the README updates, `LICENSING.md`, `NOTICE` and the 9-byte probe
|
|
201
|
+
addition. Cap raised to 1,459,000 (the measurement rounded up to the next
|
|
202
|
+
1,000 bytes), for the owner to decide with this candidate
|
|
203
|
+
(`scripts/verify-package-contents.mjs`).
|
|
204
|
+
|
|
205
|
+
## 2.0.0-rc.5 (unreleased candidate)
|
|
206
|
+
|
|
207
|
+
The fifth candidate for **2.0.0**, a major release, on 2.0.0-rc.4 (pull
|
|
208
|
+
request 140, after the rc.4 source commit `4c2bd2c` and the unknown-body
|
|
209
|
+
crossing fix `11960941d`). It is not to be published on npm until the
|
|
210
|
+
owner approves it.
|
|
211
|
+
|
|
212
|
+
rc.4's archive is carried; the crossing fix reaches `dist/`, so by the
|
|
213
|
+
rule in `artifacts/README.md` the package takes a new number and rc.4's
|
|
214
|
+
archive stays, unchanged. The owner approved this candidate on 21 November
|
|
215
|
+
2026. Everything rc.4's entry says holds for rc.5 except where this entry
|
|
216
|
+
says otherwise.
|
|
217
|
+
|
|
218
|
+
### Changed
|
|
219
|
+
|
|
220
|
+
- `searchLongitudeCrossings` and `findLongitudeCrossings` refuse a name
|
|
221
|
+
that is not a body with `RangeError("Unknown body: <name>")` before
|
|
222
|
+
they search, by calling `assertKnownBody` (exported from
|
|
223
|
+
`src/ephemeris.ts`, the check `longitudeOn` and `speedAt` already run).
|
|
224
|
+
Up to rc.4, the wrappers refused the name only when the solver asked a
|
|
225
|
+
longitude, so a zero-length window returned an empty result and a
|
|
226
|
+
search over its sample budget returned the refusal. A known body on
|
|
227
|
+
those same windows is unchanged: a zero-length window is complete and
|
|
228
|
+
empty, and a search over its sample budget is refused for
|
|
229
|
+
`sample-budget`. The DE440 entry's own unknown-body stays a
|
|
230
|
+
`De440Error`. Held by `src/ephemeris-unknown-body.test.ts`. The source
|
|
231
|
+
commit of the fix is `11960941d`.
|
|
232
|
+
|
|
233
|
+
### Documentation
|
|
234
|
+
|
|
235
|
+
- README.md: this candidate's paragraph, archive and install path. The
|
|
236
|
+
span's ends and the README's bundle sizes were not measured again;
|
|
237
|
+
they remain rc.4's and rc.3's respectively, and say so.
|
|
238
|
+
|
|
239
|
+
### Sizes and budgets
|
|
240
|
+
|
|
241
|
+
- Measured on this candidate's build, seven import graphs were over their
|
|
242
|
+
budgets, each by the crossing-search body check (`assertKnownBody` in
|
|
243
|
+
the root wrappers, and its export). Each budget is raised to the
|
|
244
|
+
measurement, rounded up to the next 100 bytes, and no further (old
|
|
245
|
+
budget, rc.4's measurement, this candidate's, new budget):
|
|
246
|
+
|
|
247
|
+
| Entry | Old budget | rc.4 | rc.5 | New budget | Why |
|
|
248
|
+
| --- | ---: | ---: | ---: | ---: | --- |
|
|
249
|
+
| `.` | 154,400 | 154,316 | 154,422 | 154,500 | the crossing-search body check (106) |
|
|
250
|
+
| `./calc` | 205,500 | 205,477 | 205,514 | 205,600 | the crossing-search body check (37) |
|
|
251
|
+
| `./sky` | 140,000 | 139,978 | 140,015 | 140,100 | the crossing-search body check (37) |
|
|
252
|
+
| `./techniques` | 207,800 | 207,704 | 207,810 | 207,900 | the crossing-search body check (106) |
|
|
253
|
+
| `./timing` | 173,700 | 173,619 | 173,725 | 173,800 | the crossing-search body check (106) |
|
|
254
|
+
| `./vedic` | 189,400 | 189,351 | 189,457 | 189,500 | the crossing-search body check (106) |
|
|
255
|
+
| `./window` | 152,900 | 152,874 | 152,911 | 153,000 | the crossing-search body check (37) |
|
|
256
|
+
|
|
257
|
+
Every other graph is inside its budget, unchanged (`./internal`
|
|
258
|
+
112,561 of 112,600; `./core` 110,976 of 111,000). The package beside
|
|
259
|
+
the pack is 1,449,915 bytes unpacked in 101 files, over the cap of
|
|
260
|
+
1,446,200: the body check, this entry and the README's lines. Raised
|
|
261
|
+
to 1,450,000, the measurement rounded up to the next 100 bytes. The
|
|
262
|
+
budgets and the cap are for the owner to decide with the candidate
|
|
263
|
+
(`scripts/verify-package-contents.mjs`).
|
|
264
|
+
|
|
265
|
+
## 2.0.0-rc.4 (unreleased candidate)
|
|
266
|
+
|
|
267
|
+
The fourth candidate for **2.0.0**, a major release, on 2.0.0-rc.3 (main at
|
|
268
|
+
`900455f`, after pull request 139), with three fixes. It is not to be
|
|
269
|
+
published on npm until the owner approves it. Checks:
|
|
270
|
+
`docs/evidence/2.0.0-rc.4-20261120/`.
|
|
271
|
+
|
|
272
|
+
rc.3's archive is carried, and npm has carried rc.3 under `next` since
|
|
273
|
+
2026-11-17 (not tagged); these fixes reach `dist/` and the packed README, so
|
|
274
|
+
by the rule in `artifacts/README.md` the package takes a new number and
|
|
275
|
+
rc.3's archive stays, unchanged. The owner approved the fixes and this
|
|
276
|
+
candidate on 20 November 2026. Everything rc.1's, rc.2's and rc.3's entries
|
|
277
|
+
say holds for rc.4 except where this entry says otherwise.
|
|
278
|
+
|
|
279
|
+
### Changed
|
|
280
|
+
|
|
281
|
+
- `require()` of `@zodiacs/engine` or of any of its entry points throws an
|
|
282
|
+
`Error` with code `ERR_ZODIACS_ESM_ONLY`, whose message says to use
|
|
283
|
+
`import`, or `await import("@zodiacs/engine")` from CommonJS. Up to rc.3
|
|
284
|
+
Node threw its own `ERR_PACKAGE_PATH_NOT_EXPORTED` ("No "exports" main
|
|
285
|
+
defined"). Each of the 20 entries in `exports` gains a `"require"`
|
|
286
|
+
condition, after `"import"`, that points at `dist/esm-only.cjs`, a file
|
|
287
|
+
that throws that error and does nothing else; `files` packs it. There is
|
|
288
|
+
still no CommonJS build and no `"default"` condition. A tool that resolves
|
|
289
|
+
with the `require` condition (Jest in CommonJS mode, a bundler compiling
|
|
290
|
+
`require()` calls) now gets this error in place of Node's: both fail, and
|
|
291
|
+
this one says what to do. Held by `scripts/esm-only.test.mjs`, the export
|
|
292
|
+
smoke test and the packed-consumer check, which requires every entry point
|
|
293
|
+
from CommonJS and loads the package with `import()` from CommonJS.
|
|
294
|
+
- A name that is not a body is a `RangeError` on the default source. The
|
|
295
|
+
root refuses it with `RangeError("Unknown body: <name>")` before any
|
|
296
|
+
source is asked, in `searchLongitudeCrossings` and
|
|
297
|
+
`findLongitudeCrossings`, and in `./internal`'s `bodyLongitude`,
|
|
298
|
+
`longitudeSpeed` and their `...Detailed` forms, whether the source is the
|
|
299
|
+
shipped DE440 pack, astronomy-engine or a caller's pack given with
|
|
300
|
+
`withEphemeris`. Up to rc.3, on the default source, the DE440 reader's
|
|
301
|
+
`De440Error` (code `unknown-body`) reached the caller, which a caller that
|
|
302
|
+
catches only `RangeError` did not catch; nothing was computed either way.
|
|
303
|
+
`@zodiacs/engine/de440`'s own source keeps `De440Error` for a body it does
|
|
304
|
+
not place. Held by `src/ephemeris-unknown-body.test.ts`; the adversarial
|
|
305
|
+
case BAD-56 now expects `RangeError`.
|
|
306
|
+
|
|
307
|
+
### Documentation
|
|
308
|
+
|
|
309
|
+
- README.md: the *Configurable aspects* and *Declinations and parallels*
|
|
310
|
+
examples import `natalChart` and build their own chart, so they run as
|
|
311
|
+
pasted; `src/readme-snippets.test.ts` runs both. The install notes say
|
|
312
|
+
what `require()` does. This candidate's paragraph, archive and evidence
|
|
313
|
+
folder. The span's ends were measured again on this build with
|
|
314
|
+
`docs/evidence/continuous-utc-20261117/span-ends.mjs` and are the same to
|
|
315
|
+
the millisecond as on rc.3 (natalChart's last UTC
|
|
316
|
+
3998-09-03T05:58:50.816Z, calc's 2199-12-31T23:58:50.815Z;
|
|
317
|
+
`docs/evidence/2.0.0-rc.4-20261120/results/span-ends.json`).
|
|
318
|
+
- The README's bundle sizes are rc.3's, measured on rc.3's archive, and say
|
|
319
|
+
so; they were not measured again for this candidate.
|
|
320
|
+
|
|
321
|
+
### Corrections
|
|
322
|
+
|
|
323
|
+
Carried from `docs/changelog-corrections.md` (items 15 to 17). The entries
|
|
324
|
+
they correct are left as written.
|
|
325
|
+
|
|
326
|
+
- 2.0.0-rc.3, the heading "unreleased candidate" and "It is a draft for the
|
|
327
|
+
owner's review": rc.3 was published to npm on 2026-11-17 under `next`,
|
|
328
|
+
with 1.1.0 still under `latest`; it has no git tag and no GitHub release
|
|
329
|
+
(`docs/evidence/changelog-corrections-20261118/records.md`). True when
|
|
330
|
+
written. The rest of that sentence, "and is not to be published on npm
|
|
331
|
+
until the owner approves it", stands. The README's rc.3 paragraph said
|
|
332
|
+
the same ("is a draft for the owner's review and is not published to
|
|
333
|
+
npm"); this candidate's paragraph replaces it.
|
|
334
|
+
- 2.0.0-rc.3, pull request 121 (`@zodiacs/engine/core`): "the root is
|
|
335
|
+
unchanged". The root's results, names and types are unchanged; its import
|
|
336
|
+
graph grew by 109 bytes because the shared ephemeris chunk grew by that
|
|
337
|
+
amount, as the same entry's size table says for `.`, `./calc`,
|
|
338
|
+
`./internal`, `./sky`, `./timing`, `./vedic` and `./window`.
|
|
339
|
+
|
|
340
|
+
### Sizes and budgets
|
|
341
|
+
|
|
342
|
+
- Measured on this candidate's build
|
|
343
|
+
(`docs/evidence/2.0.0-rc.4-20261120/results/package-contents.log`), nine
|
|
344
|
+
import graphs were over their budgets, each by the 143 bytes the body
|
|
345
|
+
check adds to every graph that holds `src/ephemeris.ts`; the root had 27
|
|
346
|
+
bytes to spare. Each budget is raised to the measurement, rounded up to
|
|
347
|
+
the next 100 bytes, and no further (old budget, rc.3's measurement, this
|
|
348
|
+
candidate's, new budget):
|
|
349
|
+
|
|
350
|
+
| Entry | Old budget | rc.3 | rc.4 | New budget | Why |
|
|
351
|
+
| --- | ---: | ---: | ---: | ---: | --- |
|
|
352
|
+
| `.` | 154,200 | 154,173 | 154,316 | 154,400 | the body check (143) |
|
|
353
|
+
| `./calc` | 205,400 | 205,334 | 205,477 | 205,500 | the body check (143) |
|
|
354
|
+
| `./core` | 110,800 | 110,765 | 110,908 | 111,000 | the body check (143) |
|
|
355
|
+
| `./internal` | 112,400 | 112,381 | 112,524 | 112,600 | the body check (143) |
|
|
356
|
+
| `./sky` | 139,900 | 139,835 | 139,978 | 140,000 | the body check (143) |
|
|
357
|
+
| `./techniques` | 207,600 | 207,561 | 207,704 | 207,800 | the body check (143) |
|
|
358
|
+
| `./timing` | 173,500 | 173,476 | 173,619 | 173,700 | the body check (143) |
|
|
359
|
+
| `./vedic` | 189,300 | 189,208 | 189,351 | 189,400 | the body check (143) |
|
|
360
|
+
| `./window` | 152,800 | 152,731 | 152,874 | 152,900 | the body check (143) |
|
|
361
|
+
|
|
362
|
+
Every other graph is inside its budget, unchanged. The package beside the
|
|
363
|
+
pack is 1,446,177 bytes unpacked in 101 files, over the cap of 1,438,000:
|
|
364
|
+
the body check, `dist/esm-only.cjs`, the 20 `"require"` conditions in
|
|
365
|
+
`package.json`, this entry and the README's lines. Raised to 1,446,200,
|
|
366
|
+
the measurement rounded up to the next 100 bytes. The budgets and the cap
|
|
367
|
+
are for the owner to decide with the candidate
|
|
368
|
+
(`scripts/verify-package-contents.mjs`).
|
|
369
|
+
|
|
3
370
|
## 2.0.0-rc.3 (unreleased candidate)
|
|
4
371
|
|
|
5
372
|
The third candidate for **2.0.0**, a major release, on 2.0.0-rc.2 (main at
|
package/LICENSING.md
CHANGED
|
@@ -8,15 +8,20 @@ NAIF's rules permit redistributing its kernels unmodified but do not speak of
|
|
|
8
8
|
data refitted from one, so shipping the pack rests on the owner's reading and
|
|
9
9
|
not on a statement of JPL's or NAIF's. On 2026-11-16 the owner answered, in
|
|
10
10
|
writing, the question "Do you accept shipping the NASA DE440 data in 1.1.0?"
|
|
11
|
-
with "Yes. I delegate these decisions to you." (*DE440 pack*).
|
|
12
|
-
questions are left open for the owner
|
|
13
|
-
|
|
14
|
-
repository carries
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
with "Yes. I delegate these decisions to you." (*DE440 pack*). Four
|
|
12
|
+
questions are left open for the owner. As they were at 1.1.0, the terms for
|
|
13
|
+
IERS EOP 20 C04 redistribution remain unconfirmed for both the 367 rows the
|
|
14
|
+
repository carries and the values the package derives from them (*IERS
|
|
15
|
+
data*), the CDS's terms leave commercial use of the 20 star values it
|
|
16
|
+
supplies unresolved, and no terms were read for the two values from Reid
|
|
17
|
+
and Brunthaler. The fourth question is whether ESA's non-commercial
|
|
18
|
+
terms reach the 15 values from the Hipparcos new reduction through VizieR
|
|
19
|
+
(*Timing and Vedic values*). On 2026-11-20 at 10:37 Asia/Bangkok, the owner
|
|
20
|
+
answered "Re-accept the licence questions and add Hipparcos as a 4th."
|
|
21
|
+
The decision record gives the superseding answer at 11:16 Asia/Bangkok:
|
|
22
|
+
"ship 2.0.0 with the open licence questions NOTED, not settled and NOT
|
|
23
|
+
recorded as re-accepted: IERS, CDS, Reid and Brunthaler, plus ESA's
|
|
24
|
+
non-commercial Hipparcos terms noted as a fourth."
|
|
20
25
|
|
|
21
26
|
SPDX licence expression: `MIT AND CC-BY-4.0`. The code is MIT (`LICENSE`). The
|
|
22
27
|
package's ΔT module, exported as `@zodiacs/engine/deltat`, carries 32 values
|
|
@@ -337,10 +342,17 @@ lines that define it, held there by the owner's decision and committed in
|
|
|
337
342
|
`scripts/tzdb-held/yellowknife-2025c.zi`, whose SHA-256 the script also
|
|
338
343
|
checks; that release is in the public domain too.
|
|
339
344
|
From 1970 conversion uses the host's `Intl`/ICU data, which `./geo` checks
|
|
340
|
-
against a table of the spans in which tzdata 2021a
|
|
341
|
-
|
|
342
|
-
`scripts/build-host-zone-probes.mjs`
|
|
343
|
-
|
|
345
|
+
against a table of the spans in which tzdata 2021a or 2025c gives a different
|
|
346
|
+
offset from 2026f (`src/geo/host-probes-data.ts`).
|
|
347
|
+
`scripts/build-host-zone-probes.mjs` compiles the table from these
|
|
348
|
+
public-domain releases and checks their SHA-256 digests:
|
|
349
|
+
|
|
350
|
+
- `tzdata2021a.tar.gz` (SHA-256
|
|
351
|
+
`39e7d2ba08c68cbaefc8de3227aab0dec2521be8042cf56855f7dc3a9fb14e08`)
|
|
352
|
+
- `tzdata2025c.tar.gz` (SHA-256
|
|
353
|
+
`4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957`)
|
|
354
|
+
- `tzdata2026f.tar.gz` (SHA-256
|
|
355
|
+
`01b4a91cec5167ed48c11e8ab78f2048cead78ce94b0cafcad0ae8c5a3044d3d`)
|
|
344
356
|
|
|
345
357
|
## Leap-second and UT1 data
|
|
346
358
|
|
|
@@ -501,6 +513,19 @@ for them were read. The attribution in `NOTICE` meets the CDS citation terms;
|
|
|
501
513
|
whether a commercial use needs more than attribution is not settled by these
|
|
502
514
|
sources.
|
|
503
515
|
|
|
516
|
+
ESA distributes its 1997 Hipparcos and Tycho Catalogues under CC BY-NC 3.0
|
|
517
|
+
IGO. The package takes its Hipparcos values from F. van Leeuwen's 2007 new
|
|
518
|
+
reduction (VizieR I/311). ESA hosts a copy of that VizieR catalogue in its
|
|
519
|
+
legacy archive and distributes data hosted in its Space Science Archives
|
|
520
|
+
under CC BY-NC 3.0 IGO. Those archive terms call for authorisation before
|
|
521
|
+
commercial use and give the Hipparcos credit line as "Credit: ESA".
|
|
522
|
+
Whether those terms reach the 15 individual values obtained through VizieR
|
|
523
|
+
is open. `NOTICE` credits ESA as the origin of the mission data.
|
|
524
|
+
ESA pages read 2026-11-20:
|
|
525
|
+
<https://www.cosmos.esa.int/web/hipparcos/catalogues>,
|
|
526
|
+
<https://www.cosmos.esa.int/web/hipparcos/hipparcos-2> and
|
|
527
|
+
<https://www.cosmos.esa.int/web/esdc/terms-and-conditions#TC1>.
|
|
528
|
+
|
|
504
529
|
## Calculation entry values
|
|
505
530
|
|
|
506
531
|
`@zodiacs/engine/calc` (`dist/calc.js` and the chunks it imports) carries the
|
package/NOTICE
CHANGED
|
@@ -222,10 +222,16 @@ Zone Database 2025c that define it (tzdata2025c.tar.gz, sha256
|
|
|
222
222
|
4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957). Both are
|
|
223
223
|
in the public domain: https://www.iana.org/time-zones. From 1970 local time
|
|
224
224
|
comes from the host runtime's Intl/ICU data, which it checks against a table
|
|
225
|
-
of the spans in which
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
of the spans in which tzdata 2021a or 2025c gives a different offset from
|
|
226
|
+
2026f. The table gives 2026f's offsets and is compiled from these
|
|
227
|
+
public-domain IANA Time Zone Database releases:
|
|
228
|
+
|
|
229
|
+
tzdata2021a.tar.gz (SHA-256
|
|
230
|
+
39e7d2ba08c68cbaefc8de3227aab0dec2521be8042cf56855f7dc3a9fb14e08)
|
|
231
|
+
tzdata2025c.tar.gz (SHA-256
|
|
232
|
+
4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957)
|
|
233
|
+
tzdata2026f.tar.gz (SHA-256
|
|
234
|
+
01b4a91cec5167ed48c11e8ab78f2048cead78ce94b0cafcad0ae8c5a3044d3d)
|
|
229
235
|
|
|
230
236
|
The core carries TAI - UTC from the IERS leap-second list, leap-seconds.list,
|
|
231
237
|
updated 2026-07-06 through IERS Bulletin C 72 and expiring 2027-06-28 (sha256
|
|
@@ -280,7 +286,9 @@ Astronomical Observatory, France:
|
|
|
280
286
|
|
|
281
287
|
F. van Leeuwen 2007, A&A 474, 653 (VizieR I/311, Hipparcos, the New
|
|
282
288
|
Reduction): the positions, proper motions and parallaxes of Spica,
|
|
283
|
-
zeta Psc A and delta Cnc.
|
|
289
|
+
zeta Psc A and delta Cnc. The European Space Agency's Hipparcos mission
|
|
290
|
+
supplied the underlying observations.
|
|
291
|
+
Credit: ESA
|
|
284
292
|
G. A. Gontcharov 2006, Astronomy Letters 32, 759 (VizieR III/252, Pulkovo
|
|
285
293
|
radial velocities): the radial velocity of zeta Psc A.
|
|
286
294
|
B. Famaey et al. 2005, A&A 430, 165 (VizieR J/A+A/430/165,
|