@hebcal/core 3.41.3 → 3.42.1

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/README.md CHANGED
@@ -165,6 +165,8 @@ we omit the thousands (which is presently 5 [ה]).</p>
165
165
  <dt><a href="#CalOptions">CalOptions</a> : <code>Object</code></dt>
166
166
  <dd><p>Options to configure which events are returned</p>
167
167
  </dd>
168
+ <dt><a href="#TachanunResult">TachanunResult</a> : <code>Object</code></dt>
169
+ <dd></dd>
168
170
  </dl>
169
171
 
170
172
  <a name="greg"></a>
@@ -178,7 +180,7 @@ Gregorian date helper functions.
178
180
  * [.isLeapYear(year)](#greg.isLeapYear) ⇒ <code>boolean</code>
179
181
  * [.daysInMonth(month, year)](#greg.daysInMonth) ⇒ <code>number</code>
180
182
  * [.isDate(obj)](#greg.isDate) ⇒ <code>boolean</code>
181
- * [.dayOfYear(date)](#greg.dayOfYear) ⇒ <code>number</code>
183
+ * ~~[.dayOfYear(date)](#greg.dayOfYear) ⇒ <code>number</code>~~
182
184
  * [.greg2abs(date)](#greg.greg2abs) ⇒ <code>number</code>
183
185
  * [.abs2greg(theDate)](#greg.abs2greg) ⇒ <code>Date</code>
184
186
 
@@ -218,7 +220,9 @@ Returns true if the object is a Javascript Date
218
220
 
219
221
  <a name="greg.dayOfYear"></a>
220
222
 
221
- ### greg.dayOfYear(date) ⇒ <code>number</code>
223
+ ### ~~greg.dayOfYear(date) ⇒ <code>number</code>~~
224
+ ***Deprecated***
225
+
222
226
  Returns number of days since January 1 of that year
223
227
 
224
228
  **Kind**: static method of [<code>greg</code>](#greg)
@@ -1443,7 +1447,7 @@ Class representing Location
1443
1447
  * [.lookup(name)](#Location.lookup) ⇒ [<code>Location</code>](#Location)
1444
1448
  * [.legacyTzToTzid(tz, dst)](#Location.legacyTzToTzid) ⇒ <code>string</code>
1445
1449
  * [.getUsaTzid(state, tz, dst)](#Location.getUsaTzid) ⇒ <code>string</code>
1446
- * [.geonameCityDescr(cityName, admin1, countryName)](#Location.geonameCityDescr) ⇒ <code>string</code>
1450
+ * ~~[.geonameCityDescr(cityName, admin1, countryName)](#Location.geonameCityDescr) ⇒ <code>string</code>~~
1447
1451
  * [.addLocation(cityName, location)](#Location.addLocation) ⇒ <code>boolean</code>
1448
1452
 
1449
1453
  <a name="new_Location_new"></a>
@@ -1585,7 +1589,9 @@ Location.getUsaTzid('AZ', 7, 'Y') // 'America/Denver'
1585
1589
  ```
1586
1590
  <a name="Location.geonameCityDescr"></a>
1587
1591
 
1588
- ### Location.geonameCityDescr(cityName, admin1, countryName) ⇒ <code>string</code>
1592
+ ### ~~Location.geonameCityDescr(cityName, admin1, countryName) ⇒ <code>string</code>~~
1593
+ ***Deprecated***
1594
+
1589
1595
  Builds a city description from geonameid string components
1590
1596
 
1591
1597
  **Kind**: static method of [<code>Location</code>](#Location)
@@ -2263,6 +2269,7 @@ Represents Mevarchim haChodesh, the announcement of the new month
2263
2269
 
2264
2270
  * [MevarchimChodeshEvent](#MevarchimChodeshEvent)
2265
2271
  * [new MevarchimChodeshEvent(date, monthName)](#new_MevarchimChodeshEvent_new)
2272
+ * [.basename()](#MevarchimChodeshEvent+basename) ⇒ <code>string</code>
2266
2273
  * [.render([locale])](#MevarchimChodeshEvent+render) ⇒ <code>string</code>
2267
2274
 
2268
2275
  <a name="new_MevarchimChodeshEvent_new"></a>
@@ -2276,6 +2283,10 @@ Constructs Mevarchim haChodesh event
2276
2283
  | date | [<code>HDate</code>](#HDate) | Hebrew date event occurs |
2277
2284
  | monthName | <code>string</code> | Hebrew month name (not translated) |
2278
2285
 
2286
+ <a name="MevarchimChodeshEvent+basename"></a>
2287
+
2288
+ ### mevarchimChodeshEvent.basename() ⇒ <code>string</code>
2289
+ **Kind**: instance method of [<code>MevarchimChodeshEvent</code>](#MevarchimChodeshEvent)
2279
2290
  <a name="MevarchimChodeshEvent+render"></a>
2280
2291
 
2281
2292
  ### mevarchimChodeshEvent.render([locale]) ⇒ <code>string</code>
@@ -2378,6 +2389,8 @@ Event names can be rendered in several languges using the `locale` option.
2378
2389
  * [.reformatTimeStr(timeStr, suffix, options)](#HebrewCalendar.reformatTimeStr) ⇒ <code>string</code>
2379
2390
  * [.version()](#HebrewCalendar.version) ⇒ <code>string</code>
2380
2391
  * [.getSedra(hyear, il)](#HebrewCalendar.getSedra) ⇒ [<code>Sedra</code>](#Sedra)
2392
+ * [.hallel(hdate, il)](#HebrewCalendar.hallel) ⇒ <code>number</code>
2393
+ * [.tachanun(hdate, il)](#HebrewCalendar.tachanun) ⇒ [<code>TachanunResult</code>](#TachanunResult)
2381
2394
 
2382
2395
  <a name="HebrewCalendar.calendar"></a>
2383
2396
 
@@ -2416,6 +2429,7 @@ Additional non-default event types can be specified:
2416
2429
  * Mishna Yomi (`options.mishnaYomi`)
2417
2430
  * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
2418
2431
  * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
2432
+ * Yom Kippur Katan (`options.yomKippurKatan`)
2419
2433
 
2420
2434
  Candle-lighting and Havdalah times are approximated using latitude and longitude
2421
2435
  specified by the [Location](#Location) class. The `Location` class contains a small
@@ -2635,6 +2649,54 @@ created and cached instance.
2635
2649
  | hyear | <code>number</code> |
2636
2650
  | il | <code>boolean</code> |
2637
2651
 
2652
+ <a name="HebrewCalendar.hallel"></a>
2653
+
2654
+ ### HebrewCalendar.hallel(hdate, il) ⇒ <code>number</code>
2655
+ Return a number containing information on what Hallel is said on that day.
2656
+
2657
+ Whole Hallel is said on Chanukah, the first Yom Tov of Pesach, Shavuot, Sukkot,
2658
+ Yom Ha'atzmaut, and Yom Yerushalayim.
2659
+
2660
+ Half Hallel is said on Rosh Chodesh (not Rosh Hashanah), and the last 6 days of Pesach.
2661
+
2662
+ The number is one of the following values:
2663
+
2664
+ 0 - No Hallel
2665
+ 1 - Half Hallel
2666
+ 2 - Whole Hallel
2667
+
2668
+ **Kind**: static method of [<code>HebrewCalendar</code>](#HebrewCalendar)
2669
+
2670
+ | Param | Type |
2671
+ | --- | --- |
2672
+ | hdate | [<code>HDate</code>](#HDate) |
2673
+ | il | <code>boolean</code> |
2674
+
2675
+ <a name="HebrewCalendar.tachanun"></a>
2676
+
2677
+ ### HebrewCalendar.tachanun(hdate, il) ⇒ [<code>TachanunResult</code>](#TachanunResult)
2678
+ Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
2679
+
2680
+ Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
2681
+ Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
2682
+ Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
2683
+ Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
2684
+
2685
+ In some congregations Tachanun is not said until from Rosh Chodesh Sivan
2686
+ until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
2687
+ Yom Ha'atzmaut, and Yom Yerushalayim.
2688
+
2689
+ Tachanun is not said at Mincha on days before it is not said at Shacharit.
2690
+
2691
+ Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
2692
+
2693
+ **Kind**: static method of [<code>HebrewCalendar</code>](#HebrewCalendar)
2694
+
2695
+ | Param | Type |
2696
+ | --- | --- |
2697
+ | hdate | [<code>HDate</code>](#HDate) |
2698
+ | il | <code>boolean</code> |
2699
+
2638
2700
  <a name="months"></a>
2639
2701
 
2640
2702
  ## months : <code>enum</code>
@@ -2694,6 +2756,7 @@ Holiday flags for Event
2694
2756
  | EREV | <code>number</code> | <code>1048576</code> | Evening before a major or minor holiday |
2695
2757
  | CHOL_HAMOED | <code>number</code> | <code>2097152</code> | Chol haMoed, intermediate days of Pesach or Sukkot |
2696
2758
  | MISHNA_YOMI | <code>number</code> | <code>4194304</code> | Mishna Yomi |
2759
+ | YOM_KIPPUR_KATAN | <code>number</code> | <code>8388608</code> | Yom Kippur Katan, minor day of atonement on the day preceeding each Rosh Chodesh |
2697
2760
 
2698
2761
  <a name="parshiot"></a>
2699
2762
 
@@ -2818,3 +2881,16 @@ Options to configure which events are returned
2818
2881
  | mask | <code>number</code> | use bitmask from `flags` to filter events |
2819
2882
  | yomKippurKatan | <code>boolean</code> | include Yom Kippur Katan (default `false`). יוֹם כִּפּוּר קָטָן is a minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh. Yom Kippur Katan is omitted in Elul (on the day before Rosh Hashanah), Tishrei (Yom Kippur has just passed), Kislev (due to Chanukah) and Nisan (fasting not permitted during Nisan). When Rosh Chodesh occurs on Shabbat or Sunday, Yom Kippur Katan is observed on the preceding Thursday. See [Wikipedia Yom Kippur Katan practices](https://en.wikipedia.org/wiki/Yom_Kippur_Katan#Practices) |
2820
2883
  | hour12 | <code>boolean</code> | Whether to use 12-hour time (as opposed to 24-hour time). Possible values are `true` and `false`; the default is locale dependent. |
2884
+
2885
+ <a name="TachanunResult"></a>
2886
+
2887
+ ## TachanunResult : <code>Object</code>
2888
+ **Kind**: global typedef
2889
+ **Properties**
2890
+
2891
+ | Name | Type | Description |
2892
+ | --- | --- | --- |
2893
+ | shacharit | <code>boolean</code> | Tachanun is said at Shacharit |
2894
+ | mincha | <code>boolean</code> | Tachanun is said at Mincha |
2895
+ | allCongs | <code>boolean</code> | All congregations say Tachanun on the day |
2896
+