Comparing version 5.7.0-dev.4 to 5.7.0
{ | ||
"name": "croner", | ||
"version": "5.7.0-dev.4", | ||
"version": "5.7.0", | ||
"description": "Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.", | ||
@@ -5,0 +5,0 @@ "author": "Hexagon <github.com/hexagon>", |
@@ -12,10 +12,11 @@ <p align="center"> | ||
* Trigger functions in JavaScript using [Cron](https://en.wikipedia.org/wiki/Cron#CRON_expression) syntax. | ||
* Find the first date of the next month, the date of the next Tuesday, etc. | ||
* Pause, resume, or stop execution after a task is scheduled. | ||
* Works in Node.js >=7.6 (both require and import), Deno >=1.16 and Bun >=0.2.2. | ||
* Works in browsers as standalone, UMD or ES-module. | ||
* Schedule using specific target [time zones](docs/EXAMPLES.md#time-zone). | ||
* [Overrun protection](docs/EXAMPLES.md#overrun-protection) with callback | ||
* Target different [time zones](docs/EXAMPLES.md#time-zone). | ||
* Build in [Overrun protection](docs/EXAMPLES.md#overrun-protection) with callback | ||
* Built in [error handling](docs/EXAMPLES.md#error-handling) with callback | ||
* Includes [TypeScript](https://www.typescriptlang.org/) typings. | ||
* Find the first date of the next month, the date of the next Tuesday, etc. | ||
* Pause, resume, or stop execution after a task is scheduled. | ||
* Uses Vixie-cron [pattern](#pattern), with a few additional features such as `L` for last day of month. | ||
@@ -30,3 +31,3 @@ Quick examples: | ||
// Enumeration: What dates do the next 100 sundays occur at? | ||
// Enumeration: What dates do the next 100 sundays occur on? | ||
const nextSundays = Cron('0 0 0 * * 7').enumerate(100); | ||
@@ -59,6 +60,7 @@ console.log(nextSundays); | ||
| Over-run protection | ✓ | | | | | | ||
| Error handling | ✓ | | | | | | ||
| Error handling | ✓ | | | | ✓ | | ||
| Typescript typings | ✓ | ✓ | | | | | ||
| dom-AND-dow | ✓ | | | | | | ||
| Unref timers (optional | ✓ | | | ✓ | | | ||
| dom-OR-dow | ✓ | ✓ | ✓ | ✓ | ✓ | | ||
| dom-AND-dow (optional) | ✓ | | | | | | ||
| Next run | ✓ | ✓ | | ✓ | ✓ | | ||
@@ -83,5 +85,5 @@ | Next n runs | ✓ | ✓ | | ✓ | | | ||
| **Popularity** | | ||
| Downloads/week [^1] | 672K | 30K | 376K | 1574K | 804K | | ||
| Downloads/week [^1] | 576K | 31K | 433K | 2239K | 924K | | ||
| **Quality** | | ||
| Issues [^1] | 0 | 2 | 118 :warning: | 119 :warning: | 135 :warning: | | ||
| Issues [^1] | 0 | 2 | 127 :warning: | 43 :warning: | 139 :warning: | | ||
| Code coverage | 99% | 98% | 100% | 81% | 94% | | ||
@@ -102,7 +104,7 @@ | **Performance** | | ||
> **Note** | ||
> * Table last updated at 2022-10-23 | ||
> * Table last updated at 2022-10-23, issues and downloads updated 2023-02-19 | ||
> * node-cron has no interface to predict when the function will run, so tests cannot be carried out. | ||
> * All tests and benchmarks were carried out using [https://github.com/Hexagon/cron-comparison](https://github.com/Hexagon/cron-comparison) | ||
[^1]: As of 2022-10-08 | ||
[^1]: As of 2023-02-19 | ||
[^2]: Requires support for L-modifier | ||
@@ -161,3 +163,3 @@ [^3]: In dom-AND-dow mode, only supported by croner at the moment. | ||
```javascript | ||
import Cron from "https://deno.land/x/croner@5.6.4/src/croner.js"; | ||
import Cron from "https://deno.land/x/croner@5.7.0/src/croner.js"; | ||
@@ -172,3 +174,3 @@ Cron("* * * * * *", () => { | ||
```typescript | ||
import { Cron } from "https://deno.land/x/croner@5.6.4/src/croner.js"; | ||
import { Cron } from "https://deno.land/x/croner@5.7.0/src/croner.js"; | ||
@@ -311,3 +313,3 @@ const _scheduler : Cron = new Cron("* * * * * *", () => { | ||
## Contributing | ||
## Development | ||
@@ -318,2 +320,4 @@ ### Master branch | ||
This branch contains the latest stable code, released on npm's default channel (`latest`). | ||
### Dev branch | ||
@@ -323,6 +327,4 @@ | ||
A list of fixes and features currently released in dev (but not in master) is available [here](https://github.com/Hexagon/croner/issues?q=is%3Aopen+is%3Aissue+label%3Areleased-in-dev) | ||
This branch contains code currently being tested, and is released at channel `dev` on npm. You can install the latest revision of the development branch by running the command below. | ||
You can install latest revision of the development branch by running the command below. | ||
``` | ||
@@ -332,2 +334,6 @@ npm install croner@dev | ||
A list of fixes and features currently released in the `dev` branch (but not in `master`) is available [here](https://github.com/Hexagon/croner/issues?q=is%3Aopen+is%3Aissue+label%3Areleased-in-dev) | ||
### Contributing | ||
See [Contribution Guide](docs/CONTRIBUTING.md) | ||
@@ -334,0 +340,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
101598
0
337