@hebcal/core 3.41.2 → 3.42.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/hebcal.d.ts CHANGED
@@ -292,6 +292,7 @@ declare module '@hebcal/core' {
292
292
  tzeit(hdate: Date | HDate, angle?: number): Date;
293
293
  /**
294
294
  * Builds a city description from geonameid string components
295
+ * @deprecated
295
296
  * @param cityName e.g. 'Tel Aviv' or 'Chicago'
296
297
  * @param admin1 e.g. 'England' or 'Massachusetts'
297
298
  * @param countryName full country name, e.g. 'Israel' or 'United States'
@@ -603,6 +604,15 @@ declare module '@hebcal/core' {
603
604
  hour12?: boolean;
604
605
  };
605
606
 
607
+ export type TachanunResult = {
608
+ /** Tachanun is said at Shacharit */
609
+ shacharit: boolean;
610
+ /** Tachanun is said at Mincha */
611
+ mincha: boolean;
612
+ /** All congregations say Tachanun on the day */
613
+ allCongs: boolean;
614
+ };
615
+
606
616
  /**
607
617
  * HebrewCalendar is the main interface to the `@hebcal/core` library.
608
618
  * This class is used to calculate holidays, rosh chodesh, candle lighting & havdalah times,
@@ -712,6 +722,40 @@ declare module '@hebcal/core' {
712
722
  * created and cached instance.
713
723
  */
714
724
  static getSedra(hyear: number, il: boolean): Sedra;
725
+
726
+ /**
727
+ * Return a number containing information on what Hallel is said on that day.
728
+ *
729
+ * Whole Hallel is said on Chanukah, the first Yom Tov of Pesach, Shavuot, Sukkot,
730
+ * Yom Ha'atzmaut, and Yom Yerushalayim.
731
+ *
732
+ * Half Hallel is said on Rosh Chodesh (not Rosh Hashanah), and the last 6 days of Pesach.
733
+ *
734
+ * The number is one of the following values:
735
+ *
736
+ * 0 - No Hallel
737
+ * 1 - Half Hallel
738
+ * 2 - Whole Hallel
739
+ */
740
+ static hallel(hdate: HDate, il: boolean): number;
741
+
742
+ /**
743
+ * Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
744
+ *
745
+ * Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
746
+ * Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
747
+ * Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
748
+ * Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
749
+ *
750
+ * In some congregations Tachanun is not said until from Rosh Chodesh Sivan
751
+ * until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
752
+ * Yom Ha'atzmaut, and Yom Yerushalayim.
753
+ *
754
+ * Tachanun is not said at Mincha on days before it is not said at Shacharit.
755
+ *
756
+ * Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
757
+ */
758
+ static tachanun(hdate: HDate, il: boolean): TachanunResult;
715
759
  }
716
760
 
717
761
  /**
@@ -786,6 +830,7 @@ declare module '@hebcal/core' {
786
830
  static daysInMonth(month: number, year: number): number;
787
831
  /**
788
832
  * Returns number of days since January 1 of that year
833
+ * @deprecated
789
834
  * @param date - Gregorian date
790
835
  */
791
836
  static dayOfYear(date: Date): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "3.41.2",
3
+ "version": "3.42.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -63,9 +63,9 @@
63
63
  "verbose": true
64
64
  },
65
65
  "devDependencies": {
66
- "@babel/core": "^7.18.5",
67
- "@babel/preset-env": "^7.18.2",
68
- "@babel/register": "^7.17.7",
66
+ "@babel/core": "^7.18.6",
67
+ "@babel/preset-env": "^7.18.6",
68
+ "@babel/register": "^7.18.6",
69
69
  "@hebcal/solar-calc": "^1.1.2",
70
70
  "@rollup/plugin-babel": "^5.3.1",
71
71
  "@rollup/plugin-commonjs": "^22.0.1",
@@ -73,7 +73,7 @@
73
73
  "@rollup/plugin-node-resolve": "^13.3.0",
74
74
  "ava": "^4.3.0",
75
75
  "codecov": "^3.8.3",
76
- "core-js": "^3.23.2",
76
+ "core-js": "^3.23.3",
77
77
  "eslint": "^8.18.0",
78
78
  "eslint-config-google": "^0.14.0",
79
79
  "jsdoc": "^3.6.10",