Skip to content

Update dependency SunCalcNet to v3 - autoclosed - #714

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/suncalcnet-3.x
Closed

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/suncalcnet-3.x

Conversation

@renovate

@renovate renovate Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
SunCalcNet 2.0.0 → 3.0.1 age confidence

Release Notes

kostebudinoski/SunCalc-Net (SunCalcNet)

v3.0.1

Compare Source

Patch release: correct moon phase timing. No API changes.

  • Fixed MoonIllumination.Phase and Waxing near new and full moon. The phase was timed by right ascension and could pass 0 / 0.5 up to about 3 hours away from the real new or full moon, enough to put a full moon on the wrong calendar day in some time zones. It is now derived from the Moon–Sun difference in ecliptic longitude, so 0, 0.25, 0.5 and 0.75 match the USNO phase times, and Waxing flips exactly at the full moon. Port of SunCalc JS v2.1.1 (https://github.com/mourner/suncalc/releases/tag/v2.1.1).
    Resolves: mourner/suncalc#190
148 USNO phases, 2000–2050 3.0.0 3.0.1
Mean error 60.5 min 0.55 min
Worst case over 3 h 1.83 min

Fraction and Angle are unchanged. Phase values can shift slightly near the phase boundaries; for example 2013-03-05 00:00 UTC is now 0.75320 instead of 0.75280.

Install: dotnet add package SunCalcNet --version 3.0.1 · NuGet

v3.0.0

Compare Source

3.0.0 is a breaking release. Sun and moon phases now work in the observer's local calendar day and return local times, so you no longer have to convert UTC results or worry about which day you get near midnight. See Migrating to 3.0.

// 2.x: UTC in, UTC out, and late-evening inputs could return tomorrow
SunCalc.GetSunPhases(new DateTime(2013, 3, 5, 0, 0, 0, DateTimeKind.Utc), 50.5, 30.5);   // Sunrise 04:33 (UTC)

// 3.0: any time on the day, results at the same offset
SunCalc.GetSunPhases(new DateTimeOffset(2013, 3, 5, 18, 30, 0, TimeSpan.FromHours(2)), 50.5, 30.5);   // Sunrise 06:33 +02:00
  • Breaking: GetSunPhases and GetMoonPhase now take a DateTimeOffset and return the observer's local calendar day at that date's own UTC offset, whatever its time of day. Every returned time comes back at the same offset, so no manual conversion is needed. Port of SunCalc JS v2.1.0 (https://github.com/mourner/suncalc/releases/tag/v2.1.0) day handling.
    Resolves: mourner/suncalc#189, mourner/suncalc#149, mourner/suncalc#174
  • Breaking: SunPhase.PhaseTime and MoonPhase.Rise, Set, Transit and LowerTransit are now DateTimeOffset. Calls passing a DateTime to GetSunPhases or GetMoonPhase no longer compile (CS0619) and point to the migration guide, so every place that needs a decision is flagged rather than silently changing behaviour.
  • Added TimeZoneInfo overloads of GetSunPhases and GetMoonPhase that handle daylight saving days correctly: they cover the whole 23 or 25 hour local day and report each time at the zone's offset at that moment.
  • Added moon Transit and LowerTransit (highest and lowest point of the moon) to MoonPhase, reported even when the moon is below the horizon. Port of SunCalc JS v2.1.0 (https://github.com/mourner/suncalc/releases/tag/v2.1.0).
    Resolves: mourner/suncalc#72
  • GetMoonPhase now scans the full local day, including evening moonrises west of Greenwich that the UTC-day scan used to miss.
  • GetSunPosition, GetMoonPosition and GetMoonIllumination now take a DateTimeOffset; existing DateTime arguments still compile and give the same results.

Install: dotnet add package SunCalcNet --version 3.0.0 · NuGet

v2.0.1

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Every minute (* * * * *)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/suncalcnet-3.x branch from d508f63 to 9be9b37 Compare October 6, 2026 10:10
@renovate renovate Bot changed the title Update dependency SunCalcNet to v3 Update dependency SunCalcNet to v3 - autoclosed Oct 6, 2026
@renovate renovate Bot closed this Oct 6, 2026
@renovate
renovate Bot deleted the renovate/suncalcnet-3.x branch October 6, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants