cron 3.0.0-beta.9 → 3.1.0
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 +39 -77
- package/dist/index.d.ts +1 -1
- package/dist/job.d.ts +8 -8
- package/dist/job.js +3 -3
- package/dist/time.d.ts +2 -2
- package/dist/types/cron.types.d.ts +12 -6
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,129 +1,102 @@
|
|
|
1
|
-
## [3.
|
|
1
|
+
## [3.1.0](https://github.com/kelektiv/node-cron/compare/v3.0.0...v3.1.0) (2023-10-09)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
### ⚠ Breaking changes
|
|
5
|
-
|
|
6
|
-
* `utcOffset` parameter no longer accepts a string
|
|
7
|
-
* `utcOffset` values between -60 and 60 are no longer
|
|
8
|
-
treated as hours
|
|
9
|
-
* providing both `timeZone` and `utcOffset` parameters
|
|
10
|
-
now throws an error
|
|
11
|
-
|
|
12
4
|
### ✨ Features
|
|
13
5
|
|
|
14
|
-
*
|
|
6
|
+
* improve context, onTick & onComplete typings ([#705](https://github.com/kelektiv/node-cron/issues/705)) ([82c78d7](https://github.com/kelektiv/node-cron/commit/82c78d79594c2d1c1e36baa67ecd76c033a171e4))
|
|
15
7
|
|
|
16
8
|
|
|
17
|
-
###
|
|
18
|
-
|
|
19
|
-
* improve GitHub community standards ([#698](https://github.com/kelektiv/node-cron/issues/698)) ([6bdef77](https://github.com/kelektiv/node-cron/commit/6bdef779b813ee84c03b7c708176410aa24a8cfe))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### 💎 Styles
|
|
23
|
-
|
|
24
|
-
* fix linting issues ([b48c1b2](https://github.com/kelektiv/node-cron/commit/b48c1b299a25bfd3aea418652235e4e6ec92f8cf))
|
|
25
|
-
|
|
26
|
-
## [3.0.0-beta.8](https://github.com/kelektiv/node-cron/compare/v3.0.0-beta.7...v3.0.0-beta.8) (2023-09-26)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
### ✨ Features
|
|
30
|
-
|
|
31
|
-
* expose useful types ([6a1816d](https://github.com/kelektiv/node-cron/commit/6a1816dcefdfa456f1dc8ac744a32e8d879194a6))
|
|
9
|
+
### 🚨 Tests
|
|
32
10
|
|
|
33
|
-
|
|
11
|
+
* check at runtime that all tests call expect ([#706](https://github.com/kelektiv/node-cron/issues/706)) [skip ci] ([cc4e62f](https://github.com/kelektiv/node-cron/commit/cc4e62fd1fd713d4c8a324ba36c0caa8b0c364e9))
|
|
34
12
|
|
|
35
13
|
|
|
36
|
-
###
|
|
14
|
+
### ♻️ Chores
|
|
37
15
|
|
|
38
|
-
* **
|
|
16
|
+
* **deps:** update semantic-release related packages ([#709](https://github.com/kelektiv/node-cron/issues/709)) [skip ci] ([b94a48a](https://github.com/kelektiv/node-cron/commit/b94a48a6b24e20c1f3a9c5109158ff359d048bac))
|
|
17
|
+
* reflect repository label changes ([#708](https://github.com/kelektiv/node-cron/issues/708)) ([85c9e18](https://github.com/kelektiv/node-cron/commit/85c9e18023aea907c10ca77bc92db7a8086f1b6b))
|
|
39
18
|
|
|
40
|
-
## [3.0.0
|
|
19
|
+
## [3.0.0](https://github.com/kelektiv/node-cron/compare/v2.4.4...v3.0.0) (2023-09-30)
|
|
41
20
|
|
|
42
21
|
|
|
43
22
|
### ⚠ Breaking changes
|
|
44
23
|
|
|
24
|
+
* `utcOffset` parameter no longer accepts a string
|
|
25
|
+
* `utcOffset` values between -60 and 60 are no longer
|
|
26
|
+
treated as hours
|
|
27
|
+
* providing both `timeZone` and `utcOffset` parameters
|
|
28
|
+
now throws an error
|
|
45
29
|
* removed `cron.job()` method in favor of `new CronJob(...args)` /
|
|
46
30
|
`CronJob.from(argsObject)`
|
|
47
31
|
* removed `cron.time()` method in favor of `new CronTime()`
|
|
48
32
|
* `CronJob`: constructor no longer accepts an object as its first and
|
|
49
33
|
only params. Use `CronJob.from(argsObject)` instead.
|
|
50
34
|
* `CronJob`: callbacks are now called in the order they were registered
|
|
35
|
+
* return empty array from nextDates when called without argument (#519)
|
|
36
|
+
* UNIX standard alignments (#667)
|
|
51
37
|
|
|
52
|
-
###
|
|
53
|
-
|
|
54
|
-
* migrate to TypeScript ([#694](https://github.com/kelektiv/node-cron/issues/694)) ([97a65e1](https://github.com/kelektiv/node-cron/commit/97a65e109d473cb037e2fb4690c18ac897d5316a))
|
|
55
|
-
|
|
56
|
-
## [3.0.0-beta.5](https://github.com/kelektiv/node-cron/compare/v3.0.0-beta.4...v3.0.0-beta.5) (2023-09-25)
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
### 🐛 Bug Fixes
|
|
60
|
-
|
|
61
|
-
* added fractional offset support ([#685](https://github.com/kelektiv/node-cron/issues/685)) ([ce78478](https://github.com/kelektiv/node-cron/commit/ce784784575b65bd75b8b1a4adda3d8fd42fe1c0))
|
|
38
|
+
### ✨ Features
|
|
62
39
|
|
|
63
|
-
|
|
40
|
+
* expose useful types ([737b344](https://github.com/kelektiv/node-cron/commit/737b34482c47033f9affab4426a3201681f42e97))
|
|
41
|
+
* rework utcOffset parameter ([#699](https://github.com/kelektiv/node-cron/issues/699)) ([671e933](https://github.com/kelektiv/node-cron/commit/671e933d9107b1e4e1166ab681f9e14a8a3a7c16))
|
|
42
|
+
* UNIX standard alignments ([#667](https://github.com/kelektiv/node-cron/issues/667)) ([ff615f1](https://github.com/kelektiv/node-cron/commit/ff615f1592287262b7ebc95312cdac0f9c59d272))
|
|
64
43
|
|
|
65
44
|
|
|
66
45
|
### 🐛 Bug Fixes
|
|
67
46
|
|
|
68
|
-
*
|
|
69
|
-
|
|
70
|
-
## [3.0.0-beta.4](https://github.com/kelektiv/node-cron/compare/v3.0.0-beta.3...v3.0.0-beta.4) (2023-09-10)
|
|
47
|
+
* return empty array from nextDates when called without argument ([#519](https://github.com/kelektiv/node-cron/issues/519)) ([c2891ba](https://github.com/kelektiv/node-cron/commit/c2891bacbc0d88616b69449fc6237f716dfe4faf))
|
|
71
48
|
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
* fix range parsing when upper limit = 0 ([#687](https://github.com/kelektiv/node-cron/issues/687)) ([d96746f](https://github.com/kelektiv/node-cron/commit/d96746f7b8f357e565d1fad48c9f70d3d646da64))
|
|
75
|
-
|
|
50
|
+
### 📦 Code Refactoring
|
|
76
51
|
|
|
77
|
-
|
|
52
|
+
* migrate to TypeScript ([#694](https://github.com/kelektiv/node-cron/issues/694)) ([2d77894](https://github.com/kelektiv/node-cron/commit/2d778942c523f8480051216b4ced46c1d2651153))
|
|
78
53
|
|
|
79
|
-
* add TS types check ([#690](https://github.com/kelektiv/node-cron/issues/690)) ([f046016](https://github.com/kelektiv/node-cron/commit/f046016dc64438c4a12a4615a919b046d3a846de))
|
|
80
54
|
|
|
81
|
-
|
|
55
|
+
### 📚 Documentation
|
|
82
56
|
|
|
83
|
-
|
|
84
|
-
### 🐛 Bug Fixes
|
|
85
|
-
|
|
86
|
-
* fix range parsing when upper limit = 0 ([#687](https://github.com/kelektiv/node-cron/issues/687)) ([d96746f](https://github.com/kelektiv/node-cron/commit/d96746f7b8f357e565d1fad48c9f70d3d646da64))
|
|
57
|
+
* **readme:** remove outdated informations ([#695](https://github.com/kelektiv/node-cron/issues/695)) ([b5ceaf1](https://github.com/kelektiv/node-cron/commit/b5ceaf16913f78ca8d4037594a86df61f116d08e))
|
|
87
58
|
|
|
88
59
|
|
|
89
60
|
### 🚨 Tests
|
|
90
61
|
|
|
91
|
-
*
|
|
62
|
+
* update new test for cron standard alignments ([4a406c1](https://github.com/kelektiv/node-cron/commit/4a406c1f7e7b77ec9c7433c61a4929a341bfe300))
|
|
92
63
|
|
|
93
|
-
## [2.4.2](https://github.com/kelektiv/node-cron/compare/v2.4.1...v2.4.2) (2023-08-26)
|
|
94
64
|
|
|
65
|
+
### ♻️ Chores
|
|
95
66
|
|
|
96
|
-
|
|
67
|
+
* improve GitHub community standards ([#698](https://github.com/kelektiv/node-cron/issues/698)) ([6bdef77](https://github.com/kelektiv/node-cron/commit/6bdef779b813ee84c03b7c708176410aa24a8cfe))
|
|
68
|
+
* update contributors list ([dab3d69](https://github.com/kelektiv/node-cron/commit/dab3d6929ca47e22388a96eb92d43258b39b093a))
|
|
97
69
|
|
|
98
|
-
* **deps:** update dependency luxon to v3.3.0 & add [@types](https://github.com/types)/luxon ([#689](https://github.com/kelektiv/node-cron/issues/689)) ([c95a449](https://github.com/kelektiv/node-cron/commit/c95a449121e440b82d391fc11f8dc148748f93ec)), closes [#688](https://github.com/kelektiv/node-cron/issues/688)
|
|
99
70
|
|
|
100
|
-
|
|
71
|
+
### 💎 Styles
|
|
101
72
|
|
|
73
|
+
* fix linting issues ([47e665f](https://github.com/kelektiv/node-cron/commit/47e665fb176addd0eb258d5aaff85c77e7f4b17f))
|
|
102
74
|
|
|
103
|
-
|
|
75
|
+
## [2.4.4](https://github.com/kelektiv/node-cron/compare/v2.4.3...v2.4.4) (2023-09-25)
|
|
104
76
|
|
|
105
|
-
* return empty array from nextDates when called without argument (#519)
|
|
106
77
|
|
|
107
78
|
### 🐛 Bug Fixes
|
|
108
79
|
|
|
109
|
-
*
|
|
80
|
+
* added fractional offset support ([#685](https://github.com/kelektiv/node-cron/issues/685)) ([ce78478](https://github.com/kelektiv/node-cron/commit/ce784784575b65bd75b8b1a4adda3d8fd42fe1c0))
|
|
110
81
|
|
|
111
|
-
## [
|
|
82
|
+
## [2.4.3](https://github.com/kelektiv/node-cron/compare/v2.4.2...v2.4.3) (2023-08-26)
|
|
112
83
|
|
|
113
84
|
|
|
114
85
|
### 🐛 Bug Fixes
|
|
115
86
|
|
|
116
|
-
*
|
|
87
|
+
* fix range parsing when upper limit = 0 ([#687](https://github.com/kelektiv/node-cron/issues/687)) ([d96746f](https://github.com/kelektiv/node-cron/commit/d96746f7b8f357e565d1fad48c9f70d3d646da64))
|
|
117
88
|
|
|
118
89
|
|
|
119
90
|
### 🚨 Tests
|
|
120
91
|
|
|
121
|
-
*
|
|
92
|
+
* add TS types check ([#690](https://github.com/kelektiv/node-cron/issues/690)) ([f046016](https://github.com/kelektiv/node-cron/commit/f046016dc64438c4a12a4615a919b046d3a846de))
|
|
122
93
|
|
|
94
|
+
## [2.4.2](https://github.com/kelektiv/node-cron/compare/v2.4.1...v2.4.2) (2023-08-26)
|
|
123
95
|
|
|
124
|
-
### ⚙️ Continuous Integrations
|
|
125
96
|
|
|
126
|
-
|
|
97
|
+
### 🐛 Bug Fixes
|
|
98
|
+
|
|
99
|
+
* **deps:** update dependency luxon to v3.3.0 & add [@types](https://github.com/types)/luxon ([#689](https://github.com/kelektiv/node-cron/issues/689)) ([c95a449](https://github.com/kelektiv/node-cron/commit/c95a449121e440b82d391fc11f8dc148748f93ec)), closes [#688](https://github.com/kelektiv/node-cron/issues/688)
|
|
127
100
|
|
|
128
101
|
## [2.4.1](https://github.com/kelektiv/node-cron/compare/v2.4.0...v2.4.1) (2023-08-14)
|
|
129
102
|
|
|
@@ -172,17 +145,6 @@ only params. Use `CronJob.from(argsObject)` instead.
|
|
|
172
145
|
* update default branch name ([#678](https://github.com/kelektiv/node-cron/issues/678)) ([7471e95](https://github.com/kelektiv/node-cron/commit/7471e95cb7433b4f29cfa68da0a652ec8cf630b6))
|
|
173
146
|
* wrap setTime tests in describe and move down ([31989e0](https://github.com/kelektiv/node-cron/commit/31989e06f939bf1e9dbc6c0b6fc62c0a7144b9eb))
|
|
174
147
|
|
|
175
|
-
## [3.0.0-beta.1](https://github.com/kelektiv/node-cron/compare/v2.3.1...v3.0.0-beta.1) (2023-07-23)
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
### ⚠ Breaking changes
|
|
179
|
-
|
|
180
|
-
* UNIX standard alignments (#667)
|
|
181
|
-
|
|
182
|
-
### ✨ Features
|
|
183
|
-
|
|
184
|
-
* UNIX standard alignments ([#667](https://github.com/kelektiv/node-cron/issues/667)) ([96ef954](https://github.com/kelektiv/node-cron/commit/96ef954998f9c109cc2a969296568b1b56bbbd79))
|
|
185
|
-
|
|
186
148
|
## [v2.3.1](https://github.com/kelektiv/node-cron/compare/v2.3.0...v2.3.1) (2023-05-25)
|
|
187
149
|
|
|
188
150
|
### Added
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTime } from 'luxon';
|
|
2
2
|
export { CronJob } from './job';
|
|
3
3
|
export { CronTime } from './time';
|
|
4
|
-
export { CronCommand, CronJobParams, Ranges, TimeUnit } from './types/cron.types';
|
|
4
|
+
export { CronCallback, CronCommand, CronContext, CronJobParams, CronOnCompleteCallback, CronOnCompleteCommand, Ranges, TimeUnit } from './types/cron.types';
|
|
5
5
|
export declare const sendAt: (cronTime: string | Date | DateTime) => DateTime;
|
|
6
6
|
export declare const timeout: (cronTime: string | Date | DateTime) => number;
|
package/dist/job.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CronTime } from './time';
|
|
2
|
-
import { CronJobParams } from './types/cron.types';
|
|
3
|
-
export declare class CronJob {
|
|
2
|
+
import { CronCallback, CronContext, CronJobParams, CronOnCompleteCallback, CronOnCompleteCommand, WithOnComplete } from './types/cron.types';
|
|
3
|
+
export declare class CronJob<OC extends CronOnCompleteCommand<C> | null, C = null> {
|
|
4
4
|
cronTime: CronTime;
|
|
5
5
|
running: boolean;
|
|
6
6
|
unrefTimeout: boolean;
|
|
7
7
|
lastExecution: Date | null;
|
|
8
8
|
runOnce: boolean;
|
|
9
|
-
context:
|
|
10
|
-
onComplete?:
|
|
9
|
+
context: CronContext<C>;
|
|
10
|
+
onComplete?: WithOnComplete<OC> extends true ? CronOnCompleteCallback<C> : undefined;
|
|
11
11
|
private _timeout?;
|
|
12
12
|
private _callbacks;
|
|
13
|
-
constructor(cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: CronJobParams['timeZone'], context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams['unrefTimeout']);
|
|
14
|
-
constructor(cronTime: CronJobParams['cronTime'], onTick: CronJobParams['onTick'], onComplete?: CronJobParams['onComplete'], start?: CronJobParams['start'], timeZone?: null, context?: CronJobParams['context'], runOnInit?: CronJobParams['runOnInit'], utcOffset?: CronJobParams['utcOffset'], unrefTimeout?: CronJobParams['unrefTimeout']);
|
|
15
|
-
static from(params: CronJobParams): CronJob
|
|
13
|
+
constructor(cronTime: CronJobParams<OC, C>['cronTime'], onTick: CronJobParams<OC, C>['onTick'], onComplete?: CronJobParams<OC, C>['onComplete'], start?: CronJobParams<OC, C>['start'], timeZone?: CronJobParams<OC, C>['timeZone'], context?: CronJobParams<OC, C>['context'], runOnInit?: CronJobParams<OC, C>['runOnInit'], utcOffset?: null, unrefTimeout?: CronJobParams<OC, C>['unrefTimeout']);
|
|
14
|
+
constructor(cronTime: CronJobParams<OC, C>['cronTime'], onTick: CronJobParams<OC, C>['onTick'], onComplete?: CronJobParams<OC, C>['onComplete'], start?: CronJobParams<OC, C>['start'], timeZone?: null, context?: CronJobParams<OC, C>['context'], runOnInit?: CronJobParams<OC, C>['runOnInit'], utcOffset?: CronJobParams<OC, C>['utcOffset'], unrefTimeout?: CronJobParams<OC, C>['unrefTimeout']);
|
|
15
|
+
static from<C = null, OC extends CronOnCompleteCommand<C> | null = null>(params: CronJobParams<OC, C>): CronJob<OC, C>;
|
|
16
16
|
private _fnWrap;
|
|
17
|
-
addCallback(callback:
|
|
17
|
+
addCallback(callback: CronCallback<C, WithOnComplete<OC>>): void;
|
|
18
18
|
setTime(time: CronTime): void;
|
|
19
19
|
nextDate(): import("luxon").DateTime;
|
|
20
20
|
fireOnTick(): void;
|
package/dist/job.js
CHANGED
|
@@ -11,7 +11,7 @@ class CronJob {
|
|
|
11
11
|
this.lastExecution = null;
|
|
12
12
|
this.runOnce = false;
|
|
13
13
|
this._callbacks = [];
|
|
14
|
-
this.context = context
|
|
14
|
+
this.context = (context !== null && context !== void 0 ? context : this);
|
|
15
15
|
if (timeZone != null && utcOffset != null) {
|
|
16
16
|
throw new errors_1.ExclusiveParametersError('timeZone', 'utcOffset');
|
|
17
17
|
}
|
|
@@ -63,7 +63,7 @@ class CronJob {
|
|
|
63
63
|
}
|
|
64
64
|
case 'string': {
|
|
65
65
|
const [command, ...args] = cmd.split(' ');
|
|
66
|
-
return child_process_1.spawn.bind(undefined, command !== null && command !== void 0 ? command : cmd, args);
|
|
66
|
+
return child_process_1.spawn.bind(undefined, command !== null && command !== void 0 ? command : cmd, args, {});
|
|
67
67
|
}
|
|
68
68
|
case 'object': {
|
|
69
69
|
return child_process_1.spawn.bind(undefined, cmd.command, (_a = cmd.args) !== null && _a !== void 0 ? _a : [], (_b = cmd.options) !== null && _b !== void 0 ? _b : {});
|
|
@@ -160,7 +160,7 @@ class CronJob {
|
|
|
160
160
|
clearTimeout(this._timeout);
|
|
161
161
|
this.running = false;
|
|
162
162
|
if (typeof this.onComplete === 'function') {
|
|
163
|
-
this.onComplete();
|
|
163
|
+
this.onComplete.call(this.context);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
}
|
package/dist/time.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export declare class CronTime {
|
|
|
11
11
|
private dayOfMonth;
|
|
12
12
|
private month;
|
|
13
13
|
private dayOfWeek;
|
|
14
|
-
constructor(source: CronJobParams['cronTime'], timeZone?: CronJobParams['timeZone'], utcOffset?: null);
|
|
15
|
-
constructor(source: CronJobParams['cronTime'], timeZone?: null, utcOffset?: CronJobParams['utcOffset']);
|
|
14
|
+
constructor(source: CronJobParams<null>['cronTime'], timeZone?: CronJobParams<null>['timeZone'], utcOffset?: null);
|
|
15
|
+
constructor(source: CronJobParams<null>['cronTime'], timeZone?: null, utcOffset?: CronJobParams<null>['utcOffset']);
|
|
16
16
|
private _getWeekDay;
|
|
17
17
|
private _verifyParse;
|
|
18
18
|
sendAt(): DateTime;
|
|
@@ -4,27 +4,33 @@ import { DateTime } from 'luxon';
|
|
|
4
4
|
import { CONSTRAINTS, TIME_UNITS_MAP } from '../constants';
|
|
5
5
|
import { CronJob } from '../job';
|
|
6
6
|
import { IntRange } from './utils';
|
|
7
|
-
interface BaseCronJobParams {
|
|
7
|
+
interface BaseCronJobParams<OC extends CronOnCompleteCommand<C> | null, C = null> {
|
|
8
8
|
cronTime: string | Date | DateTime;
|
|
9
|
-
onTick: CronCommand
|
|
10
|
-
onComplete?:
|
|
9
|
+
onTick: CronCommand<C, WithOnComplete<OC>>;
|
|
10
|
+
onComplete?: OC;
|
|
11
11
|
start?: boolean | null;
|
|
12
|
-
context?:
|
|
12
|
+
context?: C;
|
|
13
13
|
runOnInit?: boolean | null;
|
|
14
14
|
unrefTimeout?: boolean | null;
|
|
15
15
|
}
|
|
16
|
-
export type CronJobParams = BaseCronJobParams & ({
|
|
16
|
+
export type CronJobParams<OC extends CronOnCompleteCommand<C> | null, C = null> = BaseCronJobParams<OC, C> & ({
|
|
17
17
|
timeZone?: string | null;
|
|
18
18
|
utcOffset?: never;
|
|
19
19
|
} | {
|
|
20
20
|
timeZone?: never;
|
|
21
21
|
utcOffset?: number | null;
|
|
22
22
|
});
|
|
23
|
-
export type
|
|
23
|
+
export type CronContext<C> = C extends null ? CronJob<null> : NonNullable<C>;
|
|
24
|
+
export type CronCallback<C, WithOnCompleteBool extends boolean = false> = (this: CronContext<C>, onComplete: WithOnCompleteBool extends true ? OmitThisParameter<CronOnCompleteCallback<C>> : never) => void;
|
|
25
|
+
export type CronOnCompleteCallback<C> = (this: CronContext<C>) => void;
|
|
26
|
+
export type CronSystemCommand = string | {
|
|
24
27
|
command: string;
|
|
25
28
|
args?: readonly string[] | null;
|
|
26
29
|
options?: SpawnOptions | null;
|
|
27
30
|
};
|
|
31
|
+
export type CronCommand<C, WithOnCompleteBool extends boolean = false> = CronCallback<C, WithOnCompleteBool> | CronSystemCommand;
|
|
32
|
+
export type CronOnCompleteCommand<C> = OmitThisParameter<CronOnCompleteCallback<C>> | CronSystemCommand;
|
|
33
|
+
export type WithOnComplete<OC> = OC extends null ? false : true;
|
|
28
34
|
export type TimeUnit = (typeof TIME_UNITS_MAP)[keyof typeof TIME_UNITS_MAP];
|
|
29
35
|
export type TimeUnitField<T extends TimeUnit> = Partial<Record<Ranges[T], boolean>>;
|
|
30
36
|
export interface Ranges {
|
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.
|
|
4
|
+
"version": "3.1.0",
|
|
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"
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"luxon": "~3.3.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@commitlint/cli": "
|
|
31
|
-
"@insurgentlab/commitlint-config": "
|
|
32
|
-
"@insurgentlab/conventional-changelog-preset": "
|
|
33
|
-
"@semantic-release/changelog": "
|
|
34
|
-
"@semantic-release/commit-analyzer": "
|
|
35
|
-
"@semantic-release/git": "
|
|
36
|
-
"@semantic-release/github": "
|
|
37
|
-
"@semantic-release/npm": "
|
|
38
|
-
"@semantic-release/release-notes-generator": "
|
|
30
|
+
"@commitlint/cli": "17.7.2",
|
|
31
|
+
"@insurgentlab/commitlint-config": "18.1.3",
|
|
32
|
+
"@insurgentlab/conventional-changelog-preset": "7.0.0",
|
|
33
|
+
"@semantic-release/changelog": "6.0.3",
|
|
34
|
+
"@semantic-release/commit-analyzer": "11.0.0",
|
|
35
|
+
"@semantic-release/git": "10.0.1",
|
|
36
|
+
"@semantic-release/github": "9.2.1",
|
|
37
|
+
"@semantic-release/npm": "11.0.0",
|
|
38
|
+
"@semantic-release/release-notes-generator": "12.0.0",
|
|
39
39
|
"@types/jest": "^29.5.5",
|
|
40
40
|
"@types/node": "^20.6.0",
|
|
41
41
|
"@types/sinon": "^10.0.16",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"husky": "^8.0.3",
|
|
49
49
|
"jest": "~29.5.x",
|
|
50
50
|
"prettier": "~2.8.x",
|
|
51
|
-
"semantic-release": "
|
|
51
|
+
"semantic-release": "22.0.5",
|
|
52
52
|
"sinon": "^15.0.x",
|
|
53
53
|
"ts-jest": "^29.1.1",
|
|
54
54
|
"typescript": "~5.1.6"
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"license": "MIT",
|
|
66
66
|
"contributors": [
|
|
67
67
|
"Brandon der Blätter <https://interlucid.com/contact/> (https://github.com/intcreator)",
|
|
68
|
+
"Pierre Cavin <me@sherlox.io> (https://github.com/sheerlox)",
|
|
68
69
|
"Romain Beauxis <toots@rastageeks.org> (https://github.com/toots)",
|
|
69
70
|
"James Padolsey <> (https://github.com/jamespadolsey)",
|
|
70
71
|
"Finn Herpich <fh@three-heads.de> (https://github.com/ErrorProne)",
|