@zodiacs/engine 0.1.1-rc.16 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +458 -0
  2. package/LICENSING.md +18 -5
  3. package/NOTICE +3 -2
  4. package/README.md +67 -33
  5. package/dist/{api-VOW6Umy5.d.ts → api-WbxJ4Wj-.d.ts} +12 -6
  6. package/dist/ayanamsa--YQ46fET.d.ts +134 -0
  7. package/dist/calc.d.ts +131 -20
  8. package/dist/calc.js +246 -60
  9. package/dist/chunk-47ERTK5X.js +27 -0
  10. package/dist/{chunk-O3NJRGJ2.js → chunk-7TRLIFFI.js} +1 -1
  11. package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
  12. package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
  13. package/dist/{chunk-I7O5EGFV.js → chunk-CHSYDKBL.js} +1 -1
  14. package/dist/{chunk-4NV4ZEFZ.js → chunk-DMGHYCDI.js} +4 -4
  15. package/dist/{chunk-L6ZHWJZ6.js → chunk-FTX3JDJA.js} +15 -12
  16. package/dist/{chunk-2OWGBT3O.js → chunk-OG4OYTJJ.js} +47 -42
  17. package/dist/{chunk-WOU7JVD3.js → chunk-SRXBTP5H.js} +7 -7
  18. package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
  19. package/dist/chunk-WS3TDSP3.js +474 -0
  20. package/dist/{chunk-N4B5JNMA.js → chunk-YIITY7Q7.js} +21 -11
  21. package/dist/crossings.d.ts +8 -7
  22. package/dist/crossings.js +1 -1
  23. package/dist/deltat.d.ts +28 -3
  24. package/dist/deltat.js +1 -1
  25. package/dist/geo.d.ts +33 -12
  26. package/dist/geo.js +3 -1
  27. package/dist/{houses-q1O2GGp4.d.ts → houses-CFERsAlK.d.ts} +12 -2
  28. package/dist/houses-extra.d.ts +19 -5
  29. package/dist/houses-extra.js +4 -2
  30. package/dist/index.d.ts +34 -49
  31. package/dist/index.js +21 -13
  32. package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-DJJ8BYex.d.ts} +41 -27
  33. package/dist/internal-math.d.ts +3 -3
  34. package/dist/internal-math.js +2 -2
  35. package/dist/internal.d.ts +1 -1
  36. package/dist/internal.js +5 -5
  37. package/dist/receipt.d.ts +2 -268
  38. package/dist/receipt.js +70 -35
  39. package/dist/reference-span-CILpclrz.d.ts +40 -0
  40. package/dist/{rulers-9wljfVaO.d.ts → rulers-Dla6h_Sm.d.ts} +7 -2
  41. package/dist/sky.d.ts +25 -10
  42. package/dist/sky.js +11 -9
  43. package/dist/techniques.d.ts +61 -18
  44. package/dist/techniques.js +39 -46
  45. package/dist/timing.d.ts +53 -16
  46. package/dist/timing.js +19 -38
  47. package/dist/{types-B4MCoCCS.d.ts → types-B-yb_tGL.d.ts} +23 -11
  48. package/dist/vedic.d.ts +42 -123
  49. package/dist/vedic.js +43 -440
  50. package/dist/window.d.ts +81 -79
  51. package/dist/window.js +26 -27
  52. package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
  53. package/package.json +3 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,463 @@
1
1
  # Engine changelog
2
2
 
