@hebcal/core 3.33.5 → 3.34.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/hebcal.d.ts CHANGED
@@ -370,9 +370,13 @@ declare module '@hebcal/core' {
370
370
 
371
371
  /** @deprecated */
372
372
  suntime(): ZmanimTimesResult;
373
+ /** Upper edge of the Sun appears over the eastern horizon in the morning (0.833° above horizon) */
373
374
  sunrise(): Date;
375
+ /** When the upper edge of the Sun disappears below the horizon (0.833° below horizon) */
374
376
  sunset(): Date;
377
+ /** Civil dawn; Sun is 6° below the horizon in the morning */
375
378
  dawn(): Date;
379
+ /** Civil dusk; Sun is 6° below the horizon in the evening */
376
380
  dusk(): Date;
377
381
  hour(): number;
378
382
  hourMins(): number;
@@ -380,15 +384,29 @@ declare module '@hebcal/core' {
380
384
  nightHour(): number;
381
385
  nightHourMins(): number;
382
386
  hourOffset(hours: number): Date;
387
+ /** Midday – Chatzot; Sunrise plus 6 halachic hours */
383
388
  chatzot(): Date;
389
+ /** Midnight – Chatzot; Sunset plus 6 halachic hours */
384
390
  chatzotNight(): Date;
391
+ /** Dawn – Alot haShachar; Sun is 16.1° below the horizon in the morning */
385
392
  alotHaShachar(): Date;
393
+ /** Earliest talis & tefillin – Misheyakir; Sun is 11.5° below the horizon in the morning */
386
394
  misheyakir(): Date;
395
+ /** Earliest talis & tefillin – Misheyakir Machmir; Sun is 10.2° below the horizon in the morning */
387
396
  misheyakirMachmir(): Date;
397
+ /** Latest Shema (Gra); Sunrise plus 3 halachic hours, according to the Gra */
388
398
  sofZmanShma(): Date;
399
+ /** Latest Shacharit (Gra); Sunrise plus 4 halachic hours, according to the Gra */
389
400
  sofZmanTfilla(): Date;
401
+ /** Latest Shema (MGA); Sunrise plus 3 halachic hours, according to Magen Avraham */
402
+ sofZmanShmaMGA(): Date;
403
+ /** Latest Shacharit (MGA); Sunrise plus 4 halachic hours, according to Magen Avraham */
404
+ sofZmanTfillaMGA(): Date;
405
+ /** Earliest Mincha – Mincha Gedola; Sunrise plus 6.5 halachic hours */
390
406
  minchaGedola(): Date;
407
+ /** Preferable earliest time to recite Minchah – Mincha Ketana; Sunrise plus 9.5 halachic hours */
391
408
  minchaKetana(): Date;
409
+ /** Plag haMincha; Sunrise plus 10.75 halachic hours */
392
410
  plagHaMincha(): Date;
393
411
  /**
394
412
  * @param [angle=8.5] optional time for solar depression.
@@ -400,7 +418,13 @@ declare module '@hebcal/core' {
400
418
  /** Alias for sunset */
401
419
  shkiah(): Date;
402
420
  /**
403
- * Returns sunset + offset (either positive or negative).
421
+ * Returns sunrise + `offset` minutes (either positive or negative).
422
+ * @param offset minutes
423
+ */
424
+ sunriseOffset(offset: number): Date;
425
+ /**
426
+ * Returns sunset + `offset` minutes (either positive or negative).
427
+ * @param offset minutes
404
428
  */
405
429
  sunsetOffset(offset: number): Date;
406
430
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/core",
3
- "version": "3.33.5",
3
+ "version": "3.34.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "contributors": [
6
6
  "Eyal Schachter (https://github.com/Scimonster)",
@@ -47,8 +47,8 @@
47
47
  "pretest": "npm run build",
48
48
  "typedef": "npx jsdoc -t node_modules/tsd-jsdoc/dist -r ./src/",
49
49
  "lint": "eslint src",
50
- "coverage": "nyc ava",
51
- "test": "ava"
50
+ "coverage": "nyc ava --concurrency 2",
51
+ "test": "ava --concurrency 3"
52
52
  },
53
53
  "license": "GPL-2.0",
54
54
  "ava": {
@@ -65,7 +65,7 @@
65
65
  "@babel/core": "^7.17.8",
66
66
  "@babel/preset-env": "^7.16.11",
67
67
  "@babel/register": "^7.17.7",
68
- "@hebcal/solar-calc": "^1.1.0",
68
+ "@hebcal/solar-calc": "^1.1.2",
69
69
  "@rollup/plugin-babel": "^5.3.1",
70
70
  "@rollup/plugin-commonjs": "^21.0.2",
71
71
  "@rollup/plugin-json": "^4.1.0",