Skip to content

build(deps): bump @hebcal/core from 6.9.1 to 6.9.2 - #782

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/hebcal/core-6.9.2
Open

build(deps): bump @hebcal/core from 6.9.1 to 6.9.2#782
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/hebcal/core-6.9.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 12, 2026

Copy link
Copy Markdown
Contributor

Bumps @hebcal/core from 6.9.1 to 6.9.2.

Release notes

Sourced from @​hebcal/core's releases.

v6.9.2

perf: take the epoch-millis path out of @​hebcal/noaa

Every Zmanim accessor reduces to a Date, but each one asked @​hebcal/noaa for a Temporal.ZonedDateTime and then immediately threw the zone away in zdtToDate(). Resolving an IANA zone is the single most expensive step in a sunrise/sunset calculation (~750ns), so all ten call sites were paying for a conversion nothing downstream used.

Use getEpochMillisFromTime(), new in @​hebcal/noaa 0.12.3, and convert the instant to a Date directly. zdtToDate() becomes millisToDate(), and the two shaah-zmanis helpers plus the Baal Hatanya sunrise/sunset now pass epoch milliseconds around instead of ZonedDateTime.

sofZmanShma(): 4945ns -> 2652ns (1.86x) sunset(), warm instance: 1959ns -> 1142ns (1.72x)

Doing so means core picks its own zenith and elevation flag per accessor, via two small private helpers, rather than calling the matching noaa method. Note that noaa's degree-based accessors pass adjustForElevation = true as well: adjustZenith() is a no-op unless the zenith is exactly GEOMETRIC_ZENITH, which is precisely why degree-based zmanim are unaffected by elevation. The helpers mirror that, and temporalHourMillis() reproduces getTemporalHour()'s floor, so results stay identical to the ZonedDateTime path.

Two smaller wins in the same area:

formatTime() checked for the h24 midnight rollover with split(':'), allocating a throwaway array per timed event. A charCodeAt() prefix test is equivalent for every string an hour+minute formatter can produce (verified across all 3,004 well-formed hh:mm values); the two divergent inputs, "24" and "24:00:30", are unreachable and the old code was broken on both anyway ("00:undefined").

The constructor built its PlainDate with PlainDate.from({...}), which walks a property bag and applies overflow handling. The fields come from a real Date and are always in range, so the constructor form does: 319ns -> 176ns, verified equivalent across 324 cases including years 1, 50, 99 and -5.

Verified against the previous implementation across 47,520 comparisons: 22 public accessors, 12 locations (antimeridian, polar, half-hour offsets, high elevation), both elevation modes, 6 years from 1752 to 2400, 15 dates each -- zero differences.

Full Changelog: hebcal/hebcal-es6@v6.9.1...v6.9.2

Commits
  • 64b1515 perf: take the epoch-millis path out of @​hebcal/noaa
  • 3cf2e28 build: drop non-load-bearing tsconfig options
  • 178b9a5 chore: use explicit .js import extensions in test/ too
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@hebcal/core](https://github.com/hebcal/hebcal-es6) from 6.9.1 to 6.9.2.
- [Release notes](https://github.com/hebcal/hebcal-es6/releases)
- [Commits](hebcal/hebcal-es6@v6.9.1...v6.9.2)

---
updated-dependencies:
- dependency-name: "@hebcal/core"
  dependency-version: 6.9.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 12, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants