Skip to content

Releases: HangfireIO/Cronos

0.8.0

26 Dec 09:59
v0.8.0
2cbca33

Choose a tag to compare

Release Notes

  • Added – Make common cron expressions like CronExpression.Hourly publicly accessible.
  • Added – Add the CronExpression.TryParse method to allow checking cron expressions.
  • ChangedMaxYear constant is now bumped to 2499, so we have more years now (by @FaithfulDev).
  • Changed – Throw an exception when date exceeds the MaxYear value (by @FaithfulDev).
  • Fixed – Consider TimeZoneInfo.BaseUtcOffset is a subject to change between years.
  • Fixed – Don't include seconds in the ToString method's result when they weren't passed.
  • Project – Modernize everything, include testing against the net6.0 target.
  • Project – Project files have been updated to enable SourceLink with embedded symbols.
  • Project – Enable static analysis via the Microsoft.CodeAnalysis.NetAnalyzers package.

0.7.1

26 May 10:18

Choose a tag to compare

Release Notes

  • Fixed – Skipped occurrence in rare cases related to daylight transitions in some time zones on Windows (PR #37 by @aidmsu).

0.7.0

27 Aug 13:03

Choose a tag to compare

Release Notes

The goal of this release is to make the library native to .NET Standard 2.0 by removing the NETStandard.Library dependency – this will heavily reduce the number of installed packages. There are no new features or bug fixes, so it's more like a maintenance release.

  • Added – Explicit netstandard2.0 targeting to not to install any dependencies in .NET Core applications.
  • ChangedNETStandard.Library dependency bumped to version 1.6.1 in netstandard1_0 target.
  • Changed – Removed the use of .NET's internal AdjustmentRule class because it works differently on Linux with .NET Core 2.X and causes issues.

0.6.3

07 Nov 13:29

Choose a tag to compare

Release Notes

Important bugs were fixed in this release!

  • FixedCronExpression.GetOccurrences skip an occurrence when Daylight Saving Time ends (the clocks jump backward).
  • Fixed – Sometimes CronExpression.GetOccurrences goes into infinite loop when Daylight Saving Time ends.

0.6.2

24 Jul 12:04

Choose a tag to compare

Release Notes

  • Changed – Decreased memory usage and improved performance of CronExpression.ToString method.
  • FixedCronExpression.GetNextOccurrence returned wrong result in some cases due to rounding error.

0.6.1

13 Jun 16:32

Choose a tag to compare

Release Notes

  • Added – Implemented ToString method returning cron expression.
  • Changed – A link to the project site were added to NuGet package.
  • Fixed – Exception message when field value is outside the bounds.

0.6.0

28 Apr 15:55

Choose a tag to compare

Release Notes

  • AddedCronExpression class implemented IEquatable interface. Thus it's possible to compare two instances of CronExpression. They are equal if they define the same date or interval. For example 0,1,2,3 * * * * is equal to 0-3 * * * * but * * L * * is not equal to * * LW * *.
  • Added – The GetOccurrences method overloads returning the list of next occurrences within the given date/time range.
  • AddedSource link support. If Enable source link support flag is set in Visual Studio it's possible to debug Cronos using its downloaded sources.
  • Changed – Relicense Cronos under the MIT License.

0.5.1

20 Apr 15:25

Choose a tag to compare

Release notes

Added – Supported using days of weeks names with L special character. For example, * * * * SUNL - the last sunday of a month.

0.5.0

17 Apr 14:32

Choose a tag to compare

Release Notes

  • Changed – Denied passing DateTime with DateTimeKind.Local in GetNextOccurrence method. Previous behavior could be incorrect when daylight saving time transitions happened.
  • FixedCronExpression.Parse became finally case-insensitive. Thus you can use expressions with lowercase special characters: 0 0 lw * *.
  • Performance – Decreased the size of the CronExpression by half.
  • Performance – Made GetNextOccurrence faster by significant simplification of base algorithm.

0.4.1

28 Mar 13:09

Choose a tag to compare

Release Notes

FixedGetNextOccurrence sometimes returns null when W character is used in DayOfMonth field, from param is on Saturday or Sunday, and next occurrence moves from weekend to the nearest weekday: Monday.