@hebcal/core 5.3.13 → 5.4.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/dist/locale.d.ts CHANGED
@@ -12,9 +12,9 @@ export class Locale {
12
12
  * Otherwise, returns `undefined`.
13
13
  * @param {string} id Message ID to translate
14
14
  * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale.
15
- * @return {string}
15
+ * @return {string | undefined}
16
16
  */
17
- static lookupTranslation(id: string, locale?: string | undefined): string;
17
+ static lookupTranslation(id: string, locale?: string | undefined): string | undefined;
18
18
  /**
19
19
  * By default, if no translation was found, returns `id`.
20
20
  * @param {string} id Message ID to translate
package/dist/modern.d.ts CHANGED
@@ -17,4 +17,4 @@ export function dateYomHaShoah(year: number): HDate | null;
17
17
  * @return {HDate|null}
18
18
  */
19
19
  export function dateYomHaZikaron(year: number): HDate | null;
20
- import { HDate } from './hdate.js';
20
+ import { HDate } from '@hebcal/hdate';
package/dist/molad.d.ts CHANGED
@@ -62,4 +62,4 @@ export class MoladEvent extends Event {
62
62
  options: CalOptions;
63
63
  }
64
64
  import { Event } from './event.js';
65
- import { HDate } from './hdate.js';
65
+ import { HDate } from '@hebcal/hdate';
@@ -1 +1 @@
1
- export const version: "5.3.13";
1
+ export const version: "5.4.0";
package/dist/sedra.d.ts CHANGED
@@ -5,107 +5,4 @@
5
5
  * @return {Sedra}
6
6
  */
7
7
  export function getSedra_(hyear: number, il: boolean): Sedra;
8
- /**
9
- * Result of Sedra.lookup
10
- * @typedef {Object} SedraResult
11
- * @property {string[]} parsha Name of the parsha (or parshiyot) read on
12
- * Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
13
- * @property {boolean} chag True if this is a regular parasha HaShavua
14
- * Torah reading, false if it's a special holiday reading
15
- * @property {number|number[]} num the parsha number (or numbers) using 1-indexing.
16
- * A `number` for a regular (single) parsha, and a `number[]` for a doubled parsha.
17
- * For Parashat *Bereshit*, `num` would be equal to `1`, and for
18
- * *Matot-Masei* it would be `[42, 43]`
19
- */
20
- /**
21
- * Represents Parashah HaShavua for an entire Hebrew year
22
- */
23
- export class Sedra {
24
- /**
25
- * Caculates the Parashah HaShavua for an entire Hebrew year
26
- * @param {number} hebYr - Hebrew year (e.g. 5749)
27
- * @param {boolean} il - Use Israel sedra schedule (false for Diaspora)
28
- */
29
- constructor(hebYr: number, il: boolean);
30
- type: number;
31
- year: number;
32
- roshHashanaDay: number;
33
- firstSaturday: number;
34
- leap: number;
35
- il: boolean;
36
- key: string;
37
- theSedraArray: Object[];
38
- /**
39
- * Returns the parsha (or parshiyot) read on Hebrew date
40
- * @param {HDate|number} hDate Hebrew date or R.D. days
41
- * @return {string[]}
42
- */
43
- get(hDate: HDate | number): string[];
44
- /**
45
- * Looks up parsha for the date, then returns a translated or transliterated string
46
- * @param {HDate|number} hDate Hebrew date or R.D. days
47
- * @param {string} [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to active locale
48
- * @return {string}
49
- */
50
- getString(hDate: HDate | number, locale?: string | undefined): string;
51
- /**
52
- * Checks to see if this day would be a regular parasha HaShavua
53
- * Torah reading or special holiday reading
54
- * @param {HDate|number} hDate Hebrew date or R.D. days
55
- * @return {boolean}
56
- */
57
- isParsha(hDate: HDate | number): boolean;
58
- /**
59
- * Returns the date that a parsha occurs
60
- * @param {number|string|string[]} parsha
61
- * @return {HDate}
62
- */
63
- find(parsha: number | string | string[]): HDate;
64
- /**
65
- * @return {Object[]}
66
- */
67
- getSedraArray(): Object[];
68
- /**
69
- * R.D. date of the first Saturday on or after Rosh Hashana
70
- * @return {number}
71
- */
72
- getFirstSaturday(): number;
73
- /** @return {number} */
74
- getYear(): number;
75
- /**
76
- * Returns an object describing the parsha on the first Saturday on or after absdate
77
- * @param {HDate|number} hDate Hebrew date or R.D. days
78
- * @return {SedraResult}
79
- */
80
- lookup(hDate: HDate | number): SedraResult;
81
- }
82
- /**
83
- * The 54 parshiyot of the Torah as transilterated strings
84
- * parshiot[0] == 'Bereshit', parshiot[1] == 'Noach', parshiot[53] == "Ha'azinu".
85
- * @readonly
86
- * @type {string[]}
87
- */
88
- export const parshiot: string[];
89
- /**
90
- * Result of Sedra.lookup
91
- */
92
- export type SedraResult = {
93
- /**
94
- * Name of the parsha (or parshiyot) read on
95
- * Hebrew date, e.g. `['Noach']` or `['Matot', 'Masei']`
96
- */
97
- parsha: string[];
98
- /**
99
- * True if this is a regular parasha HaShavua
100
- * Torah reading, false if it's a special holiday reading
101
- */
102
- chag: boolean;
103
- /**
104
- * the parsha number (or numbers) using 1-indexing.
105
- * A `number` for a regular (single) parsha, and a `number[]` for a doubled parsha.
106
- * For Parashat *Bereshit*, `num` would be equal to `1`, and for
107
- * *Matot-Masei* it would be `[42, 43]`
108
- */
109
- num: number | number[];
110
- };
111
- import { HDate } from './hdate.js';
8
+ import { Sedra } from '@hebcal/hdate';
@@ -5,4 +5,4 @@
5
5
  * @return {TachanunResult}
6
6
  */
7
7
  export function tachanun_(hdate: HDate, il: boolean): TachanunResult;
8
- import { HDate } from './hdate.js';
8
+ import { HDate } from '@hebcal/hdate';
package/dist/zmanim.d.ts CHANGED
@@ -318,4 +318,4 @@ export class Zmanim {
318
318
  sunsetOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
319
319
  }
320
320
  import { NOAACalculator } from '@hebcal/noaa';
321
- import { HDate } from './hdate.js';
321
+ import { HDate } from '@hebcal/hdate';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "5.3.13",
3
+ "version": "5.4.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -46,9 +46,8 @@
46
46
  ],
