@hebcal/core 5.9.2 → 5.9.4

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 (45) hide show
  1. package/dist/bundle.js +244 -200
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/bundle.min.js +17 -19
  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.po.js +2 -2
  19. package/dist/esm/he.po.js.map +1 -1
  20. package/dist/esm/hebcal.js +1 -1
  21. package/dist/esm/holidays.js +1 -1
  22. package/dist/esm/index.js +1 -1
  23. package/dist/esm/locale.js +1 -1
  24. package/dist/esm/location.js +4 -1
  25. package/dist/esm/location.js.map +1 -1
  26. package/dist/esm/modern.js +1 -1
  27. package/dist/esm/molad.js +1 -1
  28. package/dist/esm/omer.d.ts +21 -4
  29. package/dist/esm/omer.js +228 -12
  30. package/dist/esm/omer.js.map +1 -1
  31. package/dist/esm/parshaName.js +1 -1
  32. package/dist/esm/parshaYear.js +1 -1
  33. package/dist/esm/pkgVersion.d.ts +1 -1
  34. package/dist/esm/pkgVersion.js +2 -2
  35. package/dist/esm/pkgVersion.js.map +1 -1
  36. package/dist/esm/reformatTimeStr.js +1 -1
  37. package/dist/esm/sedra.js +1 -1
  38. package/dist/esm/staticHolidays.js +1 -1
  39. package/dist/esm/tachanun.js +1 -1
  40. package/dist/esm/zmanim.js +1 -1
  41. package/dist/index.cjs +232 -13
  42. package/dist/index.cjs.map +1 -1
  43. package/dist/omer.d.ts +21 -4
  44. package/dist/pkgVersion.d.ts +1 -1
  45. package/package.json +15 -15
package/dist/omer.d.ts CHANGED
@@ -1,6 +1,11 @@
1
1
  import { HDate } from '@hebcal/hdate';
2
2
  import { Event } from './event';
3
3
  import './locale';
4
+ /**
5
+ * Language for counting the Omer can be English or Hebrew.
6
+ * Lang for the Sefira can be English, Hebrew, or Hebrew in Sephardic transliteration.
7
+ */
8
+ export type OmerLang = 'en' | 'he' | 'translit';
4
9
  /** Represents a day 1-49 of counting the Omer from Pesach to Shavuot */
5
10
  export declare class OmerEvent extends Event {
6
11
  private readonly weekNumber;
@@ -13,11 +18,15 @@ export declare class OmerEvent extends Event {
13
18
  */
14
19
  constructor(date: HDate, omerDay: number);
15
20
  /**
16
- * @param lang
21
+ * Returns the sefira. For example, on day 8:
22
+ * * חֶֽסֶד שֶׁבִּגְבוּרָה
23
+ * * Chesed shebiGevurah
24
+ * * Lovingkindness within Might
25
+ * @param lang `en` (English), `he` (Hebrew with nikud), or `translit` (Hebrew in Sephardic transliteration)
26
+ * @returns a string such as `Lovingkindness within Might` or `חֶֽסֶד שֶׁבִּגְבוּרָה`
17
27
  */
18
- sefira(lang?: string): string;
28
+ sefira(lang?: OmerLang): string;
19
29
  /**
20
- * @todo use gettext()
21
30
  * @param [locale] Optional locale name (defaults to active locale).
22
31
  */
23
32
  render(locale?: string): string;
@@ -26,11 +35,19 @@ export declare class OmerEvent extends Event {
26
35
  * @param [locale] Optional locale name (defaults to active locale).
27
36
  */
28
37
  renderBrief(locale?: string): string;
38
+ /**
39
+ * Returns an emoji number symbol with a circle, for example `㊲`
40
+ * from the “Enclosed CJK Letters and Months” block of the Unicode standard
41
+ * @param omerDay the day of the omer, 1-49 inclusive
42
+ * @returns a single Unicode character from `①` through `㊾`
43
+ */
29
44
  getEmoji(): string;
30
45
  getWeeks(): number;
31
46
  getDaysWithinWeeks(): number;
32
47
  /**
33
- * @param locale
48
+ * Returns a sentence with that evening's omer count
49
+ * @returns a string such as `Today is 10 days, which is 1 week and 3 days of the Omer`
50
+ * or `הַיוֹם עֲשָׂרָה יָמִים, שְׁהֵם שָׁבוּעַ אֶחָד וְשְׁלוֹשָׁה יָמִים לָעוֹמֶר`
34
51
  */
35
52
  getTodayIs(locale: string): string;
36
53
  url(): string;
@@ -1,2 +1,2 @@
1
1
  /** DO NOT EDIT THIS AUTO-GENERATED FILE! */
2
- export declare const version = "5.9.2";
2
+ export declare const version = "5.9.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "5.9.2",
3
+ "version": "5.9.4",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -67,32 +67,32 @@
67
67
  },
68
68
  "license": "GPL-2.0",
69
69
  "devDependencies": {
70
- "@babel/core": "^7.26.10",
71
- "@babel/plugin-transform-runtime": "^7.26.10",
72
- "@babel/preset-env": "^7.26.9",
73
- "@babel/preset-typescript": "^7.27.0",
74
- "@babel/register": "^7.25.9",
70
+ "@babel/core": "^7.27.1",
71
+ "@babel/plugin-transform-runtime": "^7.27.1",
72
+ "@babel/preset-env": "^7.27.1",
73
+ "@babel/preset-typescript": "^7.27.1",
74
+ "@babel/register": "^7.27.1",
75
75
  "@rollup/plugin-babel": "^6.0.4",
76
76
  "@rollup/plugin-commonjs": "^28.0.3",
77
77
  "@rollup/plugin-json": "^6.1.0",
78
78
  "@rollup/plugin-node-resolve": "^16.0.1",
79
79
  "@rollup/plugin-terser": "^0.4.4",
80
80
  "@rollup/plugin-typescript": "^12.1.2",
81
- "@types/node": "^22.13.14",
82
- "@vitest/coverage-v8": "^3.0.9",
83
- "core-js": "^3.41.0",
81
+ "@types/node": "^22.15.3",
82
+ "@vitest/coverage-v8": "^3.1.2",
83
+ "core-js": "^3.42.0",
84
84
  "gettext-parser": "^8.0.0",
85
85
  "gts": "^6.0.2",
86
- "pretty-bytes": "^6.1.1",
87
- "rollup": "^4.37.0",
86
+ "pretty-bytes": "^7.0.0",
87
+ "rollup": "^4.40.1",
88
88
  "rollup-plugin-bundle-size": "^1.0.3",
89
89
  "rollup-plugin-visualizer": "^5.14.0",
90
- "typedoc": "^0.28.1",
91
- "typescript": "^5.8.2",
92
- "vitest": "^3.0.9"
90
+ "typedoc": "^0.28.3",
91
+ "typescript": "^5.8.3",
92
+ "vitest": "^3.1.2"
93
93
  },
94
94
  "dependencies": {
95
- "@hebcal/hdate": "^0.13.6",
95
+ "@hebcal/hdate": "^0.14.0",
96
96
  "@hebcal/noaa": "^0.9.1",
97
97
  "quick-lru": "^6.1.2",
98
98
  "temporal-polyfill": "^0.3.0",