cron 3.5.0 → 3.5.1-beta.1
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 +27 -0
- package/README.md +5 -0
- package/dist/job.js +14 -1
- package/dist/time.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [3.5.1-beta.1](https://github.com/kelektiv/node-cron/compare/v3.5.0...v3.5.1-beta.1) (2025-02-18)
|
|
2
|
+
|
|
3
|
+
### 🐛 Bug Fixes
|
|
4
|
+
|
|
5
|
+
* attempt to fix [#805](https://github.com/kelektiv/node-cron/issues/805) ([187dbe5](https://github.com/kelektiv/node-cron/commit/187dbe57ada28217b810b231bf57afdfe3a3b394))
|
|
6
|
+
|
|
7
|
+
### ♻️ Chores
|
|
8
|
+
|
|
9
|
+
* **action:** update actions/checkout action to v4.2.2 ([#927](https://github.com/kelektiv/node-cron/issues/927)) ([ff1721e](https://github.com/kelektiv/node-cron/commit/ff1721e95f1a0d7291f3809dd89af8a0956b8f7f))
|
|
10
|
+
* **action:** update actions/setup-node action to v4.1.0 ([#928](https://github.com/kelektiv/node-cron/issues/928)) ([3e27773](https://github.com/kelektiv/node-cron/commit/3e277738b4a5d096f5990602c3d7aaff02f5961c))
|
|
11
|
+
* **action:** update actions/upload-artifact action to v4.6.0 ([#931](https://github.com/kelektiv/node-cron/issues/931)) ([8283000](https://github.com/kelektiv/node-cron/commit/82830003bcb375b55ae86b2038305af69f587d33))
|
|
12
|
+
* **action:** update amannn/action-semantic-pull-request action to v5.5.3 ([#929](https://github.com/kelektiv/node-cron/issues/929)) ([f1851d7](https://github.com/kelektiv/node-cron/commit/f1851d7d3f4780ef7f6834f35999f93cae5961cf))
|
|
13
|
+
* **action:** update github/codeql-action action to v3.28.1 ([#922](https://github.com/kelektiv/node-cron/issues/922)) ([eefd476](https://github.com/kelektiv/node-cron/commit/eefd47698bad8da9c9cad15fba9ecc0925b95f49))
|
|
14
|
+
* **deps:** lock file maintenance ([c3af5fc](https://github.com/kelektiv/node-cron/commit/c3af5fc439b822683377abea4a7e957ee7743c5c))
|
|
15
|
+
* **deps:** lock file maintenance ([d689a1c](https://github.com/kelektiv/node-cron/commit/d689a1c489f9576de49da8ee8489cbaf700be3c3))
|
|
16
|
+
* **renovate:** improve schedules & automerging to reduce noise ([#942](https://github.com/kelektiv/node-cron/issues/942)) ([c253032](https://github.com/kelektiv/node-cron/commit/c253032d520edd09f29e111fa181f4977a7f9d53))
|
|
17
|
+
* **runtime:** dirty Node 16 drop, don't cherry-pick ([d6815f3](https://github.com/kelektiv/node-cron/commit/d6815f3ff94799f8157b8ee8daae1897d3fa0cf2))
|
|
18
|
+
|
|
1
19
|
## [3.5.0](https://github.com/kelektiv/node-cron/compare/v3.4.0...v3.5.0) (2025-01-10)
|
|
2
20
|
|
|
3
21
|
### ✨ Features
|
|
@@ -37,6 +55,12 @@
|
|
|
37
55
|
|
|
38
56
|
* 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)
|
|
39
57
|
|
|
58
|
+
## [3.3.2-beta.1](https://github.com/kelektiv/node-cron/compare/v3.3.1...v3.3.2-beta.1) (2024-12-27)
|
|
59
|
+
|
|
60
|
+
### 🐛 Bug Fixes
|
|
61
|
+
|
|
62
|
+
* attempt to fix [#805](https://github.com/kelektiv/node-cron/issues/805) ([187dbe5](https://github.com/kelektiv/node-cron/commit/187dbe57ada28217b810b231bf57afdfe3a3b394))
|
|
63
|
+
|
|
40
64
|
### ⚙️ Continuous Integrations
|
|
41
65
|
|
|
42
66
|
* **action:** update marocchino/sticky-pull-request-comment action to v2.9.0 ([#930](https://github.com/kelektiv/node-cron/issues/930)) ([1e7bce9](https://github.com/kelektiv/node-cron/commit/1e7bce9d12a774104f39c1d75b37bdb134e4b270))
|
|
@@ -44,7 +68,10 @@
|
|
|
44
68
|
|
|
45
69
|
### ♻️ Chores
|
|
46
70
|
|
|
71
|
+
<<<<<<< HEAD
|
|
72
|
+
=======
|
|
47
73
|
* **deps:** lock file maintenance ([70c3339](https://github.com/kelektiv/node-cron/commit/70c333955612d39b692ab9535b36fe33423eb593))
|
|
74
|
+
>>>>>>> main
|
|
48
75
|
* **deps:** lock file maintenance ([afad454](https://github.com/kelektiv/node-cron/commit/afad454e5e4f52e3da54965a0e10540e035c4f58))
|
|
49
76
|
* **deps:** lock file maintenance ([b1dbf69](https://github.com/kelektiv/node-cron/commit/b1dbf69104a58022a638d5b68b59f85089fae7c6))
|
|
50
77
|
* **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,6 +6,11 @@
|
|
|
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
|
+
|
|
9
14
|
# Cron for Node.js
|
|
10
15
|
|
|
11
16
|
[](https://www.npmjs.com/package/cron)
|
package/dist/job.js
CHANGED
|
@@ -183,7 +183,20 @@ class CronJob {
|
|
|
183
183
|
setCronTimeout(timeout);
|
|
184
184
|
}
|
|
185
185
|
else {
|
|
186
|
-
|
|
186
|
+
if (timeout <= 1000) {
|
|
187
|
+
console.warn(`[CRON DEBUG] Executing job with a delay: ${timeout}ms`);
|
|
188
|
+
this.lastExecution = new Date();
|
|
189
|
+
this.running = false;
|
|
190
|
+
if (!this.runOnce)
|
|
191
|
+
this.start();
|
|
192
|
+
void this.fireOnTick();
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
console.error(`[CRON DEBUG] Stopping job due to delay being higher than 1s: ${timeout}ms`);
|
|
196
|
+
this.stop();
|
|
197
|
+
}
|
|
198
|
+
console.debug(`[CRON DEBUG] Current date: ${new Date().toISOString()}`);
|
|
199
|
+
console.debug(`[CRON DEBUG] Source: ${String(this.cronTime.source)}`);
|
|
187
200
|
}
|
|
188
201
|
}
|
|
189
202
|
lastDate() {
|
package/dist/time.js
CHANGED
|
@@ -77,7 +77,7 @@ class CronTime {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
getTimeout() {
|
|
80
|
-
return
|
|
80
|
+
return this.sendAt().toMillis() - luxon_1.DateTime.local().toMillis();
|
|
81
81
|
}
|
|
82
82
|
toString() {
|
|
83
83
|
return this.toJSON().join(' ');
|
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.5.
|
|
4
|
+
"version": "3.5.1-beta.1",
|
|
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"
|