47
47
  "scripts": {
48
48
  "build:rollup": "rollup -c",
49
- "build": "npm run po2json && npm run version && npm run build:rollup --production",
49
+ "build": "npm run version && npm run build:rollup --production",
50
50
  "prepublish": "npm run build",
51
- "po2json": "node ./po2json.cjs po/*.po",
52
51
  "version": "node ./version.cjs package.json src/pkgVersion.js",
53
52
  "readme": "cp dist/index.mjs tmp.js && npx -p jsdoc-to-markdown jsdoc2md tmp.js && rm -f tmp.js",
54
53
  "pretest": "npm run build",
@@ -70,11 +69,9 @@
70
69
  "temporal-polyfill": "^0.2.4"
71
70
  },
72
71
  "devDependencies": {
73
- "@babel/core": "^7.24.5",
74
- "@babel/preset-env": "^7.24.5",
75
- "@babel/register": "^7.23.7",
76
- "@hebcal/hdate": "^0.9.6",
77
- "@hebcal/noaa": "^0.8.14",
72
+ "@babel/core": "^7.24.6",
73
+ "@babel/preset-env": "^7.24.6",
74
+ "@babel/register": "^7.24.6",
78
75
  "@rollup/plugin-babel": "^6.0.4",
79
76
  "@rollup/plugin-commonjs": "^25.0.8",
80
77
  "@rollup/plugin-json": "^6.1.0",
@@ -94,6 +91,8 @@
94
91
  "typescript": "^5.4.5"
95
92
  },
96
93
  "dependencies": {
94
+ "@hebcal/hdate": "^0.9.10",
95
+ "@hebcal/noaa": "^0.8.14",
97
96
  "tslib": "^2.6.2"
98
97
  }
99
98
  }
