@hebcal/core 6.14.5 → 6.14.6

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 (61) hide show
  1. package/dist/bundle.js +39 -113
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +8 -8
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/DailyLearning.js +1 -1
  6. package/dist/esm/HebrewDateEvent.js +1 -1
  7. package/dist/esm/HolidayEvent.js +1 -1
  8. package/dist/esm/KiddushLevanaEvent.d.ts +2 -2
  9. package/dist/esm/KiddushLevanaEvent.js +4 -61
  10. package/dist/esm/KiddushLevanaEvent.js.map +1 -1
  11. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  12. package/dist/esm/ParshaEvent.js +1 -1
  13. package/dist/esm/TimedEvent.js +1 -1
  14. package/dist/esm/YomKippurKatanEvent.js +1 -1
  15. package/dist/esm/ashkenazi.po.d.ts +0 -4
  16. package/dist/esm/ashkenazi.po.js +2 -2
  17. package/dist/esm/ashkenazi.po.js.map +1 -1
  18. package/dist/esm/calendar.js +1 -1
  19. package/dist/esm/candles.js +1 -1
  20. package/dist/esm/cities.json.js +1 -1
  21. package/dist/esm/event.js +1 -1
  22. package/dist/esm/getStartAndEnd.js +1 -1
  23. package/dist/esm/hallel.js +1 -1
  24. package/dist/esm/he-x-NoNikud.po.d.ts +0 -4
  25. package/dist/esm/he-x-NoNikud.po.js +2 -2
  26. package/dist/esm/he-x-NoNikud.po.js.map +1 -1
  27. package/dist/esm/he.po.d.ts +0 -4
  28. package/dist/esm/he.po.js +2 -2
  29. package/dist/esm/he.po.js.map +1 -1
  30. package/dist/esm/hebcal.js +1 -1
  31. package/dist/esm/holidays.js +1 -1
  32. package/dist/esm/index.js +1 -1
  33. package/dist/esm/isAssurBemlacha.js +1 -1
  34. package/dist/esm/isAveilut.js +1 -1
  35. package/dist/esm/isFastDay.js +1 -1
  36. package/dist/esm/locale.js +1 -1
  37. package/dist/esm/location.js +1 -1
  38. package/dist/esm/modern.js +1 -1
  39. package/dist/esm/molad.js +1 -1
  40. package/dist/esm/moladBase.js +1 -1
  41. package/dist/esm/moladDate.d.ts +5 -6
  42. package/dist/esm/moladDate.js +34 -52
  43. package/dist/esm/moladDate.js.map +1 -1
  44. package/dist/esm/omer.js +1 -1
  45. package/dist/esm/parshaName.js +1 -1
  46. package/dist/esm/parshaYear.js +1 -1
  47. package/dist/esm/pkgVersion.d.ts +1 -1
  48. package/dist/esm/pkgVersion.js +2 -2
  49. package/dist/esm/pkgVersion.js.map +1 -1
  50. package/dist/esm/reformatTimeStr.js +1 -1
  51. package/dist/esm/sedra.js +1 -1
  52. package/dist/esm/sefira.json.js +1 -1
  53. package/dist/esm/staticHolidays.js +1 -1
  54. package/dist/esm/string.js +1 -1
  55. package/dist/esm/tachanun.js +1 -1
  56. package/dist/esm/zenith.js +1 -1
  57. package/dist/esm/zmanim.js +1 -1
  58. package/package.json +2 -2
  59. package/po/ashkenazi.po +0 -12
  60. package/po/he-x-NoNikud.po +0 -12
  61. package/po/he.po +0 -12
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { getPseudoISO, HDate } from '@hebcal/hdate';
3
3
  import { Zmanim } from './zmanim.js';
4
4
  import { getHolidaysOnDate } from './holidays.js';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { months, HDate } from '@hebcal/hdate';
3
3
 
4
4
  const { NISAN, SIVAN, TAMUZ, AV } = months;
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { getHolidaysOnDate } from './holidays.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { Locale } from '@hebcal/hdate';
3
3
  export { Locale } from '@hebcal/hdate';
