cron 4.4.1 → 4.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [4.4.2](https://github.com/kelektiv/node-cron/compare/v4.4.1...v4.4.2) (2026-11-23)
2
+
3
+ ### 🐛 Bug Fixes
4
+
5
+ * **time:** stop daily jobs firing twice at southern spring-forward jumps ([#1105](https://github.com/kelektiv/node-cron/issues/1105)) ([2edbb11](https://github.com/kelektiv/node-cron/commit/2edbb118070c0e48540769449e3573942d0c9002)), closes [#1092](https://github.com/kelektiv/node-cron/issues/1092) [#1092](https://github.com/kelektiv/node-cron/issues/1092) [#1099](https://github.com/kelektiv/node-cron/issues/1099) [#1087](https://github.com/kelektiv/node-cron/issues/1087) [#1102](https://github.com/kelektiv/node-cron/issues/1102) [#1103](https://github.com/kelektiv/node-cron/issues/1103)
6
+
1
7
  ## [4.4.1](https://github.com/kelektiv/node-cron/compare/v4.4.0...v4.4.1) (2026-11-20)
2
8
 
3
9
  ### 🐛 Bug Fixes
package/dist/time.js CHANGED
@@ -200,7 +200,11 @@ class CronTime {
200
200
  date = luxon_1.DateTime.fromFormat(`${date.year}-${date.month}-${date.day} ${date.hour}:${date.minute}:${date.second}`, 'yyyy-M-d H:m:s', {
201
201
  zone: timeZone
202
202
  });
203
- const nonDSTReferenceDate = luxon_1.DateTime.fromFormat(`${date.year}-1-1 0:0:0`, 'yyyy-M-d H:m:s', { zone: timeZone });
203
+ const januaryReferenceDate = luxon_1.DateTime.fromFormat(`${date.year}-1-1 0:0:0`, 'yyyy-M-d H:m:s', { zone: timeZone });
204
+ const julyReferenceDate = luxon_1.DateTime.fromFormat(`${date.year}-7-1 0:0:0`, 'yyyy-M-d H:m:s', { zone: timeZone });
205
+ const nonDSTReferenceDate = januaryReferenceDate.offset <= julyReferenceDate.offset
206
+ ? januaryReferenceDate
207
+ : julyReferenceDate;
204
208
  if ((expectedHour !== date.hour || expectedMinute !== date.minute) &&
205
209
  nonDSTReferenceDate.offset !== date.offset) {
206
210
  while (date.minus({ minute: 1 }).offset !== nonDSTReferenceDate.offset) {
@@ -212,12 +216,16 @@ class CronTime {
212
216
  const twoHourTestDate = date.minus({ hour: 2 });
213
217
  if ((hourTestDate.hour === date.hour ||
214
218
  twoHourTestDate.hour === hourTestDate.hour) &&
219
+ (hourTestDate.offset > date.offset ||
220
+ twoHourTestDate.offset > hourTestDate.offset) &&
215
221
  hourTestDate > start) {
216
222
  date = (_c = this._firstMatchBetween(hourTestDate, date)) !== null && _c !== void 0 ? _c : date;
217
223
  }
218
224
  const halfHourTestDate = date.minus({ minute: 30 });
219
225
  if ((halfHourTestDate.minute === date.minute ||
220
226
  hourTestDate.minute === halfHourTestDate.minute) &&
227
+ (halfHourTestDate.offset > date.offset ||
228
+ hourTestDate.offset > halfHourTestDate.offset) &&
221
229
  halfHourTestDate > start) {
222
230
  date = (_d = this._firstMatchBetween(halfHourTestDate, date)) !== null && _d !== void 0 ? _d : date;
223
231
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cron",
3
3
  "description": "Cron jobs for your node",
4
- "version": "4.4.1",
4
+ "version": "4.4.2",
5
5
  "author": "Brandon der Blätter <https://intcreator.com/> (https://github.com/intcreator)",
6
6
  "funding": {
7
7
  "type": "ko-fi",