From a7759d5537d4d3dd553064b242f49a590acb6a1e Mon Sep 17 00:00:00 2001 From: "Michael J. Radwin" Date: Thu, 23 Jul 2020 20:09:47 -0700 Subject: [PATCH] Earliest full Hebrew year for HebrewCalendar.calendar() is 3762 --- package.json | 2 +- src/hebcal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c0922a8..b540ef2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hebcal/core", - "version": "2.2.2", + "version": "2.2.3", "author": "Michael J. Radwin (https://github.com/mjradwin)", "contributors": [ "Eyal Schachter (https://github.com/Scimonster)", diff --git a/src/hebcal.js b/src/hebcal.js index 7085cee..58e3271 100644 --- a/src/hebcal.js +++ b/src/hebcal.js @@ -192,7 +192,7 @@ export function getStartAndEnd(options) { isHebrewYear ? new HDate().getFullYear() : new Date().getFullYear(); if (isNaN(theYear)) { throw new RangeError(`Invalid year ${options.year}`); - } else if (isHebrewYear && theYear < 3760) { + } else if (isHebrewYear && theYear < 3762) { throw new RangeError(`Invalid Hebrew year ${theYear}`); } else if (theYear < 1) { throw new RangeError(`Invalid Gregorian year ${theYear}`);