@btravstack/amqp-worker 0.3.0 → 0.5.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 +3 -2
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -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 `>=20`.
20
+ `@amqp-contract/worker` itself peers on it). Node `>=22`.
21
21
 
22
22
  ## A worked example
23
23
 
@@ -30,11 +30,12 @@ import { Module } from "@btravstack/di";
30
30
  import { OrderApplicationModule, OrderRepository, Outbox } from "@btravstack/example-order-application";
31
31
  import { OrderPersistenceModule } from "@btravstack/example-order-infrastructure";
32
32
  import { observability } from "@btravstack/observability";
33
+ import { otel } from "@btravstack/observability/otel";
33
34
 
34
35
  // The application module the README's composition imports — the orders
35
36
  // vertical plus its persistence, as an application would compose it.
36
37
  const AppModule = Module("App")({
37
- imports: [OrderApplicationModule, OrderPersistenceModule, observability()],
38
+ imports: [OrderApplicationModule, OrderPersistenceModule, observability(), otel()],
38
39
  exports: [PlaceOrder, OrderRepository, Outbox, Logger],
39
40
  });
40
41
  -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btravstack/amqp-worker",
3
- "version": "0.3.0",
3
+ "version": "0.5.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",
@@ -57,22 +57,22 @@
57
57
  "unthrown": "5.7.0",
58
58
  "vitest": "4.1.11",
59
59
  "zod": "4.4.3",
60
- "@btravstack/config": "0.3.0",
61
- "@btravstack/core": "0.3.0",
60
+ "@btravstack/config": "0.5.0",
61
+ "@btravstack/core": "0.5.0",
62
+ "@btravstack/di": "0.5.0",
62
63
  "@btravstack/internal-test-infra": "0.0.0",
63
- "@btravstack/testing": "0.3.0",
64
- "@btravstack/di": "0.3.0"
64
+ "@btravstack/testing": "0.5.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@amqp-contract/worker": "^3.0.0-beta.6",
68
68
  "@opentelemetry/api": "^1",
69
69
  "unthrown": "^5.0.0",
70
- "@btravstack/config": "^0.3.0",
71
- "@btravstack/core": "^0.3.0",
72
- "@btravstack/di": "^0.3.0"
70
+ "@btravstack/config": "^0.5.0",
71
+ "@btravstack/di": "^0.5.0",
72
+ "@btravstack/core": "^0.5.0"
73
73
  },
74
74
  "engines": {
75
- "node": ">=20"
75
+ "node": ">=22"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsdown src/index.ts --format cjs,esm --dts --clean",