@zodiacs/engine 1.1.0 → 2.0.0-rc.3

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +392 -0
  2. package/LICENSING.md +25 -7
  3. package/NOTICE +19 -9
  4. package/README.md +207 -54
  5. package/dist/{api-ChL1N2Sr.d.ts → api-G8RVGizH.d.ts} +7 -2
  6. package/dist/{ayanamsa-ClFzkKmV.d.ts → ayanamsa-C4-pYjzm.d.ts} +2 -2
  7. package/dist/calc.d.ts +5 -4
  8. package/dist/calc.js +27 -15
  9. package/dist/{chunk-BMDASNPB.js → chunk-4RCOOAGI.js} +2 -1
  10. package/dist/{chunk-Y4E3WJU5.js → chunk-CV53HA7R.js} +1 -1
  11. package/dist/{chunk-TZVPZHZM.js → chunk-EEKVS6W7.js} +42 -12
  12. package/dist/{chunk-2PZYJQV5.js → chunk-EEW7746S.js} +1 -1
  13. package/dist/{chunk-LNGURVNH.js → chunk-FXNA2TJM.js} +1 -1
  14. package/dist/{chunk-YPU3MDNI.js → chunk-HNVGWN3S.js} +1 -1
  15. package/dist/{chunk-7Y2F2IWN.js → chunk-JY2LU4VC.js} +76 -85
  16. package/dist/{chunk-4XOYTBLS.js → chunk-LWZS7HI3.js} +1 -1
  17. package/dist/{chunk-B5LKF437.js → chunk-M65JXRFN.js} +40 -0
  18. package/dist/{chunk-QLIEEICB.js → chunk-PU4HNPRX.js} +32 -13
  19. package/dist/{chunk-B4M2Y7FT.js → chunk-QLQRN6RY.js} +1 -1
  20. package/dist/{chunk-NNOSOOWS.js → chunk-SCRO6HWB.js} +4 -2
  21. package/dist/{chunk-767FTO7O.js → chunk-UXY4RU57.js} +1 -1
  22. package/dist/{chunk-WBTWY2OB.js → chunk-XINOD63H.js} +3 -3
  23. package/dist/{chunk-I3L4POY7.js → chunk-XO7MHH32.js} +2 -1
  24. package/dist/core.d.ts +21 -0
  25. package/dist/core.js +2953 -0
  26. package/dist/crossings.d.ts +2 -2
  27. package/dist/de440-pack.d.ts +2 -2
  28. package/dist/de440-pack.js +4 -4
  29. package/dist/de440.d.ts +2 -2
  30. package/dist/de440.js +3 -3
  31. package/dist/{ephemeris-exTSqBgb.d.ts → ephemeris-Bnmowcsk.d.ts} +5 -1
  32. package/dist/geo.d.ts +84 -17
  33. package/dist/geo.js +139 -5
  34. package/dist/{houses-Bh7GCnPi.d.ts → houses-CAiYEICK.d.ts} +1 -1
  35. package/dist/houses-extra.d.ts +3 -3
  36. package/dist/index.d.ts +8 -8
  37. package/dist/index.js +11 -11
  38. package/dist/{internal-math-CxenuGfm.d.ts → internal-math-rq6do9IR.d.ts} +2 -2
  39. package/dist/internal-math.d.ts +4 -4
  40. package/dist/internal-math.js +2 -2
  41. package/dist/internal.d.ts +4 -4
  42. package/dist/internal.js +8 -8
  43. package/dist/receipt.d.ts +3 -3
  44. package/dist/receipt.js +76 -26
  45. package/dist/{rulers-CSSWtiWF.d.ts → rulers-CFGiWJza.d.ts} +1 -1
  46. package/dist/sky.d.ts +4 -4
  47. package/dist/sky.js +9 -9
  48. package/dist/techniques.d.ts +4 -4
  49. package/dist/techniques.js +14 -14
  50. package/dist/{time-bands-CZA9AlLg.d.ts → time-bands-BCmfa8FR.d.ts} +5 -4
  51. package/dist/{time-scale-DIFNa0gz.d.ts → time-scale-9vmKQPCn.d.ts} +14 -4
  52. package/dist/time.d.ts +3 -3
  53. package/dist/time.js +5 -5
  54. package/dist/timing.d.ts +5 -5
  55. package/dist/timing.js +11 -11
  56. package/dist/{types-DpPdtXgO.d.ts → types-CkuiCcsV.d.ts} +25 -5
  57. package/dist/{tzdb-2025c-00-6GVG6RYL.js → tzdb-2026f-00-RAB4YONA.js} +4 -4
  58. package/dist/{tzdb-2025c-01-CEYMG3LE.js → tzdb-2026f-01-SWR7EW5U.js} +4 -4
  59. package/dist/{tzdb-2025c-02-NWQJCVUU.js → tzdb-2026f-02-SOLHCLDL.js} +3 -3
  60. package/dist/{tzdb-2025c-03-PLHP6VH4.js → tzdb-2026f-03-LYLMCVL7.js} +3 -3
  61. package/dist/{tzdb-2025c-04-MEKUJA6M.js → tzdb-2026f-04-XTKMZPKX.js} +4 -4
  62. package/dist/{tzdb-2025c-05-3K5YKZBL.js → tzdb-2026f-05-EOKCMY5O.js} +4 -4
  63. package/dist/{tzdb-2025c-06-L2VV5XJV.js → tzdb-2026f-06-O4LQW2N6.js} +4 -4
  64. package/dist/{tzdb-2025c-07-H3GLGJGY.js → tzdb-2026f-07-2FDJ5OJ7.js} +4 -4
  65. package/dist/{tzdb-2025c-08-DA7QQIGD.js → tzdb-2026f-08-OKEWSMIX.js} +4 -4
  66. package/dist/{tzdb-2025c-09-MTXIO3QL.js → tzdb-2026f-09-5GB7FKLF.js} +4 -4
  67. package/dist/{tzdb-2025c-10-ASL4UW5C.js → tzdb-2026f-10-GXHCIASR.js} +4 -4
  68. package/dist/{tzdb-2025c-11-EQEOANYB.js → tzdb-2026f-11-66EMKXFG.js} +4 -4
  69. package/dist/{tzdb-2025c-12-NKCCXJ5G.js → tzdb-2026f-12-YK3CZCIY.js} +3 -3
  70. package/dist/{tzdb-2025c-13-DYTF3UC7.js → tzdb-2026f-13-UNZD3QIH.js} +4 -4
  71. package/dist/{tzdb-2025c-14-C25H45R5.js → tzdb-2026f-14-4FQNGNZM.js} +4 -4
  72. package/dist/{tzdb-2025c-15-7OYYZWRY.js → tzdb-2026f-15-5TA3B2WI.js} +4 -4
  73. package/dist/vedic.d.ts +4 -4
  74. package/dist/vedic.js +11 -11
  75. package/dist/window.d.ts +2 -2
  76. package/dist/window.js +13 -10
  77. package/dist/{zone-history-BxmDCcTK.d.ts → zone-history-2UYUKA43.d.ts} +26 -9
  78. package/package.json +7 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,397 @@
