@zodiacs/engine 1.1.0 → 2.0.0-rc.2

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 (54) hide show
  1. package/CHANGELOG.md +224 -0
  2. package/LICENSING.md +4 -0
  3. package/README.md +71 -30
  4. package/dist/{api-ChL1N2Sr.d.ts → api-C_SVd9BJ.d.ts} +7 -2
  5. package/dist/{ayanamsa-ClFzkKmV.d.ts → ayanamsa-Clgkekhh.d.ts} +1 -1
  6. package/dist/calc.d.ts +3 -2
  7. package/dist/calc.js +18 -10
  8. package/dist/{chunk-Y4E3WJU5.js → chunk-CV53HA7R.js} +1 -1
  9. package/dist/{chunk-2PZYJQV5.js → chunk-EEW7746S.js} +1 -1
  10. package/dist/{chunk-WBTWY2OB.js → chunk-FVGA776A.js} +2 -2
  11. package/dist/{chunk-YPU3MDNI.js → chunk-HNVGWN3S.js} +1 -1
  12. package/dist/{chunk-TZVPZHZM.js → chunk-IXFUYEUF.js} +28 -11
  13. package/dist/{chunk-4XOYTBLS.js → chunk-LWZS7HI3.js} +1 -1
  14. package/dist/{chunk-LNGURVNH.js → chunk-N4UQLCBN.js} +1 -1
  15. package/dist/{chunk-7Y2F2IWN.js → chunk-NX4PHQBL.js} +16 -6
  16. package/dist/{chunk-QLIEEICB.js → chunk-PNXIA7MI.js} +24 -10
  17. package/dist/{chunk-NNOSOOWS.js → chunk-SCRO6HWB.js} +4 -2
  18. package/dist/{chunk-B4M2Y7FT.js → chunk-T6F4FYYS.js} +1 -1
  19. package/dist/{chunk-767FTO7O.js → chunk-UXY4RU57.js} +1 -1
  20. package/dist/{chunk-BMDASNPB.js → chunk-WONTOC5W.js} +2 -1
  21. package/dist/crossings.d.ts +1 -1
  22. package/dist/de440-pack.d.ts +1 -1
  23. package/dist/de440-pack.js +4 -4
  24. package/dist/de440.d.ts +1 -1
  25. package/dist/de440.js +3 -3
  26. package/dist/{ephemeris-exTSqBgb.d.ts → ephemeris-D1lM832F.d.ts} +5 -1
  27. package/dist/geo.d.ts +14 -5
  28. package/dist/geo.js +2 -2
  29. package/dist/houses-extra.d.ts +2 -2
  30. package/dist/{houses-Bh7GCnPi.d.ts → houses-icK01yXi.d.ts} +1 -1
  31. package/dist/index.d.ts +7 -7
  32. package/dist/index.js +10 -10
  33. package/dist/{internal-math-CxenuGfm.d.ts → internal-math-BGX23p4h.d.ts} +2 -2
  34. package/dist/internal-math.d.ts +3 -3
  35. package/dist/internal-math.js +2 -2
  36. package/dist/internal.d.ts +3 -3
  37. package/dist/internal.js +7 -7
  38. package/dist/receipt.d.ts +2 -2
  39. package/dist/receipt.js +15 -4
  40. package/dist/{rulers-CSSWtiWF.d.ts → rulers-CpS9qkvu.d.ts} +1 -1
  41. package/dist/sky.d.ts +3 -3
  42. package/dist/sky.js +8 -8
  43. package/dist/techniques.d.ts +2 -2
  44. package/dist/techniques.js +10 -10
  45. package/dist/time.js +3 -3
  46. package/dist/timing.d.ts +4 -4
  47. package/dist/timing.js +10 -10
  48. package/dist/{types-DpPdtXgO.d.ts → types-BCnyWBQZ.d.ts} +21 -4
  49. package/dist/vedic.d.ts +3 -3
  50. package/dist/vedic.js +10 -10
  51. package/dist/window.d.ts +1 -1
  52. package/dist/window.js +8 -8
  53. package/dist/{zone-history-BxmDCcTK.d.ts → zone-history-0XzMGx9V.d.ts} +1 -1
  54. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,229 @@
1
1
  # Engine changelog
2
2
 
