Releases: HangfireIO/Cronos
Releases · HangfireIO/Cronos
0.8.0
Release Notes
- Added – Make common cron expressions like
CronExpression.Hourlypublicly accessible. - Added – Add the
CronExpression.TryParsemethod to allow checking cron expressions. - Changed –
MaxYearconstant is now bumped to2499, so we have more years now (by @FaithfulDev). - Changed – Throw an exception when date exceeds the
MaxYearvalue (by @FaithfulDev). - Fixed – Consider
TimeZoneInfo.BaseUtcOffsetis a subject to change between years. - Fixed – Don't include seconds in the
ToStringmethod's result when they weren't passed. - Project – Modernize everything, include testing against the
net6.0target. - 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
0.7.0
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.0targeting to not to install any dependencies in .NET Core applications. - Changed –
NETStandard.Librarydependency bumped to version1.6.1innetstandard1_0target. - Changed – Removed the use of .NET's internal
AdjustmentRuleclass because it works differently on Linux with .NET Core 2.X and causes issues.
0.6.3
Release Notes
Important bugs were fixed in this release!
- Fixed –
CronExpression.GetOccurrencesskip an occurrence when Daylight Saving Time ends (the clocks jump backward). - Fixed – Sometimes
CronExpression.GetOccurrencesgoes into infinite loop when Daylight Saving Time ends.
0.6.2
0.6.1
0.6.0
Release Notes
- Added –
CronExpressionclass implementedIEquatableinterface. 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
GetOccurrencesmethod 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
DateTimewithDateTimeKind.LocalinGetNextOccurrencemethod. Previous behavior could be incorrect when daylight saving time transitions happened. - Fixed –
CronExpression.Parsebecame 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
GetNextOccurrencefaster by significant simplification of base algorithm.