Debian Codegraph @

vendor/dragonmantank/cron-expression/CHANGELOG.md

raw
1 # Change Log
2
3 ## [3.3.3] - 2024-08-10
4
5 ### Added
6 - N/A
7
8 ### Changed
9 - N/A
10
11 ### Fixed
12 - Added fixes for making sure `?` is not passed for both DOM and DOW (#148, thank you https://github.com/LeoVie)
13 - Fixed bug in Next Execution Time by sorting minutes properly (#160, thank you https://github.com/imyip)
14
15 ## [3.3.2] - 2022-09-19
16
17 ### Added
18 - N/A
19
20 ### Changed
21 - Skip some daylight savings time tests for PHP 8.1 daylight savings time weirdness (#146)
22
23 ### Fixed
24 - Changed string interpolations to work better with PHP 8.2 (#142)
25
26 ## [3.3.1] - 2022-01-18
27
28 ### Added
29 - N/A
30
31 ### Changed
32 - N/A
33
34 ### Fixed
35 - Fixed issue when timezones had no transition, which can occur over very short timespans (#134)
36
37 ## [3.3.0] - 2022-01-13
38
39 ### Added
40 - Added ability to register your own expression aliases (#132)
41
42 ### Changed
43 - Changed how Day of Week and Day of Month resolve when one or the other is `*` or `?`
44
45 ### Fixed
46 - PHPStan should no longer error out
47
48 ## [3.2.4] - 2022-01-12
49
50 ### Added
51 - N/A
52
53 ### Changed
54 - Changed how Day of Week increment/decrement to help with DST changes (#131)
55
56 ### Fixed
57 - N/A
58
59 ## [3.2.3] - 2022-01-05
60
61 ### Added
62 - N/A
63
64 ### Changed
65 - Changed how minutes and hours increment/decrement to help with DST changes (#131)
66
67 ### Fixed
68 - N/A
69
70 ## [3.2.2] - 2022-01-05
71
72 ### Added
73 - N/A
74
75 ### Changed
76 - Marked some methods `@internal` (#124)
77
78 ### Fixed
79 - Fixed issue with small ranges and large steps that caused an error with `range()` (#88)
80 - Fixed issue where wraparound logic incorrectly considered high bound on range (#89)
81
82 ## [3.2.1] - 2022-01-04
83
84 ### Added
85 - N/A
86
87 ### Changed
88 - Added PHP 8.1 to testing (#125)
89
90 ### Fixed
91 - Allow better mixture of ranges, steps, and lists (#122)
92 - Fixed return order when multiple dates are requested and inverted (#121)
93 - Better handling over DST (#115)
94 - Fixed PHPStan tests (#130)
95
96 ## [3.2.0] - 2022-01-04
97
98 ### Added
99 - Added alias for `@midnight` (#117)
100
101 ### Changed
102 - Improved testing for instance of field in tests (#105)
103 - Optimization for determining multiple run dates (#75)
104 - `CronExpression` properties changed from private to protected (#106)
105
106 ### Fixed
107 - N/A
108
109 ## [3.1.0] - 2020-11-24
110
111 ### Added
112 - Added `CronExpression::getParts()` method to get parts of the expression as an array (#83)
113
114 ### Changed
115 - Changed to Interfaces for some type hints (#97, #86)
116 - Dropped minimum PHP version to 7.2
117 - Few syntax changes for phpstan compatibility (#93)
118
119 ### Fixed
120 - N/A
121
122 ### Deprecated
123 - Deprecated `CronExpression::factory` in favor of the constructor (#56)
124 - Deprecated `CronExpression::YEAR` as a formality, the functionality is already removed (#87)
125
126 ## [3.0.1] - 2020-10-12
127 ### Added
128 - Added support for PHP 8 (#92)
129 ### Changed
130 - N/A
131 ### Fixed
132 - N/A
133
134 ## [3.0.0] - 2020-03-25
135
136 **MAJOR CHANGE** - In previous versions of this library, setting both a "Day of Month" and a "Day of Week" would be interpreted as an `AND` statement, not an `OR` statement. For example:
137
138 `30 0 1 * 1`
139
140 would evaluate to "Run 30 minutes after the 0 hour when the Day Of Month is 1 AND a Monday" instead of "Run 30 minutes after the 0 hour on Day Of Month 1 OR a Monday", where the latter is more inline with most cron systems. This means that if your cron expression has both of these fields set, you may see your expression fire more often starting with v3.0.0.
141
142 ### Added
143 - Additional docblocks for IDE and documentation
144 - Added phpstan as a development dependency
145 - Added a `Cron\FieldFactoryInterface` to make migrations easier (#38)
146 ### Changed
147 - Changed some DI testing during TravisCI runs
148 - `\Cron\CronExpression::determineTimezone()` now checks for `\DateTimeInterface` instead of just `\DateTime`
149 - Errors with fields now report a more human-understandable error and are 1-based instead of 0-based
150 - Better support for `\DateTimeImmutable` across the library by typehinting for `\DateTimeInterface` now
151 - Literals should now be less case-sensative across the board
152 - Changed logic for when both a Day of Week and a Day of Month are supplied to now be an OR statement, not an AND
153 ### Fixed
154 - Fixed infinite loop when determining last day of week from literals
155 - Fixed bug where single number ranges were allowed (ex: `1/10`)
156 - Fixed nullable FieldFactory in CronExpression where no factory could be supplied
157 - Fixed issue where logic for dropping seconds to 0 could lead to a timezone change
158
159 ## [2.3.1] - 2020-10-12
160 ### Added
161 - Added support for PHP 8 (#92)
162 ### Changed
163 - N/A
164 ### Fixed
165 - N/A
166
167 ## [2.3.0] - 2019-03-30
168 ### Added
169 - Added support for DateTimeImmutable via DateTimeInterface
170 - Added support for PHP 7.3
171 - Started listing projects that use the library
172 ### Changed
173 - Errors should now report a human readable position in the cron expression, instead of starting at 0
174 ### Fixed
175 - N/A
176
177 ## [2.2.0] - 2018-06-05
178 ### Added
179 - Added support for steps larger than field ranges (#6)
180 ## Changed
181 - N/A
182 ### Fixed
183 - Fixed validation for numbers with leading 0s (#12)
184
185 ## [2.1.0] - 2018-04-06
186 ### Added
187 - N/A
188 ### Changed
189 - Upgraded to PHPUnit 6 (#2)
190 ### Fixed
191 - Refactored timezones to deal with some inconsistent behavior (#3)
192 - Allow ranges and lists in same expression (#5)
193 - Fixed regression where literals were not converted to their numerical counterpart (#)
194
195 ## [2.0.0] - 2017-10-12
196 ### Added
197 - N/A
198
199 ### Changed
200 - Dropped support for PHP 5.x
201 - Dropped support for the YEAR field, as it was not part of the cron standard
202
203 ### Fixed
204 - Reworked validation for all the field types
205 - Stepping should now work for 1-indexed fields like Month (#153)
206
207 ## [1.2.0] - 2017-01-22
208 ### Added
209 - Added IDE, CodeSniffer, and StyleCI.IO support
210
211 ### Changed
212 - Switched to PSR-4 Autoloading
213
214 ### Fixed
215 - 0 step expressions are handled better
216 - Fixed `DayOfMonth` validation to be more strict
217 - Typos
218
219 ## [1.1.0] - 2016-01-26
220 ### Added
221 - Support for non-hourly offset timezones
222 - Checks for valid expressions
223
224 ### Changed
225 - Max Iterations no longer hardcoded for `getRunDate()`
226 - Supports DateTimeImmutable for newer PHP verions
227
228 ### Fixed
229 - Fixed looping bug for PHP 7 when determining the last specified weekday of a month
230
231 ## [1.0.3] - 2013-11-23
232 ### Added
233 - Now supports expressions with any number of extra spaces, tabs, or newlines
234
235 ### Changed
236 - Using static instead of self in `CronExpression::factory`
237
238 ### Fixed
239 - Fixes issue [#28](https://github.com/mtdowling/cron-expression/issues/28) where PHP increments of ranges were failing due to PHP casting hyphens to 0
240 - Only set default timezone if the given $currentTime is not a DateTime instance ([#34](https://github.com/mtdowling/cron-expression/issues/34))