@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/hebcal.d.ts CHANGED
@@ -29,6 +29,11 @@ declare module '@hebcal/core' {
29
29
  observedInDiaspora(): boolean;
30
30
  observedIn(il: boolean): boolean;
31
31
  clone(): Event;
32
+ readonly date: Date;
33
+ readonly desc: string;
34
+ readonly mask: number;
35
+ readonly emoji?: string;
36
+ readonly memo?: string;
32
37
  }
33
38
 
34
39
  /**
@@ -292,6 +297,7 @@ declare module '@hebcal/core' {
292
297
  tzeit(hdate: Date | HDate, angle?: number): Date;
293
298
  /**
294
299
  * Builds a city description from geonameid string components
300
+ * @deprecated
295
301
  * @param cityName e.g. 'Tel Aviv' or 'Chicago'
296
302
  * @param admin1 e.g. 'England' or 'Massachusetts'
297
303
  * @param countryName full country name, e.g. 'Israel' or 'United States'
@@ -603,6 +609,15 @@ declare module '@hebcal/core' {
603
609
  hour12?: boolean;
604
610
  };
605
611
 
612
+ export type TachanunResult = {
613
+ /** Tachanun is said at Shacharit */
614
+ shacharit: boolean;
615
+ /** Tachanun is said at Mincha */
616
+ mincha: boolean;
617
+ /** All congregations say Tachanun on the day */
618
+ allCongs: boolean;
619
+ };
620
+
606
621
  /**
607
622
  * HebrewCalendar is the main interface to the `@hebcal/core` library.
608
623
  * This class is used to calculate holidays, rosh chodesh, candle lighting & havdalah times,
@@ -712,6 +727,40 @@ declare module '@hebcal/core' {
712
727
  * created and cached instance.
713
728
  */
714
729
  static getSedra(hyear: number, il: boolean): Sedra;
730
+
731
+ /**
732
+ * Return a number containing information on what Hallel is said on that day.
733
+ *
734
+ * Whole Hallel is said on Chanukah, the first Yom Tov of Pesach, Shavuot, Sukkot,
735
+ * Yom Ha'atzmaut, and Yom Yerushalayim.
736
+ *
737
+ * Half Hallel is said on Rosh Chodesh (not Rosh Hashanah), and the last 6 days of Pesach.
738
+ *
739
+ * The number is one of the following values:
740
+ *
741
+ * 0 - No Hallel
742
+ * 1 - Half Hallel
743
+ * 2 - Whole Hallel
744
+ */
745
+ static hallel(hdate: HDate, il: boolean): number;
746
+
747
+ /**
748
+ * Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
749
+ *
750
+ * Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
751
+ * Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
752
+ * Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
753
+ * Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
754
+ *
755
+ * In some congregations Tachanun is not said until from Rosh Chodesh Sivan
756
+ * until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
757
+ * Yom Ha'atzmaut, and Yom Yerushalayim.
758
+ *
759
+ * Tachanun is not said at Mincha on days before it is not said at Shacharit.
760
+ *
761
+ * Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
762
+ */
763
+ static tachanun(hdate: HDate, il: boolean): TachanunResult;
715
764
  }
716
765
 
