@hebcal/core 6.5.0 → 6.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/bundle.js +5983 -5473
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +17 -17
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/CalOptions.d.ts +7 -4
  6. package/dist/esm/DailyLearning.d.ts +44 -7
  7. package/dist/esm/DailyLearning.js +45 -8
  8. package/dist/esm/DailyLearning.js.map +1 -1
  9. package/dist/esm/HebrewDateEvent.js +1 -1
  10. package/dist/esm/HolidayEvent.d.ts +34 -1
  11. package/dist/esm/HolidayEvent.js +35 -2
  12. package/dist/esm/HolidayEvent.js.map +1 -1
  13. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  14. package/dist/esm/ParshaEvent.js +1 -1
  15. package/dist/esm/TimedEvent.d.ts +32 -3
  16. package/dist/esm/TimedEvent.js +33 -4
  17. package/dist/esm/TimedEvent.js.map +1 -1
  18. package/dist/esm/YomKippurKatanEvent.js +1 -1
  19. package/dist/esm/ashkenazi.po.d.ts +1 -0
  20. package/dist/esm/ashkenazi.po.js +2 -2
  21. package/dist/esm/ashkenazi.po.js.map +1 -1
  22. package/dist/esm/calendar.d.ts +1 -0
  23. package/dist/esm/calendar.js +12 -2
  24. package/dist/esm/calendar.js.map +1 -1
  25. package/dist/esm/candles.d.ts +14 -1
  26. package/dist/esm/candles.js +15 -2
  27. package/dist/esm/candles.js.map +1 -1
  28. package/dist/esm/cities.json.js +5 -0
  29. package/dist/esm/cities.json.js.map +1 -0
  30. package/dist/esm/event.d.ts +58 -13
  31. package/dist/esm/event.js +59 -14
  32. package/dist/esm/event.js.map +1 -1
  33. package/dist/esm/getStartAndEnd.js +10 -2
  34. package/dist/esm/getStartAndEnd.js.map +1 -1
  35. package/dist/esm/hallel.js +20 -28
  36. package/dist/esm/hallel.js.map +1 -1
  37. package/dist/esm/he-x-NoNikud.po.js +1 -1
  38. package/dist/esm/he.po.d.ts +1 -0
  39. package/dist/esm/he.po.js +2 -2
  40. package/dist/esm/he.po.js.map +1 -1
  41. package/dist/esm/hebcal.d.ts +97 -19
  42. package/dist/esm/hebcal.js +102 -21
  43. package/dist/esm/hebcal.js.map +1 -1
  44. package/dist/esm/holidays.d.ts +21 -2
  45. package/dist/esm/holidays.js +39 -3
  46. package/dist/esm/holidays.js.map +1 -1
  47. package/dist/esm/index.d.ts +1 -1
  48. package/dist/esm/index.js +2 -1
  49. package/dist/esm/index.js.map +1 -1
  50. package/dist/esm/isAssurBemlacha.d.ts +24 -4
  51. package/dist/esm/isAssurBemlacha.js +25 -5
  52. package/dist/esm/isAssurBemlacha.js.map +1 -1
  53. package/dist/esm/isAveilut.d.ts +14 -3
  54. package/dist/esm/isAveilut.js +15 -4
  55. package/dist/esm/isAveilut.js.map +1 -1
  56. package/dist/esm/isFastDay.d.ts +13 -1
  57. package/dist/esm/isFastDay.js +14 -2
  58. package/dist/esm/isFastDay.js.map +1 -1
  59. package/dist/esm/locale.js +1 -1
  60. package/dist/esm/location.d.ts +96 -8
  61. package/dist/esm/location.js +112 -88
  62. package/dist/esm/location.js.map +1 -1
  63. package/dist/esm/modern.js +1 -1
  64. package/dist/esm/molad.d.ts +39 -7
  65. package/dist/esm/molad.js +40 -8
  66. package/dist/esm/molad.js.map +1 -1
  67. package/dist/esm/moladBase.js +1 -1
  68. package/dist/esm/moladDate.js +1 -1
  69. package/dist/esm/omer.d.ts +32 -4
  70. package/dist/esm/omer.js +33 -5
  71. package/dist/esm/omer.js.map +1 -1
  72. package/dist/esm/parshaName.js +1 -1
  73. package/dist/esm/parshaYear.d.ts +12 -1
  74. package/dist/esm/parshaYear.js +13 -2
  75. package/dist/esm/parshaYear.js.map +1 -1
  76. package/dist/esm/pkgVersion.d.ts +1 -1
  77. package/dist/esm/pkgVersion.js +2 -2
  78. package/dist/esm/pkgVersion.js.map +1 -1
  79. package/dist/esm/reformatTimeStr.js +1 -1
  80. package/dist/esm/sedra.d.ts +94 -14
  81. package/dist/esm/sedra.js +95 -15
  82. package/dist/esm/sedra.js.map +1 -1
  83. package/dist/esm/sefira.json.js +1 -1
  84. package/dist/esm/staticHolidays.d.ts +2 -0
  85. package/dist/esm/staticHolidays.js +3 -1
  86. package/dist/esm/staticHolidays.js.map +1 -1
  87. package/dist/esm/tachanun.js +1 -1
  88. package/dist/esm/temporal-shim.js +1 -1
  89. package/dist/esm/zmanim.js +1 -1
  90. package/dist/src/CalOptions.d.ts +7 -4
  91. package/dist/src/DailyLearning.d.ts +44 -7
  92. package/dist/src/DailyLearning.js +44 -7
  93. package/dist/src/HolidayEvent.d.ts +34 -1
  94. package/dist/src/HolidayEvent.js +34 -1
  95. package/dist/src/TimedEvent.d.ts +32 -3
  96. package/dist/src/TimedEvent.js +32 -3
  97. package/dist/src/ashkenazi.po.d.ts +1 -0
  98. package/dist/src/ashkenazi.po.js +1 -1
  99. package/dist/src/calendar.d.ts +1 -0
  100. package/dist/src/calendar.js +11 -1
  101. package/dist/src/candles.d.ts +14 -1
  102. package/dist/src/candles.js +14 -1
  103. package/dist/src/cities.json +67 -0
  104. package/dist/src/event.d.ts +58 -13
  105. package/dist/src/event.js +58 -13
  106. package/dist/src/getStartAndEnd.js +9 -1
  107. package/dist/src/hallel.js +19 -27
  108. package/dist/src/he.po.d.ts +1 -0
  109. package/dist/src/he.po.js +1 -1
  110. package/dist/src/hebcal.d.ts +97 -19
  111. package/dist/src/hebcal.js +101 -20
  112. package/dist/src/holidays.d.ts +21 -2
  113. package/dist/src/holidays.js +38 -2
  114. package/dist/src/index.d.ts +1 -1
  115. package/dist/src/index.js +1 -0
  116. package/dist/src/isAssurBemlacha.d.ts +24 -4
  117. package/dist/src/isAssurBemlacha.js +24 -4
  118. package/dist/src/isAveilut.d.ts +14 -3
  119. package/dist/src/isAveilut.js +14 -3
  120. package/dist/src/isFastDay.d.ts +13 -1
  121. package/dist/src/isFastDay.js +13 -1
  122. package/dist/src/location.d.ts +96 -8
  123. package/dist/src/location.js +111 -87
  124. package/dist/src/molad.d.ts +39 -7
  125. package/dist/src/molad.js +39 -7
  126. package/dist/src/omer.d.ts +32 -4
  127. package/dist/src/omer.js +32 -4
  128. package/dist/src/parshaYear.d.ts +12 -1
  129. package/dist/src/parshaYear.js +12 -1
  130. package/dist/src/pkgVersion.d.ts +1 -1
  131. package/dist/src/pkgVersion.js +1 -1
  132. package/dist/src/sedra.d.ts +94 -14
  133. package/dist/src/sedra.js +94 -14
  134. package/dist/src/staticHolidays.d.ts +2 -0
  135. package/dist/src/staticHolidays.js +2 -0
  136. package/package.json +6 -6