3
+ ## 2.0.0-rc.2 (unreleased candidate)
4
+
5
+ The second candidate for **2.0.0**, a major release, on 1.1.0 (main at
6
+ `12943c1`). It is a draft for the owner's review and is not to be published
7
+ on npm until the owner approves it. Checks:
8
+ `docs/evidence/2.0.0-rc.2-20261116/`.
9
+
10
+ 2.0.0-rc.1 was a draft on this same pull request (112), reviewed in draft
11
+ and not tagged or published: this candidate replaces it. Its review found a
12
+ blocker in pull request 105's check of a supplied `polar-angles` claim. The
13
+ fix changes `dist/`, and rc.1's archive is carried, so by the rule in
14
+ `artifacts/README.md` the fixed package takes a new number; rc.1's archive
15
+ stays, unchanged. rc.2 is rc.1 with pull request 105's fix merged into it
16
+ and the changes below; everything rc.1's entry says holds for rc.2 except
17
+ where this entry says otherwise.
18
+
19
+ ### Fixed
20
+
21
+ - **A chart the engine flags `polar-angles` is no longer refused when passed
22
+ back in** (pull request 105, `522a0d6`). The engine sets the flag where
23
+ |latitude| ≥ 90° − (ε₀ + Δε), ε₀ the IAU 2006 mean obliquity
24
+ (`meanObliquity` in `src/houses.ts`, all six terms of its polynomial, up
25
+ to t⁵) and Δε the nutation in obliquity, both at the chart's TT. rc.1
26
+ allowed the flag on a supplied chart (`transits`, `synastry`,
27
+ `saturnReturn` and every timing, techniques and Vedic function that takes
28
+ a chart) and on a natal receipt where
29
+ |latitude| ≥ 66.55772° + 4.1227 × 10⁻¹⁵° for each millisecond from
30
+ J2000, ε₀'s constant and linear terms alone. The terms left out reach 16″
31
+ by 3999, so from 2936 on, at some phases of the nutation, a chart the
32
+ engine flagged at the edge of the circle was refused: `transits` threw
33
+ "chart flags must agree with its input and supplied house result", and its
34
+ natal receipt was refused as `inconsistent_result`, `createNatalEnvelope`
35
+ included. Both checks now allow the claim where
36
+ |latitude| ≥ 90° − ε₀ − 0.003°, ε₀ from the whole polynomial: a supplied
37
+ chart's at the TT of its input's instant, time scale and ΔT, a receipt's
38
+ at its instant on TT input or its instant plus its recorded ΔT on UTC or
39
+ UT1 input (UT1 − UTC, under a second, left out). The receipt entry keeps
40
+ its own copy of the polynomial, so as not to load the houses code, and a
41
+ test holds it to the same six coefficients. The 0.003° (10.8″) margin
42
+ covers Δε, which is under 10″ on every day of the ephemeris span, 0001 to
43
+ 3998 (9.97″ at most); `docs/houses.md` gave it as under 9.3″, which was
44
+ wrong. Tests at 2937-03-18, 2955-09-23, 3197-09-19, 3991-10-06 and
45
+ 3995-10-07, on both hemispheres, find by bisection the latitude at which
46
+ the engine starts to flag and show that chart round-tripping through
47
+ `transits` and a natal receipt, and a claim 0.0005° outside the allowed
48
+ band still refused; a ΔT pinned 95 years from its instant shows the TT is
49
+ the one read. They fail on rc.1 (`src/polar-angles.test.ts`,
50
+ `docs/houses.md`). A chart the engine flags is now accepted at every
51
+ instant of the ephemeris span. A claim on a chart it does not flag is held
52
+ to the polynomial too, which in the early centuries puts the bound up to
53
+ 16″ further from the equator than rc.1's line, so a false claim rc.1 let
54
+ through in that sliver is now refused.
55
+
56
+ ### Client contract
57
+
58
+ - The compute clients' contract (`clients/typescript/contracts/openapi.json`)
59
+ gains `"de440-unavailable"` and `"outside-de440-span"` in `ChartFlag` and
60
+ in the values of `BodyPosition.flags`. Both are real chart flags: the
61
+ ephemeris fallback flags (`EphemerisFallback`), part of the engine's
62
+ `ChartFlag` since 1.1.0-rc.10, which a chart computed on astronomy-engine
63
+ where the shipped DE440 pack was the default carries, and which a
64
+ `positions()` row carries as a chart at the same instant does (rc.1,
65
+ pull request 111). rc.1's contract named only the other two instant
66
+ flags. `provenance.json`'s subset hash and note and the generated
67
+ TypeScript and Python contracts follow. The engine's own types
68
+ (`InstantFlag`, `api/`) already had them.
69
+
70
+ ### Documentation
71
+
72
+ - README.md: this candidate's paragraph, archive and evidence folder; under
73
+ *Input flag compatibility*, all eleven `ChartFlag` values, with
74
+ `calendar-unknown` among the four caller assertions (`dst-gap`,
75
+ `dst-fold`, `lmt`, `calendar-unknown`) and the seven flags a caller may
76
+ echo where the calculation derives them (`no-time`, `polar-fallback`,
77
+ `polar-angles`, `outside-reference-span`, `delta-t-extrapolated`,
78
+ `de440-unavailable`, `outside-de440-span`; rc.1's list named three);
79
+ `saturnReturn` runs one natal calculation for an asserted `polar-angles`
80
+ as for `polar-fallback`, and accepts the three flags it cannot check
81
+ without a chart unchecked.
82
+ - LICENSING.md: the owner's acceptance of shipping the DE440 pack, recorded
83
+ for 1.1.0, covers 2.0.0, which ships the same sealed pack
84
+ (`src/de440/` is unchanged since 1.1.0).
85
+ - rc.1's entry below: its `polar-angles` bullet gave the bound on a supplied
86
+ chart or receipt without saying which mean obliquity; it now points here.
87
+ - Conformance: this engine's results (`conformance/results/`, `RESULTS.md`)
88
+ were regenerated with the harness on Node 22.22.2 and name 2.0.0-rc.2. No
89
+ verdict changes (459 pass, 0 fail, 41 unsupported; on astronomy-engine
90
+ 48 of the 240 positions pass); the 10 polar vectors whose charts fall back
91
+ from Placidus or Koch (`L2-POL-0001` to `0003` and `0005` to `0011`) now
92
+ record `polar-angles` beside `polar-fallback`, in both runs.
93
+
94
+ ### Sizes and budgets
95
+
96
+ - Measured on this candidate's build
97
+ (`docs/evidence/2.0.0-rc.2-20261116/results/package-contents.log`), every
98
+ import graph is inside its budget and no budget or cap is raised. The fix
99
+ adds 32 bytes to the root's graph and to every graph that shares its chunk
100
+ (the time basis read once for both of `resolvedChart`'s checks, and
101
+ `meanObliquity`), and 222 to `./receipt` (its copy of the polynomial):
102
+ the root is 151,563 bytes of 151,700 (137 left), `./timing` 170,866 of
103
+ 171,200, `./receipt` 76,845 of 77,400 and `./techniques` 205,247 of
104
+ 207,300. The package beside the pack is 1,284,237 bytes unpacked
105
+ in 98 files, of 1,289,000 (this entry and the README's lines).
106
+
107
+ ## 2.0.0-rc.1 (unreleased candidate)
108
+
109
+ The first candidate for **2.0.0**, a major release, on 1.1.0 (main at
110
+ `12943c1`). It is a draft for the owner's review and is not to be published
111
+ on npm until the owner approves it. Checks:
112
+ `docs/evidence/2.0.0-rc.1-20261116/`.
113
+
114
+ It carries four pull requests, merged into it with merge commits: 109 (a
115
+ bare birth date refused), 111 (`positions()` rows flagged), 110 (a skipped
116
+ calendar-switch date flagged) and 105 (angles inside the polar circle
117
+ flagged). The number is a major one because of 109: which input a function
118
+ refuses is public (`docs/versioning.md`, *Documented behaviour*), the README
119
+ documented a bare date as midnight UTC, and the owner decided on 2026-11-11
120
+ to hold the refusal for 2.0.0 (1.1.0-rc.6, below). The other three add a
121
+ flag value, a result field and the cases that carry them, which a minor
122
+ release may do.
123
+
124
+ ### Breaking
125
+
126
+ - **A birth given as a calendar date with no time is refused** unless the
127
+ birth time is declared unknown (pull request 109). In 1.x,
128
+ `natalChart({ utc: "1990-05-03" })` read the date as 00:00 UTC and returned
129
+ a chart marked `timeKnown: true`, with a rising sign and houses for a time
130
+ nobody gave. Now it throws a `RangeError`. With `timeKnown: false` the
131
+ same date is accepted, with the `no-time` flag and no angles or houses. A
132
+ full instant (`"1990-05-03T00:00:00Z"`, or with an offset), a `Date` and an
133
+ epoch number are read exactly as before. The refusal covers every root
134
+ function that takes a birth (`natalChart`, `transits`, `synastry`,
135
+ `chartPoints`, `chartDeclinations`, and through the resolved chart the
136
+ timing, techniques and Vedic functions that take one), `saturnReturn` in
137
+ both forms (`saturnReturn("1990-05-03")` and
138
+ `saturnReturn({ utc: "1990-05-03" })`), and calc's `chart()` given such a
139
+ `time` (as a string or `{ iso }`). What to do: write the instant out
140
+ (`"YYYY-MM-DDT00:00:00Z"`) or pass `timeKnown: false`. Not changed: a chart
141
+ already built, a receipt replay, `progressedInstant` and
142
+ `progressedBodies`, timing's `solarArc`, calc's `houses()` and
143
+ `resolveLocalBirth`, which still read a bare date as the README says.
144
+
145
+ ### Flags
146
+
147
+ - **`polar-angles`** (pull request 105). Every chart whose angles are inside
148
+ the polar circle, |latitude| ≥ 90° − ε on the true obliquity of date,
149
+ carries the new `ChartFlag` value `"polar-angles"`, in every house system,
150
+ from `natalChart`, calc's `chart()` and `houses()`; there the ascendant
151
+ turns half a circle twice a sidereal day. 1.1.0 warned only for Placidus
152
+ and Koch (`polar-fallback`). A supplied chart or natal receipt may carry
153
+ the flag where |latitude| ≥ 90° − ε₀ − 0.003°, ε₀ the mean obliquity of
154
+ its instant, may lack it there, and is refused anywhere else
155
+ (`docs/houses.md`; `docs/evidence/polar-angles-20261116/`). In rc.1, ε₀
156
+ there was its constant and linear terms alone, which refused some charts
157
+ the engine flagged from 2936 on; 2.0.0-rc.2 corrects it (above).
158
+ - **`calendar-unknown`** (pull request 110). `ChartFlag` and
159
+ `LocalTimeResolution["flags"]` gain `"calendar-unknown"`, a time flag a
160
+ caller may also assert. `resolveLocalToUtc` and the birth resolvers set it
161
+ when no country the Gregorian adoption table dates is given and the
162
+ written date, in either calendar, falls in the days one of the table's
163
+ changeovers skipped, for a changeover the zone does not rule out. The
164
+ capital zone of a tabled country follows that country's changeover alone,
165
+ for 12 of the 18 rows; the capital zones of the Netherlands, Switzerland,
166
+ Poland, Belgium, Sweden and Finland are not narrowed, since their rows'
167
+ notes date changeovers inside other rows' skipped days. Russia's change of
168
+ 1918 applies only under `Europe/`, `Asia/` or a zone that names no place.
169
+ A country the table does not date no longer silences the flag. The flag
170
+ rides on the birth into the chart's flags and a receipt's `inputFlags`,
171
+ and a receipt refuses it on an instant outside 1582-10-04T00:00Z up to
172
+ 1918-02-28T00:00Z, with or without a local record. The instant is never
173
+ changed. Greece is not in the table, since none of its three sources
174
+ dates its change of 1923, so a Greek date of 1923 is neither flagged nor
175
+ noted (`docs/time.md`; `docs/evidence/calendar-unknown-20261116/`).
176
+ - **`positions()` rows carry flags** (pull request 111). Each row of
177
+ `positions()`, `transits().positions` and `progressedBodies()` carries
178
+ `flags`, the flags `natalChart()` with no place gives at the same instant,
179
+ in the same order (`"outside-reference-span"`, `"delta-t-extrapolated"`,
180
+ then the ephemeris fallback), from one shared function. A row has no
181
+ `flags` property where the chart has none, so rows inside the span on a
182
+ tabulated ΔT are as before. Besides the span's ends, rows after 2027-10-02,
183
+ where the time basis moves from the IERS table to the ΔT model, now carry
184
+ `["delta-t-extrapolated"]`, as `natalChart()` there already does; code
185
+ that deep-compares rows or expects a fixed key set sees the new key there.
186
+ The root exports `InstantFlag`, the subset of `ChartFlag` an instant alone
187
+ determines (`docs/de440.md`; `docs/evidence/positions-span-20261116/`).
188
+ - **Code that switches exhaustively over `ChartFlag`** needs cases for
189
+ `"calendar-unknown"` and `"polar-angles"`.
190
+
191
+ ### Client contract
192
+
193
+ - The compute clients' contract (`clients/typescript/contracts/openapi.json`,
194
+ ahead of the hosted API) gains `"calendar-unknown"` in `ChartFlag`,
195
+ `LocalResolution.flags` and `TimeResult.flags`, `"polar-angles"` in
196
+ `ChartFlag`, and an optional `flags` on `BodyPosition` with the values
197
+ `"outside-reference-span"` and `"delta-t-extrapolated"`, the instant flags
198
+ the contract's `ChartFlag` already names. `provenance.json` and the
199
+ generated TypeScript and Python contracts follow.
200
+
201
+ ### Sizes and budgets
202
+
203
+ - Measured on this candidate's build with all four pull requests
204
+ (`docs/evidence/2.0.0-rc.1-20261116/results/package-contents.log`):
205
+ `./techniques` is 205,215 bytes, over its budget of 203,800 (the
206
+ zone evidence in the local-time chunk it shares with `./geo`, 109's check
207
+ and 111's flags): raised to 207,300. `./geo` is 36,178, over 35,700
208
+ (110's zone evidence and 105's flag): raised to 36,500. `./receipt` is
209
+ 76,623, over 76,500 (the two flags' receipt checks): raised to
210
+ 77,400. Each is the measurement and about one per cent. The package
211
+ beside the pack is 1,276,174 bytes unpacked in 98 files, over
212
+ the cap of 1,265,000 (the four changes' code and declarations, this entry
213
+ and the README's lines): raised to 1,289,000. None of these has the
214
+ owner's approval; they are for the owner to decide with the candidate
215
+ (`scripts/verify-package-contents.mjs`).
216
+
217
+ ### Documentation
218
+
219
+ - README.md: this candidate's paragraph; the install section, which now
220
+ names npm's `latest`, 1.1.0, and this candidate's archive; *Resolved
221
+ instant inputs*, `saturnReturn`, *Uniform calculation API* and *Birth
222
+ settings* on the bare-date refusal; the polar paragraph on `polar-angles`;
223
+ the evidence folders.
224
+ - `docs/calc.md`, `docs/de440.md`, `docs/houses.md` and `docs/time.md` name
225
+ 2.0.0 where they said "the release after 1.1.0".
226
+
3
227
  ## 1.1.0 (2026-11-16)
4
228
 
5
229
  A minor release: 1.1.0-rc.13 with the version changed. Checks:
package/LICENSING.md CHANGED
@@ -241,6 +241,10 @@ before a release carrying the pack is published. On 2026-11-16, before 1.1.0
241
241
  was published, the owner answered the question "Do you accept shipping the
242
242
  NASA DE440 data in 1.1.0?" in writing with "Yes. I delegate these decisions
243
243
  to you."
244
+ That acceptance, recorded as given for 1.1.0, covers 2.0.0 too, which ships
245
+ the same sealed pack: it was given with "Yes. I delegate these decisions to
246
+ you.", and under that delegation it is taken to extend to 2.0.0 and its
247
+ candidates.
244
248
 
245
249
  The rule behind the Sun's disc, from 1.1.0-rc.12, is NASA JPL's. The
246
250
  reduction bends no light from a planet farther than the Sun whose direction
package/README.md CHANGED
@@ -16,8 +16,20 @@ import-time side effects, and performs no network request from its core
16
16
  entry point. Its one runtime side effect is the ΔT it installs in
17
17
  astronomy-engine (see Time below).
18
18
 
19
- **1.1.0**, a minor release: 1.1.0-rc.13 with the version changed
20
- (CHANGELOG.md). It ships a sealed
19
+ **2.0.0-rc.2**, the second candidate for 2.0.0, a major release
20
+ (CHANGELOG.md). It is a draft for the owner's review and is not published to
21
+ npm. It replaces 2.0.0-rc.1, a draft never published, whose check of a
22
+ supplied chart's or receipt's `polar-angles` could refuse a chart the engine
23
+ itself had flagged, from about the year 2936. Over 1.1.0 it refuses a birth given as a calendar date with no time,
24
+ unless `timeKnown` is `false` (the breaking change, *Resolved instant
25
+ inputs* below); flags a chart whose angles are inside the polar circle
26
+ (`polar-angles`); flags a local date that a calendar changeover may have
27
+ skipped, given with no country (`calendar-unknown`, [docs/time.md](docs/time.md));
28
+ and gives each `positions()` row the flags `natalChart()` gives at the same
29
+ instant.
30
+
31
+ **1.1.0**, the release before it, a minor release: 1.1.0-rc.13 with the
32
+ version changed (CHANGELOG.md). It ships a sealed
21
33
  pack of JPL's DE440 for 1790 to 2210 and computes on it by default: a plain
22
34
  `natalChart`, `positions`, `calc` or `birthWindow` call, with nothing opened
23
35
  or supplied, takes the Sun, the Moon, the planets and the true node from the
@@ -67,7 +79,7 @@ that bundles the root entry bundles the pack's 3,319,552 characters (see
67
79
  [docs/de440.md](docs/de440.md) and CHANGELOG.md). 1.1.0-rc.9 was
68
80
  1.1.0's first draft, superseded before review; 1.1.0-rc.10,
69
81
  1.1.0-rc.11 and 1.1.0-rc.12 were drafts on the same pull request, reviewed
70
- and replaced, and this release is 1.1.0-rc.13 with
82
+ and replaced, and 1.1.0 is 1.1.0-rc.13 with
71
83
  the version changed;
72
84
  1.1.0-rc.8 was a draft
73
85
  that shipped the pack behind `withEphemeris` only, withdrawn, and its
@@ -100,11 +112,11 @@ Install it from npm:
100
112
  npm install @zodiacs/engine
101
113
  ```
102
114
 
103
- 1.0.0, npm's `latest` before this release, has no `./conventions`, `./time`,
104
- `./lite`, `./de440` or DE440 pack, computes on astronomy-engine and writes no
105
- ids. Until this release is published, `artifacts/zodiacs-engine-1.1.0.tgz`
106
- in the repository, with its SHA-256 receipt, is the exact archive the Release
107
- workflow publishes.
115
+ That installs npm's `latest`, 1.1.0, not this candidate:
116
+ `artifacts/zodiacs-engine-2.0.0-rc.2.tgz` in the repository, with its
117
+ SHA-256 receipt, is this candidate's exact archive. 1.0.0, npm's `latest`
118
+ before 1.1.0, has no `./conventions`, `./time`, `./lite`, `./de440` or DE440
119
+ pack, computes on astronomy-engine and writes no ids.
108
120
 
109
121
  The Release workflow publishes the archive carried in `artifacts/` as it is,
110
122
  with provenance (CONTRIBUTING.md, *Releases*). Before 1.0.0 npm carried
@@ -127,7 +139,7 @@ themselves and are not affected.
127
139
 
128
140
  From a source checkout, run `npm ci` and `npm run build`, then
129
141
  `npm pack --ignore-scripts`. Test the packed file in a clean consumer using
130
- `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-1.1.0.tgz`.
142
+ `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-2.0.0-rc.2.tgz`.
131
143
  The smoke check
132
144
  downloads the artifact's public dependencies and TypeScript 5.9.3; its output
133
145
  records the artifact hash and runtime, and it removes its temporary consumer
@@ -190,8 +202,8 @@ DE440 pack inside its years and astronomy-engine 2.1.19 elsewhere; where this
190
202
  document speaks of the ephemeris's accuracy or of its error limits without
191
203
  naming DE440, it speaks of astronomy-engine, the fallback and the ephemeris
192
204
  of what the pack does not give. See CHANGELOG.md for the release history and
193
- `docs/evidence/1.1.0-20261116/` for this release's checks
194
- (1.1.0-rc.13's are in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
205
+ `docs/evidence/2.0.0-rc.2-20261116/` for this candidate's checks
206
+ (2.0.0-rc.1's are in `docs/evidence/2.0.0-rc.1-20261116/`, 1.1.0's in `docs/evidence/1.1.0-20261116/`, 1.1.0-rc.13's in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
195
207
  `docs/evidence/1.1.0-rc.12-20261115/`, 1.1.0-rc.11's and 1.1.0-rc.10's in
196
208
  their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
197
209
  `docs/evidence/1.1.0-rc.9-20261114/`)
@@ -286,7 +298,10 @@ for (const aspect of today.aspects) {
286
298
  - `transits(natal, date)` returns a sky snapshot and moving-to-natal aspects.
287
299
  - `synastry(a, b)` returns inter-chart aspects and element/modality balances.
288
300
  - `moonPhase(date)` returns elongation, illuminated fraction, and phase name.
289
- - `saturnReturn(birth)` returns exact-pass seasons through roughly age 92.
301
+ - `saturnReturn(birth)` returns exact-pass seasons through roughly age 92. A
302
+ birth given as a calendar date with no time, `"YYYY-MM-DD"` or
303
+ `{ utc: "YYYY-MM-DD" }`, is refused with a `RangeError` (from 2.0.0); pass
304
+ `{ utc: "YYYY-MM-DD", timeKnown: false }` for a birth whose time is not known.
290
305
  - `findLongitudeCrossings(body, longitude, from, to)` returns the instants a
291
306
  body crosses a longitude, and `searchLongitudeCrossings` does the same under
292
307
  a sample budget. `@zodiacs/engine/crossings` provides the same solver for a
@@ -356,7 +371,9 @@ for (const aspect of today.aspects) {
356
371
 
357
372
  `@zodiacs/engine/calc` offers `calc`, `houses`, `events` and `chart` with one
358
373
  vocabulary: instants as ISO strings, Dates or `{ jd, scale: "utc" | "ut1" | "tt" }`
359
- on the engine's time basis, as `positions()` reads them;
374
+ on the engine's time basis, as `positions()` reads them, except that `chart()`
375
+ refuses a `time` given as a calendar date with no time (`"YYYY-MM-DD"`) with a
376
+ `RangeError`, as a birth's `utc` is refused (from 2.0.0);
360
377
  eight frames (the ecliptic or the equator; true or mean of date, J2000.0 or
361
378
  the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
362
379
  apparent, astrometric or geometric positions with distances and speeds; and
@@ -679,7 +696,10 @@ Placidus and Koch are undefined in polar regions, where |latitude| ≥ 90° −
679
696
  with ε the true obliquity of date (about 66.56° today). There the engine falls
680
697
  back to whole-sign houses, exported as `POLAR_FALLBACK` (and as
681
698
  `PLACIDUS_POLAR_FALLBACK`, deprecated from 1.0, since Koch falls back too),
682
- and adds `polar-fallback` to the chart flags. Swiss
699
+ and adds `polar-fallback` to the chart flags. From 2.0.0 every chart whose
700
+ angles are inside the polar circle carries `polar-angles` too, in every house
701
+ system, since the ascendant there turns half a circle twice a day
702
+ (`docs/houses.md`). Swiss
683
703
  Ephemeris falls back to Porphyry instead. Every other system is defined at
684
704
  every latitude where the angles are. Inside the polar circle, where the
685
705
  ascendant is taken on the eastern half of the horizon, Regiomontanus, Campanus
@@ -743,24 +763,34 @@ arcminutes from Swiss's.
743
763
 
744
764
  ### Input flag compatibility
745
765
 
746
- Public birth inputs accept all nine `ChartFlag` values: the six below,
747
- `delta-t-extrapolated` (see Time) and the two fallback flags,
748
- `de440-unavailable` and `outside-de440-span`, each of which a caller may echo
749
- only where the calculation derives it. Supply an array with at
766
+ Public birth inputs accept all eleven `ChartFlag` values. Four are caller
767
+ assertions: `dst-gap`, `dst-fold`, `lmt` and `calendar-unknown`. The other
768
+ seven are derived by the calculation, and a caller may echo each only where
769
+ the calculation derives it: `no-time`, `polar-fallback`, `polar-angles`,
770
+ `outside-reference-span`, `delta-t-extrapolated` (see Time) and the two
771
+ fallback flags, `de440-unavailable` and `outside-de440-span`. Supply an array with at
750
772
  most 64 entries; entries must be known string values in ordinary data slots.
751
773
  Repeated values collapse in first-occurrence order. Unknown strings, sparse
752
774
  slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
753
775
  claims reject with a `RangeError` that does not include supplied flag values.
754
776
 
755
- `dst-gap`, `dst-fold` and `lmt` remain caller assertions: a UTC instant alone
756
- cannot verify a historical local-time resolution. The geo resolver sets
757
- `dst-gap` or `dst-fold` for a skipped or repeated wall time of any cause (the
758
- names are kept; its `jump.cause` gives the cause) and `lmt` when a local mean
759
- time clock read it. `no-time`,
760
- `polar-fallback` and `outside-reference-span` may be echoed for compatibility,
761
- but must agree with the calculation. Set `timeKnown: false` for unknown time; a flag never overrides that
762
- setting. A fallback assertion requires the actual requested Placidus calculation
763
- to produce whole-sign houses, which it does only inside the polar circle.
777
+ `dst-gap`, `dst-fold`, `lmt` and `calendar-unknown` remain caller
778
+ assertions: a UTC instant alone cannot verify a historical local-time
779
+ resolution. The geo resolver sets `dst-gap` or `dst-fold` for a skipped or
780
+ repeated wall time of any cause (the names are kept; its `jump.cause` gives
781
+ the cause) and `lmt` when a local mean time clock read it; it and the birth
782
+ resolvers set `calendar-unknown` on a local date, given with no country, that
783
+ a calendar changeover may have skipped ([docs/time.md](docs/time.md)). A
784
+ natal receipt refuses `calendar-unknown` on an instant before 1582-10-04 or
785
+ from 1918-02-28 (UTC).
786
+ `no-time`, `polar-fallback`, `polar-angles`, `outside-reference-span`,
787
+ `delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` may be
788
+ echoed for compatibility, but must agree with the calculation. Set
789
+ `timeKnown: false` for unknown time; a flag never overrides that setting. A
790
+ `polar-fallback` assertion requires the requested Placidus or Koch
791
+ calculation to produce whole-sign houses, which it does only inside the polar
792
+ circle, and a `polar-angles` assertion requires angles inside the polar
793
+ circle.
764
794
 
765
795
  `natalChart` stores only distinct time-resolution assertions in `chart.input.flags`
766
796
  and derives result flags once. This is canonical semantic input, not a lossless
@@ -776,8 +806,12 @@ preserving numerical arrays and engine version. These checks happen at call
776
806
  time and do not freeze caller-owned objects.
777
807
 
778
808
  Ordinary Saturn-return inputs require no extra natal calculation. A raw birth
779
- input that explicitly asserts `polar-fallback` requires one natal calculation to
780
- check that assertion before the return scan. A supplied Chart instead receives
809
+ input that explicitly asserts `polar-fallback` or `polar-angles` requires one
810
+ natal calculation to check that assertion before the return scan. Its other
811
+ derived echoes are checked against the input alone: `no-time` against
812
+ `timeKnown: false` and `outside-reference-span` against the instant;
813
+ `delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` are
814
+ accepted there unchecked, since no chart is computed. A supplied Chart instead receives
781
815
  the consistency check above, without natal recomputation. Public birth and
782
816
  `resolveBirth` settings are validated once and the captured scalar values are
783
817
  used for calculation/resolution. Explicit null settings or local time are
@@ -1005,6 +1039,11 @@ string forms:
1005
1039
 
1006
1040
  - `YYYY-MM-DD`, interpreted as midnight UTC using the proleptic Gregorian
1007
1041
  calendar. This convenience does not infer a birthplace's local midnight.
1042
+ As a birth (`BirthInput.utc`, `saturnReturn`'s birth in either form, and
1043
+ calc `chart()`'s `time`) a calendar date with no time is refused with a
1044
+ `RangeError` unless `timeKnown` is `false` (from 2.0.0; earlier releases
1045
+ read it as midnight UTC); elsewhere it still reads as midnight UTC. Write
1046
+ `YYYY-MM-DDT00:00:00Z` to ask for midnight UTC.
1008
1047
  - `YYYY-MM-DDTHH:mm[:ss[.sss]]Z`, or the same date-time with an explicit
1009
1048
  `+HH:mm` or `-HH:mm` offset. Fractional seconds, when supplied, have one to
1010
1049
  three digits. ISO expanded years use a sign and six digits, such as
@@ -1050,7 +1089,9 @@ latitude, which in reality stays within about 1.2″ of zero, comes out as
1050
1089
  Birth settings accept only a `houseSystem` from the thirteen above, a boolean
1051
1090
  `timeKnown` and a `timeScale` (see Time). Omitting them defaults to `"whole"`,
1052
1091
  `true` and `"utc"`; explicit `null` and other unsupported values throw
1053
- `RangeError`, including when coordinates are absent. Latitude and longitude
1092
+ `RangeError`, including when coordinates are absent. `timeKnown: false` is
1093
+ what lets a birth be given as a calendar date with no time; with the default
1094
+ `true` such a date is refused (from 2.0.0). Latitude and longitude
1054
1095
  must be supplied together as finite numbers within `[-90, 90]` and
1055
1096
  `[-180, 180]` respectively.
1056
1097
 
@@ -1,5 +1,5 @@
1
1
  import { DeltaT } from './deltat.js';
2
- import { E as EphemerisFallback, B as BodyName, e as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, T as TransitResult } from './types-DpPdtXgO.js';
2
+ import { E as EphemerisFallback, B as BodyName, e as DateInput, d as Chart, h as BirthInput, i as ChartPoints, M as MoonPhase, c as BodyPosition, S as SynastryResult, T as TransitResult } from './types-BCnyWBQZ.js';
3
3
  import { LongitudeCrossing, CrossingSearchOptions, CrossingSearchResult } from './crossings.js';
4
4
 
5
5
  /** Geometry over full ecliptic positions; no independent ephemeris is implied. */
@@ -228,7 +228,12 @@ declare function transits(natal: NatalSource, date: DateInput): TransitResult;
228
228
  declare function synastry(first: NatalSource, second: NatalSource): SynastryResult;
229
229
  /** High-precision Moon phase derived from the same positions as charts. */
230
230
  declare function moonPhase(date: DateInput): MoonPhase;
231
- /** Natal Saturn and return seasons through approximately age 92. */
231
+ /**
232
+ * Natal Saturn and return seasons through approximately age 92. A calendar
233
+ * date with no time, such as "1990-05-03", given in place of a birth or as a
234
+ * birth's `utc`, is refused with a RangeError unless the birth object sets
235
+ * `timeKnown: false`.
236
+ */
232
237
  declare function saturnReturn(birth: SaturnReturnSource): SaturnReturnResult;
233
238
 
234
239
  export { transits as A, type ChartDeclinations as C, DECLINATION_ORB as D, type EquatorialCoordinates as E, type NatalSource as N, RA_POLE_TOLERANCE as R, SUN_BOUND_LATITUDE as S, DECLINATION_ORB_LUMINARY as a, DEFAULT_DECLINATION_ORB_POLICY as b, type DeclinationAspect as c, type DeclinationAspectType as d, type DeclinationBody as e, type DeclinationOrbPolicy as f, type DeclinationRow as g, type Declinations as h, type ReturnSeason as i, type SaturnReturnResult as j, type SaturnReturnSource as k, chartDeclinations as l, chartPoints as m, declinationOf as n, declinationOrb as o, declinationsForBodies as p, eclipticToEquatorial as q, findDeclinationAspects as r, findLongitudeCrossings as s, groupIntoSeasons as t, moonPhase as u, natalChart as v, positions as w, saturnReturn as x, searchLongitudeCrossings as y, synastry as z };
@@ -1,6 +1,6 @@
1
1
  import { DeltaT } from './deltat.js';
2
2
  import { a as TimeScaleName, T as TimeScale } from './time-scale-DIFNa0gz.js';
3
- import { e as DateInput } from './types-DpPdtXgO.js';
3
+ import { e as DateInput } from './types-BCnyWBQZ.js';
4
4
 
5
5
  /** The precession model of an epoch value: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976. */
6
6
  type AyanamsaPrecessionModel = "engine" | "newcomb" | "iau1976";
package/dist/calc.d.ts CHANGED
@@ -2,8 +2,8 @@ import { DeltaT } from './deltat.js';
2
2
  import { E as EPHEMERIS_SPAN } from './reference-span-CILpclrz.js';
3
3
  import { T as TimeBands } from './time-bands-CZA9AlLg.js';
4
4
  import { T as TimeScale, a as TimeScaleName } from './time-scale-DIFNa0gz.js';
5
- import { g as ChartFlag, B as BodyName, H as HouseSystem, d as Chart, A as Angles } from './types-DpPdtXgO.js';
6
- import { A as AyanamsaName, a as AyanamsaPrecessionModel } from './ayanamsa-ClFzkKmV.js';
5
+ import { g as ChartFlag, B as BodyName, H as HouseSystem, d as Chart, A as Angles } from './types-BCnyWBQZ.js';
6
+ import { A as AyanamsaName, a as AyanamsaPrecessionModel } from './ayanamsa-Clgkekhh.js';
7
7
 
8
8
  /**
9
9
  * The frames of the calc entry point. A position is first found as a vector on
@@ -418,6 +418,7 @@ interface EventsResult {
418
418
  */
419
419
  declare function events(request: EventsRequest): EventsResult | CalcRefusal;
420
420
  interface ChartRequest {
421
+ /** A calendar date with no time, such as "1990-05-03", is refused with a RangeError unless `timeKnown` is false. */
421
422
  readonly time: CalcTime;
422
423
  /** Without a place there are no angles or houses. */
423
424
  readonly place?: CalcLocation;
package/dist/calc.js CHANGED
@@ -7,11 +7,11 @@ import {
7
7
  userAyanamsa,
8
8
  wholeSignCusps,
9
9
  wrap360
10
- } from "./chunk-WBTWY2OB.js";
10
+ } from "./chunk-FVGA776A.js";
11
11
  import {
12
12
  eclipticRows,
13
13
  equatorRows
14
- } from "./chunk-4XOYTBLS.js";
14
+ } from "./chunk-LWZS7HI3.js";
15
15
  import {
16
16
  timeBands
17
17
  } from "./chunk-I3L4POY7.js";
@@ -26,19 +26,19 @@ import {
26
26
  meanNodeLongitude,
27
27
  onChartClock,
28
28
  refuseUnderSource
29
- } from "./chunk-QLIEEICB.js";
29
+ } from "./chunk-PNXIA7MI.js";
30
30
  import {
31
31
  dateFrom
32
32
  } from "./chunk-CPALRSPC.js";
33
33
  import {
34
34
  ENGINE_VERSION,
35
35
  EPHEMERIS
36
- } from "./chunk-B4M2Y7FT.js";
36
+ } from "./chunk-T6F4FYYS.js";
37
37
  import {
38
38
  eclipticFrame,
39
39
  eclipticOfDate,
40
40
  meanEcliptic
41
- } from "./chunk-2PZYJQV5.js";
41
+ } from "./chunk-EEW7746S.js";
42
42
  import {
43
43
  EPHEMERIS_SPAN,
44
44
  REFERENCE_SPAN,
@@ -49,19 +49,20 @@ import {
49
49
  import {
50
50
  searchLongitudeCrossingsWith
51
51
  } from "./chunk-TSS2SZWQ.js";
52
- import "./chunk-767FTO7O.js";
53
- import "./chunk-YPU3MDNI.js";
52
+ import "./chunk-UXY4RU57.js";
53
+ import "./chunk-HNVGWN3S.js";
54
54
  import {
55
55
  tilt
56
- } from "./chunk-Y4E3WJU5.js";
56
+ } from "./chunk-CV53HA7R.js";
57
57
  import {
58
58
  computeAngles,
59
59
  computeHouses,
60
60
  eastPointOf,
61
+ insidePolarCircle,
61
62
  isPolarUndefinedHouseSystem,
62
63
  ramcOf,
63
64
  vertexOf
64
- } from "./chunk-NNOSOOWS.js";
65
+ } from "./chunk-SCRO6HWB.js";
65
66
  import {
66
67
  normalizeLongitude
67
68
  } from "./chunk-RMBWKZI2.js";
@@ -71,7 +72,7 @@ import {
71
72
  snapshotFlags,
72
73
  timeFlags,
73
74
  validateBirthSettings
74
- } from "./chunk-BMDASNPB.js";
75
+ } from "./chunk-WONTOC5W.js";
75
76
 
76
77
  // src/calc.ts
77
78
  import { AstroTime, GeoMoonState, KM_PER_AU as KM_PER_AU2 } from "astronomy-engine";
@@ -1027,6 +1028,7 @@ function houses(request) {
1027
1028
  const turned = angleBands(input, computed.system, bands, moved, value === null ? 0 : value.true);
1028
1029
  const late = deltaTExtrapolated(used, 1);
1029
1030
  const flags = fellBack ? ["polar-fallback"] : [];
1031
+ if (insidePolarCircle(input)) flags.push("polar-angles");
1030
1032
  if (late) flags.push("delta-t-extrapolated");
1031
1033
  return {
1032
1034
  status: "ok",
@@ -1186,7 +1188,13 @@ function chart(request) {
1186
1188
  const timeKnown = settings.timeKnown ?? true;
1187
1189
  const possible = !timeKnown ? ["no-time"] : settings.houseSystem && isPolarUndefinedHouseSystem(houseSystem) && place ? ["polar-fallback"] : [];
1188
1190
  possible.push("delta-t-extrapolated", "de440-unavailable", "outside-de440-span");
1191
+ if (timeKnown && place) possible.push("polar-angles");
1189
1192
  assertDerivedFlags(supplied ?? [], possible);
1193
+ if ("iso" in time.record && !time.record.iso.includes("T") && settings.timeKnown !== false) {
1194
+ throw new RangeError(
1195
+ "time is a calendar date with no time. Give the birth instant with its UTC offset, such as 1990-05-03T08:30:00+02:00, or set timeKnown: false if the birth time is not known."
1196
+ );
1197
+ }
1190
1198
  const input = {
1191
1199
  utc,
1192
1200
  houseSystem,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  meanObliquity
3
- } from "./chunk-NNOSOOWS.js";
3
+ } from "./chunk-SCRO6HWB.js";
4
4
 
5
5
  // src/nutation.ts
6
6
  var DEG = Math.PI / 180;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  tilt
3
- } from "./chunk-Y4E3WJU5.js";
3
+ } from "./chunk-CV53HA7R.js";
4
4
  import {
5
5
  normalizeLongitude
6
6
  } from "./chunk-RMBWKZI2.js";
@@ -4,14 +4,14 @@ import {
4
4
  import {
5
5
  onChartClock,
6
6
  refuseUnderSource
7
- } from "./chunk-QLIEEICB.js";
7
+ } from "./chunk-PNXIA7MI.js";
8
8
  import {
9
9
  dateFrom
10
10
  } from "./chunk-CPALRSPC.js";
11
11
  import {
12
12
  eclipticFrame,
13
13
  meanEcliptic
14
- } from "./chunk-2PZYJQV5.js";
14
+ } from "./chunk-EEW7746S.js";
15
15
  import {
16
16
  REFERENCE_SPAN,
17
17
  TIME_SCALE_NAMES,
@@ -4,7 +4,7 @@ import {
4
4
  NUTATION_TERMS,
5
5
  OFFSETS,
6
6
  coefficients
7
- } from "./chunk-Y4E3WJU5.js";
7
+ } from "./chunk-CV53HA7R.js";
8
8
 
9
9
  // src/de440/pack.ts
10
10
  var De440Error = class extends Error {