717
766
  /**
@@ -940,6 +989,10 @@ declare module '@hebcal/core' {
940
989
  constructor(date: HDate, desc: string, mask: number, eventTime: Date, location: Location, linkedEvent?: Event);
941
990
  render(locale?: string): string;
942
991
  renderBrief(locale?: string): string;
992
+ readonly eventTime: Date;
993
+ readonly location: Location;
994
+ readonly eventTimeStr: string;
995
+ readonly linkedEvent?: Event;
943
996
  }
944
997
  export class CandleLightingEvent extends TimedEvent {
945
998
  constructor(date: HDate, mask: number, eventTime: Date, location: Location, linkedEvent?: Event);
@@ -956,6 +1009,7 @@ declare module '@hebcal/core' {
956
1009
  render(locale?: string): string;
957
1010
  renderBrief(locale?: string): string;
958
1011
  getEmoji(): string;
1012
+ readonly havdalahMins?: number;
959
1013
  }
960
1014
  export class HebrewDateEvent extends Event {
961
1015
  constructor(date: HDate, locale?: string);
@@ -970,6 +1024,9 @@ declare module '@hebcal/core' {
970
1024
  url(): string;
971
1025
  urlDateSuffix(): string;
972
1026
  getEmoji(): string;
1027
+ readonly cholHaMoedDay?: number;
1028
+ readonly startEvent?: TimedEvent;
1029
+ readonly endEvent?: TimedEvent;
973
1030
  }
974
1031
  export class AsaraBTevetEvent extends HolidayEvent {
975
1032
  constructor(date: HDate, desc: string, mask?: number, attrs?: any);
@@ -985,12 +1042,13 @@ declare module '@hebcal/core' {
985
1042
  constructor(date: HDate, monthName: string);
986
1043
  render(locale?: string): string;
987
1044
  renderBrief(locale?: string): string;
1045
+ readonly monthName: string;
988
1046
  }
989
1047
  export class MoladEvent extends Event {
990
1048
  constructor(date: HDate, hyear: number, hmonth: number);
991
1049
  render(locale?: string): string;
992
1050
  renderBrief(locale?: string): string;
993
- molad: Molad;
1051
+ readonly molad: Molad;
994
1052
  }
995
1053
  export type OmerSefiraLang = 'en' | 'he' | 'translit';
996
1054
  export class OmerEvent extends Event {
@@ -1003,18 +1061,19 @@ declare module '@hebcal/core' {
1003
1061
  getTodayIs(locale?: string): string;
1004
1062
  sefira(lang: OmerSefiraLang): string;
1005
1063
  url(): string;
1006
- weekNumber: number;
1007
- daysWithinWeeks: number;
1008
- memo: string;
1009
- alarm?: Date;
1064
+ readonly weekNumber: number;
1065
+ readonly daysWithinWeeks: number;
1066
+ readonly memo: string;
1067
+ readonly alarm?: Date;
1010
1068
  }
1011
1069
  export class ParshaEvent extends Event {
1012
1070
  constructor(date: HDate, parsha: string[], il: boolean);
1013
1071
  render(locale?: string): string;
1014
1072
  renderBrief(locale?: string): string;
1015
1073
  url(): string;
1016
- parsha: string[];
1017
- il: boolean;
1074
+ readonly parsha: string[];
1075
+ readonly il: boolean;
1076
+ readonly num: number | number[];
1018
1077
  }
1019
1078
  export class RoshChodeshEvent extends HolidayEvent {
1020
1079
  constructor(date: HDate, monthName: string);
@@ -1068,5 +1127,6 @@ declare module '@hebcal/core' {
1068
1127
  * Returns a link to sefaria.org
1069
1128
  */
1070
1129
  url(): string;
1130
+ readonly mishnaYomi: MishnaYomi[];
1071
1131
  }
1072
1132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "3.41.3",
3
+ "version": "3.42.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -63,25 +63,25 @@
63
63
  "verbose": true
64
64
  },
65
65
  "devDependencies": {
66
- "@babel/core": "^7.18.6",
67
- "@babel/preset-env": "^7.18.6",
68
- "@babel/register": "^7.18.6",
66
+ "@babel/core": "^7.18.10",
67
+ "@babel/preset-env": "^7.18.10",
68
+ "@babel/register": "^7.18.9",
69
69
  "@hebcal/solar-calc": "^1.1.2",
70
70
  "@rollup/plugin-babel": "^5.3.1",
71
- "@rollup/plugin-commonjs": "^22.0.1",
71
+ "@rollup/plugin-commonjs": "^22.0.2",
72
72
  "@rollup/plugin-json": "^4.1.0",
73
73
  "@rollup/plugin-node-resolve": "^13.3.0",
74
- "ava": "^4.3.0",
74
+ "ava": "^4.3.1",
75
75
  "codecov": "^3.8.3",
76
- "core-js": "^3.23.3",
77
- "eslint": "^8.18.0",
76
+ "core-js": "^3.24.1",
77
+ "eslint": "^8.21.0",
78
78
  "eslint-config-google": "^0.14.0",
79
- "jsdoc": "^3.6.10",
79
+ "jsdoc": "^3.6.11",
80
80
  "jsdoc-to-markdown": "^7.1.1",
81
81
  "nyc": "^15.1.0",
82
- "rollup": "^2.75.7",
82
+ "rollup": "^2.77.2",
83
83
  "rollup-plugin-terser": "^7.0.2",
84
84
  "tsd-jsdoc": "^2.5.0",
85
- "ttag-cli": "^1.9.4"
85
+ "ttag-cli": "^1.10.1"
86
86
  }
87
87
  }