1
1
  # Engine changelog
2
2
 
3
+ ## 2.0.0-rc.3 (unreleased candidate)
4
+
5
+ The third candidate for **2.0.0**, a major release, on 2.0.0-rc.2 (main at
6
+ `373ceda`, where pull request 112 merged rc.2). It is a draft for the
7
+ owner's review and is not to be published on npm until the owner approves
8
+ it. Checks: `docs/evidence/2.0.0-rc.3-20261117/`.
9
+
10
+ rc.2's archive is carried and its version was never tagged or published;
11
+ these changes reach `dist/`, so by the rule in `artifacts/README.md` the
12
+ package takes a new number and rc.2's archive stays, unchanged. rc.3 is
13
+ rc.2 with six pull requests merged into it, each with a merge commit, in
14
+ this order: 114, 115, 117, 118, 119 and 121. The owner chose this set on
15
+ 17 November 2026 ("Yes, minus Yellowknife"): pull request 118 ships with
16
+ America/Yellowknife held at tzdata 2025c, and pull requests 120 and 122 are
17
+ not in it. Everything rc.1's and rc.2's entries say holds for rc.3 except
18
+ where this entry says otherwise.
19
+
20
+ ### Breaking
21
+
22
+ - **Birth input refuses common near-miss names for a field** (pull
23
+ request 115). Birth input now refuses, with a `RangeError` that names the
24
+ field to use, these common names for a field, in any letter case: `lat`
25
+ (use `latitude`); `lng`, `lon`, `long` (`longitude`); `house`, `houses`,
26
+ `hsys`, `housesystem` (`houseSystem`); `scale`, `time_scale`
27
+ (`timeScale`); `delta_t` (`deltaT`); `time_known`, `unknownTime`
28
+ (`timeKnown`). They were ignored, so `{ utc, lat, lng }` gave a chart with
29
+ no angles and no error. Other unknown keys are still ignored. A call that
30
+ returned a chart before now throws.
31
+
32
+ ### Added
33
+
34
+ - **Julian Day Numbers and local mean time** (pull request 114). Added:
35
+ `julianDayNumber`, `dateOfJulianDayNumber` and `localMeanTimeOffset` in
36
+ `@zodiacs/engine/geo`, the Julian Day Number of a Julian or proleptic
37
+ Gregorian date and its inverse for years -100000 to 100000, and a
38
+ longitude's local mean time in seconds east of Greenwich; the conformance
39
+ suite's 35 calendar vectors and 5 local mean time vectors now pass. The
40
+ `./geo` budget rises to fit them.
41
+ - **`host-zone-data-differs`** (pull request 117, ZOD-283). From 1970 on a
42
+ wall time is read on the device's own time zone data; `resolveLocalToUtc`
43
+ and the birth resolvers now ask that data for its offset at one instant
44
+ inside each nearby span in which tzdata 2021a and 2026f differ (703 spans
45
+ in 77 names, from 1970 to 2029-10-27, and not past it), and where it
46
+ disagrees with 2026f the result, the birth, the chart and a receipt carry
47
+ the new `ChartFlag` value `"host-zone-data-differs"` and `zone.hostCheck`
48
+ gives both offsets; the instant is still the device's, so code that
49
+ switches exhaustively over `ChartFlag` needs a case for it
50
+ (`docs/time.md`, *Host time zone data*;
51
+ `docs/evidence/host-zone-probes-20261117/`). A span is checked from 36
52
+ hours before it begins, inclusive, to 36 hours after it ends, exclusive,
53
+ so an instant exactly 36 hours past the end, or 36 hours or more after
54
+ 2029-10-27T00:00Z, is not checked; `docs/time.md` said "more than" 36
55
+ hours, and now follows the code (the review's note on pull request 117).
56
+ - **`@zodiacs/engine/core`** (pull request 121, ZOD-292). Adds
57
+ `@zodiacs/engine/core`, the root's functions computed on astronomy-engine
58
+ without the DE440 pack: a page that uses `natalChart` from it bundles
59
+ 77,042 to 80,192 bytes instead of 3,416,191 to 3,418,817
60
+ (`docs/evidence/2.0.0-rc.3-20261117/results/bundle-weight/`, measured on
61
+ this candidate's archive; pull request 121 measured 75,937 to 79,084 and
62
+ 3,415,068 to 3,417,703, `docs/evidence/bundle-weight-20261117/`), and its
63
+ positions pass 48 of the 240 L1 position tests where the root's pass 240;
64
+ the root is unchanged. Raises the package's total cap for the entry's
65
+ second copy of the root's code, with the owner's approval of 17 Nov 2026
66
+ (*Sizes and budgets*, below).
67
+
68
+ ### Changed
69
+
70
+ - **UTC after the IERS UT1 table** (pull request 119, ZOD-281). After the
71
+ IERS UT1 table (2027-10-02), UTC is read on the continuous-UTC rule:
72
+ TT = UTC + 69.184 s, UT1 from the ΔT model; time basis `continuous-utc`,
73
+ UT1 − UTC source `model`, new natal conventions sets requiring
74
+ `time-basis-continuous-utc`. Results move for every unpinned UTC instant
75
+ after 2027-10-02 (positions, angles, houses, returns, windows). Records
76
+ with the new sets are refused by 1.1.0 and 2.0.0-rc.2 as
77
+ `unsupported_feature`; `CONTINUOUS_UTC_RELEASE` in `src/receipt.ts`, the
78
+ first engine version a continuous-UTC set is accepted from, is
79
+ `2.0.0-rc.3`, this candidate. On UTC input after the table calc's
80
+ geocentric bounds and `events()`' timing bound no longer widen (on the DE440
81
+ pack the Moon at 2199 is 0.51″ from JPL Horizons, was 28.26″). The last UTC instant
82
+ `natalChart` accepts moves from 3998-09-03T02:01:41.309Z to
83
+ 3998-09-03T05:58:50.816Z, and calc's from 2199-12-31T23:57:53.752Z to
84
+ 2199-12-31T23:58:50.815Z, measured again on this candidate's archive
85
+ (`docs/evidence/2.0.0-rc.3-20261117/results/span-ends.json`). Speeds
86
+ within 6 hours of 2027-10-02 move by up to 3.6e-7 °/day (the
87
+ astronomy-engine node 3.8e-6) against rc.2, and the 146 ms after the table
88
+ on UTC input read the predicted ΔT segment, unflagged
89
+ (`docs/evidence/continuous-utc-20261117/`).
90
+ - **Zone histories from tzdata 2026f** (pull request 118). The zone history
91
+ shipped for wall times before 1970 is now tzdata 2026f, not 2025c, except
92
+ America/Yellowknife, held at tzdata 2025c by the owner's decision because
93
+ no tzdb NEWS entry or other official announcement explains 2026f's change
94
+ to it. Offsets change in 23 zone names: Europe/Dublin and Eire read +0:00,
95
+ not +1:00, from 1925-09-20T02:00Z to 1925-10-04T02:00Z (336 hours); 21
96
+ Brazilian names keep daylight saving one hour longer on 1965-03-31 (24
97
+ hours) and 1966-03-01 (1 hour). EST5EDT, CST6CDT, MST7MDT and PST8PDT name
98
+ 1942 to 1945 summer time EDT, CDT, MDT and PDT and no longer record a
99
+ transition on 1945-08-14; Europe/Uzhgorod and Europe/Zaporozhye follow
100
+ Kyiv's local mean time era and report dataForm main+backzone; Morocco's
101
+ and Western Sahara's 2026-09-20 move to +00 reads as a legal change on
102
+ hosts that know it (`docs/evidence/tzdb-2026f-20261117/`).
103
+ America/Yellowknife's results before 1970 equal rc.2's, but its
104
+ `tzdbVersion` field reads `2026f`, as every zone's does, though its data
105
+ is tzdata 2025c's (`scripts/tzdb-held/`).
106
+
107
+ ### Documentation
108
+
109
+ - README.md: this candidate's paragraph, archive and evidence folder; the
110
+ three new `geo` functions; *Birth settings* on the refused near-miss
111
+ names; *Input flag compatibility*, all twelve `ChartFlag` values, with
112
+ `host-zone-data-differs` among the five caller assertions; the time basis
113
+ after 2027-10-02, the window seam there (TT runs on, UT1 steps about
114
+ 2 ms), the bands and the span's ends; the zone histories on tzdata 2026f
115
+ with America/Yellowknife held, and the host check; *Bundle size in a web
116
+ page*, measured again on this candidate's archive.
117
+ - NOTICE and LICENSING.md: the zone histories are tzdata 2026f's, with
118
+ America/Yellowknife from tzdata 2025c, and the host-probe table compares
119
+ tzdata 2021a with 2026f; each with its archive's SHA-256.
120
+ - `docs/time.md`: the host check's 36-hour window, inclusive at its start and
121
+ exclusive at its end, as above. `docs/calc.md`, `docs/time.md` and
122
+ `src/types.ts` name 2.0.0-rc.3 or 2.0.0 where they said "the release
123
+ after 2.0.0-rc.2" or "the release after 1.1.0".
124
+ - Conformance: this engine's results (`conformance/results/`, `RESULTS.md`)
125
+ were regenerated with the harness on Node 22.22.2 and name 2.0.0-rc.3 and
126
+ tzdb 2026f. Default source: 499 pass, 0 fail, 1 unsupported (the leap
127
+ second instant, which a JavaScript date cannot express); on
128
+ astronomy-engine 307 pass, 192 fail, 1 unsupported, 48 of the 240
129
+ positions passing. No verdict differs from the pull requests' own runs.
130
+ - The offline CLI consumer check (`tools/cli/`) held the carried 1.0.0-rc.2
131
+ archive's verdicts to this engine's astronomy-engine results, which now
132
+ pass the 40 vectors that archive cannot answer. It now reads its own
133
+ pinned baseline, `tools/cli/baselines/engine-1.0.0-rc.2-node-22.22.2.json`,
134
+ the 500 verdicts of that file at `373ceda` (267 pass, 192 fail, 41
135
+ unsupported), as pull request 114 asked the candidate to settle.
136
+
137
+ ### Sizes and budgets
138
+
139
+ - Measured on this candidate's build
140
+ (`docs/evidence/2.0.0-rc.3-20261117/results/package-contents.log`), twelve
141
+ import graphs were over their budgets. Each budget is raised to the
142
+ measurement, rounded up to the next 100 bytes, and no further (old budget,
143
+ rc.2's measurement, this candidate's, new budget):
144
+
145
+ | Entry | Old budget | rc.2 | rc.3 | New budget | Why |
146
+ | --- | ---: | ---: | ---: | ---: | --- |
147
+ | `.` | 151,700 | 151,563 | 154,173 | 154,200 | 115 (565), 117 (26), 119 (1,910), 121 (109) |
148
+ | `./calc` | 204,100 | 203,138 | 205,334 | 205,400 | 119 (2,061), 117 (26), 121 (109) |
149
+ | `./core` | 109,600 | (none) | 110,765 | 110,800 | 121's entry, now with 115, 117 and 119 |
150
+ | `./geo` | 36,500 | 36,178 | 47,715 | 47,800 | 117's probe table and check, 114's functions |
151
+ | `./internal` | 110,900 | 110,362 | 112,381 | 112,400 | 119 (1,910), 121 (109) |
152
+ | `./receipt` | 77,400 | 76,845 | 81,110 | 81,200 | 119's conventions sets (3,926), 117's flag (339) |
153
+ | `./sky` | 138,600 | 137,816 | 139,835 | 139,900 | 119 (1,910), 121 (109) |
154
+ | `./techniques` | 207,300 | 205,247 | 207,561 | 207,600 | 119, 114, 115 and 121; 117 moved the probe table out (−1,393) |
155
+ | `./time` | 42,600 | 42,530 | 44,485 | 44,500 | 119 (1,955) |
156
+ | `./timing` | 171,200 | 170,866 | 173,476 | 173,500 | 119 (1,910), 115 (565), 121 (109), 117 (26) |
157
+ | `./vedic` | 187,100 | 186,598 | 189,208 | 189,300 | 119 (1,910), 115 (565), 121 (109), 117 (26) |
158
+ | `./window` | 151,500 | 150,577 | 152,731 | 152,800 | 119 (2,019), 121 (109), 117 (26) |
159
+
160
+ Every other graph is inside its budget, unchanged; the zone histories are
161
+ 188,964 bytes of their 200,000. The package beside the pack is
162
+ 1,437,512 bytes unpacked in 100 files, over the cap of 1,289,000:
163
+ the second copy of the root's code in `dist/core.js` and its declarations
164
+ (pull request 121), the other five pull requests' code and declarations,
165
+ this entry and the README's, NOTICE's and LICENSING.md's lines. Raised to
166
+ 1,438,000, the measurement rounded up to the next 1,000 bytes; the owner
167
+ approved raising the cap for the core entry on 17 November 2026. The
168
+ entry budgets are for the owner to decide with the candidate
169
+ (`scripts/verify-package-contents.mjs`).
170
+
171
+ ## 2.0.0-rc.2 (unreleased candidate)
172
+
173
+ The second candidate for **2.0.0**, a major release, on 1.1.0 (main at
174
+ `12943c1`). It is a draft for the owner's review and is not to be published
175
+ on npm until the owner approves it. Checks:
176
+ `docs/evidence/2.0.0-rc.2-20261116/`.
177
+
178
+ 2.0.0-rc.1 was a draft on this same pull request (112), reviewed in draft
179
+ and not tagged or published: this candidate replaces it. Its review found a
180
+ blocker in pull request 105's check of a supplied `polar-angles` claim. The
181
+ fix changes `dist/`, and rc.1's archive is carried, so by the rule in
182
+ `artifacts/README.md` the fixed package takes a new number; rc.1's archive
183
+ stays, unchanged. rc.2 is rc.1 with pull request 105's fix merged into it
184
+ and the changes below; everything rc.1's entry says holds for rc.2 except
185
+ where this entry says otherwise.
186
+
187
+ ### Fixed
188
+
189
+ - **A chart the engine flags `polar-angles` is no longer refused when passed
190
+ back in** (pull request 105, `522a0d6`). The engine sets the flag where
191
+ |latitude| ≥ 90° − (ε₀ + Δε), ε₀ the IAU 2006 mean obliquity
192
+ (`meanObliquity` in `src/houses.ts`, all six terms of its polynomial, up
193
+ to t⁵) and Δε the nutation in obliquity, both at the chart's TT. rc.1
194
+ allowed the flag on a supplied chart (`transits`, `synastry`,
195
+ `saturnReturn` and every timing, techniques and Vedic function that takes
196
+ a chart) and on a natal receipt where
197
+ |latitude| ≥ 66.55772° + 4.1227 × 10⁻¹⁵° for each millisecond from
198
+ J2000, ε₀'s constant and linear terms alone. The terms left out reach 16″
199
+ by 3999, so from 2936 on, at some phases of the nutation, a chart the
200
+ engine flagged at the edge of the circle was refused: `transits` threw
201
+ "chart flags must agree with its input and supplied house result", and its
202
+ natal receipt was refused as `inconsistent_result`, `createNatalEnvelope`
203
+ included. Both checks now allow the claim where
204
+ |latitude| ≥ 90° − ε₀ − 0.003°, ε₀ from the whole polynomial: a supplied
205
+ chart's at the TT of its input's instant, time scale and ΔT, a receipt's
206
+ at its instant on TT input or its instant plus its recorded ΔT on UTC or
207
+ UT1 input (UT1 − UTC, under a second, left out). The receipt entry keeps
208
+ its own copy of the polynomial, so as not to load the houses code, and a
209
+ test holds it to the same six coefficients. The 0.003° (10.8″) margin
210
+ covers Δε, which is under 10″ on every day of the ephemeris span, 0001 to
211
+ 3998 (9.97″ at most); `docs/houses.md` gave it as under 9.3″, which was
212
+ wrong. Tests at 2937-03-18, 2955-09-23, 3197-09-19, 3991-10-06 and
213
+ 3995-10-07, on both hemispheres, find by bisection the latitude at which
214
+ the engine starts to flag and show that chart round-tripping through
215
+ `transits` and a natal receipt, and a claim 0.0005° outside the allowed
216
+ band still refused; a ΔT pinned 95 years from its instant shows the TT is
217
+ the one read. They fail on rc.1 (`src/polar-angles.test.ts`,
218
+ `docs/houses.md`). A chart the engine flags is now accepted at every
219
+ instant of the ephemeris span. A claim on a chart it does not flag is held
220
+ to the polynomial too, which in the early centuries puts the bound up to
221
+ 16″ further from the equator than rc.1's line, so a false claim rc.1 let
222
+ through in that sliver is now refused.
223
+
224
+ ### Client contract
225
+
226
+ - The compute clients' contract (`clients/typescript/contracts/openapi.json`)
227
+ gains `"de440-unavailable"` and `"outside-de440-span"` in `ChartFlag` and
228
+ in the values of `BodyPosition.flags`. Both are real chart flags: the
229
+ ephemeris fallback flags (`EphemerisFallback`), part of the engine's
230
+ `ChartFlag` since 1.1.0-rc.10, which a chart computed on astronomy-engine
231
+ where the shipped DE440 pack was the default carries, and which a
232
+ `positions()` row carries as a chart at the same instant does (rc.1,
233
+ pull request 111). rc.1's contract named only the other two instant
234
+ flags. `provenance.json`'s subset hash and note and the generated
235
+ TypeScript and Python contracts follow. The engine's own types
236
+ (`InstantFlag`, `api/`) already had them.
237
+
238
+ ### Documentation
239
+
240
+ - README.md: this candidate's paragraph, archive and evidence folder; under
241
+ *Input flag compatibility*, all eleven `ChartFlag` values, with
242
+ `calendar-unknown` among the four caller assertions (`dst-gap`,
243
+ `dst-fold`, `lmt`, `calendar-unknown`) and the seven flags a caller may
244
+ echo where the calculation derives them (`no-time`, `polar-fallback`,
245
+ `polar-angles`, `outside-reference-span`, `delta-t-extrapolated`,
246
+ `de440-unavailable`, `outside-de440-span`; rc.1's list named three);
247
+ `saturnReturn` runs one natal calculation for an asserted `polar-angles`
248
+ as for `polar-fallback`, and accepts the three flags it cannot check
249
+ without a chart unchecked.
250
+ - LICENSING.md: the owner's acceptance of shipping the DE440 pack, recorded
251
+ for 1.1.0, covers 2.0.0, which ships the same sealed pack
252
+ (`src/de440/` is unchanged since 1.1.0).
253
+ - rc.1's entry below: its `polar-angles` bullet gave the bound on a supplied
254
+ chart or receipt without saying which mean obliquity; it now points here.
255
+ - Conformance: this engine's results (`conformance/results/`, `RESULTS.md`)
256
+ were regenerated with the harness on Node 22.22.2 and name 2.0.0-rc.2. No
257
+ verdict changes (459 pass, 0 fail, 41 unsupported; on astronomy-engine
258
+ 48 of the 240 positions pass); the 10 polar vectors whose charts fall back
259
+ from Placidus or Koch (`L2-POL-0001` to `0003` and `0005` to `0011`) now
260
+ record `polar-angles` beside `polar-fallback`, in both runs.
261
+
262
+ ### Sizes and budgets
263
+
264
+ - Measured on this candidate's build
265
+ (`docs/evidence/2.0.0-rc.2-20261116/results/package-contents.log`), every
266
+ import graph is inside its budget and no budget or cap is raised. The fix
267
+ adds 32 bytes to the root's graph and to every graph that shares its chunk
268
+ (the time basis read once for both of `resolvedChart`'s checks, and
269
+ `meanObliquity`), and 222 to `./receipt` (its copy of the polynomial):
270
+ the root is 151,563 bytes of 151,700 (137 left), `./timing` 170,866 of
271
+ 171,200, `./receipt` 76,845 of 77,400 and `./techniques` 205,247 of
272
+ 207,300. The package beside the pack is 1,284,237 bytes unpacked
273
+ in 98 files, of 1,289,000 (this entry and the README's lines).
274
+
275
+ ## 2.0.0-rc.1 (unreleased candidate)
276
+
277
+ The first candidate for **2.0.0**, a major release, on 1.1.0 (main at
278
+ `12943c1`). It is a draft for the owner's review and is not to be published
279
+ on npm until the owner approves it. Checks:
280
+ `docs/evidence/2.0.0-rc.1-20261116/`.
281
+
282
+ It carries four pull requests, merged into it with merge commits: 109 (a
283
+ bare birth date refused), 111 (`positions()` rows flagged), 110 (a skipped
284
+ calendar-switch date flagged) and 105 (angles inside the polar circle
285
+ flagged). The number is a major one because of 109: which input a function
286
+ refuses is public (`docs/versioning.md`, *Documented behaviour*), the README
287
+ documented a bare date as midnight UTC, and the owner decided on 2026-11-11
288
+ to hold the refusal for 2.0.0 (1.1.0-rc.6, below). The other three add a
289
+ flag value, a result field and the cases that carry them, which a minor
290
+ release may do.
291
+
292
+ ### Breaking
293
+
294
+ - **A birth given as a calendar date with no time is refused** unless the
295
+ birth time is declared unknown (pull request 109). In 1.x,
296
+ `natalChart({ utc: "1990-05-03" })` read the date as 00:00 UTC and returned
297
+ a chart marked `timeKnown: true`, with a rising sign and houses for a time
298
+ nobody gave. Now it throws a `RangeError`. With `timeKnown: false` the
299
+ same date is accepted, with the `no-time` flag and no angles or houses. A
300
+ full instant (`"1990-05-03T00:00:00Z"`, or with an offset), a `Date` and an
301
+ epoch number are read exactly as before. The refusal covers every root
302
+ function that takes a birth (`natalChart`, `transits`, `synastry`,
303
+ `chartPoints`, `chartDeclinations`, and through the resolved chart the
304
+ timing, techniques and Vedic functions that take one), `saturnReturn` in
305
+ both forms (`saturnReturn("1990-05-03")` and
306
+ `saturnReturn({ utc: "1990-05-03" })`), and calc's `chart()` given such a
307
+ `time` (as a string or `{ iso }`). What to do: write the instant out
308
+ (`"YYYY-MM-DDT00:00:00Z"`) or pass `timeKnown: false`. Not changed: a chart
309
+ already built, a receipt replay, `progressedInstant` and
310
+ `progressedBodies`, timing's `solarArc`, calc's `houses()` and
311
+ `resolveLocalBirth`, which still read a bare date as the README says.
312
+
313
+ ### Flags
314
+
315
+ - **`polar-angles`** (pull request 105). Every chart whose angles are inside
316
+ the polar circle, |latitude| ≥ 90° − ε on the true obliquity of date,
317
+ carries the new `ChartFlag` value `"polar-angles"`, in every house system,
318
+ from `natalChart`, calc's `chart()` and `houses()`; there the ascendant
319
+ turns half a circle twice a sidereal day. 1.1.0 warned only for Placidus
320
+ and Koch (`polar-fallback`). A supplied chart or natal receipt may carry
321
+ the flag where |latitude| ≥ 90° − ε₀ − 0.003°, ε₀ the mean obliquity of
322
+ its instant, may lack it there, and is refused anywhere else
323
+ (`docs/houses.md`; `docs/evidence/polar-angles-20261116/`). In rc.1, ε₀
324
+ there was its constant and linear terms alone, which refused some charts
325
+ the engine flagged from 2936 on; 2.0.0-rc.2 corrects it (above).
326
+ - **`calendar-unknown`** (pull request 110). `ChartFlag` and
327
+ `LocalTimeResolution["flags"]` gain `"calendar-unknown"`, a time flag a
328
+ caller may also assert. `resolveLocalToUtc` and the birth resolvers set it
329
+ when no country the Gregorian adoption table dates is given and the
330
+ written date, in either calendar, falls in the days one of the table's
331
+ changeovers skipped, for a changeover the zone does not rule out. The
332
+ capital zone of a tabled country follows that country's changeover alone,
333
+ for 12 of the 18 rows; the capital zones of the Netherlands, Switzerland,
334
+ Poland, Belgium, Sweden and Finland are not narrowed, since their rows'
335
+ notes date changeovers inside other rows' skipped days. Russia's change of
336
+ 1918 applies only under `Europe/`, `Asia/` or a zone that names no place.
337
+ A country the table does not date no longer silences the flag. The flag
338
+ rides on the birth into the chart's flags and a receipt's `inputFlags`,
339
+ and a receipt refuses it on an instant outside 1582-10-04T00:00Z up to
340
+ 1918-02-28T00:00Z, with or without a local record. The instant is never
341
+ changed. Greece is not in the table, since none of its three sources
342
+ dates its change of 1923, so a Greek date of 1923 is neither flagged nor
343
+ noted (`docs/time.md`; `docs/evidence/calendar-unknown-20261116/`).
344
+ - **`positions()` rows carry flags** (pull request 111). Each row of
345
+ `positions()`, `transits().positions` and `progressedBodies()` carries
346
+ `flags`, the flags `natalChart()` with no place gives at the same instant,
347
+ in the same order (`"outside-reference-span"`, `"delta-t-extrapolated"`,
348
+ then the ephemeris fallback), from one shared function. A row has no
349
+ `flags` property where the chart has none, so rows inside the span on a
350
+ tabulated ΔT are as before. Besides the span's ends, rows after 2027-10-02,
351
+ where the time basis moves from the IERS table to the ΔT model, now carry
352
+ `["delta-t-extrapolated"]`, as `natalChart()` there already does; code
353
+ that deep-compares rows or expects a fixed key set sees the new key there.
354
+ The root exports `InstantFlag`, the subset of `ChartFlag` an instant alone
355
+ determines (`docs/de440.md`; `docs/evidence/positions-span-20261116/`).
356
+ - **Code that switches exhaustively over `ChartFlag`** needs cases for
357
+ `"calendar-unknown"` and `"polar-angles"`.
358
+
359
+ ### Client contract
360
+
361
+ - The compute clients' contract (`clients/typescript/contracts/openapi.json`,
362
+ ahead of the hosted API) gains `"calendar-unknown"` in `ChartFlag`,
363
+ `LocalResolution.flags` and `TimeResult.flags`, `"polar-angles"` in
364
+ `ChartFlag`, and an optional `flags` on `BodyPosition` with the values
365
+ `"outside-reference-span"` and `"delta-t-extrapolated"`, the instant flags
366
+ the contract's `ChartFlag` already names. `provenance.json` and the
367
+ generated TypeScript and Python contracts follow.
368
+
369
+ ### Sizes and budgets
370
+
371
+ - Measured on this candidate's build with all four pull requests
372
+ (`docs/evidence/2.0.0-rc.1-20261116/results/package-contents.log`):
373
+ `./techniques` is 205,215 bytes, over its budget of 203,800 (the
374
+ zone evidence in the local-time chunk it shares with `./geo`, 109's check
375
+ and 111's flags): raised to 207,300. `./geo` is 36,178, over 35,700
376
+ (110's zone evidence and 105's flag): raised to 36,500. `./receipt` is
377
+ 76,623, over 76,500 (the two flags' receipt checks): raised to
378
+ 77,400. Each is the measurement and about one per cent. The package
379
+ beside the pack is 1,276,174 bytes unpacked in 98 files, over
380
+ the cap of 1,265,000 (the four changes' code and declarations, this entry
381
+ and the README's lines): raised to 1,289,000. None of these has the
382
+ owner's approval; they are for the owner to decide with the candidate
383
+ (`scripts/verify-package-contents.mjs`).
384
+
385
+ ### Documentation
386
+
387
+ - README.md: this candidate's paragraph; the install section, which now
388
+ names npm's `latest`, 1.1.0, and this candidate's archive; *Resolved
389
+ instant inputs*, `saturnReturn`, *Uniform calculation API* and *Birth
390
+ settings* on the bare-date refusal; the polar paragraph on `polar-angles`;
391
+ the evidence folders.
392
+ - `docs/calc.md`, `docs/de440.md`, `docs/houses.md` and `docs/time.md` name
393
+ 2.0.0 where they said "the release after 1.1.0".
394
+
3
395
  ## 1.1.0 (2026-11-16)
4
396
 
5
397
  A minor release: 1.1.0-rc.13 with the version changed. Checks:
package/LICENSING.md CHANGED
@@ -23,7 +23,8 @@ package's ΔT module, exported as `@zodiacs/engine/deltat`, carries 32 values
23
23
  of Table S15 of Stephenson, Morrison & Hohenkerk 2016, which are CC BY 4.0
24
24
  (see *ΔT data* below), with their attribution in `NOTICE`. The build places
25
25
  that module in a shared chunk under `dist/`, which `dist/deltat.js`
26
- re-exports. Both licences apply to the package as distributed. From
26
+ re-exports, and a copy of it in `dist/core.js`, the file of
27
+ `@zodiacs/engine/core`. Both licences apply to the package as distributed. From
27
28
  0.1.1-rc.8, which added those values, to 0.1.1-rc.13, `package.json` declared
28
29
  `MIT` alone; 0.1.1-rc.14 corrected it.
29
30
 
@@ -123,6 +124,8 @@ equator of date, its sidereal time or its observer functions (`ObserverVector`,
123
124
  (`precession_rot`, from J2000.0) line for line, and `src/calc-reduce.ts` its
124
125
  observer on the ellipsoid (`terra`), under the same MIT notice, which `NOTICE`
125
126
  carries, and the nutation is the engine's own (*Nutation* below).
127
+ `dist/core.js`, the file of `@zodiacs/engine/core`, carries its own copy of
128
+ `src/frame.ts`, and so of `precession_rot`.
126
129
 
127
130
  Repository and dependency searches found no Swiss Ephemeris runtime import,
128
131
  package dependency, vendored source, or generated lookup table in this npm
@@ -241,6 +244,10 @@ before a release carrying the pack is published. On 2026-11-16, before 1.1.0
241
244
  was published, the owner answered the question "Do you accept shipping the
242
245
  NASA DE440 data in 1.1.0?" in writing with "Yes. I delegate these decisions
243
246
  to you."
247
+ That acceptance, recorded as given for 1.1.0, covers 2.0.0 too, which ships
248
+ the same sealed pack: it was given with "Yes. I delegate these decisions to
249
+ you.", and under that delegation it is taken to extend to 2.0.0 and its
250
+ candidates.
244
251
 
245
252
  The rule behind the Sun's disc, from 1.1.0-rc.12, is NASA JPL's. The
246
253
  reduction bends no light from a planet farther than the Sun whose direction
@@ -280,7 +287,8 @@ terms. The build places them in a shared chunk under `dist/` that the
280
287
  ephemeris chunk, `dist/time.js` and `dist/de440.js` import, so the graphs of
281
288
  the root, `./calc`, `./de440`, `./internal`, `./sky`, `./techniques`,
282
289
  `./time`, `./timing`, `./vedic` and `./window` load them, and so does that
283
- of `./de440/pack`, which opens its pack with `./de440`;
290
+ of `./de440/pack`, which opens its pack with `./de440`. `dist/core.js`, the
291
+ file of `@zodiacs/engine/core`, carries its own copy of them.
284
292
  `@zodiacs/engine/de440` sums the same terms in the order the research
285
293
  runtime of zodiacs.org sums them. The model is D. D.
286
294
  McCarthy and B. J. Luzum, "An abridged model of the precession-nutation of
@@ -320,16 +328,26 @@ which are CC BY 4.0. Downstream users who host or redistribute that data are
320
328
  instructed to retain `NOTICE`. The country names in the Gregorian adoption
321
329
  table come from tzdata, not from GeoNames (next section but one).
322
330
 
323
- Its zone histories before 1970 (`dist/tzdb-2025c-*.js`) are compiled by
324
- `scripts/build-tz-shards.mjs` from tzdata 2025c with backzone, which the tz
331
+ Its zone histories before 1970 (`dist/tzdb-2026f-*.js`, from 2.0.0-rc.3;
332
+ `dist/tzdb-2025c-*.js` through 2.0.0-rc.2) are compiled by
333
+ `scripts/build-tz-shards.mjs` from tzdata 2026f with backzone, which the tz
325
334
  project places in the public domain; the script checks the archive's SHA-256.
326
- From 1970 conversion uses the host's `Intl`/ICU data.
335
+ America/Yellowknife's history is compiled from tzdata 2025c's four backzone
336
+ lines that define it, held there by the owner's decision and committed in
337
+ `scripts/tzdb-held/yellowknife-2025c.zi`, whose SHA-256 the script also
338
+ checks; that release is in the public domain too.
339
+ From 1970 conversion uses the host's `Intl`/ICU data, which `./geo` checks
340
+ against a table of the spans in which tzdata 2021a and 2026f give different
341
+ offsets (`src/geo/host-probes-data.ts`), compiled by
342
+ `scripts/build-host-zone-probes.mjs` from those two public-domain releases,
343
+ whose SHA-256 it checks.
327
344
 
328
345
  ## Leap-second and UT1 data
329
346
 
330
347
  `src/time-scale-data.ts` holds the time basis's two IERS tables, which the
331
348
  import graphs of the root entry and of `@zodiacs/engine/time` under `dist/`
332
- carry. `scripts/build-time-scales.mjs`
349
+ carry, and so does `dist/core.js`, the file of `@zodiacs/engine/core`.
350
+ `scripts/build-time-scales.mjs`
333
351
  builds it from inputs committed in `scripts/time-scale-sources/` and checks
334
352
  each one's SHA-256:
335
353
 
@@ -426,7 +444,7 @@ under `dist/` that `dist/geo.js` and `dist/techniques.js` import. Its dates
426
444
  and names come from public-domain sources only:
427
445
 
428
446
  - the `calendars` file of tzdata 2025c (the archive whose SHA-256 the zone
429
- histories pin), which says of itself "This file is in the public domain",
447
+ histories pinned through 2.0.0-rc.2), which says of itself "This file is in the public domain",
430
448
  and whose list quotes H. Grotefend, *Taschenbuch der Zeitrechnung des
431
449
  deutschen Mittelalters und der Neuzeit*, edited by O. Grotefend (Hannover:
432
450
  Hahnsche Buchhandlung, 1941), pp. 26–28;
package/NOTICE CHANGED
@@ -10,7 +10,8 @@ retains the full MIT permission and warranty notice. Source and license metadata
10
10
  https://github.com/cosinekitty/astronomy
11
11
 
12
12
  The package's frame module (src/frame.ts, built into a shared chunk under
13
- dist/ that the ephemeris chunk and dist/time.js import) reproduces
13
+ dist/ that the ephemeris chunk and dist/time.js import, and copied into
14
+ dist/core.js, the file of @zodiacs/engine/core) reproduces
14
15
  astronomy-engine's precession function, precession_rot, and the calc entry's
15
16
  reduction module (src/calc-reduce.ts, built into dist/calc.js) its function
16
17
  for an observer on the Earth's ellipsoid, terra:
@@ -23,9 +24,10 @@ IAU 2000B nutation
23
24
  ------------------
24
25
 
25
26
  The package's nutation module (src/nutation.ts, built into a shared chunk
26
- under dist/ that the ephemeris chunk, dist/time.js and dist/de440.js import)
27
- carries the 77 luni-solar terms, fundamental arguments and fixed planetary
28
- offsets of the IAU 2000B nutation model,
27
+ under dist/ that the ephemeris chunk, dist/time.js and dist/de440.js import,
28
+ and copied into dist/core.js, the file of @zodiacs/engine/core) carries the
29
+ 77 luni-solar terms, fundamental arguments and fixed planetary offsets of the
30
+ IAU 2000B nutation model,
29
31
 
