cron 3.3.2-beta.1 → 3.3.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 +3 -2
- package/README.md +0 -5
- package/dist/job.js +1 -14
- package/dist/time.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## [3.3.2
|
|
1
|
+
## [3.3.2](https://github.com/kelektiv/node-cron/compare/v3.3.1...v3.3.2) (2024-12-30)
|
|
2
2
|
|
|
3
3
|
### 🐛 Bug Fixes
|
|
4
4
|
|
|
5
|
-
*
|
|
5
|
+
* fix infinite loop on expressions resolving only inside a DST forward jump ([#938](https://github.com/kelektiv/node-cron/issues/938)) ([efb8df5](https://github.com/kelektiv/node-cron/commit/efb8df53405b4ce2ea2e70be9e4d90c124616a51)), closes [/github.com/kelektiv/node-cron/pull/667/files#diff-c14c2dca8456f15417b39cfbd9758009f8eb4f3a190a415768d6e4ae6ae9dceeL473-L477](https://github.com/kelektiv//github.com/kelektiv/node-cron/pull/667/files/issues/diff-c14c2dca8456f15417b39cfbd9758009f8eb4f3a190a415768d6e4ae6ae9dceeL473-L477) [#919](https://github.com/kelektiv/node-cron/issues/919) [#919](https://github.com/kelektiv/node-cron/issues/919)
|
|
6
6
|
|
|
7
7
|
### ⚙️ Continuous Integrations
|
|
8
8
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
### ♻️ Chores
|
|
13
13
|
|
|
14
|
+
* **deps:** lock file maintenance ([70c3339](https://github.com/kelektiv/node-cron/commit/70c333955612d39b692ab9535b36fe33423eb593))
|
|
14
15
|
* **deps:** lock file maintenance ([afad454](https://github.com/kelektiv/node-cron/commit/afad454e5e4f52e3da54965a0e10540e035c4f58))
|
|
15
16
|
* **deps:** lock file maintenance ([b1dbf69](https://github.com/kelektiv/node-cron/commit/b1dbf69104a58022a638d5b68b59f85089fae7c6))
|
|
16
17
|
* **deps:** pin dependencies ([#915](https://github.com/kelektiv/node-cron/issues/915)) ([dfcbd3c](https://github.com/kelektiv/node-cron/commit/dfcbd3cf7d901415bda5b4929566bd4ad527af62))
|
package/README.md
CHANGED
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
Perfect for tasks like data backups, notifications, and many more!
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
> **⚠️ WARNING**
|
|
10
|
-
>
|
|
11
|
-
> This is a WIP released as beta for testing purposes.
|
|
12
|
-
> For more information, please refer to [issue #805](https://github.com/kelektiv/node-cron/issues/805).
|
|
13
|
-
|
|
14
9
|
# Cron for Node.js
|
|
15
10
|
|
|
16
11
|
[](https://www.npmjs.com/package/cron)
|
package/dist/job.js
CHANGED
|
@@ -179,20 +179,7 @@ class CronJob {
|
|
|
179
179
|
setCronTimeout(timeout);
|
|
180
180
|
}
|
|
181
181
|
else {
|
|
182
|
-
|
|
183
|
-
console.warn(`[CRON DEBUG] Executing job with a delay: ${timeout}ms`);
|
|
184
|
-
this.lastExecution = new Date();
|
|
185
|
-
this.running = false;
|
|
186
|
-
if (!this.runOnce)
|
|
187
|
-
this.start();
|
|
188
|
-
void this.fireOnTick();
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
console.error(`[CRON DEBUG] Stopping job due to delay being higher than 1s: ${timeout}ms`);
|
|
192
|
-
this.stop();
|
|
193
|
-
}
|
|
194
|
-
console.debug(`[CRON DEBUG] Current date: ${new Date().toISOString()}`);
|
|
195
|
-
console.debug(`[CRON DEBUG] Source: ${String(this.cronTime.source)}`);
|
|
182
|
+
this.stop();
|
|
196
183
|
}
|
|
197
184
|
}
|
|
198
185
|
lastDate() {
|
package/dist/time.js
CHANGED
|
@@ -107,7 +107,7 @@ class CronTime {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
getTimeout() {
|
|
110
|
-
return this.sendAt().toMillis() - luxon_1.DateTime.local().toMillis();
|
|
110
|
+
return Math.max(-1, this.sendAt().toMillis() - luxon_1.DateTime.local().toMillis());
|
|
111
111
|
}
|
|
112
112
|
toString() {
|
|
113
113
|
return this.toJSON().join(' ');
|
|
@@ -265,7 +265,7 @@ class CronTime {
|
|
|
265
265
|
.plus({ minute: 1 })
|
|
266
266
|
.set({ second: 0, millisecond: 0 });
|
|
267
267
|
const beforeJumpingPoint = afterJumpingPoint.minus({ second: 1 });
|
|
268
|
-
if (date.month
|
|
268
|
+
if (date.month in this.month &&
|
|
269
269
|
date.day in this.dayOfMonth &&
|
|
270
270
|
this._getWeekDay(date) in this.dayOfWeek) {
|
|
271
271
|
return [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cron",
|
|
3
3
|
"description": "Cron jobs for your node",
|
|
4
|
-
"version": "3.3.2
|
|
4
|
+
"version": "3.3.2",
|
|
5
5
|
"author": "Nick Campbell <nicholas.j.campbell@gmail.com> (https://github.com/ncb000gt)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/kelektiv/node-cron/issues"
|