@nest-native/jobs 0.2.0 → 0.3.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.
- package/README.md +20 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -32,6 +32,26 @@ npm install @nest-native/jobs
|
|
|
32
32
|
npm install drizzle-orm @nestjs-cls/transactional better-sqlite3 # or pg / mysql2
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
### Compatibility
|
|
36
|
+
|
|
37
|
+
| Peer | Supported range | Notes |
|
|
38
|
+
| --- | --- | --- |
|
|
39
|
+
| Node.js | `>=22` (`>=22.12` with NestJS 12 — see the note below the table) | `engines` is `>=22`; the 12 end of the NestJS range raises the floor, the 11 end does not |
|
|
40
|
+
| `@nestjs/common`, `@nestjs/core` | `^11.0.0 \|\| ^12.0.0` | 12 is ESM-only; tested by a dedicated CI leg |
|
|
41
|
+
| `@nestjs-cls/transactional` | `^3.0.0` | on NestJS 12 you need `>=3.3.0` (with `nestjs-cls >=6.3.0`) — earlier minors declare `@nestjs/core >= 10 < 12` |
|
|
42
|
+
| `drizzle-orm` | `^0.44.0 \|\| ^0.45.0` | |
|
|
43
|
+
| `better-sqlite3` | `^11.0.0 \|\| ^12.0.0 \|\| ^13.0.0` | optional; 13 requires Node `>=22` |
|
|
44
|
+
| `pg` | `^8.0.0` | optional |
|
|
45
|
+
| `mysql2` | `^3.0.0` | optional |
|
|
46
|
+
|
|
47
|
+
The Node.js floor depends on which end of the NestJS range you are on. NestJS
|
|
48
|
+
11 runs on any Node.js `>=22`. NestJS 12 is ESM-only; a CommonJS app — the
|
|
49
|
+
usual NestJS build, and this package itself — loads it through Node's
|
|
50
|
+
`require(esm)`, which is behind a flag before Node.js 22.12.0, so NestJS 12
|
|
51
|
+
needs Node.js `>=22.12`. `engines` stays `>=22` because the 11 end does not
|
|
52
|
+
need more; Node 22.0–22.11 satisfies it and still cannot load NestJS 12. CI's
|
|
53
|
+
NestJS 12 leg runs on a current 22.x.
|
|
54
|
+
|
|
35
55
|
## Entry points
|
|
36
56
|
|
|
37
57
|
| Import | Contents |
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nest-native/jobs",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Background jobs for NestJS without Redis
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Background jobs for NestJS without Redis \u2014 a Drizzle-backed job queue (SQLite, Postgres + MySQL) with transactional enqueue, retries, delayed and unique jobs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nestjs",
|
|
7
7
|
"jobs",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
70
|
+
"node": ">=22"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@nestjs-cls/transactional": "^3.0.0",
|
|
82
|
-
"@nestjs/common": "^11.0.0",
|
|
83
|
-
"@nestjs/core": "^11.0.0",
|
|
84
|
-
"better-sqlite3": "^11.0.0 || ^12.0.0",
|
|
82
|
+
"@nestjs/common": "^11.0.0 || ^12.0.0",
|
|
83
|
+
"@nestjs/core": "^11.0.0 || ^12.0.0",
|
|
84
|
+
"better-sqlite3": "^11.0.0 || ^12.0.0 || ^13.0.0",
|
|
85
85
|
"drizzle-orm": "^0.44.0 || ^0.45.0",
|
|
86
86
|
"mysql2": "^3.0.0",
|
|
87
87
|
"pg": "^8.0.0",
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@nestjs/common": "^11.1.
|
|
104
|
-
"@nestjs/core": "^11.1.
|
|
103
|
+
"@nestjs/common": "^11.1.29",
|
|
104
|
+
"@nestjs/core": "^11.1.29",
|
|
105
105
|
"reflect-metadata": "^0.2.2",
|
|
106
106
|
"rxjs": "^7.8.1",
|
|
107
107
|
"typescript": "^6.0.3"
|