croner 6.0.6-dev.0 → 6.0.7
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 +9 -7
- package/package.json +7 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<img src="https://cdn.jsdelivr.net/gh/hexagon/croner@master/croner.png" alt="Croner" width="150" height="150"><br>
|
|
3
|
-
Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. All features. Node. Deno. Bun. Browser. <br><br>Try it live on <a href="https://jsfiddle.net/hexag0n/hoa8kwsb/">jsfiddle</a>.<br>
|
|
3
|
+
Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. All features. Node. Deno. Bun. Browser. <br><br>Try it live on <a href="https://jsfiddle.net/hexag0n/hoa8kwsb/">jsfiddle</a>, and check out the full documentation on <a href="https://hexagon.github.io/croner">hexagon.github.io/croner</a>.<br>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
# Croner - Cron for JavaScript and TypeScript
|
|
@@ -13,9 +13,9 @@ Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No d
|
|
|
13
13
|
* Uses Vixie-cron [pattern](#pattern), with additional features such as `L` for last day and weekday of month.
|
|
14
14
|
* Works in Node.js >=7.6 (both require and import), Deno >=1.16 and Bun >=0.2.2.
|
|
15
15
|
* Works in browsers as standalone, UMD or ES-module.
|
|
16
|
-
* Target different [time zones](https://github.
|
|
17
|
-
* Built-in [overrun protection](https://github.
|
|
18
|
-
* Built-in [error handling](https://github.
|
|
16
|
+
* Target different [time zones](https://hexagon.github.io/croner/usage/examples.html#time-zone).
|
|
17
|
+
* Built-in [overrun protection](https://hexagon.github.io/croner/usage/examples.html#overrun-protection)
|
|
18
|
+
* Built-in [error handling](https://hexagon.github.io/croner/usage/examples.html#error-handling)
|
|
19
19
|
* Includes [TypeScript](https://www.typescriptlang.org/) typings.
|
|
20
20
|
* Support for asynchronous functions.
|
|
21
21
|
* Pause, resume, or stop execution after a task is scheduled.
|
|
@@ -44,12 +44,14 @@ Cron('2024-01-23T00:00:00', { timezone: 'Asia/Kolkata' }, () => { console.log('Y
|
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
More [examples](https://github.
|
|
47
|
+
More [examples](https://hexagon.github.io/croner/usage/examples.html)...
|
|
48
48
|
|
|
49
49
|
## Installation
|
|
50
50
|
|
|
51
|
+
Full documentation on installation and usage is found at <https://hexagon.github.io/croner>
|
|
52
|
+
|
|
51
53
|
> **Note**
|
|
52
|
-
> If you are migrating from a different library such as `cron` or `node-cron`, or upgrading from a older version of croner, see [
|
|
54
|
+
> If you are migrating from a different library such as `cron` or `node-cron`, or upgrading from a older version of croner, see the [migration section](https://hexagon.github.io/croner/migration.html) of the manual.
|
|
53
55
|
|
|
54
56
|
Install croner using your favorite package manager or CDN. then include it in you project:
|
|
55
57
|
|
|
@@ -295,7 +297,7 @@ A list of fixes and features currently released in the `dev` branch is available
|
|
|
295
297
|
|
|
296
298
|
### Contributing
|
|
297
299
|
|
|
298
|
-
See [Contribution Guide](https://github.
|
|
300
|
+
See [Contribution Guide](https://hexagon.github.io/croner/contributing.html)
|
|
299
301
|
|
|
300
302
|
... or ...
|
|
301
303
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "croner",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.7",
|
|
4
4
|
"description": "Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.",
|
|
5
5
|
"author": "Hexagon <github.com/hexagon>",
|
|
6
6
|
"homepage": "https://hexagon.github.io/croner",
|
|
@@ -51,8 +51,7 @@
|
|
|
51
51
|
"build:precleanup": "(rm -rf types/* || del /Q types\\*) && (rm -rf dist/* || del /Q dist\\*)",
|
|
52
52
|
"build:dist": "rollup -c ./rollup.config.js",
|
|
53
53
|
"build:minify": "uglifyjs dist/croner.umd.js --source-map -o dist/croner.umd.min.js && uglifyjs dist/croner.js --source-map -o dist/croner.min.js && uglifyjs dist/croner.cjs --source-map -o dist/croner.min.cjs",
|
|
54
|
-
"build:typings": "tsc && tsc --build tsconfig.cjs.json"
|
|
55
|
-
"build:docs": "((rm -rf dist-docs/* || rd /S /Q dist-docs) && jsdoc -c .jsdoc.json) || jsdoc -c .jsdoc.json"
|
|
54
|
+
"build:typings": "tsc && tsc --build tsconfig.cjs.json"
|
|
56
55
|
},
|
|
57
56
|
"type": "module",
|
|
58
57
|
"main": "./dist/croner.min.cjs",
|
|
@@ -74,12 +73,11 @@
|
|
|
74
73
|
}
|
|
75
74
|
},
|
|
76
75
|
"devDependencies": {
|
|
77
|
-
"eslint": "^8.
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"uglify-js": "^3.17.1",
|
|
76
|
+
"eslint": "^8.45.0",
|
|
77
|
+
"minitz": "^4.0.5",
|
|
78
|
+
"rollup": "^3.26.3",
|
|
79
|
+
"typescript": "^5.1.6",
|
|
80
|
+
"uglify-js": "^3.17.4",
|
|
83
81
|
"uvu": "^0.5.6"
|
|
84
82
|
},
|
|
85
83
|
"license": "MIT"
|