30
32
  D. D. McCarthy and B. J. Luzum 2003, An abridged model of the
31
33
  precession-nutation of the celestial pole. Celestial Mechanics and Dynamical
@@ -175,7 +177,8 @@ exports as @zodiacs/engine/deltat, contains 32 values of Table S15, rounded
175
177
  to 0.01 s, and constants of equations (4.1) and (5.1) from the work below.
176
178
  The build places that module in a shared chunk under dist/, which
177
179
  dist/deltat.js re-exports, so the values are in that chunk rather than in
178
- dist/deltat.js itself.
180
+ dist/deltat.js itself. dist/core.js, the file of @zodiacs/engine/core,
181
+ carries its own copy of the module, and so of the values.
179
182
 
180
183
  Stephenson, F. R., Morrison, L. V. & Hohenkerk, C. Y. 2016, Measurement of
181
184
  the Earth's rotation: 720 BC to AD 2015. Proc. R. Soc. A 472: 20160404.
@@ -212,10 +215,17 @@ Time zone, leap-second and UT1 data
212
215
  -----------------------------------
213
216
 
214
217
  @zodiacs/engine/geo ships zone histories before 1970 compiled from the IANA
215
- Time Zone Database 2025c with its backzone file (tzdata2025c.tar.gz, sha256
216
- 4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957), which is in
217
- the public domain: https://www.iana.org/time-zones. From 1970 local time
218
- comes from the host runtime's Intl/ICU data.
218
+ Time Zone Database 2026f with its backzone file (tzdata2026f.tar.gz, sha256
219
+ 01b4a91cec5167ed48c11e8ab78f2048cead78ce94b0cafcad0ae8c5a3044d3d), except
220
+ America/Yellowknife, compiled from the four backzone lines of the IANA Time
221
+ Zone Database 2025c that define it (tzdata2025c.tar.gz, sha256
222
+ 4aa79e4effee53fc4029ffe5f6ebe97937282ebcdf386d5d2da91ce84142f957). Both are
223
+ in the public domain: https://www.iana.org/time-zones. From 1970 local time
224
+ comes from the host runtime's Intl/ICU data, which it checks against a table
225
+ of the spans in which the IANA Time Zone Database 2021a (tzdata2021a.tar.gz,
226
+ sha256 39e7d2ba08c68cbaefc8de3227aab0dec2521be8042cf56855f7dc3a9fb14e08) and
227
+ 2026f give different offsets, with 2026f's offsets, compiled from those two
228
+ public-domain releases.
219
229
 
220
230
  The core carries TAI - UTC from the IERS leap-second list, leap-seconds.list,
221
231
  updated 2026-07-06 through IERS Bulletin C 72 and expiring 2027-06-28 (sha256