4
4
  import poAshkenazi from './ashkenazi.po.js';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { GeoLocation } from '@hebcal/noaa';
3
3
  import citiesJson from './cities.json.js';
4
4
  import QuickLRU from 'quick-lru';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { months, HDate } from '@hebcal/hdate';
3
3
  import { flags } from './event.js';
4
4
  import { HolidayEvent } from './HolidayEvent.js';
package/dist/esm/molad.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import 'temporal-polyfill/global';
3
3
  import { Event, flags } from './event.js';
4
4
  import { HDate, Locale, pad2 } from '@hebcal/hdate';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { HDate, isLeapYear } from '@hebcal/hdate';
3
3
 
4
4
  /*
@@ -3,12 +3,11 @@ import { MoladBase } from './moladBase.js';
3
3
  /**
4
4
  * Returns the moment of the molad as a `Temporal.ZonedDateTime` in the `UTC` zone.
5
5
  *
6
- * The molad is computed in Jerusalem *standard* time and then converted, so the
7
- * returned instant is correct year-round; only the zone of the returned object
8
- * is `UTC`. This method subtracts 20.94 minutes (20 minutes and 56.496 seconds)
9
- * from the computed time — Har Habayis, at longitude 35.2354°, is 5.2354° away
10
- * from the multiple-of-15 timezone longitude — to get to standard time. Daylight
11
- * savings time is intentionally not applied; adjust when formatting for display.
6
+ * The molad is computed in Jerusalem local mean time — longitude 35.2354° at
7
+ * Har Habayis, 20.94 minutes (20 minutes and 56.496 seconds) ahead of Israel
8
+ * standard time — and then converted, so the returned instant is correct
9
+ * year-round; only the zone of the returned object is `UTC`. Daylight savings
10
+ * time is intentionally not applied; adjust when formatting for display.
12
11
  *
13
12
  * @param molad the molad to convert
14
13
  * @return the `Temporal.ZonedDateTime` representing the moment of the molad
@@ -1,42 +1,33 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import 'temporal-polyfill/global';
3
- import { getTimezoneOffset } from '@hebcal/hdate';
3
+ import QuickLRU from 'quick-lru';
4
4
 
5
- /** constant for milliseconds in a minute (60,000) */
6
- const MINUTE_MILLIS = 60 * 1000;
5
+ /** milliseconds in a day */
6
+ const DAY_MILLIS = 24 * 60 * 60 * 1000;
7
+ /** R.D. (Rata Die) day number of 1970-01-01, the Unix epoch */
8
+ const EPOCH_RD = 719163;
7
9
  /**
8
- * A method that will return the location's local mean time offset in milliseconds from local
9
- * [standard time](https://en.wikipedia.org/wiki/Standard_time). The globe is split into 360°, with
10
- * 15° per hour of the day. For a locale that is at a longitude that is evenly divisible by 15
11
- * (longitude % 15 == 0), at solar noon (with adjustment for the
12
- * [equation of time](https://en.wikipedia.org/wiki/Equation_of_time)) the sun should be directly overhead,
13
- * so a user who is 1° west of this will have noon at 4 minutes after standard time noon, and conversely, a user
14
- * who is 1° east of the 15° longitude will have noon at 11:56 AM. Lakewood, N.J., whose longitude is
15
- * -74.222, is 0.778 away from the closest multiple of 15 at -75°. This is multiplied by 4 to yield 3 minutes
16
- * and 10 seconds earlier than standard time. The offset returned does not account for the
17
- * [Daylight saving time](https://en.wikipedia.org/wiki/Daylight_saving_time) offset since this function is
18
- * unaware of dates.
19
- *
20
- * @param dt the date used to resolve the timezone offset
21
- * @param longitude the location's longitude
22
- * @param tzid IANA timezone identifier
23
- * @return the offset in milliseconds not accounting for Daylight saving time. A positive value will be returned
24
- * East of the 15° timezone line, and a negative value West of it.
10
+ * Offset of Jerusalem local mean time from UTC, in milliseconds. Har Habayis,
11
+ * at longitude 35.2354°, is 4 minutes per degree east of Greenwich:
12
+ * 2 hours, 20 minutes and 56.496 seconds.
25
13
  */
