@hebcal/core 6.1.0 → 6.2.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.
Files changed (88) hide show
  1. package/dist/bundle.js +203 -18
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +5 -5
  4. package/dist/bundle.min.js.map +1 -1
  5. package/dist/esm/DailyLearning.js +1 -1
  6. package/dist/esm/HebrewDateEvent.js +1 -1
  7. package/dist/esm/HolidayEvent.js +1 -1
  8. package/dist/esm/MevarchimChodeshEvent.js +1 -1
  9. package/dist/esm/ParshaEvent.js +1 -1
  10. package/dist/esm/TimedEvent.js +1 -1
  11. package/dist/esm/YomKippurKatanEvent.js +1 -1
  12. package/dist/esm/ashkenazi.po.js +1 -1
  13. package/dist/esm/calendar.js +1 -1
  14. package/dist/esm/candles.js +1 -1
  15. package/dist/esm/event.js +1 -1
  16. package/dist/esm/getStartAndEnd.js +1 -1
  17. package/dist/esm/hallel.js +1 -1
  18. package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
  19. package/dist/esm/he-x-NoNikud.po.js +2 -2
  20. package/dist/esm/he-x-NoNikud.po.js.map +1 -1
  21. package/dist/esm/he.po.js +2 -2
  22. package/dist/esm/he.po.js.map +1 -1
  23. package/dist/esm/hebcal.js +1 -1
  24. package/dist/esm/holidays.js +1 -1
  25. package/dist/esm/index.js +1 -1
  26. package/dist/esm/isAssurBemlacha.js +1 -1
  27. package/dist/esm/locale.js +1 -1
  28. package/dist/esm/location.js +1 -1
  29. package/dist/esm/modern.js +1 -1
  30. package/dist/esm/molad.js +1 -1
  31. package/dist/esm/moladBase.js +1 -1
  32. package/dist/esm/moladDate.js +1 -1
  33. package/dist/esm/omer.js +1 -1
  34. package/dist/esm/parshaName.js +1 -1
  35. package/dist/esm/parshaYear.js +1 -1
  36. package/dist/esm/pkgVersion.d.ts +1 -1
  37. package/dist/esm/pkgVersion.js +2 -2
  38. package/dist/esm/pkgVersion.js.map +1 -1
  39. package/dist/esm/reformatTimeStr.js +1 -1
  40. package/dist/esm/sedra.js +1 -1
  41. package/dist/esm/staticHolidays.js +1 -1
  42. package/dist/esm/tachanun.js +1 -1
  43. package/dist/esm/zmanim.d.ts +159 -11
  44. package/dist/esm/zmanim.js +200 -15
  45. package/dist/esm/zmanim.js.map +1 -1
  46. package/dist/src/he-x-NoNikud.po.d.ts +2 -0
  47. package/dist/src/he-x-NoNikud.po.js +1 -1
  48. package/dist/src/he.po.js +1 -1
  49. package/dist/src/pkgVersion.d.ts +1 -1
  50. package/dist/src/pkgVersion.js +1 -1
  51. package/dist/src/zmanim.d.ts +159 -11
  52. package/dist/src/zmanim.js +199 -14
  53. package/package.json +1 -1
  54. package/dist/CalOptions.d.ts +0 -168
  55. package/dist/DailyLearning.d.ts +0 -32
  56. package/dist/HebrewDateEvent.d.ts +0 -37
  57. package/dist/HolidayEvent.d.ts +0 -84
  58. package/dist/MevarchimChodeshEvent.d.ts +0 -26
  59. package/dist/ParshaEvent.d.ts +0 -19
  60. package/dist/TimedEvent.d.ts +0 -47
  61. package/dist/YomKippurKatanEvent.d.ts +0 -23
  62. package/dist/ashkenazi.po.d.ts +0 -82
  63. package/dist/calendar.d.ts +0 -111
  64. package/dist/candles.d.ts +0 -44
  65. package/dist/event.d.ts +0 -188
  66. package/dist/getStartAndEnd.d.ts +0 -6
  67. package/dist/hallel.d.ts +0 -6
  68. package/dist/he-x-NoNikud.po.d.ts +0 -16
  69. package/dist/he.po.d.ts +0 -215
  70. package/dist/hebcal.d.ts +0 -260
  71. package/dist/holidays.d.ts +0 -22
  72. package/dist/index.d.ts +0 -28
  73. package/dist/isAssurBemlacha.d.ts +0 -9
  74. package/dist/locale.d.ts +0 -1
  75. package/dist/location.d.ts +0 -73
  76. package/dist/modern.d.ts +0 -18
  77. package/dist/molad.d.ts +0 -132
  78. package/dist/moladBase.d.ts +0 -15
  79. package/dist/moladDate.d.ts +0 -12
  80. package/dist/omer.d.ts +0 -52
  81. package/dist/parshaName.d.ts +0 -2
  82. package/dist/parshaYear.d.ts +0 -9
  83. package/dist/pkgVersion.d.ts +0 -2
  84. package/dist/reformatTimeStr.d.ts +0 -8
  85. package/dist/sedra.d.ts +0 -95
  86. package/dist/staticHolidays.d.ts +0 -176
  87. package/dist/tachanun.d.ts +0 -29
  88. package/dist/zmanim.d.ts +0 -460
