cron 4.3.4 → 4.3.5

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,29 @@
1
+ ## [4.3.5](https://github.com/kelektiv/node-cron/compare/v4.3.4...v4.3.5) (2025-11-30)
2
+
3
+ ### 🐛 Bug Fixes
4
+
5
+ * suppress setTimeout warning with negatives ([#1030](https://github.com/kelektiv/node-cron/issues/1030)) ([74d3b74](https://github.com/kelektiv/node-cron/commit/74d3b74dd42adeb348d6e13dd798d61fb68073a7)), closes [#1000](https://github.com/kelektiv/node-cron/issues/1000)
6
+
7
+ ### ♻️ Chores
8
+
9
+ * **action:** update actions/checkout action to v5.0.1 ([0f3b9f3](https://github.com/kelektiv/node-cron/commit/0f3b9f3c12ea9e2cb8567570551f79d557f53b5f))
10
+ * **action:** update actions/checkout action to v6 ([#1028](https://github.com/kelektiv/node-cron/issues/1028)) ([232f23a](https://github.com/kelektiv/node-cron/commit/232f23adad475b70f8c958b29d47f32eb905fb96))
11
+ * **action:** update actions/create-github-app-token action to v2.2.0 ([1ade9ce](https://github.com/kelektiv/node-cron/commit/1ade9ce4ac91a5703798e1c219c59bf92abfdd81))
12
+ * **action:** update actions/setup-node action to v6 ([#1017](https://github.com/kelektiv/node-cron/issues/1017)) ([288cf0d](https://github.com/kelektiv/node-cron/commit/288cf0d83f546b86d5a7bd804a8e88182a6f38cd))
13
+ * **action:** update actions/upload-artifact action to v5 ([#1018](https://github.com/kelektiv/node-cron/issues/1018)) ([7091186](https://github.com/kelektiv/node-cron/commit/709118655aab2d222f50f3a9aff36bc50e0742fa))
14
+ * **action:** update github/codeql-action action to v3.31.2 ([8c5c4db](https://github.com/kelektiv/node-cron/commit/8c5c4db54cc2221181f839c849766dbf54a886db))
15
+ * **action:** update github/codeql-action action to v3.31.5 ([c6516f1](https://github.com/kelektiv/node-cron/commit/c6516f1cbfa8c0d3e453f5d77b14ac02faabc59a))
16
+ * **action:** update github/codeql-action action to v4 ([#1014](https://github.com/kelektiv/node-cron/issues/1014)) ([258ee3b](https://github.com/kelektiv/node-cron/commit/258ee3b0502042720fef103f864e7ffea34783ac))
17
+ * **action:** update step-security/harden-runner action to v2.13.2 ([2f44428](https://github.com/kelektiv/node-cron/commit/2f44428f3aec7829a049bb11cbbb2ed346fdf579))
18
+ * **deps:** update dependency [@eslint](https://github.com/eslint)/js to v9.39.1 ([319462a](https://github.com/kelektiv/node-cron/commit/319462a0f972c3b1c15aa62c4b4bbfcdf7cfe251))
19
+ * **deps:** update dependency [@semantic-release](https://github.com/semantic-release)/github to v12.0.1 ([dfa3411](https://github.com/kelektiv/node-cron/commit/dfa341118e126dbe2e2f7be36b81d9a434cc9608))
20
+ * **deps:** update dependency [@swc](https://github.com/swc)/core to v1.15.0 ([7aa02a2](https://github.com/kelektiv/node-cron/commit/7aa02a2e5996902ecbe9ed69c047cf0093cbea71))
21
+ * **deps:** update dependency [@swc](https://github.com/swc)/core to v1.15.3 ([af87e4d](https://github.com/kelektiv/node-cron/commit/af87e4d391315d72ddddaddac96e43c0eef1936e))
22
+ * **deps:** update dependency [@types](https://github.com/types)/node to v22.19.0 ([67701aa](https://github.com/kelektiv/node-cron/commit/67701aa2de16a78927ed788c07158e0b2d34fe46))
23
+ * **deps:** update dependency [@types](https://github.com/types)/node to v22.19.1 ([2c0d2bb](https://github.com/kelektiv/node-cron/commit/2c0d2bb069847f00ab0246499ea7e21fe34eed6f))
24
+ * **deps:** update dependency [@types](https://github.com/types)/sinon to v21 ([#1029](https://github.com/kelektiv/node-cron/issues/1029)) ([028b8b7](https://github.com/kelektiv/node-cron/commit/028b8b737c1a03c4baba4ebb325e04221adf686c))
25
+ * **deps:** update semantic-release related packages ([e29b122](https://github.com/kelektiv/node-cron/commit/e29b122f0c220b654bdfeeccf6a3408144efd145))
26
+
1
27
  ## [4.3.4](https://github.com/kelektiv/node-cron/compare/v4.3.3...v4.3.4) (2025-11-06)
2
28
 
3
29
  ### 🐛 Bug Fixes
package/dist/job.js CHANGED
@@ -165,7 +165,7 @@ class CronJob {
165
165
  let startTime;
166
166
  const setCronTimeout = (t) => {
167
167
  startTime = Date.now();
168
- this._timeout = setTimeout(callbackWrapper, t);
168
+ this._timeout = setTimeout(callbackWrapper, Math.max(t, 1));
169
169
  if (this.unrefTimeout && typeof this._timeout.unref === 'function') {
170
170
  this._timeout.unref();
171
171
  }
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.3.4",
4
+ "version": "4.3.5",
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"
@@ -29,21 +29,21 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@commitlint/cli": "20.1.0",
32
- "@eslint/js": "9.38.0",
32
+ "@eslint/js": "9.39.1",
33
33
  "@fast-check/jest": "2.1.1",
34
34
  "@insurgent/commitlint-config": "20.0.0",
35
35
  "@insurgent/conventional-changelog-preset": "10.0.0",
36
36
  "@semantic-release/changelog": "6.0.3",
37
37
  "@semantic-release/commit-analyzer": "13.0.1",
38
38
  "@semantic-release/git": "10.0.1",
39
- "@semantic-release/github": "12.0.0",
40
- "@semantic-release/npm": "13.1.1",
39
+ "@semantic-release/github": "12.0.2",
40
+ "@semantic-release/npm": "13.1.2",
41
41
  "@semantic-release/release-notes-generator": "14.1.0",
42
- "@swc/core": "1.13.20",
42
+ "@swc/core": "1.15.3",
43
43
  "@swc/jest": "0.2.39",
44
44
  "@types/jest": "30.0.0",
45
- "@types/node": "22.18.12",
46
- "@types/sinon": "17.0.4",
45
+ "@types/node": "22.19.1",
46
+ "@types/sinon": "21.0.0",
47
47
  "cross-env": "7.0.3",
48
48
  "eslint": "8.57.1",
49
49
  "eslint-config-prettier": "9.1.2",
@@ -53,7 +53,7 @@
53
53
  "jest": "30.2.0",
54
54
  "lint-staged": "15.5.2",
55
55
  "prettier": "3.6.2",
56
- "semantic-release": "25.0.1",
56
+ "semantic-release": "25.0.2",
57
57
  "sinon": "21.0.0",
58
58
  "typescript": "5.9.3",
59
59
  "typescript-eslint": "7.18.0"