Skip to content

Commit

Permalink
Fix issue #254 in legacy-node-support branch. Release 7.0.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexagon committed Aug 3, 2024
1 parent 941c9c2 commit 392398c
Show file tree
Hide file tree
Showing 14 changed files with 161 additions and 184 deletions.
2 changes: 1 addition & 1 deletion dist/croner.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/croner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/croner.min.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/croner.min.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/croner.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/croner.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/croner.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/croner.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/croner.umd.min.js.map

Large diffs are not rendered by default.

253 changes: 150 additions & 103 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "croner",
"version": "7.0.7",
"version": "7.0.8",
"description": "Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.",
"author": "Hexagon <github.com/hexagon>",
"homepage": "https://hexagon.github.io/croner",
Expand Down
2 changes: 1 addition & 1 deletion src/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { CronDate } from "./date.js";
*/
export const LAST_OCCURRENCE = 0b100000;
export const ANY_OCCURRENCE = 0b00001 | 0b00010 | 0b00100 | 0b01000 | 0b10000 | LAST_OCCURRENCE;
export const OCCURRENCE_BITMASKS = [0b00001, 0b00010, 0b00100, 0b010000, 0b10000];
export const OCCURRENCE_BITMASKS = [0b00001, 0b00010, 0b00100, 0b01000, 0b10000];

/**
* Create a CronPattern instance from pattern string ('* * * * * *')
Expand Down
35 changes: 0 additions & 35 deletions types/croner.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -142,41 +142,6 @@ declare class Cron {
declare namespace Cron {
export { Cron, scheduledJobs, TimePoint, CatchCallbackFn, ProtectCallbackFn, CronOptions, CronPatternPart, CronIndexOffset };
}
/**
* @callback CatchCallbackFn
* @param {unknown} e
* @param {Cron} job
*/
/**
* @callback ProtectCallbackFn
* @param {Cron} job
*/
/**
* @typedef {Object} CronOptions - Cron scheduler options
* @property {string} [name] - Name of a job
* @property {boolean} [paused] - Job is paused
* @property {boolean} [kill] - Job is about to be killed or killed
* @property {boolean | CatchCallbackFn} [catch] - Continue exection even if a unhandled error is thrown by triggered function
* - If set to a function, execute function on catching the error.
* @property {boolean} [unref] - Abort job instantly if nothing else keeps the event loop running.
* @property {number} [maxRuns] - Maximum nuber of executions
* @property {number} [interval] - Minimum interval between executions, in seconds
* @property {boolean | ProtectCallbackFn} [protect] - Skip current run if job is already running
* @property {string | Date} [startAt] - When to start running
* @property {string | Date} [stopAt] - When to stop running
* @property {string} [timezone] - Time zone in Europe/Stockholm format
* @property {number} [utcOffset] - Offset from UTC in minutes
* @property {boolean} [legacyMode] - Combine day-of-month and day-of-week using true = OR, false = AND. Default is true = OR.
* @property {?} [context] - Used to pass any object to scheduled function
*/
/**
* Internal function that validates options, and sets defaults
* @private
*
* @param {CronOptions} options
* @returns {CronOptions}
*/
declare function CronOptions(options: CronOptions): CronOptions;
/**
* Converts date to CronDate
* @constructor
Expand Down
35 changes: 0 additions & 35 deletions types/croner.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,41 +254,6 @@ export namespace Cron {
* @type {Cron[]}
*/
export const scheduledJobs: Cron[];
/**
* @callback CatchCallbackFn
* @param {unknown} e
* @param {Cron} job
*/
/**
* @callback ProtectCallbackFn
* @param {Cron} job
*/
/**
* @typedef {Object} CronOptions - Cron scheduler options
* @property {string} [name] - Name of a job
* @property {boolean} [paused] - Job is paused
* @property {boolean} [kill] - Job is about to be killed or killed
* @property {boolean | CatchCallbackFn} [catch] - Continue exection even if a unhandled error is thrown by triggered function
* - If set to a function, execute function on catching the error.
* @property {boolean} [unref] - Abort job instantly if nothing else keeps the event loop running.
* @property {number} [maxRuns] - Maximum nuber of executions
* @property {number} [interval] - Minimum interval between executions, in seconds
* @property {boolean | ProtectCallbackFn} [protect] - Skip current run if job is already running
* @property {string | Date} [startAt] - When to start running
* @property {string | Date} [stopAt] - When to stop running
* @property {string} [timezone] - Time zone in Europe/Stockholm format
* @property {number} [utcOffset] - Offset from UTC in minutes
* @property {boolean} [legacyMode] - Combine day-of-month and day-of-week using true = OR, false = AND. Default is true = OR.
* @property {?} [context] - Used to pass any object to scheduled function
*/
/**
* Internal function that validates options, and sets defaults
* @private
*
* @param {CronOptions} options
* @returns {CronOptions}
*/
declare function CronOptions(options: CronOptions): CronOptions;
/**
* Converts date to CronDate
* @constructor
Expand Down

0 comments on commit 392398c

Please sign in to comment.