package/dist/sedra.d.ts DELETED
@@ -1,95 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- import './locale';
3
- /** The result from `Sedra.lookup()` */
4
- export type SedraResult = {
5
- /**
6
- * Name of the parsha (or parshiyot) read on
7
- * Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
8
- */
9
- parsha: string[];
10
- /**
11
- * False if this is a regular parashat HaShavua reading.
12
- * True if it's a special holiday reading.
13
- */
14
- chag: boolean;
15
- /**
16
- * The parsha number (or numbers) using 1-indexing.
17
- * A `number` for a regular (single) parsha, and a `number[]`
18
- * for a doubled parsha.
19
- * For Parashat *Bereshit*, `num` would be equal to `1`, and for
20
- * *Matot-Masei* it would be `[42, 43]`
21
- * For a chag (holiday) reading, `num` will be `0`.
22
- */
23
- num: number | number[];
24
- /** The date of the Shabbat this parsha is read */
25
- hdate: HDate;
26
- /** true if Israel, false for Diaspora */
27
- il: boolean;
28
- };
29
- /**
30
- * Represents Parashah HaShavua for an entire Hebrew year
31
- */
32
- export declare class Sedra {
33
- private readonly year;
34
- private readonly il;
35
- private readonly rh;
36
- private readonly firstSaturday;
37
- private readonly theSedraArray;
38
- private readonly yearKey;
39
- /**
40
- * Caculates the Parashah HaShavua for an entire Hebrew year
41
- * @param hyear - Hebrew year (e.g. 5749)
42
- * @param il - Use Israel sedra schedule (false for Diaspora)
43
- */
44
- constructor(hyear: number, il: boolean);
45
- /**
46
- * Returns the date that a parsha occurs
47
- * or `null` if the parsha doesn't occur this year
48
- * @param parsha if a `string`, specified with Sephardic transliterations
49
- * like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
50
- * array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
51
- * be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
52
- * number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
53
- */
54
- find(parsha: number | string | string[]): HDate | null;
55
- private findInternal;
56
- /**
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
59
- */
60
- findContaining(parsha: number | string): HDate | null;
61
- /**
62
- * Returns the underlying annual sedra schedule.
63
- * Used by `@hebcal/triennial`
64
- */
65
- getSedraArray(): readonly NumberOrString[];
66
- /**
67
- * R.D. date of the first Saturday on or after Rosh Hashana
68
- */
69
- getFirstSaturday(): number;
70
- getYear(): number;
71
- /**
72
- * Returns an object describing the parsha on the first Saturday on or after `hd`
73
- * @param hd Hebrew date or R.D. days
74
- */
75
- lookup(hd: HDate | number): SedraResult;
76
- }
77
- /**
78
- * The 54 parshiyot of the Torah as transilterated strings.
79
- * * parshiot[0] == `Bereshit`
80
- * * parshiot[1] == `Noach`
81
- * * parshiot[52] == `Ha'azinu`
82
- * * parshiot[53] == `Vezot Haberakhah`
83
- * @readonly
84
- * @type {string[]}
85
- */
86
- export declare const parshiot: readonly string[];
87
- type NumberOrString = number | string;
88
- /**
89
- * Convenience function to create an instance of `Sedra` or reuse a previously
90
- * created and cached instance.
91
- * @param hyear
92
- * @param il
93
- */
94
- export declare function getSedra(hyear: number, il: boolean): Sedra;
95
- export {};
@@ -1,176 +0,0 @@
1
- /**
2
- * Transliterated names of holidays, used by `Event.getDesc()`
3
- * @readonly
4
- * @enum {string}
5
- */
6
- export declare const holidayDesc: {
7
- /** Asara B'Tevet */
8
- readonly ASARA_BTEVET: "Asara B'Tevet";
9
- /** Birkat Hachamah */
10
- readonly BIRKAT_HACHAMAH: "Birkat Hachamah";
11
- /** Chag HaBanot */
12
- readonly CHAG_HABANOT: "Chag HaBanot";
13
- /** Chanukah: 8th Day */
14
- readonly CHANUKAH_8TH_DAY: "Chanukah: 8th Day";
15
- /** Erev Tish'a B'Av */
16
- readonly EREV_TISHA_BAV: "Erev Tish'a B'Av";
17
- /** Leil Selichot */
18
- readonly LEIL_SELICHOT: "Leil Selichot";
19
- /** Purim Katan */
20
- readonly PURIM_KATAN: "Purim Katan";
21
- /** Purim Meshulash */
22
- readonly PURIM_MESHULASH: "Purim Meshulash";
23
- /** Shabbat Chazon */
24
- readonly SHABBAT_CHAZON: "Shabbat Chazon";
25
- /** Shabbat HaChodesh */
26
- readonly SHABBAT_HACHODESH: "Shabbat HaChodesh";
27
- /** Shabbat HaGadol */
28
- readonly SHABBAT_HAGADOL: "Shabbat HaGadol";
29
- /** Shabbat Nachamu */
30
- readonly SHABBAT_NACHAMU: "Shabbat Nachamu";
31
- /** Shabbat Parah */
32
- readonly SHABBAT_PARAH: "Shabbat Parah";
33
- /** Shabbat Shekalim */
34
- readonly SHABBAT_SHEKALIM: "Shabbat Shekalim";
35
- /** Shabbat Shirah */
36
- readonly SHABBAT_SHIRAH: "Shabbat Shirah";
37
- /** Shabbat Shuva */
38
- readonly SHABBAT_SHUVA: "Shabbat Shuva";
39
- /** Shabbat Zachor */
40
- readonly SHABBAT_ZACHOR: "Shabbat Zachor";
41
- /** Shushan Purim Katan */
42
- readonly SHUSHAN_PURIM_KATAN: "Shushan Purim Katan";
43
- /** Ta'anit Bechorot */
44
- readonly TAANIT_BECHOROT: "Ta'anit Bechorot";
45
- /** Ta'anit Esther */
46
- readonly TAANIT_ESTHER: "Ta'anit Esther";
47
- /** Tish'a B'Av */
48
- readonly TISHA_BAV: "Tish'a B'Av";
49
- /** Tzom Gedaliah */
50
- readonly TZOM_GEDALIAH: "Tzom Gedaliah";
51
- /** Tzom Tammuz */
52
- readonly TZOM_TAMMUZ: "Tzom Tammuz";
53
- /** Yom HaAtzma'ut */
54
- readonly YOM_HAATZMA_UT: "Yom HaAtzma'ut";
55
- /** Yom HaShoah */
56
- readonly YOM_HASHOAH: "Yom HaShoah";
57
- /** Yom HaZikaron */
58
- readonly YOM_HAZIKARON: "Yom HaZikaron";
59
- /** Ben-Gurion Day */
60
- readonly BEN_GURION_DAY: "Ben-Gurion Day";
61
- /** Chanukah: 1 Candle */
62
- readonly CHANUKAH_1_CANDLE: "Chanukah: 1 Candle";
63
- /** Erev Pesach */
64
- readonly EREV_PESACH: "Erev Pesach";
65
- /** Erev Purim */
66
- readonly EREV_PURIM: "Erev Purim";
67
- /** Erev Rosh Hashana */
68
- readonly EREV_ROSH_HASHANA: "Erev Rosh Hashana";
69
- /** Erev Shavuot */
70
- readonly EREV_SHAVUOT: "Erev Shavuot";
71
- /** Erev Sukkot */
72
- readonly EREV_SUKKOT: "Erev Sukkot";
73
- /** Erev Yom Kippur */
74
- readonly EREV_YOM_KIPPUR: "Erev Yom Kippur";
75
- /** Family Day */
76
- readonly FAMILY_DAY: "Family Day";
77
- /** Hebrew Language Day */
78
- readonly HEBREW_LANGUAGE_DAY: "Hebrew Language Day";
79
- /** Herzl Day */
80
- readonly HERZL_DAY: "Herzl Day";
81
- /** Jabotinsky Day */
82
- readonly JABOTINSKY_DAY: "Jabotinsky Day";
83
- /** Lag BaOmer */
84
- readonly LAG_BAOMER: "Lag BaOmer";
85
- /** Pesach I */
86
- readonly PESACH_I: "Pesach I";
87
- /** Pesach II */
88
- readonly PESACH_II: "Pesach II";
89
- /** Pesach III (CH''M) */
90
- readonly PESACH_III_CHM: "Pesach III (CH''M)";
91
- /** Pesach II (CH''M) */
92
- readonly PESACH_II_CHM: "Pesach II (CH''M)";
93
- /** Pesach IV (CH''M) */
94
- readonly PESACH_IV_CHM: "Pesach IV (CH''M)";
95
- /** Pesach Sheni */
96
- readonly PESACH_SHENI: "Pesach Sheni";
97
- /** Pesach VII */
98
- readonly PESACH_VII: "Pesach VII";
99
- /** Pesach VIII */
100
- readonly PESACH_VIII: "Pesach VIII";
101
- /** Pesach VI (CH''M) */
102
- readonly PESACH_VI_CHM: "Pesach VI (CH''M)";
103
- /** Pesach V (CH''M) */
104
- readonly PESACH_V_CHM: "Pesach V (CH''M)";
105
- /** Purim */
106
- readonly PURIM: "Purim";
107
- /** Rosh Hashana II */
108
- readonly ROSH_HASHANA_II: "Rosh Hashana II";
109
- /** Rosh Hashana LaBehemot */
110
- readonly ROSH_HASHANA_LABEHEMOT: "Rosh Hashana LaBehemot";
111
- /** Shavuot */
112
- readonly SHAVUOT: "Shavuot";
113
- /** Shavuot I */
114
- readonly SHAVUOT_I: "Shavuot I";
115
- /** Shavuot II */
116
- readonly SHAVUOT_II: "Shavuot II";
117
- /** Shmini Atzeret */
118
- readonly SHMINI_ATZERET: "Shmini Atzeret";
119
- /** Shushan Purim */
120
- readonly SHUSHAN_PURIM: "Shushan Purim";
121
- /** Sigd */
122
- readonly SIGD: "Sigd";
123
- /** Simchat Torah */
124
- readonly SIMCHAT_TORAH: "Simchat Torah";
125
- /** Sukkot I */
126
- readonly SUKKOT_I: "Sukkot I";
127
- /** Sukkot II */
128
- readonly SUKKOT_II: "Sukkot II";
129
- /** Sukkot III (CH''M) */
130
- readonly SUKKOT_III_CHM: "Sukkot III (CH''M)";
131
- /** Sukkot II (CH''M) */
132
- readonly SUKKOT_II_CHM: "Sukkot II (CH''M)";
133
- /** Sukkot IV (CH''M) */
134
- readonly SUKKOT_IV_CHM: "Sukkot IV (CH''M)";
135
- /** Sukkot VII (Hoshana Raba) */
136
- readonly SUKKOT_VII_HOSHANA_RABA: "Sukkot VII (Hoshana Raba)";
137
- /** Sukkot VI (CH''M) */
138
- readonly SUKKOT_VI_CHM: "Sukkot VI (CH''M)";
139
- /** Sukkot V (CH''M) */
140
- readonly SUKKOT_V_CHM: "Sukkot V (CH''M)";
141
- /** Tu B\'Av */
142
- readonly TU_BAV: "Tu B'Av";
143
- /** Tu BiShvat */
144
- readonly TU_BISHVAT: "Tu BiShvat";
145
- /** Yitzhak Rabin Memorial Day */
146
- readonly YITZHAK_RABIN_MEMORIAL_DAY: "Yitzhak Rabin Memorial Day";
147
- /** Yom HaAliyah */
148
- readonly YOM_HAALIYAH: "Yom HaAliyah";
149
- /** Yom HaAliyah School Observance */
150
- readonly YOM_HAALIYAH_SCHOOL_OBSERVANCE: "Yom HaAliyah School Observance";
151
- /** Yom Kippur */
152
- readonly YOM_KIPPUR: "Yom Kippur";
153
- /** Yom Yerushalayim */
154
- readonly YOM_YERUSHALAYIM: "Yom Yerushalayim";
155
- };
156
- export interface Holiday {
157
- mm: number;
158
- dd: number;
159
- desc: string;
160
- flags: number;
161
- chmDay?: number;
162
- emoji?: string;
163
- }
164
- export declare const staticHolidays: Holiday[];
165
- export interface ModernHoliday {
166
- firstYear: number;
167
- mm: number;
168
- dd: number;
169
- desc: string;
170
- chul?: boolean;
171
- suppressEmoji?: boolean;
172
- satPostponeToSun?: boolean;
173
- friPostponeToSun?: boolean;
174
- friSatMovetoThu?: boolean;
175
- }
176
- export declare const staticModernHolidays: ModernHoliday[];
@@ -1,29 +0,0 @@
1
- import { HDate } from '@hebcal/hdate';
2
- /**
3
- * Is *tachanun* said today?
4
- */
5
- export type TachanunResult = {
6
- /** Tachanun is said at Shacharit */
7
- shacharit: boolean;
8
- /** Tachanun is said at Mincha */
9
- mincha: boolean;
10
- /** All congregations say Tachanun on the day */
11
- allCongs: boolean;
12
- };
13
- /**
14
- * Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
15
- *
16
- * Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
17
- * Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
18
- * Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
19
- * Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
20
- *
21
- * In some congregations Tachanun is not said until from Rosh Chodesh Sivan
22
- * until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
23
- * Yom Ha'atzmaut, and Yom Yerushalayim.
24
- *
25
- * Tachanun is not said at Mincha on days before it is not said at Shacharit.
26
- *
27
- * Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
28
- */
29
- export declare function tachanun(hdate: HDate, il: boolean): TachanunResult;