@ooneex/cron 0.0.18 → 1.0.1
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 +6 -24
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
# @ooneex/cron
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Cron job scheduler with timezone-aware scheduling, task lifecycle management, and structured logging for recurring background tasks. This package provides an abstract base class for creating scheduled jobs with a human-readable time syntax and seamless integration with the Ooneex framework.
|
|
4
4
|
|
|
5
5
|

|
|
6
|
-

|
|
7
|
-

|
|
8
6
|

|
|
9
7
|

|
|
10
8
|
|
|
@@ -14,38 +12,22 @@ A scheduled task runner and cron job management library for TypeScript applicati
|
|
|
14
12
|
|
|
15
13
|
✅ **Timezone Support** - Run jobs in specific timezones using IANA timezone names
|
|
16
14
|
|
|
17
|
-
✅ **
|
|
15
|
+
✅ **Task Lifecycle** - Programmatically start and stop scheduled jobs with active status tracking
|
|
18
16
|
|
|
19
|
-
✅ **
|
|
17
|
+
✅ **Container Integration** - Register cron jobs with DI container via `@decorator.cron()`
|
|
20
18
|
|
|
21
|
-
✅ **
|
|
19
|
+
✅ **Type-Safe** - Full TypeScript support with typed schedule expressions
|
|
22
20
|
|
|
23
|
-
✅ **
|
|
21
|
+
✅ **Error Handling** - Structured error handling with `CronException`
|
|
24
22
|
|
|
25
|
-
✅ **
|
|
23
|
+
✅ **Crontab Conversion** - Automatic conversion from human-readable syntax to crontab expressions
|
|
26
24
|
|
|
27
25
|
## Installation
|
|
28
26
|
|
|
29
|
-
### Bun
|
|
30
27
|
```bash
|
|
31
28
|
bun add @ooneex/cron
|
|
32
29
|
```
|
|
33
30
|
|
|
34
|
-
### pnpm
|
|
35
|
-
```bash
|
|
36
|
-
pnpm add @ooneex/cron
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Yarn
|
|
40
|
-
```bash
|
|
41
|
-
yarn add @ooneex/cron
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### npm
|
|
45
|
-
```bash
|
|
46
|
-
npm install @ooneex/cron
|
|
47
|
-
```
|
|
48
|
-
|
|
49
31
|
## Usage
|
|
50
32
|
|
|
51
33
|
### Basic Cron Job
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ooneex/cron",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "
|
|
3
|
+
"description": "Cron job scheduler with timezone-aware scheduling, task lifecycle management, and structured logging for recurring background tasks",
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"test": "bun test tests",
|
|
26
26
|
"build": "bunup",
|
|
27
27
|
"lint": "tsgo --noEmit && bunx biome lint",
|
|
28
|
-
"npm:publish": "bun publish --tolerate-republish --access public"
|
|
28
|
+
"npm:publish": "bun publish --tolerate-republish --force --production --access public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ooneex/container": "
|
|
32
|
-
"@ooneex/exception": "
|
|
33
|
-
"@ooneex/http-status": "
|
|
31
|
+
"@ooneex/container": "1.0.1",
|
|
32
|
+
"@ooneex/exception": "1.0.1",
|
|
33
|
+
"@ooneex/http-status": "1.0.1",
|
|
34
34
|
"cron": "^4.4.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@ooneex/country": "
|
|
37
|
+
"@ooneex/country": "1.0.1"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"bun",
|