3
+ ## 1.0.0 — 2026-10-11
4
+
5
+ The first stable release: 1.0.0-rc.2 with the version changed. From this
6
+ release the package follows Semantic Versioning as docs/versioning.md
7
+ describes, and `api/` records the public declarations of the twelve entry
8
+ points. Checks: `docs/evidence/1.0.0-20261011/`.
9
+
10
+ - Before this release npm carried 0.1.1-rc.14 to 0.1.1-rc.16 (`latest`
11
+ 0.1.1-rc.15, `next` 0.1.1-rc.16). 0.1.1-rc.17, 1.0.0-rc.1 and 1.0.0-rc.2
12
+ were never published, so a caller moving from npm reads their entries
13
+ below: 1.0.0-rc.1's *Migration* lists each breaking change and deprecation
14
+ from rc.17 with what a caller does about it. A caller on 0.1.1-rc.15 reads
15
+ 0.1.1-rc.16's entry too, which has its own breaking changes and
16
+ *Migration*, and one on rc.14 rc.15's as well.
17
+ - No API and no value changes from 1.0.0-rc.2. Every declaration file of the
18
+ build is 1.0.0-rc.2's byte for byte, and 1.0.0-rc.1's battery of 6,417
19
+ calls over the twelve entry points prints the same bytes on 1.0.0-rc.2's
20
+ archive and on this build, run on one machine, with the version written
21
+ as a placeholder. The 500 conformance verdicts are 1.0.0-rc.2's: 267 pass,
22
+ 192 fail, 41 unsupported, none in error.
23
+ - Results depend on the JavaScript engine, its version and the processor, by
24
+ amounts far below any bound this package publishes. The tests' exact pins
25
+ are x86-64 V8's, as CI runs, where none fails. On arm64 (an Apple M4, Node
26
+ 20, 22 and 24) 4 of the 3,853 tests fail: one calc round-trip case, which
27
+ two tests replay, has a longitude speed 1.42e-11° a day from the pinned
28
+ one, against the test's 1e-12; and the site-parity checks find 42 of 120
29
+ return charts and 1 of 60 void-of-course windows not equal, every instant
30
+ agreeing (a Moon longitude by 5.69e-14°). Over 1.0.0-rc.1's 6,417 calls the
31
+ largest arm64 difference is 1.31e-8° in a true node's longitude and
32
+ 2.17e-8° a day in its speed; Node 24.17.0 differs from Node 22.22.2 on
33
+ x86-64 by at most 1.14e-13. In JavaScriptCore the calc round trip differs
34
+ by up to 1.26e-9° in a longitude and 3.56e-9° a day in a speed. One
35
+ conformance residual rounds differently in its ninth decimal on arm64; no
36
+ verdict changes. A comparison "to the bit" in these notes is between runs
37
+ on one runtime and processor.
38
+
39
+ ## 1.0.0-rc.2 — unreleased candidate
40
+
41
+ The second candidate for 1.0.0, on 1.0.0-rc.1 (main at `c6b5490`, the merge
42
+ of zodiacs-org/engine#30). It changes no API and no value: it lets a bundler
43
+ leave out the tables a program does not read, and it adds to 1.0.0-rc.1's
44
+ migration the step a TypeScript caller takes. 1.0.0-rc.1 froze the exported
45
+ tables where they are declared, and a bundler keeps such a freeze, and the
46
+ other calls a table is built with, in a program that never reads the table,
47
+ because a call might have effects: on zodiacs.org that put the chart
48
+ bundle's engine chunks over their size budget. It is not to be published on
49
+ npm until the owner approves 1.0.0. Checks:
50
+ `docs/evidence/1.0.0-rc.2-20261006/`.
51
+
52
+ - Each call a table's declaration makes when its module loads is marked
53
+ `/*#__PURE__*/`: the freeze, the freezes of its entries, the `map`,
54
+ `Array.from` or `Object.keys` that builds it, and a `Set` or `Map` built
55
+ from data. Nothing else in a table is what a bundler takes for an effect:
56
+ the receipt's convention sets built with a spread of the set before are
57
+ built in a function called in place, and `RELEASING_UNIT_DAYS`' quotients
58
+ are written as numbers, the same doubles. A program that reads a table
59
+ gets it as before; one that does not no longer carries it. Bundled alone
60
+ with esbuild, Rollup or Rolldown, each of the 66 such tables in the build
61
+ is left out of a program that reads nothing; 1.0.0-rc.1 kept 43 of them
62
+ under esbuild, 11 under Rollup and 42 under Rolldown. In programs that
63
+ each load one entry point and read nothing, 1.0.0-rc.1 kept 43, 20 and 42
64
+ of them, and this candidate keeps three, which modules only `./calc` and
65
+ `./vedic` load read (below).
66
+ - Nothing else a module does when it loads reads a table, but in the
67
+ modules that only `./calc` and `./vedic` load (below). `src/time-scale.ts`
68
+ computed six bounds from `UT1_DATA` and `LEAP_SECOND_LIST` when it loaded,
69
+ which kept both tables in every program that loaded the chunk they share
70
+ with `REFERENCE_SPAN`; the generator now writes the six into
71
+ `src/time-scale-data.ts` as numbers, the same values. The five values
72
+ `./window` computes from tables when it loads are marked. Bundled with
73
+ esbuild and minified, a program that calls only `outsideReferenceSpan` is
74
+ 180 bytes gzipped, where it was 7,475 on 1.0.0-rc.1.
75
+ - `DEFAULT_ASPECT_POLICY = createAspectPolicy()`, which the root builds when
76
+ it loads, is marked too, so a bundler leaves the policy, and the code that
77
+ builds it, out of a program that does not read it. Bundled with esbuild
78
+ and minified, a program that calls only `normalizeLongitude` is 137 bytes
79
+ gzipped, where it was 4,169 on 1.0.0-rc.1 and 3,936 on rc.17, and one
80
+ that calls `natalChart` 35,132, where it was 37,000 and 36,736.
81
+ - `CHALDEAN_FACES` (`./techniques`) was marked, but not the `Array.from`
82
+ that builds it, so bundlers kept it; it is marked now.
83
+ - The tables that only `./calc` and `./vedic` load are as 1.0.0-rc.1 had
84
+ them, and so is what those modules read of the others when they load: a
85
+ program that loads either entry carries `REFERENCE_SPAN`, and one that
86
+ loads `./vedic` `SIGNS` and `SIGN_SLUGS`, whether it reads them or not.
87
+ Their marks, 16 bytes each in the built files, would add at least 288
88
+ bytes to `./calc`'s graph and 432 to `./vedic`'s, which have 239 and 249
89
+ left, and a budget is raised only with the owner's approval.
90
+ `UNMARKED_SOURCE` in `scripts/pure-tables.mjs` names their modules.
91
+ - `scripts/pure-tables.mjs` states the rule and checks it: its tests run it
92
+ on the source, and the export smoke test on the build, module by module.
93
+ It holds to the rule whatever reads a table when its module loads, its
94
+ own module's or one it imports, by name, as a default or through a
95
+ namespace. It refuses a freeze outside a table's declaration; a mark on a
96
+ call whose value is discarded, which a bundler would drop with its
97
+ effect; and a mark on a call it finds may freeze a value that exists
98
+ before it, which a bundler would leave unfrozen, with a freeze of its
99
+ own, in a function it calls or constructs, or in one it runs. It does not
100
+ read every form of code, so it is an aid to reading a mark, not a proof;
101
+ the release's record reads each mark in `src/` by hand. The export smoke
102
+ test also checks that no entry point but `./calc` and `./vedic` reaches
103
+ the modules it leaves out through its static imports. The generated
104
+ `src/time-scale-data.ts` and `src/tzdb/tzdb-2025c.ts` carry the marks
105
+ from their generators.
106
+ - 1.0.0-rc.1's migration, below, gains its step for TypeScript: declare
107
+ what you keep of the constants its *Types only* bullet lists as their
108
+ `string` or `number`, and of a birth window's result as readonly. The
109
+ packed-consumer check, which failed on 1.0.0-rc.1's archive until its own
110
+ TypeScript was so declared, now also exercises 1.0's additions:
111
+ `ZoneHistoryNotLoadedError` by its class, `./calc`'s epochs inside
112
+ `EPHEMERIS_SPAN` and its `epoch-out-of-range` refusal beyond, the frozen
113
+ tables and the lookups that return their entries, and
114
+ `SIDEREAL_TIME_RATE`.
115
+ - Sizes: each entry's graph grows by what it loads of the marks and the
116
+ functions called in place, less 105 bytes where it loads the time scale,
117
+ whose six bounds are now numbers: from none (`./crossings`, `./houses`)
118
+ to 759 bytes (`./techniques`); the root's is 105,980 bytes, 615 more. No
119
+ budget is raised. The tightest are `./crossings`, 9,942 of 10,000;
120
+ `./geo`, 35,439 of 35,500; `./calc`, 145,261 of 145,500; and `./vedic`,
121
+ 127,751 of 128,000.
122
+ - No value moved: 1.0.0-rc.1's battery of 6,417 calls over the twelve entry
123
+ points prints the same bytes on both candidates, every declaration file
124
+ is 1.0.0-rc.1's, and the conformance results are 1.0.0-rc.1's.
125
+
126
+ ## 1.0.0-rc.1 — unreleased candidate
127
+
128
+ The first candidate for 1.0.0, on rc.17 (main at `782b496`, the merge of
129
+ zodiacs-org/engine#26). 1.0 is a promise about the API rather than new
130
+ calculations: from 1.0.0 the package follows Semantic Versioning, and
131
+ `docs/versioning.md` says what that covers, how a number may change, which
132
+ records stay readable and how something public is deprecated (twelve months'
133
+ notice, removal only in a major release). Before the promise was made, three
134
+ reviews read every public declaration of the twelve entry points for what
135
+ should not be frozen as it stood; a fourth read the changes, and two more
136
+ this candidate. It acts on what they found, and each change below says what
137
+ a caller does about it. No calculated value moved: in a comparison of 6,411
138
+ calls across the twelve entry points, each result that differs from rc.17's
139
+ is one of the changes listed here. It is not to be published on npm until
140
+ the owner approves 1.0.0. Checks: `docs/evidence/1.0.0-rc.1-20261006/`.
141
+
142
+ - `api/` holds the public declarations of each of the twelve public entry
143
+ points as the build gives them, without comments, with the declarations
144
+ they refer to that the entry point does not export. `npm run api:check`
145
+ runs in CI after the build and fails, with a diff, when the build declares
146
+ anything else; `npm run api:report` rewrites the files, which are committed
147
+ with the change. The two release tags the policy gives a meaning to,
148
+ `@experimental` and `@deprecated`, are shown above the declarations, the
149
+ members and the exports under another name that carry them.
150
+ - `docs/versioning.md`: the policy. What is public (the twelve entry points,
151
+ their declarations, documented behaviour and records), what a minor release
152
+ may add, the experimental tier, how numbers may change, which records the
153
+ codec reads, deprecation, and the Node.js lines supported.
154
+ - Experimental in 1.0, outside the promise until a minor release takes the tag
155
+ away: `lunarMeanArguments`, `MEAN_LUNAR_INCLINATION`, `meanNodeLongitude`
156
+ and `meanApogee` (root); `houseSpeeds` and `HouseSpeeds` (`./houses`);
157
+ `davisonChart`, `davisonPlace` and their three types (`./techniques`);
158
+ `planetaryReturns`, its three types, `ReturnBody`, `RETURN_BODIES` and
159
+ `RETURN_STEP_DAYS` (`./timing`); `yoginiDasha`, `ashtottariDasha`,
160
+ `YOGINIS`, `ASHTOTTARI_YEARS` and `CycleOptions` (`./vedic`). Each
161
+ declaration's comment, and its guide, say what may change.
162
+ - `./calc` computes a caller's ayanamsa carried by precession from an epoch
163
+ anywhere in `EPHEMERIS_SPAN`, 0001-04-30T12:00 to 3998-09-03T12:00 TT, the
164
+ owner's decision of 2026-10-06 on the site's finding F-80, where rc.17
165
+ refused one from an epoch outside 1800 to 2200. Its bound outside that
166
+ span comes from two new bands, measured against ERFA in 64,974 comparisons
167
+ (`docs/evidence/calc-epochs-2026-10-06/`): 0.0037″ and 1.3 × 10⁻⁷″ a day on
168
+ the engine's precession, which parts from ERFA's the further the epoch is
169
+ from J2000.0, and 1.8 × 10⁻⁵″ and 1.2 × 10⁻⁷″ a day on Newcomb's or IAU
170
+ 1976's, held at J2000.0. An epoch beyond `EPHEMERIS_SPAN` is refused with a
171
+ new reason, `epoch-out-of-range`, whose `epochSpan` is `EPHEMERIS_SPAN`.
172
+ - New names: `SIGN_SLUGS`, `ASPECT_POLICY_SCHEMA`, `CONFIGURED_ASPECTS_SCHEMA`
173
+ and `DELTA_T_IERS_MODEL` (root); `SIDEREAL_TIME_RATE`, and the types
174
+ `Angles` and `HouseSystem` (`./houses`); `ZoneHistoryNotLoadedError`
175
+ (`./geo`); `BIRTH_WINDOW_SCHEMA` (`./window`); `ReturnChart`
176
+ (`./techniques`); `AyanamsaFlag` (`./vedic`); the type `BodyName`
177
+ (`./crossings`); `CalcLocation` (`./calc`); `NatalConventionSet`,
178
+ `NatalCoverage` and the record types `NatalRecordedResult`,
179
+ `NatalBodyRecord`, `NatalAnglesRecord`, `NatalHousesRecord`,
180
+ `NatalAspectRecord`, `NatalDeltaTRecord` and `NatalTimeScaleRecord`
181
+ (`./receipt`).
182
+ - `./receipt`: a natal record has its own types, the same shapes as rc.17's,
183
+ rather than the chart's. `createNatalEnvelope` copies the fields a record
184
+ holds and leaves out any other field of the chart's result, so that a field
185
+ a minor release adds to a chart does not change the records it writes; a
186
+ chart's `input` is still read strictly, because an input the receipt cannot
187
+ describe may have changed the numbers. The reader compares a record's ΔT
188
+ and time scale with this engine's own as a record holds them. A record
189
+ this candidate writes has the fields and the conventions of rc.17's, which
190
+ reads it, and it reads rc.17's.
191
+ - `./geo`: before `prepareLocalTime` has loaded a zone's history, the
192
+ functions that need it, `./geo`'s and `./techniques`' `moonSignCandidates`,
193
+ throw a `ZoneHistoryNotLoadedError` (exported by `./geo`), an `Error` with
194
+ the same message as before, so that a caller can catch that case by its
195
+ class.
196
+ - `./geo`: a Julian date late in 9999 that resolves into the Gregorian year
197
+ 10000 gets its calendar note, `"new-style"`, which rc.17 left out: it
198
+ compared the dates as text, where a five-digit year sorts first.
199
+ - `./sky`: a refused `planetaryHours` day carries `reason: "sample-budget"`,
200
+ as a refused `skyEventsOn` does.
201
+ - `./crossings`: the two functions take a body name type of the caller's own,
202
+ `BodyLongitudeAt<B>`, with `BodyName` the default. The root's
203
+ `findLongitudeCrossings` and `searchLongitudeCrossings` take a window's ends
204
+ as any `DateInput`, as the root's other functions do; the crossings entry
205
+ itself still takes Dates, which keeps it within its size budget.
206
+ - `./calc`: `CALC_AYANAMSAS` is taken from `./vedic`'s `AYANAMSAS`, in its
207
+ order, so that the two cannot drift; `CalcAyanamsa`, `CalcAyanamsaModel` and
208
+ `CalcScale` are `./vedic`'s `AyanamsaName` and `AyanamsaPrecessionModel` and
209
+ the root's `TimeScaleName`.
210
+ - Documentation of what the reviews found unclear: `BirthInput.utc`,
211
+ `ChartInput.utc` and `AyanamsaValue.utc` (the instant on the scale
212
+ `timeScale` names; the names are kept because receipts record them),
213
+ `AngleInput`'s units, the ΔT segment `"fallback"` (written by rc.15's first
214
+ cut only, kept so that its records stay readable), `DeltaTTable` (its shape
215
+ is the model's; a model of another shape would be a new export),
216
+ `EPHEMERIS_SPAN.timeScale` (a label, like `fromTT`), `offsetAt` (the host
217
+ Intl's answer, a cross-check on `zoneOffsetAt`), the two place types
218
+ (`Observer` on WGS84, `CalcPlace` on the IERS 2003 ellipsoid), the identity
219
+ of `./vedic`'s values (a copy through JSON or `structuredClone` is refused,
220
+ although the types carry no brand), the three tables of sign rulers (one
221
+ each in `./techniques`, `./timing` and `./vedic`, now kept equal by a test),
222
+ and which return finder to use.
223
+ - Sizes: the package is 982,086 bytes unpacked in 74 files, 35,737 more
224
+ than rc.17's 946,349 in 70: 1,828 bytes (5.12 per cent of the growth) of
225
+ the root's JavaScript, the reviews' checks and frozen tables; 4,607
226
+ (12.89) of JavaScript that only the opt-in entry points load; 13,515
227
+ (37.82) of declarations, most of it the documentation of the 1.0 API;
228
+ 15,683 (43.88) of documents, this entry above all; and 104 (0.29) of
229
+ manifest. The owner approved raising the cap from 950,000 to 1,000,000 on
230
+ 2026-10-06, which leaves 1.82 per cent of headroom. Every entry is within
231
+ its budget; `./geo`'s was raised from 35,000 to 35,500 with the same
232
+ approval, for `ZoneHistoryNotLoadedError` and `calendarNote`'s checks, and
233
+ its graph is 35,375 bytes, the tightest of all. The next are `./calc`,
234
+ 144,694 of 145,500; `./crossings`, 9,942 of 10,000; and `./vedic`, 127,184
235
+ of 128,000.
236
+
237
+ Breaking changes, each with what to do:
238
+
239
+ - `./calc`: a Julian date's scale is `"utc"`, `"ut1"` or `"tt"`, the root's
240
+ `TimeScaleName`; `"UTC"`, `"UT1"` and `"TT"` throw a RangeError that says
241
+ so. Write the scale in lower case. (`./calc` came in rc.16, which is on npm
242
+ under `next`.)
243
+ - `./calc`: `houses()` takes `houseSystem`, as `chart()` and `natalChart()`
244
+ do, and its receipt records `houseSystem`; `system` throws. Rename the
245
+ field. A result's `requested` and `system` keep their names.
246
+ - `./calc`: a receipt's schema is `zodiacs.calc-receipt.v1`, where rc.16 and
247
+ rc.17 wrote `zodiacs.calc-receipt.draft-v1` with requests in their own
248
+ vocabulary; a stored rc.16 or rc.17 request needs the two renames above
249
+ before it is passed back.
250
+ - `./calc`: a caller's ayanamsa from an epoch outside 1800 to 2200 but inside
251
+ `EPHEMERIS_SPAN`, refused `out-of-range` in rc.17, is computed; beyond it,
252
+ it is refused `epoch-out-of-range`, a new member of `CalcRefusal["reason"]`.
253
+ Handle the new reason; `out-of-range` now means an instant only.
254
+ - Options a function does not name now throw a RangeError instead of being
255
+ ignored, so that a misspelling such as `timescale` is not a silently
256
+ different answer: `ayanamsa`, `userAyanamsa`'s input and its `epoch`,
257
+ `declareSiderealLongitude`'s declaration, the four dasha functions and the
258
+ crossing searches' options. They also refuse what the techniques and timing
259
+ entries already refused: options that are not a plain object (`null`, an
260
+ array, a string, an instance of a class), an inherited key and a getter.
261
+ Check the names, and pass a plain object or nothing. An option set to
262
+ `undefined` still counts as absent, and the options types now say so
263
+ (`| undefined`).
264
+ - `userAyanamsa` refuses a bare-number `epoch`, which it read as epoch
265
+ milliseconds although a Julian date was the likelier meaning. Pass
266
+ `{ julianDateTT }`, a `Date` or an ISO string.
267
+ - `davisonPlace` refuses a place outside latitudes −90 to 90 and longitudes
268
+ −180 to 180 (rc.17 averaged it as given) and a convention it does not name
269
+ (rc.17 used the great-circle midpoint). `calendarNote` refuses a date that
270
+ is not a valid Gregorian YYYY-MM-DD, a calendar other than `"gregorian"`
271
+ and `"julian"`, and a country that is not a nonempty string, which rc.17
272
+ answered for.
273
+ - `deltaT` and `deltaTAt` throw a RangeError for a UT that is not a finite
274
+ number. rc.17 returned NaN for NaN and ±Infinity (`deltaTAt` a record with
275
+ NaN seconds) and read anything else as a number, `null` as 0 and `"1"` as
276
+ 1. Pass a finite number.
277
+ - The exported tables are frozen, and their declarations readonly:
278
+ `ASPECTS` and its entries, `ASPECT_TYPES`, `SIGNS` and its entries,
279
+ `SIGN_NAMES` (now the same array as `SIGN_SLUGS`), `ELEMENTS`,
280
+ `MODALITIES`, `HOUSE_SYSTEMS`, `POLAR_UNDEFINED_HOUSE_SYSTEMS`, `LOTS`,
281
+ `CALC_BODIES`, `CALC_AYANAMSAS` and `CALC_FRAMES`; `signForLongitude`
282
+ returns, and `matchAspect`'s `definition` is, one of the frozen entries.
283
+ Code that changed one throws in strict mode; copy it first. `ASPECT_BODIES`,
284
+ a Set, cannot be frozen: it is now typed `ReadonlySet`, and the engine no
285
+ longer reads it, so changing it changes nothing the engine computes.
286
+ - Types only: `ENGINE_VERSION`, `EPHEMERIS.version`, `TZDB.version` and
287
+ `TZDB.sha256` are typed `string`, `WINDOW_VERIFICATION` `string`, and
288
+ `MAX_WINDOW_MS`, `WindowBudgetError.limit` and the techniques' search
289
+ constants (`SOLAR_RETURN_*`, `LUNAR_RETURN_*`, `MOON_SIGN_MAX_SPAN_DAYS`,
290
+ `VOID_OF_COURSE_MAX_DAYS`) `number`, so that a release can change them; the
291
+ values are rc.17's. `CALC_FRAMES` is `readonly CalcFrame[]`. The birth
292
+ window's result types and the sky's options are readonly. `vimshottariAt`'s
293
+ `levels` is `1 | 2 | 3 | 4 | 5`. `NatalEnvelope["result"]` is
294
+ `NatalRecordedResult`, and `NATAL_RECEIPT_CONVENTION_SETS` is
295
+ `readonly NatalConventionSet[]`, newest first: take a set by its content,
296
+ not by an index other than 0. `NatalReceipt.conventions` and `.coverage`
297
+ are `NatalConventionSet` and `NatalCoverage`, records of strings, where
298
+ rc.17 typed each set's literal values: compare them as strings.
299
+ `NatalZoneTransition.cause` is `./geo`'s `TransitionCause`, the same three
300
+ names. `AspectDefinition` and `SignDefinition` have readonly members, as do
301
+ the inputs `CrossingSearchOptions`, `BirthWindowInput`, `WindowRounding` and
302
+ `PlanetaryReturnOptions`: build such an object whole, or copy it, rather
303
+ than assign to its fields. `houses()` and `chart()` take a `CalcLocation`,
304
+ with no height, where rc.17 declared a `CalcPlace` whose height they
305
+ refused.
306
+
307
+ Deprecated, each kept working at least until twelve months after 1.0.0 and
308
+ removed only in a major release:
309
+
310
+ - `SIGN_NAMES`: it holds slugs (`"aries"`), not names. Use `SIGN_SLUGS`.
311
+ - `ConfiguredAspectMotion`: use `AspectMotion`, the same type.
312
+ - `PLACIDUS_POLAR_FALLBACK`: Koch falls back too. Use `POLAR_FALLBACK`.
313
+ - `DECLINATION_ORB` and `DECLINATION_ORB_LUMINARY`: use
314
+ `DEFAULT_DECLINATION_ORB_POLICY.orb` and `.luminaryOrb`, the same values.
315
+ - `SIDEREAL_RATE` (`./houses`): use `SIDEREAL_TIME_RATE`, the same value.
316
+ - `PlanetaryReturn` (`./techniques`): use `ReturnChart`, the same type;
317
+ `./timing`'s `PlanetaryReturn` is another one.
318
+
319
+ Considered and left as they are: calc's `status: "ok"` (calc's own word for a
320
+ computed request, beside `CalcRefusal`); calc is not experimental;
321
+ `EPHEMERIS_SPAN.timeScale` stays `"TT"`; no brand types in 1.x; the three
322
+ return finders stay, and the guides say which to use.
323
+
324
+ Migration: write calc's time scales in lower case and `houses()`'s
325
+ `houseSystem`, in a stored calc request too before it is passed back; handle
326
+ `epoch-out-of-range`; check option names and pass plain objects; give
327
+ `userAyanamsa` an epoch that is not a bare number; give `davisonPlace` places
328
+ in range, `calendarNote` a valid date, a named calendar and a country, and
329
+ `deltaT` a finite number; copy any exported table before changing it, and do
330
+ not change `ASPECT_BODIES` to change what the engine computes; in
331
+ TypeScript, declare what you keep of a constant the *Types only* bullet lists
332
+ (`ENGINE_VERSION`, `TZDB.version`, `WINDOW_VERIFICATION`, `MAX_WINDOW_MS` and
333
+ the others) as its `string` or `number`, not rc.17's literal, and what you
334
+ keep of a birth window's result as readonly (`readonly WindowChange[]`,
335
+ `readonly WindowUnresolved[]`); and move off the seven deprecated names when
336
+ convenient.
337
+
338
+ ### Corrections
339
+
340
+ - `docs/time.md` called the flags `dst-gap` and `dst-fold` deprecated. They
341
+ are permanent: stored receipts carry them and no other name replaces them.
342
+ - `docs/timing-hellenistic.md`, *Limits*, described failures far from the
343
+ present that cannot happen since rc.14 refuses instants outside
344
+ `EPHEMERIS_SPAN`.
345
+ - Three of rc.17's doc comments named a package where TypeScript reads a
346
+ tag, which cut editors' hovers short; package names in comments are now in
347
+ backticks.
348
+
349
+ ## 0.1.1-rc.17 — unreleased candidate
350
+
351
+ rc.17 adds the sidereal zodiac to the calc entry (`@zodiacs/engine/calc`), on
352
+ rc.16 (main at `23660f5`, the merge of zodiacs-org/engine#25). In rc.16 its
353
+ four functions refused `zodiac: { sidereal }` with `not-in-this-version`,
354
+ though the entry's own map of Swiss Ephemeris's `calc_ut` flags typed the
355
+ option in and `@zodiacs/engine/vedic` computed sidereal longitudes. Tropical
356
+ values are rc.16's: the root entry and eleven others build to rc.16's files
357
+ but for the version's value and the hashed chunk names that follow from it,
358
+ calc's tropical round-trip values are unchanged, and so are the conformance
359
+ suite's 500 verdicts and values. rc.17 is not to be published on npm: under
360
+ the owner's decision of 2026-10-05 the next publication is the 1.0
361
+ candidate. Checks: `docs/evidence/calc-sidereal-2026-10-05/` and
362
+ `docs/evidence/rc17-20261005/`.
363
+
364
+ - `calc()`, `houses()`, `events()` and `chart()` take `zodiac: { sidereal }`
365
+ with one of the nine built-in ayanamsas by name, or a caller's own,
366
+ `{ name?, epoch, value, rate?, model? }` (`CalcUserAyanamsa`):
367
+ `userAyanamsa` in JSON, and the counterpart of `SE_SIDM_USER`. A sidereal
368
+ longitude is the longitude in the ecliptic of date less the ayanamsa, the
369
+ true one in the true ecliptic of date and the mean one in the mean
370
+ ecliptic of date, subtracted as `siderealLongitude()` subtracts it: with
371
+ every other default, `calc()` gives `siderealChart()`'s longitudes to the
372
+ bit. Speeds are the sidereal longitude's, and a cartesian position turns
373
+ with it. `houses()` rebuilds whole-sign cusps from the sidereal
374
+ ascendant's sign, as `siderealChart()` does; `events()` searches sidereal
375
+ longitudes; `chart()` adds `sidereal`, `siderealChart()`'s longitudes as
376
+ plain numbers.
377
+ - Two new refusals: the sidereal zodiac in a frame other than the two
378
+ ecliptics of date (`unsupported-combination`), and a caller's ayanamsa
379
+ carried by precession from an epoch outside 1800 to 2200 (`out-of-range`).
380
+ A malformed caller's ayanamsa throws a RangeError that names its field
381
+ under `zodiac.sidereal`, an epoch whose TT falls outside the range of a
382
+ Date among them.
383
+ - `CalcPosition` and `HousesResult` gain `ayanamsa`, and `ChartResult` gains
384
+ `sidereal`, whose own `ayanamsa` has the same shape; both are null in the
385
+ tropical zodiac. That shape, `CalcAyanamsaValue`, is `{ name, mean,
386
+ nutation, true, subtracted, bound }`, in the result's angular unit:
387
+ `subtracted` says whether the true or the mean ayanamsa was subtracted, and
388
+ `bound` is the mean ayanamsa's. Receipts name `zodiac:sidereal` and
389
+ `ayanamsa:<name>`, or `ayanamsa:user-epoch` or `ayanamsa:user-linear`, and
390
+ record a caller's ayanamsa with every default filled in.
391
+ - In the sidereal zodiac each bound adds the ayanamsa's own: the largest
392
+ difference of the engine's mean ayanamsa, and of its rate, from ERFA's
393
+ construction of the same definition, over 2,333,979 comparisons: every
394
+ star definition in every year from 1800 to 2199, densely around its pass
395
+ by the Sun, and callers' ayanamsas at the ends of what calc accepts. That
396
+ is 4.6 × 10⁻⁷″ and 1.6 × 10⁻⁷″ a day for epoch and linear definitions,
397
+ the rate's the floor of a linear ayanamsa's own rounding; a speed adds a
398
+ few tenths of a microarcsecond a day of rounding of its own, which no
399
+ bound includes (`docs/calc.md`). For a star definition it depends on the
400
+ star's angle from the Sun: 0.0013″ and 0.00039″ a day at 2° or more,
401
+ 0.0048″ and 0.026″ a day from 0.3° to 2°, and 0.058″ and 27″ a day within
402
+ 0.3°, where the star is on or beside the Sun's disc. The fixtures
403
+ `src/fixtures/ayanamsa-rates.json` and
404
+ `src/fixtures/ayanamsa-rates-dense.json`, which keep the years and callers
405
+ that hold each band's largest differences, and `src/calc-sidereal.test.ts`
406
+ hold the engine to them.
407
+ - `@zodiacs/engine/vedic`: `ayanamsa()` now computes through an internal
408
+ `ayanamsaAt`, which also gives a star definition's star's angle from the
409
+ Sun. A linear ayanamsa is now its value at J2000.0, less whole turns, plus
410
+ its rate times TT days since J2000.0. It was counted from its epoch, so
411
+ that from an epoch far from the span its value ran to hundreds of
412
+ thousands of degrees, whose rounding put up to 2 × 10⁻⁴″ a day into its
413
+ rate at 3,600″ a year; and from a Julian date rebuilt from TT days, held
414
+ near 2.4 million only to about 5 × 10⁻¹⁰ day, which put up to 2 × 10⁻⁶″ a
415
+ day there. A linear ayanamsa moves by the rounding this removes: Raman's and
416
+ Sri Yukteswar's by less than 10⁻¹³°, and a caller's by less than 10⁻¹²°
417
+ from an epoch from 1800 to 2200 and by up to 8.6 × 10⁻¹¹° from an epoch at
418
+ the end of a Date's range (`docs/evidence/rc17-20261005/`). Every epoch and
419
+ star definition's value is rc.16's. `docs/vedic.md` corrects its agreement
420
+ with ERFA: none of its first comparison's 164 was within 17° of the Sun,
421
+ and near the Sun the engine and ERFA part by up to 0.058″.
422
+ - The calc round-trip fixture gains twelve cases, among them its first four
423
+ of `chart()`. Of its 25 earlier cases, the sidereal Moon, refused
424
+ `not-in-this-version` in rc.16, is now computed; 15 gain `ayanamsa: null`;
425
+ and every receipt names rc.17. The conformance results are regenerated: 267
426
+ pass, 192 fail and 41 unsupported of 500, every verdict and value as in
427
+ rc.16.
428
+ - Sizes: the calc entry's import graph grows from 113,904 to 139,836 bytes,
429
+ and its budget is raised from 115,000 to 145,500, because it now loads the
430
+ ayanamsas, with their star catalogue and apparent places, and the sidereal
431
+ charts, in a chunk it shares with `./vedic`. `./vedic`'s graph grows by
432
+ 1,508 bytes, to 123,639 of its 128,000. The package is 946,349 bytes
433
+ unpacked in 70 files (rc.16: 923,282 in 69): of the 23,067 bytes it grows
434
+ by, 9,844 are opt-in JavaScript, 4,618 declarations and 8,605 documents.
435
+ That leaves 0.38 per cent of the cap of 950,000, which was not raised; a
436
+ candidate that grows by more than about 3,600 bytes will need it raised, or
437
+ the package trimmed.
438
+
439
+ Breaking changes:
440
+
441
+ - A calc request with `zodiac: { sidereal }`, refused `not-in-this-version`
442
+ in rc.16, is now computed, or refused `unsupported-combination` in a frame
443
+ outside the ecliptics of date. `not-in-this-version` now means only
444
+ gravitational deflection.
445
+ - Every `CalcPosition` and `HousesResult` has a new key, `ayanamsa`, and
446
+ every `ChartResult` one, `sidereal`, null in the tropical zodiac. Code that
447
+ compares a whole rc.16 result needs them; no tropical value changes.
448
+
449
+ Migration: expect the new keys, null in the tropical zodiac. A sidereal
450
+ longitude that came from `siderealLongitude()` or `siderealChart()` in rc.16
451
+ is the same number from calc in rc.17 with calc's other defaults: to the bit,
452
+ but where a linear ayanamsa moved (above), by as much as it moved.
453
+
454
+ ### Corrections
455
+
456
+ - rc.14's, rc.15's and rc.16's entries call each an unreleased candidate. They
457
+ were published on npm afterwards: rc.14 and rc.15 on 2026-09-30, rc.16 on
458
+ 2026-10-01, and on 2026-10-05 `latest` was rc.15 and `next` rc.16
459
+ (`docs/evidence/rc17-20261005/npm-view.txt`).
460
+
3
461
  ## 0.1.1-rc.16 — unreleased candidate
4
462
 
5
463
  rc.16 brings six pieces of work onto rc.15 (main at `93ebae9`, the merge of
package/LICENSING.md CHANGED
@@ -104,7 +104,10 @@ The tests and their fixtures, none of which is packed, contain:
104
104
  - public JPL Horizons responses (apparent longitudes and vectors, DE441),
105
105
  such as `src/timing/fixtures/planetary-returns-horizons.json`;
106
106
  - values computed with ERFA (BSD 3-Clause) through pyerfa 2.0.1.5, such as
107
- `src/fixtures/nutation-erfa.json` and the Vedic and angle references:
107
+ `src/fixtures/nutation-erfa.json`, the ayanamsas and rates of
108
+ `src/fixtures/ayanamsa-rates.json`, `src/fixtures/ayanamsa-rates-dense.json`
109
+ and `src/fixtures/ayanamsa-epochs.json`,
110
+ and the Vedic and angle references:
108
111
  numbers ERFA returned, not its code or tables, none of which is copied;
109
112
  - US Naval Observatory tables from its Astronomical Applications API, the
110
113
  Earth's Seasons times of `src/techniques/fixtures/usno-seasons.json` and the
@@ -315,15 +318,17 @@ remains.
315
318
 
316
319
  `@zodiacs/engine/timing` and `@zodiacs/engine/vedic` carry the period
317
320
  lengths, rulers and sequences of the techniques they implement, from the
318
- classical texts that `docs/timing-hellenistic.md` and `docs/vedic.md` cite,
319
- and, for the four star-based ayanamsas, single published values for four
321
+ classical texts that `docs/timing-hellenistic.md` and `docs/vedic.md` cite.
322
+ For the four star-based ayanamsas, `@zodiacs/engine/vedic` and, since
323
+ 0.1.1-rc.17, `@zodiacs/engine/calc` carry single published values for four
320
324
  objects: position, proper motion, parallax and radial velocity from the
321
325
  Hipparcos new reduction (F. van Leeuwen 2007, VizieR I/311), SIMBAD,
322
326
  Gontcharov 2006 (VizieR III/252) and Famaey et al. 2005 (VizieR
323
327
  J/A+A/430/165), and for Sgr A* a SIMBAD position with Reid and Brunthaler's
324
328
  (2004) proper motion. `docs/vedic.md` cites each; no catalogue file or table
325
- is redistributed, only 22 values in `src/vedic/ayanamsa.ts`, built into
326
- `dist/vedic.js`: position, proper motion, parallax and radial velocity for
329
+ is redistributed, only 22 values in `src/vedic/ayanamsa.ts`, built into a
330
+ shared chunk under `dist/` that `dist/vedic.js` and `dist/calc.js` import:
331
+ position, proper motion, parallax and radial velocity for
327
332
  the three stars, and position and proper motion for Sgr A*. `NOTICE` carries
328
333
  their attribution.
329
334
 
@@ -369,6 +374,14 @@ barycentre at 88 instants (`docs/evidence/calc-api/`). No value of a JPL
369
374
  ephemeris, and no coefficient fitted to one, is in the package; the Horizons
370
375
  responses are in that evidence directory, which is not packed.
371
376
 
377
+ Since 0.1.1-rc.17 it also carries the star values of *Timing and Vedic
378
+ values*, in the chunk it shares with `./vedic`. Its ayanamsa bounds
379
+ (`AYANAMSA_BOUNDS` in `src/calc-ayanamsa.ts`) are measurements too: the
380
+ largest differences of the engine's ayanamsas from ERFA's construction of the
381
+ same definitions (`docs/evidence/calc-sidereal-2026-10-05/` and, for a
382
+ caller's epoch outside 1800 to 2200, `docs/evidence/calc-epochs-2026-10-06/`),
383
+ not values taken from ERFA.
384
+
372
385
  ## Techniques tables
373
386
 
374
387
  `@zodiacs/engine/techniques` (`dist/techniques.js`) carries the tables of the
package/NOTICE CHANGED
@@ -195,8 +195,9 @@ iso3166.tab, which is in the public domain.
195
195
  Star positions and motions
196
196
  --------------------------
197
197
 
198
- @zodiacs/engine/vedic carries 22 published values for the objects of four
199
- star-based ayanamsas, in dist/vedic.js. Twenty of them were obtained through
198
+ @zodiacs/engine/vedic and @zodiacs/engine/calc carry 22 published values for
199
+ the objects of four star-based ayanamsas, in a shared chunk under dist/ that
200
+ dist/vedic.js and dist/calc.js import. Twenty of them were obtained through
200
201
  the VizieR catalogue access tool (DOI 10.26093/cds/vizier) and the SIMBAD
201
202
  database (M. Wenger et al. 2000, A&AS 143, 9) of the CDS, Strasbourg
202
203
  Astronomical Observatory, France: