@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/README.md CHANGED
@@ -16,8 +16,29 @@ import-time side effects, and performs no network request from its core
16
16
  entry point. Its one runtime side effect is the ΔT it installs in
17
17
  astronomy-engine (see Time below).
18
18
 
19
- **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.3**, the third 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. Over 2.0.0-rc.2, a candidate never tagged or published, it refuses
22
+ common near-miss names for a birth field, such as `lat`, `lng`, `houses` and
23
+ `scale`, which were ignored (a breaking change, *Birth settings* below);
24
+ reads UTC after the IERS UT1 table, which ends on 2027-10-02, on the
25
+ continuous-UTC rule, TT = UTC + 69.184 s (*Time*); reads wall times before
26
+ 1970 on tzdata 2026f's zone histories, America/Yellowknife held at tzdata
27
+ 2025c by the owner's decision; flags a wall time where the device's time
28
+ zone data differs from tzdata 2026f (`host-zone-data-differs`); adds Julian
29
+ Day Numbers and local mean time from a longitude to `@zodiacs/engine/geo`;
30
+ and adds `@zodiacs/engine/core`, the root's functions without the DE440
31
+ pack (*Bundle size in a web page*). Over 1.1.0, as 2.0.0-rc.1 and rc.2 did,
32
+ it refuses a birth given as a calendar date with no time,
33
+ unless `timeKnown` is `false` (the breaking change, *Resolved instant
34
+ inputs* below); flags a chart whose angles are inside the polar circle
35
+ (`polar-angles`); flags a local date that a calendar changeover may have
36
+ skipped, given with no country (`calendar-unknown`, [docs/time.md](docs/time.md));
37
+ and gives each `positions()` row the flags `natalChart()` gives at the same
38
+ instant.
39
+
40
+ **1.1.0**, the release before it, a minor release: 1.1.0-rc.13 with the
41
+ version changed (CHANGELOG.md). It ships a sealed
21
42
  pack of JPL's DE440 for 1790 to 2210 and computes on it by default: a plain
22
43
  `natalChart`, `positions`, `calc` or `birthWindow` call, with nothing opened
23
44
  or supplied, takes the Sun, the Moon, the planets and the true node from the
@@ -67,7 +88,7 @@ that bundles the root entry bundles the pack's 3,319,552 characters (see
67
88
  [docs/de440.md](docs/de440.md) and CHANGELOG.md). 1.1.0-rc.9 was
68
89
  1.1.0's first draft, superseded before review; 1.1.0-rc.10,
69
90
  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
91
+ and replaced, and 1.1.0 is 1.1.0-rc.13 with
71
92
  the version changed;
72
93
  1.1.0-rc.8 was a draft
73
94
  that shipped the pack behind `withEphemeris` only, withdrawn, and its
@@ -100,11 +121,11 @@ Install it from npm:
100
121
  npm install @zodiacs/engine
101
122
  ```
102
123
 
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.
124
+ That installs npm's `latest`, 1.1.0, not this candidate:
125
+ `artifacts/zodiacs-engine-2.0.0-rc.3.tgz` in the repository, with its
126
+ SHA-256 receipt, is this candidate's exact archive. 1.0.0, npm's `latest`
127
+ before 1.1.0, has no `./conventions`, `./time`, `./lite`, `./de440` or DE440
128
+ pack, computes on astronomy-engine and writes no ids.
108
129
 
109
130
  The Release workflow publishes the archive carried in `artifacts/` as it is,
110
131
  with provenance (CONTRIBUTING.md, *Releases*). Before 1.0.0 npm carried
@@ -127,7 +148,7 @@ themselves and are not affected.
127
148
 
128
149
  From a source checkout, run `npm ci` and `npm run build`, then
129
150
  `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`.
151
+ `npm run consumer:smoke -- /absolute/path/to/zodiacs-engine-2.0.0-rc.3.tgz`.
131
152
  The smoke check
132
153
  downloads the artifact's public dependencies and TypeScript 5.9.3; its output
133
154
  records the artifact hash and runtime, and it removes its temporary consumer
@@ -185,13 +206,15 @@ gained a conventions set that names the nutation; rc.15's receipts stay
185
206
  readable. As in rc.15, a chart's instant is read on a time basis: from 1972
186
207
  to 2027-10-02 as UTC, with TT from the leap seconds and UT1 from IERS
187
208
  UT1 − UTC, and otherwise as UT1 with the ΔT model, or on UT1 or TT when
188
- `timeScale` says so (see Time). From 1.1.0-rc.9 the ephemeris is the shipped
209
+ `timeScale` says so (see Time); from 2.0.0-rc.3, a UTC instant after that
210
+ IERS table is read on the continuous-UTC rule instead, TT = UTC + 69.184 s
211
+ with UT1 from the ΔT model. From 1.1.0-rc.9 the ephemeris is the shipped
189
212
  DE440 pack inside its years and astronomy-engine 2.1.19 elsewhere; where this
190
213
  document speaks of the ephemeris's accuracy or of its error limits without
191
214
  naming DE440, it speaks of astronomy-engine, the fallback and the ephemeris
192
215
  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
216
+ `docs/evidence/2.0.0-rc.3-20261117/` for this candidate's checks
217
+ (2.0.0-rc.2's are in `docs/evidence/2.0.0-rc.2-20261116/`, 2.0.0-rc.1's in `docs/evidence/2.0.0-rc.1-20261116/`, 1.1.0's in `docs/evidence/1.1.0-20261116/`, 1.1.0-rc.13's in `docs/evidence/1.1.0-rc.13-20261115/`, 1.1.0-rc.12's in
195
218
  `docs/evidence/1.1.0-rc.12-20261115/`, 1.1.0-rc.11's and 1.1.0-rc.10's in
196
219
  their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
197
220
  `docs/evidence/1.1.0-rc.9-20261114/`)
@@ -203,6 +226,55 @@ their own dated folders there, 1.1.0-rc.9's, its superseded draft's, are in
203
226
  `docs/evidence/1.0.0-rc.1-20261006/`, rc.17's in
204
227
  `docs/evidence/rc17-20261005/`). Site adoption is reviewed separately.
205
228
 
229
+ ## Bundle size in a web page
230
+
231
+ Measured on 17 November 2026 with esbuild 0.28.2, Rollup 4.67.4, Vite 8.3.5
232
+ and webpack 5.112.2, each in production mode and minified, on 2.0.0-rc.3's
233
+ archive; brotli is quality 11 (Node 22.22.2's zlib). The programs and the
234
+ method are in `tools/bundle-weight/` and `docs/evidence/bundle-weight-20261117/`;
235
+ every number here is in
236
+ `docs/evidence/2.0.0-rc.3-20261117/results/bundle-weight/results.json`. Load
237
+ times in a browser were not measured.
238
+
239
+ - **The root entry.** A page that imports `natalChart` from
240
+ `@zodiacs/engine` carries the shipped DE440 pack: 3,416,191 to 3,418,817
241
+ bytes of script under the four bundlers (about 3.42 MB), 2,279,842 to
242
+ 2,281,947 bytes with brotli (about 2.28 MB).
243
+ `setDefaultEphemeris("astronomy-engine")` does not make it smaller: the
244
+ pack stays in the bundle (3,416,351 to 3,418,978 bytes).
245
+ - **`@zodiacs/engine/core`** exports the root's names and computes on
246
+ astronomy-engine, without the pack. The same page is then 77,042 to 80,192
247
+ bytes (about 77 to 80 KB), 28,800 to 30,554 bytes with brotli (about
248
+ 29 to 31 KB). Its positions are less exact: on the conformance suite's 240
249
+ position tests (within 1″ of JPL's DE441), 48 pass, against 240 for the
250
+ root on the pack. Both figures are the root's in `conformance/RESULTS.md`:
251
+ the 48 from its run after `setDefaultEphemeris("astronomy-engine")`, which
252
+ the package's smoke test checks the core entry matches, test for test.
253
+ Every chart from it names astronomy-engine as its ephemeris, as the root's
254
+ does after `setDefaultEphemeris("astronomy-engine")`, and equals that
255
+ chart. The entry
256
+ is a copy of the root's code with its own settings: `setDefaultEphemeris`
257
+ in one entry does not change the other, an aspect policy made by one
258
+ entry's `createAspectPolicy` is refused by the other's, and a page that
259
+ imports both carries both.
260
+ `setDefaultEphemeris("de440")` in it still computes on astronomy-engine and
261
+ flags each result `"de440-unavailable"`; for DE440 positions, import the
262
+ root, or supply a pack through `@zodiacs/engine/de440` and the core entry's
263
+ `withEphemeris`.
264
+ - **Loading the root when it is needed.** To keep DE440 positions and a
265
+ small first script, import the root on demand:
266
+
267
+ ```js
268
+ button.addEventListener("click", async () => {
269
+ const { natalChart } = await import("@zodiacs/engine");
270
+ show(natalChart(birth));
271
+ });
272
+ ```
273
+
274
+ All four bundlers put the pack in a file of its own: the page's first
275
+ script is 745 to 2,534 bytes, and the pack arrives on the click, in one
276
+ file of 3,415,737 to 3,446,051 bytes. The first chart waits for that file.
277
+
206
278
  ## Natal chart in 10 lines
207
279
 
208
280
  ```ts
