@hebcal/core 3.41.4 → 3.42.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.
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
  /**
@@ -604,6 +609,15 @@ declare module '@hebcal/core' {
604
609
  hour12?: boolean;
605
610
  };
606
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
+
607
621
  /**
608
622
  * HebrewCalendar is the main interface to the `@hebcal/core` library.
609
623
  * This class is used to calculate holidays, rosh chodesh, candle lighting & havdalah times,
@@ -713,6 +727,40 @@ declare module '@hebcal/core' {
713
727
  * created and cached instance.
714
728
  */
715
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;
716
764
  }
717
765
 
718
766
  /**
@@ -941,6 +989,10 @@ declare module '@hebcal/core' {
941
989
  constructor(date: HDate, desc: string, mask: number, eventTime: Date, location: Location, linkedEvent?: Event);
942
990
  render(locale?: string): string;
943
991
  renderBrief(locale?: string): string;
992
+ readonly eventTime: Date;
993
+ readonly location: Location;
994
+ readonly eventTimeStr: string;
995
+ readonly linkedEvent?: Event;
944
996
  }
945
997
  export class CandleLightingEvent extends TimedEvent {
946
998
  constructor(date: HDate, mask: number, eventTime: Date, location: Location, linkedEvent?: Event);
@@ -957,6 +1009,7 @@ declare module '@hebcal/core' {
957
1009
  render(locale?: string): string;
958
1010
  renderBrief(locale?: string): string;
959
1011
  getEmoji(): string;
1012
+ readonly havdalahMins?: number;
960
1013
  }
961
1014
  export class HebrewDateEvent extends Event {
962
1015
  constructor(date: HDate, locale?: string);
@@ -971,6 +1024,9 @@ declare module '@hebcal/core' {
971
1024
  url(): string;
972
1025
  urlDateSuffix(): string;
973
1026
  getEmoji(): string;
1027
+ readonly cholHaMoedDay?: number;
1028
+ readonly startEvent?: TimedEvent;
1029
+ readonly endEvent?: TimedEvent;
974
1030
  }
975
1031
  export class AsaraBTevetEvent extends HolidayEvent {
976
1032
  constructor(date: HDate, desc: string, mask?: number, attrs?: any);
@@ -986,12 +1042,13 @@ declare module '@hebcal/core' {
986
1042
  constructor(date: HDate, monthName: string);
987
1043
  render(locale?: string): string;
988
1044
  renderBrief(locale?: string): string;
1045
+ readonly monthName: string;
989
1046
  }
990
1047
  export class MoladEvent extends Event {
991
1048
  constructor(date: HDate, hyear: number, hmonth: number);
992
1049
  render(locale?: string): string;
993
1050
  renderBrief(locale?: string): string;
994
- molad: Molad;
1051
+ readonly molad: Molad;
995
1052
  }
996
1053
  export type OmerSefiraLang = 'en' | 'he' | 'translit';
997
1054
  export class OmerEvent extends Event {
@@ -1004,18 +1061,19 @@ declare module '@hebcal/core' {
1004
1061
  getTodayIs(locale?: string): string;
1005
1062
  sefira(lang: OmerSefiraLang): string;
1006
1063
  url(): string;
1007
- weekNumber: number;
1008
- daysWithinWeeks: number;
1009
- memo: string;
1010
- alarm?: Date;
1064
+ readonly weekNumber: number;
1065
+ readonly daysWithinWeeks: number;
1066
+ readonly memo: string;
1067
+ readonly alarm?: Date;
1011
1068
  }
1012
1069
  export class ParshaEvent extends Event {
1013
1070
  constructor(date: HDate, parsha: string[], il: boolean);
1014
1071
  render(locale?: string): string;
1015
1072
  renderBrief(locale?: string): string;
1016
1073
  url(): string;
1017
- parsha: string[];
1018
- il: boolean;
1074
+ readonly parsha: string[];
1075
+ readonly il: boolean;
1076
+ readonly num: number | number[];
1019
1077
  }
1020
1078
  export class RoshChodeshEvent extends HolidayEvent {
1021
1079
  constructor(date: HDate, monthName: string);
@@ -1069,5 +1127,6 @@ declare module '@hebcal/core' {
1069
1127
  * Returns a link to sefaria.org
1070
1128
  */
1071
1129
  url(): string;
1130
+ readonly mishnaYomi: MishnaYomi[];
1072
1131
  }
1073
1132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "3.41.4",
3
+ "version": "3.42.2",
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.3",
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
  }