@zodiacs/engine 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +6 -0
- package/dist/calc.d.ts +62 -1
- package/dist/calc.js +791 -898
- package/dist/{chunk-X5ANRWDK.js → chunk-BPZVUBFC.js} +1 -1
- package/dist/{chunk-ZL74QHBE.js → chunk-HBC2ZX6N.js} +1 -1
- package/dist/{chunk-PSZAKTDL.js → chunk-JRMBVSRS.js} +1 -1
- package/dist/{chunk-SCBK24HR.js → chunk-OWF2QKB4.js} +1 -1
- package/dist/{chunk-ZPHWUFTZ.js → chunk-RRZYCXWT.js} +3 -3
- package/dist/{chunk-TSS2SZWQ.js → chunk-U5P32ZD3.js} +34 -36
- package/dist/core.js +34 -37
- package/dist/crossings.js +1 -1
- package/dist/index.js +5 -5
- package/dist/internal-math.js +1 -1
- package/dist/internal.js +2 -2
- package/dist/receipt.js +1 -1
- package/dist/sky.js +3 -3
- package/dist/techniques.js +4 -4
- package/dist/timing.js +5 -5
- package/dist/vedic.js +5 -5
- package/dist/window.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Engine changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.0 (cut 2026-11-23)
|
|
4
|
+
|
|
5
|
+
2.1.0 is 2.1.0-rc.1 with only the version changed. Station and lunation
|
|
6
|
+
search are available from `@zodiacs/engine/calc`.
|
|
7
|
+
|
|
8
|
+
## 2.1.0-rc.1
|
|
9
|
+
|
|
10
|
+
`@zodiacs/engine/calc` adds `searchStations()` and `searchLunations()`.
|
|
11
|
+
`events()` keeps its 2.0.0 contract. Chain rounded (from, to] TT windows
|
|
12
|
+
on the same ephemeris name and version. Exhausting `maxSamples` refuses
|
|
13
|
+
the whole search. Events report source and fallback flags, UTC and UT1
|
|
14
|
+
clock bands, and a local TT timing estimate. In L4, DE440 passes all 30
|
|
15
|
+
stations and 40 new or full Moons. Astronomy-engine passes 30 and 21.
|
|
16
|
+
Two-second quarter timing and stations beyond Saturn lack span-wide
|
|
17
|
+
verification. [Guide and evidence](docs/calc.md#station-and-lunation-search)
|
|
18
|
+
|
|
3
19
|
## 2.0.0 (cut 2026-11-21)
|
|
4
20
|
|
|
5
21
|
A major release: 2.0.0-rc.6 with the version changed, cut on 2026-11-21.
|
package/README.md
CHANGED
|
@@ -16,6 +16,12 @@ 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
|
+
**2.1.0-rc.1** adds `searchStations()` and `searchLunations()` to
|
|
20
|
+
`@zodiacs/engine/calc`. They find planetary reversals and lunar phases in TT
|
|
21
|
+
windows. Each event gives its ephemeris, fallback flags, timing estimate and
|
|
22
|
+
clock bands. Existing `events()` calls keep their signature and results.
|
|
23
|
+
[Search windows, budgets and measured coverage](docs/calc.md#station-and-lunation-search)
|
|
24
|
+
|
|
19
25
|
**2.0.0**, a major release: 2.0.0-rc.6 with the version changed
|
|
20
26
|
(CHANGELOG.md). Callers moving from 1.1.0 should read
|
|
21
27
|
[docs/migrating-to-2.md](docs/migrating-to-2.md). Over 1.1.0 (through
|
package/dist/calc.d.ts
CHANGED
|
@@ -417,6 +417,67 @@ interface EventsResult {
|
|
|
417
417
|
* longitudes, under an optional budget of evaluations.
|
|
418
418
|
*/
|
|
419
419
|
declare function events(request: EventsRequest): EventsResult | CalcRefusal;
|
|
420
|
+
declare const STATION_BODIES: readonly ["Mercury", "Venus", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto"];
|
|
421
|
+
type StationBody = (typeof STATION_BODIES)[number];
|
|
422
|
+
type LunationAngle = 0 | 90 | 180 | 270;
|
|
423
|
+
interface SearchWindow {
|
|
424
|
+
/**
|
|
425
|
+
* Both endpoints are rounded to TT milliseconds. Adjacent (from, to] windows partition the
|
|
426
|
+
* reported grid when they use the same ephemeris. Each search selects one source for its padded window.
|
|
427
|
+
*/
|
|
428
|
+
readonly from: CalcTime;
|
|
429
|
+
readonly to: CalcTime;
|
|
430
|
+
/** Budget of scalar evaluations, including the two timing probes per event. Defaults to Infinity. */
|
|
431
|
+
readonly maxSamples?: number;
|
|
432
|
+
}
|
|
433
|
+
interface StationSearchRequest extends SearchWindow {
|
|
434
|
+
readonly body: StationBody;
|
|
435
|
+
}
|
|
436
|
+
interface LunationSearchRequest extends SearchWindow {
|
|
437
|
+
/**
|
|
438
|
+
* Moon minus Sun apparent longitude for new, first quarter, full or last quarter.
|
|
439
|
+
* The offset rises through zero at the requested angle and jumps down at (angle + 180) modulo 360.
|
|
440
|
+
*/
|
|
441
|
+
readonly phaseDegrees: LunationAngle;
|
|
442
|
+
}
|
|
443
|
+
interface TimedEvent {
|
|
444
|
+
/** UTC calendar label on the engine's time basis, rounded to milliseconds. */
|
|
445
|
+
readonly at: string;
|
|
446
|
+
readonly jdTt: number;
|
|
447
|
+
readonly jdUt1: number;
|
|
448
|
+
readonly band: CalcEvent["band"];
|
|
449
|
+
readonly ephemeris: CalcReceipt<unknown>["engine"]["ephemeris"];
|
|
450
|
+
readonly flags: readonly ChartFlag[];
|
|
451
|
+
/** Width of the numerical TT bracket, seconds. */
|
|
452
|
+
readonly bracketSeconds: number;
|
|
453
|
+
/** Estimated TT timing resolution for the local angular allowance, including the bracket. */
|
|
454
|
+
readonly bounds: {
|
|
455
|
+
readonly timing: CalcBound;
|
|
456
|
+
};
|
|
457
|
+
readonly angularAllowanceArcsec: number;
|
|
458
|
+
}
|
|
459
|
+
interface StationEvent extends TimedEvent {
|
|
460
|
+
readonly body: StationBody;
|
|
461
|
+
/** Sense of motion after the station. */
|
|
462
|
+
readonly direction: "direct" | "retrograde";
|
|
463
|
+
readonly curvatureDegPerDay2: number;
|
|
464
|
+
}
|
|
465
|
+
interface LunationEvent extends TimedEvent {
|
|
466
|
+
readonly phaseDegrees: LunationAngle;
|
|
467
|
+
readonly relativeSpeedDegPerDay: number;
|
|
468
|
+
}
|
|
469
|
+
interface TimedSearchResult<Request, Event> {
|
|
470
|
+
readonly status: "ok";
|
|
471
|
+
readonly events: readonly Event[];
|
|
472
|
+
readonly samples: number;
|
|
473
|
+
readonly ephemeris: TimedEvent["ephemeris"];
|
|
474
|
+
readonly flags: readonly ChartFlag[];
|
|
475
|
+
readonly receipt: CalcReceipt<Request>;
|
|
476
|
+
}
|
|
477
|
+
/** Find every detected reversal of a planet's apparent geocentric longitude in (from, to]. */
|
|
478
|
+
declare function searchStations(request: StationSearchRequest): TimedSearchResult<StationSearchRequest, StationEvent> | CalcRefusal;
|
|
479
|
+
/** Find the requested lunar phase in (from, to] on the apparent geocentric true ecliptic of date. */
|
|
480
|
+
declare function searchLunations(request: LunationSearchRequest): TimedSearchResult<LunationSearchRequest, LunationEvent> | CalcRefusal;
|
|
420
481
|
interface ChartRequest {
|
|
421
482
|
/** A calendar date with no time, such as "1990-05-03", is refused with a RangeError unless `timeKnown` is false. */
|
|
422
483
|
readonly time: CalcTime;
|
|
@@ -474,4 +535,4 @@ interface CalcSiderealChart {
|
|
|
474
535
|
/** A natal chart from the calc vocabulary: natalChart()'s chart, with a receipt. */
|
|
475
536
|
declare function chart(request: ChartRequest): ChartResult | CalcRefusal;
|
|
476
537
|
|
|
477
|
-
export { Angles, CALC_AYANAMSAS, CALC_BODIES, CALC_FRAMES, CALC_RECEIPT_SCHEMA, CALC_SPAN, type CalcAyanamsa, type CalcAyanamsaModel, type CalcAyanamsaValue, type CalcBody, type CalcBound, type CalcBounds, type CalcCenter, type CalcCorrection, type CalcEvent, type CalcFlags, type CalcFrame, type CalcInstant, type CalcLocation, type CalcPlace, type CalcPosition, type CalcReceipt, type CalcRefusal, type CalcRequest, type CalcScale, type CalcSiderealChart, type CalcSpan, type CalcTime, type CalcTimeBand, type CalcUserAyanamsa, type CalcZodiac, Chart, ChartFlag, type ChartRequest, type ChartResult, DeltaT, type EventsRequest, type EventsResult, HouseSystem, type HousesRequest, type HousesResult, TimeBands, TimeScale, calc, chart, events, houses };
|
|
538
|
+
export { Angles, CALC_AYANAMSAS, CALC_BODIES, CALC_FRAMES, CALC_RECEIPT_SCHEMA, CALC_SPAN, type CalcAyanamsa, type CalcAyanamsaModel, type CalcAyanamsaValue, type CalcBody, type CalcBound, type CalcBounds, type CalcCenter, type CalcCorrection, type CalcEvent, type CalcFlags, type CalcFrame, type CalcInstant, type CalcLocation, type CalcPlace, type CalcPosition, type CalcReceipt, type CalcRefusal, type CalcRequest, type CalcScale, type CalcSiderealChart, type CalcSpan, type CalcTime, type CalcTimeBand, type CalcUserAyanamsa, type CalcZodiac, Chart, ChartFlag, type ChartRequest, type ChartResult, DeltaT, type EventsRequest, type EventsResult, HouseSystem, type HousesRequest, type HousesResult, type LunationAngle, type LunationEvent, type LunationSearchRequest, type StationBody, type StationEvent, type StationSearchRequest, TimeBands, TimeScale, type TimedSearchResult, calc, chart, events, houses, searchLunations, searchStations };
|