@hebcal/leyning 9.4.1 → 9.5.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.
@@ -1,4 +1,4 @@
1
- /*! @hebcal/leyning v9.4.1 */
1
+ /*! @hebcal/leyning v9.5.1 */
2
2
  const Genesis=[0,31,25,24,26,32,22,24,22,29,32,32,20,18,24,21,16,27,33,38,18,34,24,20,67,34,35,46,22,35,43,54,33,20,31,29,43,36,30,23,23,57,38,34,34,28,34,31,22,33,26];const Exodus=[0,22,25,22,31,23,30,29,28,35,29,10,51,22,31,27,36,16,27,25,23,37,30,33,18,40,37,21,43,46,38,18,35,23,35,35,38,29,31,43,38];const Leviticus=[0,17,16,17,35,26,23,38,36,24,20,47,8,59,57,33,34,16,30,37,27,24,33,44,23,55,46,34];const Numbers=[0,54,34,51,49,31,27,89,26,23,36,35,16,33,45,41,35,28,32,22,29,35,41,30,25,19,65,23,31,39,17,54,42,56,29,34,13];const Deuteronomy=[0,46,37,29,49,30,25,26,20,29,22,32,31,19,29,23,22,20,22,21,20,23,29,26,22,19,19,26,69,28,20,30,52,29,12];const Joshua=[0,18,24,17,24,15,27,26,35,27,43,23,24,33,15,63,10,18,28,51,9,45,34,16,33];const Judges=[0,36,23,31,24,31,40,25,35,57,18,40,15,25,20,20,31,13,31,30,48,25];const Ruth=[0,22,23,18,22];const Isaiah=[0,31,22,26,6,30,13,25,23,20,34,16,6,22,32,9,14,14,7,25,6,17,25,18,23,12,21,13,29,24,33,9,20,24,17,10,22,38,22,8,31,29,25,28,28,25,13,15,22,26,11,23,15,12,17,13,12,21,14,21,22,11,12,19,11,25,24];const Jeremiah=[0,19,37,25,31,31,30,34,23,25,25,23,17,27,22,21,21,27,23,15,18,14,30,40,10,38,24,22,17,32,24,40,44,26,22,19,32,21,28,18,16,18,22,13,30,5,28,7,47,39,46,64,34];const Lamentations=[0,22,22,66,22,22];const Esther=[0,22,23,15,17,14,14,10,17,32,3];const Ecclesiastes=[0,18,26,22,17,19,12,29,17,18,20,10,14];const Ezekiel=[0,28,10,27,17,17,14,27,18,11,22,25,28,23,23,8,63,24,32,14,44,37,31,49,27,17,21,36,26,21,26,18,32,33,31,15,38,28,23,29,49,26,20,27,31,25,24,23,35];const Daniel=[0,21,49,100,34,30,29,28,27,27,21,45,13,64,42];const Hosea=[0,9,25,5,19,15,11,16,14,17,15,11,15,15,10];const Joel=[0,20,27,5,21];const Amos=[0,15,16,15,13,27,14,17,14,15];const Obadiah=[0,21];const Jonah=[0,16,11,10,11];const Micah=[0,16,13,12,14,14,16,20];const Nachum=[0,14,14,19];const Habakkuk=[0,17,20,19];const Zephaniah=[0,18,15,20];const Haggai=[0,15,23];const Zechariah=[0,17,17,10,14,11,15,14,23,17,12,17,14,9,21];const Malachi=[0,14,17,24];var numverses = {Genesis:Genesis,Exodus:Exodus,Leviticus:Leviticus,Numbers:Numbers,Deuteronomy:Deuteronomy,Joshua:Joshua,Judges:Judges,Ruth:Ruth,"I Samuel":[0,28,36,21,22,12,21,17,22,27,27,15,25,23,52,35,23,58,30,24,42,16,23,28,23,43,25,12,25,11,31,13],"II Samuel":[0,27,32,39,12,25,23,29,18,13,19,27,31,39,33,37,23,29,32,44,26,22,51,39,25],"I Kings":[0,53,46,28,20,32,38,51,66,28,29,43,33,34,31,34,34,24,46,21,43,29,54],"II Kings":[0,18,25,27,44,27,33,20,29,37,36,20,22,25,29,38,20,41,37,37,21,26,20,37,20,30],Isaiah:Isaiah,Jeremiah:Jeremiah,Lamentations:Lamentations,Esther:Esther,Ecclesiastes:Ecclesiastes,"Song of Songs":[0,17,17,11,16,16,12,14,14],Ezekiel:Ezekiel,Daniel:Daniel,Hosea:Hosea,Joel:Joel,Amos:Amos,Obadiah:Obadiah,Jonah:Jonah,Micah:Micah,Nachum:Nachum,Habakkuk:Habakkuk,Zephaniah:Zephaniah,Haggai:Haggai,Zechariah:Zechariah,Malachi:Malachi};
3
3
 
4
4
  export { Amos, Daniel, Deuteronomy, Ecclesiastes, Esther, Exodus, Ezekiel, Genesis, Habakkuk, Haggai, Hosea, Isaiah, Jeremiah, Joel, Jonah, Joshua, Judges, Lamentations, Leviticus, Malachi, Micah, Nachum, Numbers, Obadiah, Ruth, Zechariah, Zephaniah, numverses as default };
