enqiu 0.4.0-beta.0 → 0.4.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/CHANGELOG.md +7 -0
- package/README.md +11 -22
- package/package.json +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project are documented here. The project follows
|
|
|
5
5
|
|
|
6
6
|
## Unreleased
|
|
7
7
|
|
|
8
|
+
## [0.4.0] - 2026-08-30
|
|
9
|
+
|
|
10
|
+
Promoted out of beta. No API or behaviour changes since `0.4.0-beta.0` — the
|
|
11
|
+
beta ran without edge-case reports against the mapping layer, so the `beta`
|
|
12
|
+
dist-tag and the `release:beta` script are gone and `npm install enqiu` now
|
|
13
|
+
resolves here.
|
|
14
|
+
|
|
8
15
|
## [0.4.0-beta.0] - 2026-08-07
|
|
9
16
|
|
|
10
17
|
Rewritten from a blank file. The idea is unchanged — define a job once, call it
|
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Enqiu
|
|
2
2
|
|
|
3
|
-
[](#status-beta)
|
|
3
|
+
[](https://www.npmjs.com/package/enqiu)
|
|
5
4
|
[](https://bullmq.io)
|
|
6
5
|
[](LICENSE)
|
|
7
6
|
|
|
@@ -15,24 +14,17 @@ experience.
|
|
|
15
14
|
[npm](https://www.npmjs.com/package/enqiu) ·
|
|
16
15
|
[Issues](https://github.com/moji2002/enqiu/issues)
|
|
17
16
|
|
|
18
|
-
##
|
|
17
|
+
## Stability
|
|
19
18
|
|
|
20
19
|
> [!NOTE]
|
|
21
|
-
>
|
|
22
|
-
>
|
|
23
|
-
>
|
|
24
|
-
>
|
|
25
|
-
>
|
|
26
|
-
> exact version: it is published under the `beta` dist-tag, so a plain
|
|
27
|
-
> `npm install enqiu` will not install it.
|
|
28
|
-
>
|
|
29
|
-
> The layer in between is new. It is covered at 99% of statements and 91% of
|
|
30
|
-
> branches against a real Redis, and the two parts that need no server — the
|
|
31
|
-
> BullMQ vocabulary mapping and the serialization check — are held to their own
|
|
32
|
-
> thresholds in either mode.
|
|
20
|
+
> The hard parts — storage, retries, scheduling and crash recovery — are
|
|
21
|
+
> BullMQ's, which is mature and widely deployed. Enqiu is the typed layer in
|
|
22
|
+
> between: covered at 99% of statements and 91% of branches against a real
|
|
23
|
+
> Redis, with the two parts that need no server — the BullMQ vocabulary mapping
|
|
24
|
+
> and the serialization check — held to their own thresholds in either mode.
|
|
33
25
|
|
|
34
26
|
```bash
|
|
35
|
-
npm install enqiu
|
|
27
|
+
npm install enqiu bullmq ioredis
|
|
36
28
|
```
|
|
37
29
|
|
|
38
30
|
`bullmq` and `ioredis` are peer dependencies — Enqiu does not pick versions or
|
|
@@ -181,14 +173,11 @@ reasoning behind the workload choices is in
|
|
|
181
173
|
## Releasing
|
|
182
174
|
|
|
183
175
|
```bash
|
|
184
|
-
pnpm run release
|
|
176
|
+
pnpm run release # npm publish
|
|
185
177
|
```
|
|
186
178
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
hand a beta to every `npm install enqiu`. `prepack` runs the full check first,
|
|
190
|
-
and `build` cleans `dist` before compiling, since `tsc` leaves deleted modules
|
|
191
|
-
behind and they would otherwise ship.
|
|
179
|
+
`prepack` runs the full check first, and `build` cleans `dist` before compiling,
|
|
180
|
+
since `tsc` leaves deleted modules behind and they would otherwise ship.
|
|
192
181
|
|
|
193
182
|
## License
|
|
194
183
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "enqiu",
|
|
3
|
-
"version": "0.4.0
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "A type-safe, schema-validated job API on top of BullMQ",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"test:watch": "vitest",
|
|
30
30
|
"check": "pnpm run typecheck && pnpm run typecheck:test && pnpm run test:coverage && pnpm run build",
|
|
31
31
|
"prepack": "pnpm run check",
|
|
32
|
-
"release
|
|
32
|
+
"release": "npm publish"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
|
35
35
|
"queue",
|
|
@@ -41,7 +41,15 @@
|
|
|
41
41
|
"zod",
|
|
42
42
|
"standard-schema",
|
|
43
43
|
"cron",
|
|
44
|
-
"retry"
|
|
44
|
+
"retry",
|
|
45
|
+
"job-queue",
|
|
46
|
+
"task-queue",
|
|
47
|
+
"message-queue",
|
|
48
|
+
"worker",
|
|
49
|
+
"scheduler",
|
|
50
|
+
"nodejs",
|
|
51
|
+
"queues",
|
|
52
|
+
"jobs"
|
|
45
53
|
],
|
|
46
54
|
"author": "Mojtaba Beheshti <it@worksonmy.dev>",
|
|
47
55
|
"license": "MIT",
|
|
@@ -54,8 +62,7 @@
|
|
|
54
62
|
"url": "https://github.com/moji2002/enqiu/issues"
|
|
55
63
|
},
|
|
56
64
|
"publishConfig": {
|
|
57
|
-
"access": "public"
|
|
58
|
-
"tag": "beta"
|
|
65
|
+
"access": "public"
|
|
59
66
|
},
|
|
60
67
|
"engines": {
|
|
61
68
|
"node": ">=20"
|