@btravstack/amqp-worker 0.18.0 → 0.19.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 +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @btravstack/amqp-worker
|
|
2
2
|
|
|
3
3
|
> The **consuming half** of AMQP for [`@btravstack/core`](../core) — publishing
|
|
4
|
-
> belongs to `@amqp-contract/client`, which the outbox
|
|
4
|
+
> belongs to `@amqp-contract/client`, which the outbox publisher in
|
|
5
5
|
> `examples/order-amqp-worker` uses directly. An
|
|
6
6
|
> [`amqp-contract`](https://github.com/btravstack/amqp-contract) worker under
|
|
7
7
|
> the kernel's lifecycle — one unit per delivery, and a drain with exactly one
|
|
@@ -17,7 +17,7 @@ pnpm add @btravstack/amqp-worker @btravstack/core @btravstack/config @btravstack
|
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
All six are peer dependencies — install them (`@opentelemetry/api` because
|
|
20
|
-
`@amqp-contract/worker` itself peers on it). Node `>=22`.
|
|
20
|
+
`@amqp-contract/worker` itself peers on it). Node `>=22.22`.
|
|
21
21
|
|
|
22
22
|
## A worked example
|
|
23
23
|
|
package/dist/index.cjs
CHANGED
|
@@ -226,6 +226,7 @@ const amqp = (options) => {
|
|
|
226
226
|
sync: ({ config: bound, handlers, observers }) => ({
|
|
227
227
|
name: "amqp",
|
|
228
228
|
resolves: [],
|
|
229
|
+
units: { message: options.unit?.message },
|
|
229
230
|
start: (host) => createWorker(host, bound, options, handlers, observers)
|
|
230
231
|
})
|
|
231
232
|
})
|
package/dist/index.mjs
CHANGED
|
@@ -225,6 +225,7 @@ const amqp = (options) => {
|
|
|
225
225
|
sync: ({ config: bound, handlers, observers }) => ({
|
|
226
226
|
name: "amqp",
|
|
227
227
|
resolves: [],
|
|
228
|
+
units: { message: options.unit?.message },
|
|
228
229
|
start: (host) => createWorker(host, bound, options, handlers, observers)
|
|
229
230
|
})
|
|
230
231
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btravstack/amqp-worker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "The AMQP starter for @btravstack/core: the handlers as a port, one unit per delivery, and a drain the kernel's deadline releases",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"amqp",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@amqp-contract/contract": "3.0.0-beta.11",
|
|
48
48
|
"@amqp-contract/testing": "3.0.0-beta.11",
|
|
49
49
|
"@amqp-contract/worker": "3.0.0-beta.11",
|
|
50
|
-
"@btravstack/config": "0.
|
|
51
|
-
"@btravstack/core": "0.
|
|
52
|
-
"@btravstack/di": "0.
|
|
50
|
+
"@btravstack/config": "0.19.0",
|
|
51
|
+
"@btravstack/core": "0.19.0",
|
|
52
|
+
"@btravstack/di": "0.19.0",
|
|
53
53
|
"@btravstack/internal-test-infra": "0.0.0",
|
|
54
|
-
"@btravstack/testing": "0.
|
|
54
|
+
"@btravstack/testing": "0.19.0",
|
|
55
55
|
"@btravstack/tsconfig": "0.4.0",
|
|
56
56
|
"@opentelemetry/api": "1.9.1",
|
|
57
57
|
"@types/node": "26.6.4",
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@amqp-contract/worker": "^3.0.0-beta.7",
|
|
69
|
-
"@btravstack/config": "^0.
|
|
70
|
-
"@btravstack/core": "^0.
|
|
71
|
-
"@btravstack/di": "^0.
|
|
69
|
+
"@btravstack/config": "^0.19.0",
|
|
70
|
+
"@btravstack/core": "^0.19.0",
|
|
71
|
+
"@btravstack/di": "^0.19.0",
|
|
72
72
|
"@opentelemetry/api": "^1",
|
|
73
|
-
"unthrown": "^5.
|
|
73
|
+
"unthrown": "^5.7.0"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
|
-
"node": ">=22"
|
|
76
|
+
"node": ">=22.22"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"build": "tsdown src/index.ts --format cjs,esm --dts --clean",
|