Skip to content

Releases: hebcal/hebcal-es6

6.0.2

26 Oct 15:51

Choose a tag to compare

  • Add ParshaEvent.parsha getter as a convenience function for compatibility with previous version
  • Documentation fix for SedraResult.chag (the true/false were inverted)
  • Always set SedraResult.num to 0 for chag events (previously undefined)

Also see our announcement for other breaking changes in the 6.x series

Full Changelog: v6.0.1...v6.0.2

6.0.1

26 Oct 02:21

Choose a tag to compare

Major release - breaking changes

We’re pleased to announce a major update to @hebcal/core, our TypeScript implementation of perpetual Jewish Calendar with holidays, Shabbat and holiday candle lighting and havdalah times, Torah readings, and more. The library targets both browser-based JavaScript and server-side Node.js.

Version 6.0.0 is a breaking change with the follow changes

1. Removes support for CommonJS and Node.js 16.x (#647)

End-of-Life Date for Node.js 16 was September 2023. Node.js 18 end-of-life was April 2025.
Many library maintainers have dropped CommonJS support and shifted to ESM-only packages

2. ParshaEvent constructor change

ParshaEvent.constructor() now takes a single SedraResult argument.

Change this:

    const parsha = sedra.lookup(hdate);
    if (!parsha.chag) {
      const pe = new ParshaEvent(hdate, parsha.parsha, il, parsha.num);
    }

To this:

    const parsha = sedra.lookup(hdate);
    if (!parsha.chag) {
      const pe = new ParshaEvent(parsha);
    }

3. Removed all deprecated APIs from the 5.x series:

  • Event.clone()
  • HolidayEvent.clone()
  • Sedra.get() – use Sedra.lookup().parsha
  • Sedra.getString() – use new ParshaEvent(Sedra.lookup()).render()
  • Sedra.isParsha() – use !Sedra.lookup().chag
  • Locale.useLocale() – removed concept of global “active” locale
  • Locale.getLocaleName() – removed concept of global “active” locale

Smaller changes:

  • Add unit tests for a few uncovered public methods by @mjradwin in #610
  • Bump many dependencies
  • Bump quick-lru from 6.1.2 to 7.3.0 by @dependabot[bot] in #644

Full Changelog: v5.10.1...v6.0.1

5.10.1

27 Jul 18:36

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.10.0...v5.10.1

5.10.0

22 Jun 15:47

Choose a tag to compare

Add isAssurBemlacha: Utility method to determine if the date and time has a melacha (work) prohibition

Full Changelog: v5.9.9...v5.10.0

5.9.9

17 Jun 15:50

Choose a tag to compare

  • Add Zmanim.alotHaShachar72 (partially addresses #580)
  • Zmanim.formatTime returns XX:XX if the date is invalid
  • Move Hebrew locale strings into packages where they are used (leyning, learning, web)

Full Changelog: v5.9.8...v5.9.9

5.9.8

27 May 00:07

Choose a tag to compare

  • Use קֹרַח with niqqud and קורח without
  • Fix broken CJS by rolling up hdate and noaa into the bundle

Full Changelog: v5.9.6...v5.9.8

5.9.6

22 May 04:56

Choose a tag to compare

Returning correct pseudo-Sedra string name for Shabbos Chol Hamoed Pesach #564

Full Changelog: v5.9.5...v5.9.6

5.9.5

06 May 15:00

Choose a tag to compare

More niqqud fixes for Omer sefira

Full Changelog: v5.9.4...v5.9.5

5.9.4

02 May 02:02

Choose a tag to compare

  • Fix several niqqud on omer count and sefira (e.g. segol instead of shva for vowel in "she-hem" in omer count - thanks @SLaks!)
  • throw error in Location constructor on invalid timezoneId

Full Changelog: v5.9.3...v5.9.4

5.9.3

21 Apr 21:00

Choose a tag to compare

  • Fix vowels on sefira Beauty / Tiferet.
  • Bring Omer functionality that was pushed down to @hebcal/hdate back into @hebcal/core
  • Improve unit test coverage

Full Changelog: v5.9.2...v5.9.3