package/po/ashkenazi.po DELETED
@@ -1,195 +0,0 @@
1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) YEAR Danny Sadinoff
3
- # This file is distributed under the same license as the PACKAGE package.
4
- # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
6
- msgid ""
7
- msgstr ""
8
- "Project-Id-Version: hebcal 4.2\n"
9
- "Report-Msgid-Bugs-To: hebcal-bugs@sadinoff.com\n"
10
- "POT-Creation-Date: 2015-12-30 14:54-0500\n"
11
- "PO-Revision-Date: 2020-05-03 11:18-0800\n"
12
- "Language: en_CA@ashkenazi\n"
13
- "MIME-Version: 1.0\n"
14
- "Content-Type: text/plain; charset=utf-8\n"
15
- "Content-Transfer-Encoding: 8bit\n"
16
- "Last-Translator: \n"
17
- "Language-Team: \n"
18
- "X-Generator: Poedit 1.8.6\n"
19
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
20
-
21
- #: ../dafyomi.c:27
22
- msgid "Shabbat"
23
- msgstr "Shabbos"
24
-
25
- msgid "Achrei Mot"
26
- msgstr "Achrei Mos"
27
-
28
- msgid "Bechukotai"
29
- msgstr "Bechukosai"
30
-
31
- msgid "Beha'alotcha"
32
- msgstr "Beha’aloscha"
33
-
34
- msgid "Bereshit"
35
- msgstr "Bereshis"
36
-
37
- msgid "Chukat"
38
- msgstr "Chukas"
39
-
40
- msgid "Erev Shavuot"
41
- msgstr "Erev Shavuos"
42
-
43
- msgid "Erev Sukkot"
44
- msgstr "Erev Sukkos"
45
-
46
- msgid "Ki Tavo"
47
- msgstr "Ki Savo"
48
-
49
- msgid "Ki Teitzei"
50
- msgstr "Ki Seitzei"
51
-
52
- msgid "Ki Tisa"
53
- msgstr "Ki Sisa"
54
-
55
- msgid "Matot"
56
- msgstr "Matos"
57
-
58
- msgid "Purim Katan"
59
- msgstr "Purim Koton"
60
-
61
- msgid "Shabbat Chazon"
62
- msgstr "Shabbos Chazon"
63
-
64
- msgid "Shabbat HaChodesh"
65
- msgstr "Shabbos HaChodesh"
66
-
67
- msgid "Shabbat HaGadol"
68
- msgstr "Shabbos HaGadol"
69
-
70
- msgid "Shabbat Nachamu"
71
- msgstr "Shabbos Nachamu"
72
-
73
- msgid "Shabbat Parah"
74
- msgstr "Shabbos Parah"
75
-
76
- msgid "Shabbat Shekalim"
77
- msgstr "Shabbos Shekalim"
78
-
79
- msgid "Shabbat Shuva"
80
- msgstr "Shabbos Shuvah"
81
-
82
- msgid "Shabbat Zachor"
83
- msgstr "Shabbos Zachor"
84
-
85
- msgid "Shavuot"
86
- msgstr "Shavuos"
87
-
88
- msgid "Shavuot I"
89
- msgstr "Shavuos I"
90
-
91
- msgid "Shavuot II"
92
- msgstr "Shavuos II"
93
-
94
- msgid "Shemot"
95
- msgstr "Shemos"
96
-
97
- msgid "Shmini Atzeret"
98
- msgstr "Shmini Atzeres"
99
-
100
- msgid "Simchat Torah"
101
- msgstr "Simchas Torah"
102
-
103
- msgid "Sukkot"
104
- msgstr "Sukkos"
105
-
106
- msgid "Sukkot I"
107
- msgstr "Sukkos I"
108
-
109
- msgid "Sukkot II"
110
- msgstr "Sukkos II"
111
-
112
- msgid "Sukkot II (CH''M)"
113
- msgstr "Sukkos II (CH’’M)"
114
-
115
- msgid "Sukkot III (CH''M)"
116
- msgstr "Sukkos III (CH’’M)"
117
-
118
- msgid "Sukkot IV (CH''M)"
119
- msgstr "Sukkos IV (CH’’M)"
120
-
121
- msgid "Sukkot V (CH''M)"
122
- msgstr "Sukkos V (CH’’M)"
123
-
124
- msgid "Sukkot VI (CH''M)"
125
- msgstr "Sukkos VI (CH’’M)"
126
-
127
- msgid "Sukkot VII (Hoshana Raba)"
128
- msgstr "Sukkos VII (Hoshana Raba)"
129
-
130
- msgid "Ta'anit Bechorot"
131
- msgstr "Ta’anis Bechoros"
132
-
133
- msgid "Ta'anit Esther"
134
- msgstr "Ta’anis Esther"
135
-
136
- msgid "Toldot"
137
- msgstr "Toldos"
138
-
139
- msgid "Vaetchanan"
140
- msgstr "Vaeschanan"
141
-
142
- msgid "Yitro"
143
- msgstr "Yisro"
144
-
145
- msgid "Vezot Haberakhah"
146
- msgstr "Vezos Haberakhah"
147
-
148
- msgid "Parashat"
149
- msgstr "Parshas"
150
-
151
- msgid "Leil Selichot"
152
- msgstr "Leil Selichos"
153
-
154
- msgid "Shabbat Mevarchim Chodesh"
155
- msgstr "Shabbos Mevorchim Chodesh"
156
-
157
- msgid "Shabbat Shirah"
158
- msgstr "Shabbos Shirah"
159
-
160
- msgid "Tevet"
161
- msgstr "Teves"
162
-
163
- msgid "Asara B'Tevet"
164
- msgstr "Asara B’Teves"
165
-
166
- # hebcal/hebcal zmanim (unused by hebcal/hebcal-es6)
167
- msgid "Alot HaShachar"
168
- msgstr "Alos HaShachar"
169
-
170
- msgid "Kriat Shema, sof zeman"
171
- msgstr "Krias Shema, sof zman"
172
-
173
- msgid "Tefilah, sof zeman"
174
- msgstr "Tefilah, sof zman"
175
-
176
- msgid "Kriat Shema, sof zeman (MGA)"
177
- msgstr "Krias Shema, sof zman (MGA)"
178
-
179
- msgid "Tefilah, sof zeman (MGA)"
180
- msgstr "Tefilah, sof zman (MGA)"
181
-
182
- msgid "Chatzot HaLailah"
183
- msgstr "Chatzos HaLailah"
184
-
185
- msgid "Chatzot hayom"
186
- msgstr "Chatzos"
187
-
188
- msgid "Tzeit HaKochavim"
189
- msgstr "Tzeis HaKochavim"
190
-
191
- msgid "Birkat Hachamah"
192
- msgstr "Birkas Hachamah"
193
-
194
- msgid "Shushan Purim Katan"
195
- msgstr "Shushan Purim Koton"
package/po/he.min.po DELETED
@@ -1,50 +0,0 @@
1
- # Minimal po for HDate only
2
- msgid ""
3
- msgstr ""
4
- "Language: he\n"
5
- "MIME-Version: 1.0\n"
6
- "Content-Type: text/plain; charset=utf-8\n"
7
- "Content-Transfer-Encoding: 8bit\n"
8
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
9
-
10
- msgid "Adar"
11
- msgstr "אַדָר"
12
-
13
- msgid "Adar I"
14
- msgstr "אַדָר א׳"
15
-
16
- msgid "Adar II"
17
- msgstr "אַדָר ב׳"
18
-
19
- msgid "Av"
20
- msgstr "אָב"
21
-
22
- msgid "Cheshvan"
23
- msgstr "חֶשְׁוָן"
24
-
25
- msgid "Elul"
26
- msgstr "אֱלוּל"
27
-
28
- msgid "Iyyar"
29
- msgstr "אִיָיר"
30
-
31
- msgid "Kislev"
32
- msgstr "כִּסְלֵו"
33
-
34
- msgid "Nisan"
35
- msgstr "נִיסָן"
36
-
37
- msgid "Sh'vat"
38
- msgstr "שְׁבָט"
39
-
40
- msgid "Sivan"
41
- msgstr "סִיוָן"
42
-
43
- msgid "Tamuz"
44
- msgstr "תַּמּוּז"
45
-
46
- msgid "Tevet"
47
- msgstr "טֵבֵת"
48
-
49
- msgid "Tishrei"
50
- msgstr "תִּשְׁרֵי"