@hebcal/core 5.0.0-rc3 → 5.0.0-rc5

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
@@ -266,7 +266,7 @@ declare module '@hebcal/core' {
266
266
  * Converts Hebrew month string name to numeric
267
267
  * @param c - monthName
268
268
  */
269
- static monthFromName(c: string): number;
269
+ static monthFromName(c: string | number): number;
270
270
 
271
271
  /**
272
272
  * Construct a new instance of `HDate` from a Gematriya-formatted string
@@ -435,16 +435,18 @@ declare module '@hebcal/core' {
435
435
  shkiah(): Date;
436
436
  /**
437
437
  * Returns sunrise + `offset` minutes (either positive or negative).
438
- * @param roundMinute round time to nearest minute (default true)
439
438
  * @param offset minutes
439
+ * @param roundMinute round time to nearest minute (default true)
440
+ * @param forceSeaLevel use sea-level sunrise (default false)
440
441
  */
441
- sunriseOffset(offset: number, roundMinute?: boolean): Date;
442
+ sunriseOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
442
443
  /**
443
444
  * Returns sunset + `offset` minutes (either positive or negative).
444
445
  * @param offset minutes
445
446
  * @param roundMinute round time to nearest minute (default true)
447
+ * @param forceSeaLevel use sea-level sunset (default false)
446
448
  */
447
- sunsetOffset(offset: number, roundMinute?: boolean): Date;
449
+ sunsetOffset(offset: number, roundMinute?: boolean, forceSeaLevel?: boolean): Date;
448
450
  }
449
451
 
450
452
  export interface Headers {
@@ -566,6 +568,14 @@ declare module '@hebcal/core' {
566
568
  * Yechiel Michel Tucazinsky.
567
569
  */
568
570
  fastEndDeg?: number;
571
+ /**
572
+ * useElevation - use elevation for calculations (default `false`).
573
+ * If `true`, use elevation to affect the calculation of all sunrise/sunset based zmanim.
574
+ * Note: there are some zmanim such as degree-based zmanim that are driven by the amount
575
+ * of light in the sky and are not impacted by elevation.
576
+ * These zmanim intentionally do not support elevation adjustment.
577
+ */
578
+ useElevation?: boolean;
569
579
  /** calculate parashah hashavua on Saturdays */
570
580
  sedrot?: boolean;
571
581
  /** Israeli holiday and sedra schedule */
@@ -809,7 +819,7 @@ declare module '@hebcal/core' {
809
819
  /**
810
820
  * Gregorian date helper functions.
811
821
  */
812
- export declare namespace greg {
822
+ export namespace greg {
813
823
  /**
814
824
  * Long names of the Gregorian months (1='January', 12='December')
815
825
  * @readonly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "5.0.0-rc3",
3
+ "version": "5.0.0-rc5",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -63,8 +63,8 @@
63
63
  "@babel/core": "^7.23.3",
64
64
  "@babel/preset-env": "^7.23.3",
65
65
  "@babel/register": "^7.22.15",
66
- "@hebcal/hdate": "^0.8.1",
67
- "@hebcal/noaa": "^0.8.6",
66
+ "@hebcal/hdate": "^0.8.2",
67
+ "@hebcal/noaa": "^0.8.10",
68
68
  "@rollup/plugin-babel": "^6.0.4",
69
69
  "@rollup/plugin-commonjs": "^25.0.7",
70
70
  "@rollup/plugin-json": "^6.0.1",
@@ -77,7 +77,7 @@
77
77
  "jsdoc": "^4.0.2",
78
78
  "jsdoc-to-markdown": "^8.0.0",
79
79
  "nyc": "^15.1.0",
80
- "rollup": "^4.5.2",
80
+ "rollup": "^4.6.0",
81
81
  "temporal-polyfill": "^0.1.1",
82
82
  "ttag-cli": "^1.10.9"
83
83
  }