Skip to content

Commit f6fbd4d

Browse files
authored
Merge branch 'master' into deps
2 parents a15d91c + 95d1800 commit f6fbd4d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ bree.on('worker created', (name) => {
415415

416416
bree.on('worker deleted', (name) => {
417417
console.log('worker deleted', name);
418-
console.log(!bree.worker.has(name));
418+
console.log(!bree.workers.has(name));
419419
});
420420
```
421421

examples/email-queue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"@ladjs/graceful": "^1.0.5",
88
"bree": "^7.1.0",
9-
"cabin": "^9.0.4",
10-
"email-templates": "^8.0.8",
9+
"cabin": "^11.0.0",
10+
"email-templates": "^12.0.2",
1111
"p-map": "4"
1212
}
1313
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bree",
33
"description": "The best job scheduler for Node.js and JavaScript with cron, dates, ms, later, and human-friendly support. Works in Node v12.17.0+, uses worker threads to spawn sandboxed processes, and supports async/await, retries, throttling, concurrency, and cancelable promises (graceful shutdown). Simple, fast, and lightweight. Made for Forward Email and Lad.",
4-
"version": "9.2.4",
4+
"version": "9.2.5",
55
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
66
"bugs": {
77
"url": "https://github.com/breejs/bree/issues",
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@breejs/later": "^4.2.0",
1616
"combine-errors": "^3.0.3",
17-
"cron-validate": "^1.4.5",
17+
"cron-validate": "^1.5.3",
1818
"human-interval": "^2.0.1",
1919
"is-invalid-path": "^0.1.0",
2020
"ms": "^2.1.3",

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ declare namespace Bree {
7171
type Job = {
7272
name: string;
7373
path: string | (() => void);
74-
timeout: number | string | boolean;
74+
timeout: number | string | false;
7575
interval: number | string;
7676
date?: Date;
7777
cron?: string;

src/job-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const fs = require('node:fs');
22
const { join } = require('node:path');
33
const combineErrors = require('combine-errors');
4-
const cron = require('cron-validate');
54
const isInvalidPath = require('is-invalid-path');
65
const {
76
getName,
@@ -10,6 +9,7 @@ const {
109
parseValue,
1110
getJobPath
1211
} = require('./job-utils');
12+
const { default: cron } = require('cron-validate');
1313

1414
const validateReservedJobName = (name) => {
1515
// Don't allow a job to have the `index` file name

0 commit comments

Comments
 (0)