Releases: hebcal/hebcal-es6
6.0.2
- Add
ParshaEvent.parshagetter as a convenience function for compatibility with previous version - Documentation fix for
SedraResult.chag(the true/false were inverted) - Always set
SedraResult.numto0for chag events (previouslyundefined)
Also see our announcement for other breaking changes in the 6.x series
Full Changelog: v6.0.1...v6.0.2
6.0.1
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()– useSedra.lookup().parshaSedra.getString()– usenew ParshaEvent(Sedra.lookup()).render()Sedra.isParsha()– use!Sedra.lookup().chagLocale.useLocale()– removed concept of global “active” localeLocale.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
What's Changed
- Niqqud correction by @omeritzics in #602
New Contributors
- @omeritzics made their first contribution in #602
Full Changelog: v5.10.0...v5.10.1
5.10.0
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
5.9.8
- 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
5.9.5
More niqqud fixes for Omer sefira
Full Changelog: v5.9.4...v5.9.5
5.9.4
5.9.3
- Fix vowels on sefira Beauty / Tiferet.
- Bring Omer functionality that was pushed down to
@hebcal/hdateback into@hebcal/core - Improve unit test coverage
Full Changelog: v5.9.2...v5.9.3