croner 10.0.2-dev.1 → 10.0.2-dev.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/README.md +3 -0
- package/dist/croner.d.cts +2 -3
- package/dist/croner.d.ts +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -165,6 +165,9 @@ job.name // Optional job name, populated if a name were passed to options
|
|
|
165
165
|
| protect | undefined | boolean\|Function | Enabled over-run protection. Will block new triggers as long as an old trigger is in progress. Pass either `true` or a callback function to enable |
|
|
166
166
|
| alternativeWeekdays | false | boolean | Enable Quartz-style weekday numbering (1=Sunday, 2=Monday, ..., 7=Saturday). When false (default), uses standard cron format (0=Sunday, 1=Monday, ..., 6=Saturday). |
|
|
167
167
|
| allowPast | false | boolean | If true, date-based jobs scheduled in the past will fire immediately. If false, only jobs scheduled within the past second will fire (to handle timing edge cases). |
|
|
168
|
+
| dayOffset | 0 | number | Offset the scheduled date by a number of days. Positive values shift forward, negative values shift backward. For example, `dayOffset: -1` schedules one day before the pattern match. |
|
|
169
|
+
| mode | "auto" | string | Controls how the cron pattern field count is interpreted. Options: `"auto"` (detect automatically), `"5-part"` (minute-level), `"6-part"` (second-level), `"7-part"` (second+year), `"5-or-6-parts"`, `"6-or-7-parts"`. |
|
|
170
|
+
| sloppyRanges | false | boolean | If true, allows non-standard stepping formats for backward compatibility (e.g. `/10`, `5/5`, `30/30`). When false (default), only `*/step` or `min-max/step` formats are allowed. |
|
|
168
171
|
|
|
169
172
|
> **Warning**
|
|
170
173
|
> Unreferencing timers (option `unref`) is only supported by Node.js and Deno.
|
package/dist/croner.d.cts
CHANGED
|
@@ -227,8 +227,6 @@ export interface CronOptions<T = undefined> {
|
|
|
227
227
|
*/
|
|
228
228
|
domAndDow?: boolean;
|
|
229
229
|
/**
|
|
230
|
-
* @deprecated Use domAndDow instead. This option will be removed in a future version.
|
|
231
|
-
* If true, enables legacy mode (OR logic) for compatibility with older cron implementations.
|
|
232
230
|
* Offset the scheduled date by a number of days.
|
|
233
231
|
* Positive values shift the date forward, negative values shift it backward.
|
|
234
232
|
* For example, dayOffset: -1 schedules the job one day before the pattern match.
|
|
@@ -236,7 +234,8 @@ export interface CronOptions<T = undefined> {
|
|
|
236
234
|
*/
|
|
237
235
|
dayOffset?: number;
|
|
238
236
|
/**
|
|
239
|
-
*
|
|
237
|
+
* @deprecated Use domAndDow instead. This option will be removed in a future version.
|
|
238
|
+
* If true, enables legacy mode (OR logic) for compatibility with older cron implementations.
|
|
240
239
|
* @default true
|
|
241
240
|
*/
|
|
242
241
|
legacyMode?: boolean;
|
package/dist/croner.d.ts
CHANGED
|
@@ -227,8 +227,6 @@ export interface CronOptions<T = undefined> {
|
|
|
227
227
|
*/
|
|
228
228
|
domAndDow?: boolean;
|
|
229
229
|
/**
|
|
230
|
-
* @deprecated Use domAndDow instead. This option will be removed in a future version.
|
|
231
|
-
* If true, enables legacy mode (OR logic) for compatibility with older cron implementations.
|
|
232
230
|
* Offset the scheduled date by a number of days.
|
|
233
231
|
* Positive values shift the date forward, negative values shift it backward.
|
|
234
232
|
* For example, dayOffset: -1 schedules the job one day before the pattern match.
|
|
@@ -236,7 +234,8 @@ export interface CronOptions<T = undefined> {
|
|
|
236
234
|
*/
|
|
237
235
|
dayOffset?: number;
|
|
238
236
|
/**
|
|
239
|
-
*
|
|
237
|
+
* @deprecated Use domAndDow instead. This option will be removed in a future version.
|
|
238
|
+
* If true, enables legacy mode (OR logic) for compatibility with older cron implementations.
|
|
240
239
|
* @default true
|
|
241
240
|
*/
|
|
242
241
|
legacyMode?: boolean;
|
package/package.json
CHANGED