Skip to content

Releases: HangfireIO/Cronos

0.6.1

13 Jun 16:32
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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.

0.4.0

24 Mar 15:04
Compare
Choose a tag to compare

Release Notes

  • AddedCronExpression.Parse supports macros like "@daily".
  • ChangedGetOccurrenceAfter and GetOccurrenceFrom methods merged into GetNextOccurrence.
  • Changed – Made the CronFormatException class serializable in .NET Framework.
  • ChangedGetNextOccurrence(DateTime from) returns occurrence instead of throwing ArgumentException if from is invalid with Kind property set to Local.
  • Changed – Some interval expressions occurred just once when Daylight Saving Time ended. Now if second, minute or hour field contains *, - or / expression is interval and it will be occurred before and after time transition.

0.3.0

21 Mar 06:51
Compare
Choose a tag to compare

This release contains lots of breaking changes!

Release Notes

  • Added - Added support for .NET Framework 4.0.
  • Added - Added groups of methods GetOccurrenceAfter and GetOccurrenceFrom.
  • Removed - Removed GetOccurrence methods.
  • Removed - Removed endTime parameter from GetOccurrence* methods.
  • Changed - Pass DateTime with DateTimeKind.Local to GetOccurrence* methods to calculate occurrence in Local time zone.
  • Changed - CronExpression.Parse throws CronFormatExcpetion if given string has invalid cron format.

0.2.0

14 Mar 13:14
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Release Notes

  • Added - Support .NET Framework 4.5 and .NET Core 1.0.
  • Added - Added CronExpression.Parse(string, CronFormat) overload to use 6 fields cron expressions.
  • Added - Added GetOccurrence overload with DateTime params.
  • Changed - Added breaking changes to public API. See the next section for details.
  • Changed - It's possible to use standard expressions like * * * * * instead of * * ? * *.
  • Changed - Removed dependency of NETStandard.Library.
  • Fixed - GetOccurrence returns DateTimeOffset with given timezone offset.
  • Fixed - Fixed bugs related to handle a transition to Daylight saving time and vice versa.
  • Fixed - Set second field to 0 if 5 fields format is used.
  • Performance – Improve performance of CronExpression.Parse and CronExpression.GetOccurrence overloads.
  • Performance - Added some benchmarks to test performance.

Breaking Changes

  • Renamed Next methods to GetOccurrence.
  • Removed IsMatch method.
  • CronExpression.Parse(string) expect standard format (5 fields) cron expression instead of 6 fields expression.

0.1.0

27 Feb 09:24
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

This is the first public release.