@@ -27,7 +27,23 @@ export type SedraResult = {
27
27
  il: boolean;
28
28
  };
29
29
  /**
30
- * Represents Parashah HaShavua for an entire Hebrew year
30
+ * Represents the weekly Torah-reading (Parashat HaShavua) schedule for an
31
+ * entire Hebrew year.
32
+ *
33
+ * The schedule depends on the year's *keviyah* — the day of week of Rosh
34
+ * Hashana, whether the year is leap, whether Cheshvan/Kislev are long or
35
+ * short, and whether the schedule is for Israel or the Diaspora (since
36
+ * Israel and the Diaspora diverge in some years when the 8th day of Pesach
37
+ * or the 2nd day of Shavuot fall on Shabbat).
38
+ *
39
+ * Prefer {@link getSedra} (or {@link HebrewCalendar.getSedra}) over
40
+ * calling this constructor directly, since both cache their results.
41
+ *
42
+ * @example
43
+ * import {Sedra, HDate, months} from '@hebcal/core';
44
+ * const sedra = new Sedra(5784, false);
45
+ * const result = sedra.lookup(new HDate(15, months.CHESHVAN, 5784));
46
+ * console.log(result.parsha); // ['Lech-Lecha']
31
47
  */
32
48
  export declare class Sedra {
33
49
  private readonly year;
@@ -37,14 +53,29 @@ export declare class Sedra {
37
53
  private readonly theSedraArray;
38
54
  private readonly yearKey;
39
55
  /**
40
- * Caculates the Parashah HaShavua for an entire Hebrew year
56
+ * Calculates the Parashat HaShavua schedule for an entire Hebrew year.
41
57
  * @param hyear - Hebrew year (e.g. 5749)
42
58
  * @param il - Use Israel sedra schedule (false for Diaspora)
43
59
  */
44
60
  constructor(hyear: number, il: boolean);
45
61
  /**
46
- * Returns the date that a parsha occurs
47
- * or `null` if the parsha doesn't occur this year
62
+ * Returns the date a parsha is read this year, or `null` if it does not
63
+ * occur in this year's schedule.
64
+ *
65
+ * A doubled parsha (e.g. `'Matot-Masei'`) will only return a date in years
66
+ * where that pair is actually read together; in years where they are read
67
+ * separately, this returns `null`. Use {@link findContaining} to find the
68
+ * date a parsha is read regardless of whether it is doubled.
69
+ *
70
+ * Throws `RangeError` for an out-of-range numeric input or an invalid
71
+ * doubled-parsha pair, and `TypeError` for a malformed array argument.
72
+ * @example
73
+ * import {Sedra} from '@hebcal/core';
74
+ * const sedra = new Sedra(5784, false);
75
+ * sedra.find('Noach')?.toString(); // '15 Cheshvan 5784'
76
+ * sedra.find(1)?.toString(); // same, by 0-based index
77
+ * sedra.find('Matot-Masei')?.toString(); // null in 5784 — read separately
78
+ * sedra.find(['Matot', 'Masei']); // also null in 5784
48
79
  * @param parsha if a `string`, specified with Sephardic transliterations
49
80
  * like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
50
81
  * array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
@@ -54,22 +85,63 @@ export declare class Sedra {
54
85
  find(parsha: number | string | string[]): HDate | null;
55
86
  private findInternal;
56
87
  /**
57
- * Returns the date that a parsha (or its doubled or undoubled counterpart)
58
- * occurs, or `null` if the parsha doesn't occur this year
88
+ * Returns the date a parsha is read this year, looking through both
89
+ * single and doubled forms.
90
+ *
91
+ * For example, if `'Matot'` is read individually this year, this returns
92
+ * its date; if it is read as part of `'Matot-Masei'` this year, this
93
+ * returns the date of `'Matot-Masei'` (and similarly for `'Masei'`).
94
+ * Conversely, asking for `'Matot-Masei'` in a year where they are split
95
+ * will return the date of `'Matot'` alone.
96
+ * @example
97
+ * import {Sedra} from '@hebcal/core';
98
+ * const sedra = new Sedra(5784, false);
99
+ * // Matot-Masei is split in 5784; both individual halves resolve:
100
+ * sedra.findContaining('Matot')?.toString(); // '22 Tamuz 5784'
101
+ * sedra.findContaining('Masei')?.toString(); // '29 Tamuz 5784'
102
+ * // Asking for the doubled name returns the date of the first half:
103
+ * sedra.findContaining('Matot-Masei')?.toString(); // '22 Tamuz 5784'
59
104
  */
60
105
  findContaining(parsha: number | string): HDate | null;
61
106
  /**
62
- * Returns the underlying annual sedra schedule.
63
- * Used by `@hebcal/triennial`
107
+ * Returns the underlying annual reading schedule as an array, where each
108
+ * entry corresponds to one Saturday (starting from the first Shabbat on
109
+ * or after Rosh Hashana). Entries are either:
110
+ * - a non-negative `number`: a 0-based parsha index (e.g. `0` for
111
+ * *Bereshit*)
112
+ * - a negative `number`: the negated first index of a doubled parsha
113
+ * (e.g. `-21` for *Vayakhel-Pekudei*)
114
+ * - a `string`: a holiday name when a Yom Tov displaces the weekly reading
115
+ * (e.g. `'Pesach Shabbat Chol ha-Moed'`, `'Yom Kippur'`)
116
+ *
117
+ * Used by `@hebcal/triennial`.
64
118
  */
65
119
  getSedraArray(): readonly NumberOrString[];
66
120
  /**
67
- * R.D. date of the first Saturday on or after Rosh Hashana
121
+ * Returns the R.D. (Rata Die / Fixed Date) absolute day number of the
122
+ * first Saturday on or after Rosh Hashana of this year. This is the
123
+ * anchor point for {@link getSedraArray} — index `0` of that array
124
+ * corresponds to this date.
68
125
  */
69
126
  getFirstSaturday(): number;
127
+ /** Returns the Hebrew year this `Sedra` instance covers. */
70
128
  getYear(): number;
71
129
  /**
72
- * Returns an object describing the parsha on the first Saturday on or after `hd`
130
+ * Returns details about the parsha read on the first Saturday on or after
131
+ * `hd`. If `hd` is itself a Saturday, the reading for that date is
132
+ * returned; otherwise the reading for the upcoming Saturday is returned.
133
+ *
134
+ * If the given date falls in the final days of the Hebrew year (after
135
+ * the last reading of this year's schedule), this method transparently
136
+ * delegates to the next year's `Sedra`.
137
+ * @example
138
+ * import {Sedra, HDate, months} from '@hebcal/core';
139
+ * const sedra = new Sedra(5784, false);
140
+ * // A weekday — returns the upcoming Shabbat's reading
141
+ * const result = sedra.lookup(new HDate(13, months.CHESHVAN, 5784));
142
+ * console.log(result.parsha); // ['Lech-Lecha']
143
+ * console.log(result.chag); // false
144
+ * console.log(result.hdate.toString()); // '15 Cheshvan 5784' (Saturday)
73
145
  * @param hd Hebrew date or R.D. days
74
146
  */
75
147
  lookup(hd: HDate | number): SedraResult;
@@ -86,10 +158,18 @@ export declare class Sedra {
86
158
  export declare const parshiot: readonly string[];
87
159
  type NumberOrString = number | string;
88
160
  /**
89
- * Convenience function to create an instance of `Sedra` or reuse a previously
90
- * created and cached instance.
91
- * @param hyear
92
- * @param il
161
+ * Convenience function to create an instance of {@link Sedra} or reuse a
162
+ * previously created and cached instance for the same year and schedule.
163
+ *
164
+ * Prefer this over `new Sedra(...)` when calling repeatedly — an internal
165
+ * LRU cache (~120 entries) avoids recomputing the keviyah-specific schedule.
166
+ * @example
167
+ * import {getSedra, HDate, months} from '@hebcal/core';
168
+ * const sedra = getSedra(5784, false);
169
+ * const {parsha} = sedra.lookup(new HDate(15, months.CHESHVAN, 5784));
170
+ * console.log(parsha); // ['Lech-Lecha']
171
+ * @param hyear Hebrew year
172
+ * @param il Use Israel sedra schedule (`false` for Diaspora)
93
173
  */
94
174
  export declare function getSedra(hyear: number, il: boolean): Sedra;
95
175
  export {};
package/dist/src/sedra.js CHANGED
@@ -49,7 +49,23 @@ function yearType(hyear) {
49
49
  }
50
50
  }
51
51
  /**
52
- * Represents Parashah HaShavua for an entire Hebrew year
52
+ * Represents the weekly Torah-reading (Parashat HaShavua) schedule for an
53
+ * entire Hebrew year.
54
+ *
55
+ * The schedule depends on the year's *keviyah* — the day of week of Rosh
56
+ * Hashana, whether the year is leap, whether Cheshvan/Kislev are long or
57
+ * short, and whether the schedule is for Israel or the Diaspora (since
58
+ * Israel and the Diaspora diverge in some years when the 8th day of Pesach
59
+ * or the 2nd day of Shavuot fall on Shabbat).
60
+ *
61
+ * Prefer {@link getSedra} (or {@link HebrewCalendar.getSedra}) over
62
+ * calling this constructor directly, since both cache their results.
63
+ *
64
+ * @example
65
+ * import {Sedra, HDate, months} from '@hebcal/core';
66
+ * const sedra = new Sedra(5784, false);
67
+ * const result = sedra.lookup(new HDate(15, months.CHESHVAN, 5784));
68
+ * console.log(result.parsha); // ['Lech-Lecha']
53
69
  */
54
70
  export class Sedra {
55
71
  year;
@@ -59,7 +75,7 @@ export class Sedra {
59
75
  theSedraArray;
60
76
  yearKey;
61
77
  /**
62
- * Caculates the Parashah HaShavua for an entire Hebrew year
78
+ * Calculates the Parashat HaShavua schedule for an entire Hebrew year.
63
79
  * @param hyear - Hebrew year (e.g. 5749)
64
80
  * @param il - Use Israel sedra schedule (false for Diaspora)
65
81
  */
@@ -89,8 +105,23 @@ export class Sedra {
89
105
  }
90
106
  }
91
107
  /**
92
- * Returns the date that a parsha occurs
93
- * or `null` if the parsha doesn't occur this year
108
+ * Returns the date a parsha is read this year, or `null` if it does not
109
+ * occur in this year's schedule.
110
+ *
111
+ * A doubled parsha (e.g. `'Matot-Masei'`) will only return a date in years
112
+ * where that pair is actually read together; in years where they are read
113
+ * separately, this returns `null`. Use {@link findContaining} to find the
114
+ * date a parsha is read regardless of whether it is doubled.
115
+ *
116
+ * Throws `RangeError` for an out-of-range numeric input or an invalid
117
+ * doubled-parsha pair, and `TypeError` for a malformed array argument.
118
+ * @example
119
+ * import {Sedra} from '@hebcal/core';
120
+ * const sedra = new Sedra(5784, false);
121
+ * sedra.find('Noach')?.toString(); // '15 Cheshvan 5784'
122
+ * sedra.find(1)?.toString(); // same, by 0-based index
123
+ * sedra.find('Matot-Masei')?.toString(); // null in 5784 — read separately
124
+ * sedra.find(['Matot', 'Masei']); // also null in 5784
94
125
  * @param parsha if a `string`, specified with Sephardic transliterations
95
126
  * like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
96
127
  * array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
@@ -150,8 +181,22 @@ export class Sedra {
150
181
  return new HDate(this.firstSaturday + idx * 7);
151
182
  }
152
183
  /**
153
- * Returns the date that a parsha (or its doubled or undoubled counterpart)
154
- * occurs, or `null` if the parsha doesn't occur this year
184
+ * Returns the date a parsha is read this year, looking through both
185
+ * single and doubled forms.
186
+ *
187
+ * For example, if `'Matot'` is read individually this year, this returns
188
+ * its date; if it is read as part of `'Matot-Masei'` this year, this
189
+ * returns the date of `'Matot-Masei'` (and similarly for `'Masei'`).
190
+ * Conversely, asking for `'Matot-Masei'` in a year where they are split
191
+ * will return the date of `'Matot'` alone.
192
+ * @example
193
+ * import {Sedra} from '@hebcal/core';
194
+ * const sedra = new Sedra(5784, false);
195
+ * // Matot-Masei is split in 5784; both individual halves resolve:
196
+ * sedra.findContaining('Matot')?.toString(); // '22 Tamuz 5784'
197
+ * sedra.findContaining('Masei')?.toString(); // '29 Tamuz 5784'
198
+ * // Asking for the doubled name returns the date of the first half:
199
+ * sedra.findContaining('Matot-Masei')?.toString(); // '22 Tamuz 5784'
155
200
  */
156
201
  findContaining(parsha) {
157
202
  const hdate = this.find(parsha);
@@ -194,23 +239,50 @@ export class Sedra {
194
239
  }
195
240
  }
196
241
  /**
197
- * Returns the underlying annual sedra schedule.
198
- * Used by `@hebcal/triennial`
242
+ * Returns the underlying annual reading schedule as an array, where each
243
+ * entry corresponds to one Saturday (starting from the first Shabbat on
244
+ * or after Rosh Hashana). Entries are either:
245
+ * - a non-negative `number`: a 0-based parsha index (e.g. `0` for
246
+ * *Bereshit*)
247
+ * - a negative `number`: the negated first index of a doubled parsha
248
+ * (e.g. `-21` for *Vayakhel-Pekudei*)
249
+ * - a `string`: a holiday name when a Yom Tov displaces the weekly reading
250
+ * (e.g. `'Pesach Shabbat Chol ha-Moed'`, `'Yom Kippur'`)
251
+ *
252
+ * Used by `@hebcal/triennial`.
199
253
  */
200
254
  getSedraArray() {
201
255
  return this.theSedraArray;
202
256
  }
203
257
  /**
204
- * R.D. date of the first Saturday on or after Rosh Hashana
258
+ * Returns the R.D. (Rata Die / Fixed Date) absolute day number of the
259
+ * first Saturday on or after Rosh Hashana of this year. This is the
260
+ * anchor point for {@link getSedraArray} — index `0` of that array
261
+ * corresponds to this date.
205
262
  */
206
263
  getFirstSaturday() {
207
264
  return this.firstSaturday;
208
265
  }
266
+ /** Returns the Hebrew year this `Sedra` instance covers. */
209
267
  getYear() {
210
268
  return this.year;
211
269
  }
212
270
  /**
213
- * Returns an object describing the parsha on the first Saturday on or after `hd`
271
+ * Returns details about the parsha read on the first Saturday on or after
272
+ * `hd`. If `hd` is itself a Saturday, the reading for that date is
273
+ * returned; otherwise the reading for the upcoming Saturday is returned.
274
+ *
275
+ * If the given date falls in the final days of the Hebrew year (after
276
+ * the last reading of this year's schedule), this method transparently
277
+ * delegates to the next year's `Sedra`.
278
+ * @example
279
+ * import {Sedra, HDate, months} from '@hebcal/core';
280
+ * const sedra = new Sedra(5784, false);
281
+ * // A weekday — returns the upcoming Shabbat's reading
282
+ * const result = sedra.lookup(new HDate(13, months.CHESHVAN, 5784));
283
+ * console.log(result.parsha); // ['Lech-Lecha']
284
+ * console.log(result.chag); // false
285
+ * console.log(result.hdate.toString()); // '15 Cheshvan 5784' (Saturday)
214
286
  * @param hd Hebrew date or R.D. days
215
287
  */
216
288
  lookup(hd) {
@@ -467,10 +539,18 @@ types['1311'] = types['1221'];
467
539
  types['1721'] = types['170'];
468
540
  const sedraCache = new QuickLRU({ maxSize: 120 });
469
541
  /**
470
- * Convenience function to create an instance of `Sedra` or reuse a previously
471
- * created and cached instance.
472
- * @param hyear
473
- * @param il
542
+ * Convenience function to create an instance of {@link Sedra} or reuse a
543
+ * previously created and cached instance for the same year and schedule.
544
+ *
545
+ * Prefer this over `new Sedra(...)` when calling repeatedly — an internal
546
+ * LRU cache (~120 entries) avoids recomputing the keviyah-specific schedule.
547
+ * @example
548
+ * import {getSedra, HDate, months} from '@hebcal/core';
549
+ * const sedra = getSedra(5784, false);
550
+ * const {parsha} = sedra.lookup(new HDate(15, months.CHESHVAN, 5784));
551
+ * console.log(parsha); // ['Lech-Lecha']
552
+ * @param hyear Hebrew year
553
+ * @param il Use Israel sedra schedule (`false` for Diaspora)
474
554
  */
475
555
  export function getSedra(hyear, il) {
476
556
  const cacheKey = `${hyear}-${il ? 1 : 0}`;
@@ -42,6 +42,8 @@ export declare const holidayDesc: {
42
42
  readonly SHUSHAN_PURIM_KATAN: "Shushan Purim Katan";
43
43
  /** Ta'anit Bechorot */
44
44
  readonly TAANIT_BECHOROT: "Ta'anit Bechorot";
45
+ /** Ta'anit BeHaB */
46
+ readonly TAANIT_BEHAB: "Ta'anit BeHaB";
45
47
  /** Ta'anit Esther */
46
48
  readonly TAANIT_ESTHER: "Ta'anit Esther";
47
49
  /** Tish'a B'Av */
@@ -122,6 +122,8 @@ export const holidayDesc = {
122
122
  SHUSHAN_PURIM_KATAN: 'Shushan Purim Katan',
123
123
  /** Ta'anit Bechorot */
124
124
  TAANIT_BECHOROT: "Ta'anit Bechorot",
125
+ /** Ta'anit BeHaB */
126
+ TAANIT_BEHAB: "Ta'anit BeHaB",
125
127
  /** Ta'anit Esther */
126
128
  TAANIT_ESTHER: "Ta'anit Esther",
127
129
  /** Tish'a B'Av */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "6.5.0",
3
+ "version": "6.5.2",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -72,20 +72,20 @@
72
72
  "@rollup/plugin-node-resolve": "^16.0.3",
73
73
  "@rollup/plugin-terser": "^1.0.0",
74
74
  "@rollup/plugin-typescript": "^12.3.0",
75
- "@types/node": "^25.7.0",
76
- "@vitest/coverage-v8": "^4.1.6",
75
+ "@types/node": "^25.9.1",
76
+ "@vitest/coverage-v8": "^4.1.7",
77
77
  "gettext-parser": "^9.0.2",
78
78
  "gts": "^7.0.0",
79
79
  "pretty-bytes": "^7.1.0",
80
- "rollup": "^4.60.3",
80
+ "rollup": "^4.60.4",
81
81
  "rollup-plugin-bundle-size": "^1.0.3",
82
82
  "rollup-plugin-visualizer": "^7.0.1",
83
83
  "typedoc": "^0.28.19",
84
84
  "typescript": "^6.0.3",
85
- "vitest": "^4.1.6"
85
+ "vitest": "^4.1.7"
86
86
  },
87
87
  "dependencies": {
88
- "@hebcal/hdate": "^0.22.2",
88
+ "@hebcal/hdate": "^0.22.3",
89
89
  "@hebcal/noaa": "^0.11.0",
90
90
  "quick-lru": "^7.3.0",
91
91
  "temporal-polyfill": "^0.3.2"