@ooneex/cron 0.0.17 → 1.0.0

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.
Files changed (2) hide show
  1. package/README.md +6 -24
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -1,10 +1,8 @@
1
1
  # @ooneex/cron
2
2
 
3
- A scheduled task runner and cron job management library for TypeScript applications with timezone support. This package provides an abstract base class for creating scheduled jobs with a human-readable time syntax and seamless integration with the Ooneex framework.
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
  ![Bun](https://img.shields.io/badge/Bun-Compatible-orange?style=flat-square&logo=bun)
6
- ![Deno](https://img.shields.io/badge/Deno-Compatible-blue?style=flat-square&logo=deno)
7
- ![Node.js](https://img.shields.io/badge/Node.js-Compatible-green?style=flat-square&logo=node.js)
8
6
  ![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue?style=flat-square&logo=typescript)
9
7
  ![MIT License](https://img.shields.io/badge/License-MIT-yellow?style=flat-square)
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
- ✅ **Start/Stop Control** - Programmatically start and stop scheduled jobs
15
+ ✅ **Task Lifecycle** - Programmatically start and stop scheduled jobs with active status tracking
18
16
 
19
- ✅ **Active Status** - Check if a job is currently running
17
+ ✅ **Container Integration** - Register cron jobs with DI container via `@decorator.cron()`
20
18
 
21
- ✅ **Container Integration** - Works seamlessly with dependency injection
19
+ ✅ **Type-Safe** - Full TypeScript support with typed schedule expressions
22
20
 
23
- ✅ **Type-Safe** - Full TypeScript support with proper type definitions
21
+ ✅ **Error Handling** - Structured error handling with `CronException`
24
22
 
25
- ✅ **Error Handling** - Comprehensive error handling with custom exceptions
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": "Scheduled task runner and cron job management with timezone support for Ooneex applications",
4
- "version": "0.0.17",
3
+ "description": "Cron job scheduler with timezone-aware scheduling, task lifecycle management, and structured logging for recurring background tasks",
4
+ "version": "1.0.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -28,13 +28,13 @@
28
28
  "npm:publish": "bun publish --tolerate-republish --access public"
29
29
  },
30
30
  "dependencies": {
31
- "@ooneex/container": "0.0.17",
32
- "@ooneex/exception": "0.0.16",
33
- "@ooneex/http-status": "0.0.16",
31
+ "@ooneex/container": "0.0.19",
32
+ "@ooneex/exception": "0.0.18",
33
+ "@ooneex/http-status": "0.0.18",
34
34
  "cron": "^4.4.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@ooneex/country": "0.0.16"
37
+ "@ooneex/country": "0.0.19"
38
38
  },
39
39
  "keywords": [
40
40
  "bun",