@@ -286,13 +358,18 @@ for (const aspect of today.aspects) {
286
358
  - `transits(natal, date)` returns a sky snapshot and moving-to-natal aspects.
287
359
  - `synastry(a, b)` returns inter-chart aspects and element/modality balances.
288
360
  - `moonPhase(date)` returns elongation, illuminated fraction, and phase name.
289
- - `saturnReturn(birth)` returns exact-pass seasons through roughly age 92.
361
+ - `saturnReturn(birth)` returns exact-pass seasons through roughly age 92. A
362
+ birth given as a calendar date with no time, `"YYYY-MM-DD"` or
363
+ `{ utc: "YYYY-MM-DD" }`, is refused with a `RangeError` (from 2.0.0); pass
364
+ `{ utc: "YYYY-MM-DD", timeKnown: false }` for a birth whose time is not known.
290
365
  - `findLongitudeCrossings(body, longitude, from, to)` returns the instants a
291
366
  body crosses a longitude, and `searchLongitudeCrossings` does the same under
292
367
  a sample budget. `@zodiacs/engine/crossings` provides the same solver for a
293
368
  longitude function of your own, without the ephemeris.
294
369
  - `@zodiacs/engine/geo` provides IANA local-time resolution, Julian calendar
295
- dates and a client for a separately hosted, sharded GeoNames index.
370
+ dates, Julian Day Numbers and a longitude's local mean time
371
+ (`julianDayNumber`, `dateOfJulianDayNumber`, `localMeanTimeOffset`, new in
372
+ 2.0.0-rc.3) and a client for a separately hosted, sharded GeoNames index.
296
373
  - `@zodiacs/engine/techniques` provides solar and lunar returns, composite and
297
374
  Davison charts, the void-of-course Moon, aspect patterns, essential
298
375
  dignities and the Moon signs possible over a date (see `docs/techniques.md`).
@@ -351,12 +428,18 @@ for (const aspect of today.aspects) {
351
428
  `@zodiacs/engine/techniques`', with the same results; its sect part
352
429
  (`sectReading`, `orientality` and their constants) is new (see
353
430
  [docs/lite.md](docs/lite.md)).
431
+ - `@zodiacs/engine/core`, new in 2.0.0-rc.3, exports every name the root
432
+ exports and computes on astronomy-engine, without the DE440 pack, for pages
433
+ where script size matters more than the pack's accuracy (see *Bundle size
434
+ in a web page*).
354
435
 
355
436
  ### Uniform calculation API
356
437
 
357
438
  `@zodiacs/engine/calc` offers `calc`, `houses`, `events` and `chart` with one
358
439
  vocabulary: instants as ISO strings, Dates or `{ jd, scale: "utc" | "ut1" | "tt" }`
359
- on the engine's time basis, as `positions()` reads them;
440
+ on the engine's time basis, as `positions()` reads them, except that `chart()`
441
+ refuses a `time` given as a calendar date with no time (`"YYYY-MM-DD"`) with a
442
+ `RangeError`, as a birth's `utc` is refused (from 2.0.0);
360
443
  eight frames (the ecliptic or the equator; true or mean of date, J2000.0 or
361
444
  the ICRS); geocentric, heliocentric, barycentric and topocentric centers;
362
445
  apparent, astrometric or geometric positions with distances and speeds; and
@@ -394,7 +477,11 @@ bound on its first-order movement, not that movement. On UTC input from
394
477
  (exactly to 2027-06-28, when the shipped list expires; after it the list's
395
478
  last value is carried), so every geocentric, heliocentric and barycentric
396
479
  position's band is 0 there, and the band falls on the angles and cusps,
397
- topocentric positions and each event's UT1 (docs/calc.md, *Bands*).
480
+ topocentric positions and each event's UT1 (docs/calc.md, *Bands*). From
481
+ 2.0.0-rc.3 the same holds on UTC input after 2027-10-02, where TT is
482
+ UTC + 69.184 s on the continuous-UTC rule: a result there is still flagged
483
+ `delta-t-extrapolated`, but only what turns with UT1 widens its bounds (up
484
+ to 2.0.0-rc.2 every result widened there; docs/calc.md, *Bounds*).
398
485
  Root charts and natal envelopes carry none. What this version does not compute
399
486
  comes back as a typed refusal, such as gravitational deflection, or an
400
487
  instant whose UT1 or TT is outside 1800 to 2200: there calc has no
@@ -679,7 +766,10 @@ Placidus and Koch are undefined in polar regions, where |latitude| ≥ 90° −
679
766
  with ε the true obliquity of date (about 66.56° today). There the engine falls
680
767
  back to whole-sign houses, exported as `POLAR_FALLBACK` (and as
681
768
  `PLACIDUS_POLAR_FALLBACK`, deprecated from 1.0, since Koch falls back too),
682
- and adds `polar-fallback` to the chart flags. Swiss
769
+ and adds `polar-fallback` to the chart flags. From 2.0.0 every chart whose
770
+ angles are inside the polar circle carries `polar-angles` too, in every house
771
+ system, since the ascendant there turns half a circle twice a day
772
+ (`docs/houses.md`). Swiss
683
773
  Ephemeris falls back to Porphyry instead. Every other system is defined at
684
774
  every latitude where the angles are. Inside the polar circle, where the
685
775
  ascendant is taken on the eastern half of the horizon, Regiomontanus, Campanus
@@ -743,24 +833,40 @@ arcminutes from Swiss's.
743
833
 
744
834
  ### Input flag compatibility
745
835
 
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
836
+ Public birth inputs accept all twelve `ChartFlag` values. Five are caller
837
+ assertions: `dst-gap`, `dst-fold`, `lmt`, `calendar-unknown` and
838
+ `host-zone-data-differs` (from 2.0.0-rc.3). The other
839
+ seven are derived by the calculation, and a caller may echo each only where
840
+ the calculation derives it: `no-time`, `polar-fallback`, `polar-angles`,
841
+ `outside-reference-span`, `delta-t-extrapolated` (see Time) and the two
842
+ fallback flags, `de440-unavailable` and `outside-de440-span`. Supply an array with at
750
843
  most 64 entries; entries must be known string values in ordinary data slots.
751
844
  Repeated values collapse in first-occurrence order. Unknown strings, sparse
752
845
  slots, accessor slots, non-array iterables and simultaneous `dst-gap`/`dst-fold`
753
846
  claims reject with a `RangeError` that does not include supplied flag values.
754
847
 
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.
848
+ `dst-gap`, `dst-fold`, `lmt`, `calendar-unknown` and
849
+ `host-zone-data-differs` remain caller assertions: a UTC instant alone
850
+ cannot verify a historical local-time resolution. The geo resolver sets `dst-gap` or `dst-fold` for a skipped or
851
+ repeated wall time of any cause (the names are kept; its `jump.cause` gives
852
+ the cause) and `lmt` when a local mean time clock read it; it and the birth
853
+ resolvers set `calendar-unknown` on a local date, given with no country, that
854
+ a calendar changeover may have skipped ([docs/time.md](docs/time.md)). A
855
+ natal receipt refuses `calendar-unknown` on an instant before 1582-10-04 or
856
+ from 1918-02-28 (UTC). The geo resolver and the birth resolvers set
857
+ `host-zone-data-differs` on a wall time from 1970 on that the host's `Intl`
858
+ read where the host's time zone data differs from tzdata 2026f nearby
859
+ ([docs/time.md](docs/time.md), *Host time zone data*); a natal receipt
860
+ refuses it on an instant before 1970-01-01T00:00Z and on a local record whose
861
+ data form names the shipped history.
862
+ `no-time`, `polar-fallback`, `polar-angles`, `outside-reference-span`,
863
+ `delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` may be
864
+ echoed for compatibility, but must agree with the calculation. Set
865
+ `timeKnown: false` for unknown time; a flag never overrides that setting. A
866
+ `polar-fallback` assertion requires the requested Placidus or Koch
867
+ calculation to produce whole-sign houses, which it does only inside the polar
868
+ circle, and a `polar-angles` assertion requires angles inside the polar
869
+ circle.
764
870
 
765
871
  `natalChart` stores only distinct time-resolution assertions in `chart.input.flags`
766
872
  and derives result flags once. This is canonical semantic input, not a lossless
@@ -776,8 +882,12 @@ preserving numerical arrays and engine version. These checks happen at call
776
882
  time and do not freeze caller-owned objects.
777
883
 
778
884
  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
885
+ input that explicitly asserts `polar-fallback` or `polar-angles` requires one
886
+ natal calculation to check that assertion before the return scan. Its other
887
+ derived echoes are checked against the input alone: `no-time` against
888
+ `timeKnown: false` and `outside-reference-span` against the instant;
889
+ `delta-t-extrapolated`, `de440-unavailable` and `outside-de440-span` are
890
+ accepted there unchecked, since no chart is computed. A supplied Chart instead receives
781
891
  the consistency check above, without natal recomputation. Public birth and
782
892
  `resolveBirth` settings are validated once and the captured scalar values are
783
893
  used for calculation/resolution. Explicit null settings or local time are
@@ -917,7 +1027,9 @@ UT1 run on continuously. The time basis steps at the ΔT model's seam,
917
1027
  1940-12-31T18:00:00Z, where ΔT steps from
918
1028
  24.834 s to 24.820 s; at 1972-01-01, where the leap seconds begin; at each
919
1029
  leap second, where TT and UT1 step by a second; and where the IERS UT1 table
920
- ends, 2027-10-02. Each sample installs its own ΔT, so every position and
1030
+ ends, 2027-10-02. From 2.0.0-rc.3, on UTC input TT runs on there (the
1031
+ continuous-UTC rule, see Time), and the seam is the change of basis, where
1032
+ UT1 steps by about 2 ms ([docs/time.md](docs/time.md)). Each sample installs its own ΔT, so every position and
921
1033
  angle steps there together: the search finds each step inside the window
922
1034
  from the engine's own arithmetic, splits at its millisecond and compares
923
1035
  both sides. Within 1e-8° of the Placidus
@@ -1005,6 +1117,11 @@ string forms:
1005
1117
 
1006
1118
  - `YYYY-MM-DD`, interpreted as midnight UTC using the proleptic Gregorian
1007
1119
  calendar. This convenience does not infer a birthplace's local midnight.
1120
+ As a birth (`BirthInput.utc`, `saturnReturn`'s birth in either form, and
1121
+ calc `chart()`'s `time`) a calendar date with no time is refused with a
1122
+ `RangeError` unless `timeKnown` is `false` (from 2.0.0; earlier releases
1123
+ read it as midnight UTC); elsewhere it still reads as midnight UTC. Write
1124
+ `YYYY-MM-DDT00:00:00Z` to ask for midnight UTC.
1008
1125
  - `YYYY-MM-DDTHH:mm[:ss[.sss]]Z`, or the same date-time with an explicit
1009
1126
  `+HH:mm` or `-HH:mm` offset. Fractional seconds, when supplied, have one to
1010
1127
  three digits. ISO expanded years use a sign and six digits, such as
@@ -1039,7 +1156,12 @@ Terrestrial Time, and it covers the speed samples ±0.001 day around the
1039
1156
  instant (±0.25 day for the true nodes), so an instant must lie six hours
1040
1157
  inside. On the model ΔT clock every instant from 0001-05-01T00:00Z to
1041
1158
  3998-09-02T00:00Z qualifies; a pinned `deltaT` moves TT and is checked as
1042
- given. astronomy-engine reports any other failure by throwing a string, which
1159
+ given. On UTC input with the engine's ΔT the last instant `natalChart`
1160
+ accepts is 3998-09-03T05:58:50.816Z, and the last calc computes is
1161
+ 2199-12-31T23:58:50.815Z (from 2.0.0-rc.3, on the continuous-UTC rule; up to
1162
+ 2.0.0-rc.2 they were 3998-09-03T02:01:41.309Z and
1163
+ 2199-12-31T23:57:53.752Z), measured to the millisecond on this candidate's
1164
+ build (`docs/evidence/2.0.0-rc.3-20261117/results/span-ends.json`). astronomy-engine reports any other failure by throwing a string, which
1043
1165
  reaches the caller as a `RangeError` whose `cause` is the original value.
1044
1166
 
1045
1167
  Inside the span, results are computed but not verified: accuracy was compared
@@ -1050,9 +1172,19 @@ latitude, which in reality stays within about 1.2″ of zero, comes out as
1050
1172
  Birth settings accept only a `houseSystem` from the thirteen above, a boolean
1051
1173
  `timeKnown` and a `timeScale` (see Time). Omitting them defaults to `"whole"`,
1052
1174
  `true` and `"utc"`; explicit `null` and other unsupported values throw
1053
- `RangeError`, including when coordinates are absent. Latitude and longitude
1175
+ `RangeError`, including when coordinates are absent. `timeKnown: false` is
1176
+ what lets a birth be given as a calendar date with no time; with the default
1177
+ `true` such a date is refused (from 2.0.0). Latitude and longitude
1054
1178
  must be supplied together as finite numbers within `[-90, 90]` and
1055
- `[-180, 180]` respectively.
1179
+ `[-180, 180]` respectively. From 2.0.0-rc.3 a birth refuses these common
1180
+ names for a field, in any letter case, with a `RangeError` that names the
1181
+ field to use: `lat` (`latitude`); `lng`, `lon`, `long` (`longitude`);
1182
+ `house`, `houses`, `hsys`, `housesystem` (`houseSystem`); `scale`,
1183
+ `time_scale` (`timeScale`); `delta_t` (`deltaT`); `time_known`,
1184
+ `unknownTime` (`timeKnown`). Up to 2.0.0-rc.2 they were ignored, so
1185
+ `{ utc, lat, lng }` gave a chart with no angles and no error. Other unknown
1186
+ keys, such as a database row's `id`, `name` or `timezone`, are still
1187
+ ignored.
1056
1188
 
1057
1189
  ## Time
1058
1190
 
@@ -1066,11 +1198,21 @@ planets on Terrestrial Time (TT). `utc` is on UTC unless `timeScale` says
1066
1198
  the EOP 20 C04 series in 1972, then `finals2000A.all` of 2026-09-24,
1067
1199
  observed then predicted. ΔT = TT − UT1 is then reported with
1068
1200
  `model: "iers-utc/1"`.
1069
- - Before 1972 and after that table the instant is read as UT1, and TT = UT1 +
1201
+ - Before 1972 the instant is read as UT1, and TT = UT1 +
1070
1202
  ΔT from the engine's model `zodiacs-deltat/1`: Stephenson, Morrison &
1071
1203
  Hohenkerk 2016 (CC BY 4.0) up to 1941, then USNO and IERS observations,
1072
- Bulletin A's predictions and a damped extrapolation, with a 1-σ band. After
1073
- the table UT1 − UTC is taken as 0 within ±0.9 s.
1204
+ Bulletin A's predictions and a damped extrapolation, with a 1-σ band.
1205
+ - After that table, from 2.0.0-rc.3, UTC is read on the continuous-UTC rule:
1206
+ it runs on with no further leap second, TAI − UTC stays 37 s, so
1207
+ TT = UTC + 69.184 s exactly, and UT1 = TT − ΔT from the model; the chart
1208
+ reports `basis: "continuous-utc"` and UT1 − UTC with `source: "model"`. A
1209
+ UTC birth time after 2027-10-02 therefore gives TT = UTC + 69.184 s, and
1210
+ only UT1 rests on the extrapolated ΔT. Up to 2.0.0-rc.2 the instant was
1211
+ read there as UT1, UT1 − UTC taken as 0 within ±0.9 s, and TT = UT1 + ΔT,
1212
+ so TT − UTC drifted with the model (71.491 s in 2050; docs/time.md). A
1213
+ natal receipt of an after-table UTC birth names a conventions set that
1214
+ requires the feature `time-basis-continuous-utc`, which 1.1.0 and
1215
+ 2.0.0-rc.2 refuse.
1074
1216
  - `deltaT` (seconds) in a birth input pins ΔT; the chart reports
1075
1217
  `model: "pinned"`.
1076
1218
 
@@ -1088,13 +1230,23 @@ engine used: on UTC input from 1972-01-01 to 2027-10-02 without a pinned ΔT,
1088
1230
  TT comes from the leap seconds (exactly to 2027-06-28, when the shipped list
1089
1231
  expires; after it the list's last value is carried, with no band for a leap
1090
1232
  second not yet announced), so its band is 0, and UT1 carries the band of
1091
- UT1 − UTC; with a pin, TT is UT1 plus the pin and takes UT1's band
1233
+ UT1 − UTC; after 2027-10-02, on the continuous-UTC rule (from 2.0.0-rc.3),
1234
+ TT's band is still 0 and UT1 carries the ΔT model's; with a pin, TT is UT1 plus the pin and takes UT1's band
1092
1235
  ([docs/time.md](docs/time.md), *The time bands*).
1093
1236
 
1094
- `@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2025c history
1095
- with backzone, shipped as 16 lazily imported chunks: `prepareLocalTime(date,
1096
- timeZone)` loads the one a zone needs, and a wall time before 1970 throws until
1097
- it has. From 1970 the host's Intl answers. A `longitude` reads a time in a
1237
+ `@zodiacs/engine/geo` reads wall times before 1970 on the tzdb 2026f history
1238
+ with backzone (2025c's through 2.0.0-rc.2), shipped as 16 lazily imported
1239
+ chunks: `prepareLocalTime(date, timeZone)` loads the one a zone needs, and a
1240
+ wall time before 1970 throws until it has. America/Yellowknife is held at
1241
+ tzdata 2025c's history by the owner's decision, because tzdata 2026f's
1242
+ change to it has no NEWS entry; before 1970 its results equal 2.0.0-rc.2's,
1243
+ but for the `tzdbVersion` they name, "2026f", the package's pinned release,
1244
+ though the zone's data is 2025c's. From 1970 the host's Intl answers, and from
1245
+ 2.0.0-rc.3, near a span in which tzdata 2021a and 2026f give different
1246
+ offsets, the engine asks the host for its offset there and flags the result
1247
+ `host-zone-data-differs` where it differs from 2026f's
1248
+ ([docs/time.md](docs/time.md), *Host time zone data*); the instant stays the
1249
+ host's. A `longitude` reads a time in a
1098
1250
  zone's local mean time era on the birthplace's own mean time; `calendar:
1099
1251
  "julian"` takes an Old Style date, and `country` adds a note from the country's
1100
1252
  Gregorian adoption. A wall time the clock showed twice takes its first pass,
@@ -1144,17 +1296,18 @@ full provenance audit and the explicit Swiss Ephemeris exclusion.
1144
1296
  The package's licence expression is `MIT AND CC-BY-4.0`: the code is MIT
1145
1297
  ([LICENSE](LICENSE)), and the 32 values of Stephenson, Morrison & Hohenkerk's
1146
1298
  Table S15 in the package's ΔT module (`@zodiacs/engine/deltat`, which the build
1147
- places in a shared chunk under `dist/` that `dist/deltat.js` re-exports) are
1148
- CC BY 4.0, attributed in [NOTICE](NOTICE).
1299
+ places in a shared chunk under `dist/` that `dist/deltat.js` re-exports, and
1300
+ copies into `dist/core.js`) are CC BY 4.0, attributed in [NOTICE](NOTICE).
1149
1301
 
1150
1302
  The npm package contains no place database. It carries the DE440 pack
1151
- (2,489,664 bytes), tzdb 2025c's zone
1152
- histories before 1970, the IERS leap-second list, an IERS UT1 − UTC table, a
1153
- table of Gregorian adoption dates from public-domain sources, 22 catalogue
1154
- values for the stars of the Vedic ayanamsas, and the IAU 2000B nutation series
1155
- from NOVAS C 3.1, a US Government work; [NOTICE](NOTICE) records their sources
1156
- and the GeoNames attribution, and downstream users should retain it.
1157
- [LICENSING.md](LICENSING.md) gives the terms of each.
1303
+ (2,489,664 bytes), tzdb 2026f's zone histories before 1970
1304
+ (America/Yellowknife's from tzdb 2025c), a table of where tzdb 2021a's offsets
1305
+ from 1970 differ from 2026f's, the IERS leap-second list, an IERS UT1 − UTC
1306
+ table, a table of Gregorian adoption dates from public-domain sources, 22
1307
+ catalogue values for the stars of the Vedic ayanamsas, and the IAU 2000B
1308
+ nutation series from NOVAS C 3.1, a US Government work; [NOTICE](NOTICE)
1309
+ records their sources and the GeoNames attribution, and downstream users
1310
+ should retain it. [LICENSING.md](LICENSING.md) gives the terms of each.
1158
1311
 
1159
1312
  ## Internal site entry points
1160
1313
 
@@ -1165,7 +1318,7 @@ bundle boundary intact. They are not covered by semantic-versioning guarantees;
1165
1318
  third-party code must use the documented entry points: the root, `/calc`,
1166
1319
  `/geo`, `/houses`, `/sky`, `/techniques`, `/timing`, `/vedic`, `/window`,
1167
1320
  `/receipt`, `/conventions`, `/crossings`, `/deltat`, `/time`, `/lite`,
1168
- `/de440` and `/de440/pack`.
1321
+ `/core`, `/de440` and `/de440/pack`.
1169
1322
 
1170
1323
  ## GeoNames request recovery
1171
1324
 
@@ -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-CkuiCcsV.js';
3
3
  import { LongitudeCrossing, CrossingSearchOptions, CrossingSearchResult } from './crossings.js';
4
4
 
5
5
  /** Geometry over full ecliptic positions; no independent ephemeris is implied. */
@@ -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
- import { a as TimeScaleName, T as TimeScale } from './time-scale-DIFNa0gz.js';
3
- import { e as DateInput } from './types-DpPdtXgO.js';
2
+ import { a as TimeScaleName, T as TimeScale } from './time-scale-9vmKQPCn.js';
3
+ import { e as DateInput } from './types-CkuiCcsV.js';
4
4
 
5
5
  /** The precession model of an epoch value: the engine's IAU 2006, Newcomb's (Kinoshita 1975) or IAU 1976. */
6
6
  type AyanamsaPrecessionModel = "engine" | "newcomb" | "iau1976";
package/dist/calc.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { DeltaT } from './deltat.js';
2
2
  import { E as EPHEMERIS_SPAN } from './reference-span-CILpclrz.js';
3
- import { T as TimeBands } from './time-bands-CZA9AlLg.js';
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';
3
+ import { T as TimeBands } from './time-bands-BCmfa8FR.js';
4
+ import { T as TimeScale, a as TimeScaleName } from './time-scale-9vmKQPCn.js';
5
+ import { g as ChartFlag, B as BodyName, H as HouseSystem, d as Chart, A as Angles } from './types-CkuiCcsV.js';
6
+ import { A as AyanamsaName, a as AyanamsaPrecessionModel } from './ayanamsa-C4-pYjzm.js';
7
7
 
8
8
  /**
9
9
  * The frames of the calc entry point. A position is first found as a vector on
@@ -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,14 +7,14 @@ import {
7
7
  userAyanamsa,
8
8
  wholeSignCusps,
9
9
  wrap360
10
- } from "./chunk-WBTWY2OB.js";
10
+ } from "./chunk-XINOD63H.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
- } from "./chunk-I3L4POY7.js";
17
+ } from "./chunk-XO7MHH32.js";
18
18
  import "./chunk-47ERTK5X.js";
19
19
  import {
20
20
  bodyLongitude,
@@ -26,42 +26,43 @@ import {
26
26
  meanNodeLongitude,
27
27
  onChartClock,
28
28
  refuseUnderSource
29
- } from "./chunk-QLIEEICB.js";
29
+ } from "./chunk-PU4HNPRX.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-QLQRN6RY.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,
45
45
  TIME_SCALE_NAMES,
46
46
  elapsedDays,
47
47
  timeBasis
48
- } from "./chunk-B5LKF437.js";
48
+ } from "./chunk-M65JXRFN.js";
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-4RCOOAGI.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",
@@ -1111,10 +1113,14 @@ function events(request) {
1111
1113
  return { status: "refused", reason: "sample-budget", detail: `The search needs more than ${maxSamples} evaluations.`, samples, maxSamples };
1112
1114
  }
1113
1115
  let late = 0;
1116
+ let flagged = false;
1114
1117
  const events2 = found.crossings.map(({ at: at2, retrograde }) => {
1115
1118
  const basis = timeBasis(at2.getTime(), "utc");
1116
1119
  const utc = timeBands(basis).tt;
1117
- if (deltaTExtrapolated(basis)) late = Math.max(late, utc);
1120
+ if (deltaTExtrapolated(basis)) {
1121
+ flagged = true;
1122
+ late = Math.max(late, utc);
1123
+ }
1118
1124
  return {
1119
1125
  at: at2.toISOString(),
1120
1126
  jdUt1: J2000_JD + basis.ut1Days,
@@ -1128,7 +1134,7 @@ function events(request) {
1128
1134
  kind,
1129
1135
  events: events2,
1130
1136
  samples: found.samples,
1131
- flags: [...late ? ["delta-t-extrapolated"] : [], ...chosen.fallback ? [chosen.fallback] : []],
1137
+ flags: [...flagged ? ["delta-t-extrapolated"] : [], ...chosen.fallback ? [chosen.fallback] : []],
1132
1138
  bounds: {
1133
1139
  timing: stretched(
1134
1140
  {
@@ -1146,7 +1152,7 @@ function events(request) {
1146
1152
  [
1147
1153
  ...positionIds(body, "ecliptic-true-of-date", "geocentric", "apparent", zodiac, chosen.from !== null),
1148
1154
  "search:scan-and-bisect",
1149
- ...late ? ["bounds:plus-delta-t-band"] : []
1155
+ ...flagged ? ["bounds:plus-delta-t-band"] : []
1150
1156
  ],
1151
1157
  void 0,
1152
1158
  true,
@@ -1186,7 +1192,13 @@ function chart(request) {
1186
1192
  const timeKnown = settings.timeKnown ?? true;
1187
1193
  const possible = !timeKnown ? ["no-time"] : settings.houseSystem && isPolarUndefinedHouseSystem(houseSystem) && place ? ["polar-fallback"] : [];
1188
1194
  possible.push("delta-t-extrapolated", "de440-unavailable", "outside-de440-span");
1195
+ if (timeKnown && place) possible.push("polar-angles");
1189
1196
  assertDerivedFlags(supplied ?? [], possible);
1197
+ if ("iso" in time.record && !time.record.iso.includes("T") && settings.timeKnown !== false) {
1198
+ throw new RangeError(
1199
+ "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."
1200
+ );
1201
+ }
1190
1202
  const input = {
1191
1203
  utc,
1192
1204
  houseSystem,
@@ -44,12 +44,13 @@ function validateBirthSettings(birth) {
44
44
  var DERIVED_FLAGS = [
45
45
  "no-time",
46
46
  "polar-fallback",
47
+ "polar-angles",
47
48
  "outside-reference-span",
48
49
  "delta-t-extrapolated",
49
50
  "de440-unavailable",
50
51
  "outside-de440-span"
51
52
  ];
52
- var FLAGS = ["dst-gap", "dst-fold", "lmt", ...DERIVED_FLAGS];
53
+ var FLAGS = ["dst-gap", "dst-fold", "lmt", "calendar-unknown", "host-zone-data-differs", ...DERIVED_FLAGS];
53
54
  function snapshotFlags(value) {
54
55
  const length = Array.isArray(value) ? Object.getOwnPropertyDescriptor(value, "length")?.value : void 0;
55
56
  if (typeof length !== "number" || !Number.isInteger(length) || length < 0 || length > 64) {
@@ -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;