Releases: HangfireIO/Cronos
Releases · HangfireIO/Cronos
0.6.1
0.6.0
Release Notes
- Added –
CronExpression
class implementedIEquatable
interface. Thus it's possible to compare two instances ofCronExpression
. They are equal if they define the same date or interval. For example0,1,2,3 * * * *
is equal to0-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. - Added – Source 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
0.5.0
Release Notes
- Changed – Denied passing
DateTime
withDateTimeKind.Local
inGetNextOccurrence
method. Previous behavior could be incorrect when daylight saving time transitions happened. - Fixed –
CronExpression.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
0.4.0
Release Notes
- Added –
CronExpression.Parse
supports macros like "@daily". - Changed –
GetOccurrenceAfter
andGetOccurrenceFrom
methods merged intoGetNextOccurrence
. - Changed – Made the
CronFormatException
class serializable in .NET Framework. - Changed –
GetNextOccurrence(DateTime from)
returns occurrence instead of throwingArgumentException
iffrom
is invalid withKind
property set toLocal
. - 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
This release contains lots of breaking changes!
Release Notes
- Added - Added support for .NET Framework 4.0.
- Added - Added groups of methods
GetOccurrenceAfter
andGetOccurrenceFrom
. - Removed - Removed
GetOccurrence
methods. - Removed - Removed
endTime
parameter fromGetOccurrence*
methods. - Changed - Pass
DateTime
withDateTimeKind.Local
toGetOccurrence*
methods to calculate occurrence in Local time zone. - Changed -
CronExpression.Parse
throwsCronFormatExcpetion
if given string has invalid cron format.
0.2.0
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 withDateTime
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
returnsDateTimeOffset
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
andCronExpression.GetOccurrence
overloads. - Performance - Added some benchmarks to test performance.
Breaking Changes
- Renamed
Next
methods toGetOccurrence
. - Removed
IsMatch
method. CronExpression.Parse(string)
expect standard format (5 fields) cron expression instead of 6 fields expression.