26
- function getLocalMeanTimeOffset(dt, longitude, tzid) {
27
- const offset = -1 * getTimezoneOffset(tzid, dt);
28
- const d = longitude * 4 * MINUTE_MILLIS - offset * MINUTE_MILLIS;
29
- return Math.trunc(d);
30
- }
14
+ const JERUSALEM_LMT_OFFSET_MILLIS = Math.trunc(35.2354 * 4 * 60 * 1000);
15
+ /**
16
+ * Even from precomputed epoch milliseconds, constructing a `ZonedDateTime` with
17
+ * the polyfill costs ~8µs, 10x more than `calculateMolad` itself. Keyed by
18
+ * epoch milliseconds; `ZonedDateTime` is immutable, so sharing is safe.
19
+ */
20
+ const moladDateCache = new QuickLRU({
21
+ maxSize: 120,
22
+ });
31
23
  /**
32
24
  * Returns the moment of the molad as a `Temporal.ZonedDateTime` in the `UTC` zone.
33
25
  *
34
- * The molad is computed in Jerusalem *standard* time and then converted, so the
35
- * returned instant is correct year-round; only the zone of the returned object
36
- * is `UTC`. This method subtracts 20.94 minutes (20 minutes and 56.496 seconds)
37
- * from the computed time — Har Habayis, at longitude 35.2354°, is 5.2354° away
38
- * from the multiple-of-15 timezone longitude — to get to standard time. Daylight
39
- * savings time is intentionally not applied; adjust when formatting for display.
26
+ * The molad is computed in Jerusalem local mean time — longitude 35.2354° at
27
+ * Har Habayis, 20.94 minutes (20 minutes and 56.496 seconds) ahead of Israel
28
+ * standard time — and then converted, so the returned instant is correct
29
+ * year-round; only the zone of the returned object is `UTC`. Daylight savings
30
+ * time is intentionally not applied; adjust when formatting for display.
40
31
  *
41
32
  * @param molad the molad to convert
42
33
  * @return the `Temporal.ZonedDateTime` representing the moment of the molad
@@ -44,26 +35,17 @@ function getLocalMeanTimeOffset(dt, longitude, tzid) {
44
35
  function getMoladAsDate(molad) {
45
36
  const moladSeconds = (molad.chalakim * 10) / 3;
46
37
  const millis = Math.trunc(1000 * (moladSeconds - Math.trunc(moladSeconds)));
47
- const dt = molad.hdate.greg();
48
- // The raw molad Date (point in time) must be generated using standard time. Using "Asia/Jerusalem" timezone will result in the time
49
- // being incorrectly off by an hour in the summer due to DST. Proper adjustment for the actual time in DST will be done by the date
50
- // formatter class used to display the Date.
51
- const tzid = 'Etc/GMT+2';
52
- const zdt = Temporal.ZonedDateTime.from({
53
- year: dt.getFullYear(),
54
- month: dt.getMonth() + 1,
55
- day: dt.getDate(),
56
- hour: molad.hour,
57
- minute: molad.minutes,
58
- second: Math.trunc(moladSeconds),
59
- millisecond: millis,
60
- timeZone: tzid,
61
- });
62
- const longitude = 35.2354; // Har Habayis longitude
63
- const offset = getLocalMeanTimeOffset(dt, longitude, tzid);
64
- // subtract local time difference of 20.94 minutes (20 minutes and 56.496 seconds) to get to Standard time
65
- const zdt2 = zdt.subtract({ milliseconds: offset });
66
- return zdt2.withTimeZone('UTC');
38
+ const localMillis = (molad.hdate.abs() - EPOCH_RD) * DAY_MILLIS +
39
+ ((molad.hour * 60 + molad.minutes) * 60 + Math.trunc(moladSeconds)) * 1000 +
40
+ millis;
41
+ const epochMillis = localMillis - JERUSALEM_LMT_OFFSET_MILLIS;
42
+ let zdt = moladDateCache.get(epochMillis);
43
+ if (!zdt) {
44
+ zdt =
45
+ Temporal.Instant.fromEpochMilliseconds(epochMillis).toZonedDateTimeISO('UTC');
46
+ moladDateCache.set(epochMillis, zdt);
47
+ }
48
+ return zdt;
67
49
  }
68
50
 
69
51
  export { getMoladAsDate };
@@ -1 +1 @@
1
- {"version":3,"file":"moladDate.js","sources":["../../../src/moladDate.ts"],"sourcesContent":["import 'temporal-polyfill/global';\nimport {getTimezoneOffset} from '@hebcal/hdate';\nimport {MoladBase} from './moladBase.js';\n\n/** constant for milliseconds in a minute (60,000) */\nconst MINUTE_MILLIS = 60 * 1000;\n\n/**\n * A method that will return the location's local mean time offset in milliseconds from local\n * [standard time](https://en.wikipedia.org/wiki/Standard_time). The globe is split into 360°, with\n * 15° per hour of the day. For a locale that is at a longitude that is evenly divisible by 15\n * (longitude % 15 == 0), at solar noon (with adjustment for the\n * [equation of time](https://en.wikipedia.org/wiki/Equation_of_time)) the sun should be directly overhead,\n * so a user who is 1° west of this will have noon at 4 minutes after standard time noon, and conversely, a user\n * who is 1° east of the 15° longitude will have noon at 11:56 AM. Lakewood, N.J., whose longitude is\n * -74.222, is 0.778 away from the closest multiple of 15 at -75°. This is multiplied by 4 to yield 3 minutes\n * and 10 seconds earlier than standard time. The offset returned does not account for the\n * [Daylight saving time](https://en.wikipedia.org/wiki/Daylight_saving_time) offset since this function is\n * unaware of dates.\n *\n * @param dt the date used to resolve the timezone offset\n * @param longitude the location's longitude\n * @param tzid IANA timezone identifier\n * @return the offset in milliseconds not accounting for Daylight saving time. A positive value will be returned\n * East of the 15° timezone line, and a negative value West of it.\n */\nfunction getLocalMeanTimeOffset(dt: Date, longitude: number, tzid: string): number {\n const offset = -1 * getTimezoneOffset(tzid, dt);\n const d = longitude * 4 * MINUTE_MILLIS - offset * MINUTE_MILLIS;\n return Math.trunc(d);\n}\n\n/**\n * Returns the moment of the molad as a `Temporal.ZonedDateTime` in the `UTC` zone.\n *\n * The molad is computed in Jerusalem *standard* time and then converted, so the\n * returned instant is correct year-round; only the zone of the returned object\n * is `UTC`. This method subtracts 20.94 minutes (20 minutes and 56.496 seconds)\n * from the computed time — Har Habayis, at longitude 35.2354°, is 5.2354° away\n * from the multiple-of-15 timezone longitude — to get to standard time. Daylight\n * savings time is intentionally not applied; adjust when formatting for display.\n *\n * @param molad the molad to convert\n * @return the `Temporal.ZonedDateTime` representing the moment of the molad\n */\nexport function getMoladAsDate(molad: MoladBase): Temporal.ZonedDateTime {\n const moladSeconds = (molad.chalakim * 10) / 3;\n const millis = Math.trunc(1000 * (moladSeconds - Math.trunc(moladSeconds)));\n\n const dt = molad.hdate.greg();\n\n // The raw molad Date (point in time) must be generated using standard time. Using \"Asia/Jerusalem\" timezone will result in the time\n // being incorrectly off by an hour in the summer due to DST. Proper adjustment for the actual time in DST will be done by the date\n // formatter class used to display the Date.\n const tzid = 'Etc/GMT+2';\n const zdt = Temporal.ZonedDateTime.from({\n year: dt.getFullYear(),\n month: dt.getMonth() + 1,\n day: dt.getDate(),\n hour: molad.hour,\n minute: molad.minutes,\n second: Math.trunc(moladSeconds),\n millisecond: millis,\n timeZone: tzid,\n });\n\n const longitude = 35.2354; // Har Habayis longitude\n const offset = getLocalMeanTimeOffset(dt, longitude, tzid);\n // subtract local time difference of 20.94 minutes (20 minutes and 56.496 seconds) to get to Standard time\n const zdt2 = zdt.subtract({milliseconds: offset});\n return zdt2.withTimeZone('UTC');\n}\n"],"names":[],"mappings":";;;;AAIA;AACA,MAAM,aAAa,GAAG,EAAE,GAAG,IAAI;AAE/B;;;;;;;;;;;;;;;;;;AAkBG;AACH,SAAS,sBAAsB,CAAC,EAAQ,EAAE,SAAiB,EAAE,IAAY,EAAA;IACvE,MAAM,MAAM,GAAG,EAAE,GAAG,iBAAiB,CAAC,IAAI,EAAE,EAAE,CAAC;IAC/C,MAAM,CAAC,GAAG,SAAS,GAAG,CAAC,GAAG,aAAa,GAAG,MAAM,GAAG,aAAa;AAChE,IAAA,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;AACtB;AAEA;;;;;;;;;;;;AAYG;AACG,SAAU,cAAc,CAAC,KAAgB,EAAA;IAC7C,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,IAAI,CAAC;AAC9C,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;IAE3E,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE;;;;IAK7B,MAAM,IAAI,GAAG,WAAW;AACxB,IAAA,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC;AACtC,QAAA,IAAI,EAAE,EAAE,CAAC,WAAW,EAAE;AACtB,QAAA,KAAK,EAAE,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC;AACxB,QAAA,GAAG,EAAE,EAAE,CAAC,OAAO,EAAE;QACjB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,MAAM,EAAE,KAAK,CAAC,OAAO;AACrB,QAAA,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC;AAChC,QAAA,WAAW,EAAE,MAAM;AACnB,QAAA,QAAQ,EAAE,IAAI;AACf,KAAA,CAAC;AAEF,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC;IAC1B,MAAM,MAAM,GAAG,sBAAsB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC;;AAE1D,IAAA,MAAM,IAAI,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAC,YAAY,EAAE,MAAM,EAAC,CAAC;AACjD,IAAA,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;AACjC;;"}
1
+ {"version":3,"file":"moladDate.js","sources":["../../../src/moladDate.ts"],"sourcesContent":["import 'temporal-polyfill/global';\nimport QuickLRU from 'quick-lru';\nimport {MoladBase} from './moladBase.js';\n\n/** milliseconds in a day */\nconst DAY_MILLIS = 24 * 60 * 60 * 1000;\n\n/** R.D. (Rata Die) day number of 1970-01-01, the Unix epoch */\nconst EPOCH_RD = 719163;\n\n/**\n * Offset of Jerusalem local mean time from UTC, in milliseconds. Har Habayis,\n * at longitude 35.2354°, is 4 minutes per degree east of Greenwich:\n * 2 hours, 20 minutes and 56.496 seconds.\n */\nconst JERUSALEM_LMT_OFFSET_MILLIS = Math.trunc(35.2354 * 4 * 60 * 1000);\n\n/**\n * Even from precomputed epoch milliseconds, constructing a `ZonedDateTime` with\n * the polyfill costs ~8µs, 10x more than `calculateMolad` itself. Keyed by\n * epoch milliseconds; `ZonedDateTime` is immutable, so sharing is safe.\n */\nconst moladDateCache = new QuickLRU<number, Temporal.ZonedDateTime>({\n maxSize: 120,\n});\n\n/**\n * Returns the moment of the molad as a `Temporal.ZonedDateTime` in the `UTC` zone.\n *\n * The molad is computed in Jerusalem local mean time — longitude 35.2354° at\n * Har Habayis, 20.94 minutes (20 minutes and 56.496 seconds) ahead of Israel\n * standard time — and then converted, so the returned instant is correct\n * year-round; only the zone of the returned object is `UTC`. Daylight savings\n * time is intentionally not applied; adjust when formatting for display.\n *\n * @param molad the molad to convert\n * @return the `Temporal.ZonedDateTime` representing the moment of the molad\n */\nexport function getMoladAsDate(molad: MoladBase): Temporal.ZonedDateTime {\n const moladSeconds = (molad.chalakim * 10) / 3;\n const millis = Math.trunc(1000 * (moladSeconds - Math.trunc(moladSeconds)));\n const localMillis =\n (molad.hdate.abs() - EPOCH_RD) * DAY_MILLIS +\n ((molad.hour * 60 + molad.minutes) * 60 + Math.trunc(moladSeconds)) * 1000 +\n millis;\n const epochMillis = localMillis - JERUSALEM_LMT_OFFSET_MILLIS;\n let zdt = moladDateCache.get(epochMillis);\n if (!zdt) {\n zdt =\n Temporal.Instant.fromEpochMilliseconds(epochMillis).toZonedDateTimeISO('UTC');\n moladDateCache.set(epochMillis, zdt);\n }\n return zdt;\n}\n"],"names":[],"mappings":";;;;AAIA;AACA,MAAM,UAAU,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI;AAEtC;AACA,MAAM,QAAQ,GAAG,MAAM;AAEvB;;;;AAIG;AACH,MAAM,2BAA2B,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvE;;;;AAIG;AACH,MAAM,cAAc,GAAG,IAAI,QAAQ,CAAiC;AAClE,IAAA,OAAO,EAAE,GAAG;AACb,CAAA,CAAC;AAEF;;;;;;;;;;;AAWG;AACG,SAAU,cAAc,CAAC,KAAgB,EAAA;IAC7C,MAAM,YAAY,GAAG,CAAC,KAAK,CAAC,QAAQ,GAAG,EAAE,IAAI,CAAC;AAC9C,IAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AAC3E,IAAA,MAAM,WAAW,GACf,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,QAAQ,IAAI,UAAU;QAC3C,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,OAAO,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,IAAI;AAC1E,QAAA,MAAM;AACR,IAAA,MAAM,WAAW,GAAG,WAAW,GAAG,2BAA2B;IAC7D,IAAI,GAAG,GAAG,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC;IACzC,IAAI,CAAC,GAAG,EAAE;QACR,GAAG;AACD,YAAA,QAAQ,CAAC,OAAO,CAAC,qBAAqB,CAAC,WAAW,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC;AAC/E,QAAA,cAAc,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC;IACtC;AACA,IAAA,OAAO,GAAG;AACZ;;"}
package/dist/esm/omer.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { Locale, gematriya } from '@hebcal/hdate';
3
3
  import { Event, flags } from './event.js';
4
4
  import './locale.js';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import './locale.js';
3
3
  import { smartApostrophe } from './string.js';
4
4
  import { Locale } from '@hebcal/hdate';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { HDate, months } from '@hebcal/hdate';
3
3
  import { ParshaEvent } from './ParshaEvent.js';
4
4
  import { getSedra } from './sedra.js';
@@ -1,2 +1,2 @@
1
1
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
2
- export declare const version = "6.14.5";
2
+ export declare const version = "6.14.6";
@@ -1,6 +1,6 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
3
- const version = '6.14.5';
3
+ const version = '6.14.6';
4
4
 
5
5
  export { version };
6
6
  //# sourceMappingURL=pkgVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pkgVersion.js","sources":["../../../src/pkgVersion.ts"],"sourcesContent":["/** DO NOT EDIT THIS AUTO-GENERATED FILE! */\nexport const version = '6.14.5';\n"],"names":[],"mappings":";AAAA;AACO,MAAM,OAAO,GAAG;;"}
1
+ {"version":3,"file":"pkgVersion.js","sources":["../../../src/pkgVersion.ts"],"sourcesContent":["/** DO NOT EDIT THIS AUTO-GENERATED FILE! */\nexport const version = '6.14.6';\n"],"names":[],"mappings":";AAAA;AACO,MAAM,OAAO,GAAG;;"}
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  /** Countries that conventionally use a 12-hour clock */
3
3
  const hour12cc = new Set([
4
4
  'US',
package/dist/esm/sedra.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { HDate, months } from '@hebcal/hdate';
3
3
  import QuickLRU from 'quick-lru';
4
4
  import './locale.js';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  var sefira = {
3
3
  "ps67lines": [
4
4
  "אֱלֹהִים יְחָנֵּנוּ וִיבָרְכֵנוּ יָאֵר־פָּנָיו אִתָּנוּ סֶלָה",
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { months } from '@hebcal/hdate';
3
3
  import { flags } from './event.js';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  function smartApostrophe(str) {
3
3
  return str.replaceAll("'", '’');
4
4
  }
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import { HDate, months } from '@hebcal/hdate';
3
3
  import { dateYomHaZikaron } from './modern.js';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  /**
3
3
  * Solar zeniths and depression angles shared by the zmanim calculations.
4
4
  *
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v6.14.5, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
1
+ /*! @hebcal/core v6.14.6, distributed under GPLv2 or later https://www.gnu.org/licenses/gpl-2.0.txt */
2
2
  import 'temporal-polyfill/global';
3
3
  import { NOAACalculator } from '@hebcal/noaa';
4
4
  import { HDate, isDate, getTimezoneOffset, pad2, getPseudoISO } from '@hebcal/hdate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "6.14.5",
3
+ "version": "6.14.6",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -79,7 +79,7 @@
79
79
  "@types/node": "^26.6.5",
80
80
  "@vitest/coverage-v8": "^5.0.5",
81
81
  "gettext-parser": "^9.1.1",
82
- "oxlint": "^1.88.0",
82
+ "oxlint": "^1.89.0",
83
83
  "prettier": "^3.9.10",
84
84
  "pretty-bytes": "^7.2.0",
85
85
  "rollup": "^4.64.10",
package/po/ashkenazi.po CHANGED
@@ -230,15 +230,3 @@ msgstr "Tzeis HaKochavim"
230
230
 
231
231
  msgid "Latest Kiddush Levana"
232
232
  msgstr "Latest Kiddush Levanah"
233
-
234
- msgid "Earliest Kiddush Levana (3 days)"
235
- msgstr "Earliest Kiddush Levanah (3 days)"
236
-
237
- msgid "Earliest Kiddush Levana (7 days)"
238
- msgstr "Earliest Kiddush Levanah (7 days)"
239
-
240
- msgid "Latest Kiddush Levana (Maharil)"
241
- msgstr "Latest Kiddush Levanah (Maharil)"
242
-
243
- msgid "Latest Kiddush Levana (15 days)"
244
- msgstr "Latest Kiddush Levanah (15 days)"
@@ -62,15 +62,3 @@ msgstr "יום הזיכרון לחללי מלחמת חרבות ברזל"
62
62
 
63
63
  msgid "Latest Kiddush Levana"
64
64
  msgstr "סוף זמן קידוש לבנה"
65
-
66
- msgid "Earliest Kiddush Levana (3 days)"
67
- msgstr "תחילת זמן קידוש לבנה (3 ימים)"
68
-
69
- msgid "Earliest Kiddush Levana (7 days)"
70
- msgstr "תחילת זמן קידוש לבנה (7 ימים)"
71
-
72
- msgid "Latest Kiddush Levana (Maharil)"
73
- msgstr "סוף זמן קידוש לבנה (מהרי״ל)"
74
-
75
- msgid "Latest Kiddush Levana (15 days)"
76
- msgstr "סוף זמן קידוש לבנה (15 ימים)"
package/po/he.po CHANGED
@@ -653,15 +653,3 @@ msgstr "יוֹם הַזִּכָּרוֹן לְחַלְלֵי מִלְחֶמֶת
653
653
 
654
654
  msgid "Latest Kiddush Levana"
655
655
  msgstr "סוֹף זְמַן קִדּוּשׁ לְבָנָה"
656
-
657
- msgid "Earliest Kiddush Levana (3 days)"
658
- msgstr "תְּחִלַּת זְמַן קִדּוּשׁ לְבָנָה (3 יָמִים)"
659
-
660
- msgid "Earliest Kiddush Levana (7 days)"
661
- msgstr "תְּחִלַּת זְמַן קִדּוּשׁ לְבָנָה (7 יָמִים)"
662
-
663
- msgid "Latest Kiddush Levana (Maharil)"
664
- msgstr "סוֹף זְמַן קִדּוּשׁ לְבָנָה (מהרי״ל)"
665
-
666
- msgid "Latest Kiddush Levana (15 days)"
667
- msgstr "סוֹף זְמַן קִדּוּשׁ לְבָנָה (15 יָמִים)"