@@ -1,4 +1,4 @@
1
- /*! @hebcal/leyning v9.4.1 */
1
+ /*! @hebcal/leyning v9.5.1 */
2
2
  import { months } from '@hebcal/hdate';
3
3
  import { flags } from '@hebcal/core/dist/esm/event';
4
4
  import { cloneHaftara } from './clone.js';
@@ -49,6 +49,7 @@ function mergeAliyotWithSpecial(aliyot, special) {
49
49
  function specialReadings2(parsha, hd, il, aliyot) {
50
50
  let haft;
51
51
  let seph;
52
+ let chabad;
52
53
  let specialHaft = false;
53
54
  const reason = {};
54
55
  function handleSpecial(key) {
@@ -67,6 +68,10 @@ function specialReadings2(parsha, hd, il, aliyot) {
67
68
  seph = cloneHaftara(special.seph);
68
69
  reason.sephardic = key;
69
70
  }
71
+ if (special.chabad) {
72
+ chabad = cloneHaftara(special.chabad);
73
+ reason.chabad = key;
74
+ }
70
75
  }
71
76
  if (special.fullkriyah) {
72
77
  const aliyotMap = structuredClone(aliyot);
@@ -136,7 +141,7 @@ function specialReadings2(parsha, hd, il, aliyot) {
136
141
  }
137
142
  }
138
143
  }
139
- return { aliyot, reason, haft, seph };
144
+ return { aliyot, reason, haft, seph, chabad };
140
145
  }
141
146
 
142
147
  export { specialReadings2 };
@@ -1,4 +1,4 @@
1
- /*! @hebcal/leyning v9.4.1 */
1
+ /*! @hebcal/leyning v9.5.1 */
2
2
  import './locale.js';
3
3
  import { formatAliyahShort } from './format.js';
4
4
  import { Locale } from '@hebcal/core/dist/esm/locale';
@@ -1,4 +1,4 @@
1
- /*! @hebcal/leyning v9.4.1 */
1
+ /*! @hebcal/leyning v9.5.1 */
2
2
  import { makeSummaryFromParts, makeLeyningParts } from './summary.js';
3
3
  import './locale.js';
4
4
  import { formatVerseToHebrew } from './format.js';
@@ -44,6 +44,8 @@ export type ParshaMeta = {
44
44
  haft: Aliyah | Aliyah[];
45
45
  /** Haftarah object(s) for Sephardim */
46
46
  seph?: Aliyah | Aliyah[];
47
+ /** Haftarah object(s) for Chabad */
48
+ chabad?: Aliyah | Aliyah[];
47
49
  /** Map of Shabbat aliyot `1` through `7` plus `M` for maftir */
48
50
  fullkriyah: Record<string, string[]>;
49
51
  /**
@@ -69,6 +71,8 @@ export type SpecialReading = {
69
71
  haft?: Aliyah | Aliyah[];
70
72
  /** Haftarah object(s) for Sephardim */
71
73
  seph?: Aliyah | Aliyah[];
74
+ /** Haftarah object(s) for Chabad */
75
+ chabad?: Aliyah | Aliyah[];
72
76
  };
73
77
  /**
74
78
  * Leyning base - weekday, parsha hashavua or holiday
@@ -116,6 +120,8 @@ export type LeyningShabbatHoliday = LeyningBase & HaftarahProps & {
116
120
  alt?: AliyotMap;
117
121
  /** Haftarah object for Sephardim */
118
122
  seph?: Aliyah | Aliyah[];
123
+ /** Haftarah object(s) for Chabad */
124
+ chabad?: Aliyah | Aliyah[];
119
125
  /** Haftarah for Sephardim, such as `Isaiah 42:5 - 42:21` */
120
126
  sephardic?: string;
121
127
  /** Number of verses in the Haftarah for Sephardim */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/leyning",
3
- "version": "9.4.1",
3
+ "version": "9.5.1",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "hebcal",
@@ -64,16 +64,16 @@
64
64
  "@rollup/plugin-node-resolve": "^16.0.3",
65
65
  "@rollup/plugin-terser": "^1.0.0",
66
66
  "@rollup/plugin-typescript": "^12.3.0",
67
- "@types/node": "^25.3.5",
68
- "@vitest/coverage-v8": "^4.0.18",
69
- "gettext-parser": "^9.0.1",
67
+ "@types/node": "^25.5.0",
68
+ "@vitest/coverage-v8": "^4.1.2",
69
+ "gettext-parser": "^9.0.2",
70
70
  "gts": "^7.0.0",
71
71
  "pretty-bytes": "^7.1.0",
72
- "rollup": "^4.59.0",
72
+ "rollup": "^4.60.0",
73
73
  "rollup-plugin-bundle-size": "^1.0.3",
74
74
  "rollup-plugin-visualizer": "^7.0.1",
75
- "typedoc": "^0.28.17",
75
+ "typedoc": "^0.28.18",
76
76
  "typescript": "^5.9.3",
77
- "vitest": "^4.0.18"
77
+ "vitest": "^4.1.2"
78
78
  }
79
79
  }