@btravstack/temporal-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.
- package/README.md +3 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ pnpm add @btravstack/temporal-worker @btravstack/core @btravstack/config @btravs
|
|
|
16
16
|
@temporal-contract/worker @temporal-contract/contract
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
All nine are peer dependencies — install them. Node `>=
|
|
19
|
+
All nine are peer dependencies — install them. Node `>=22`.
|
|
20
20
|
|
|
21
21
|
## A worked example
|
|
22
22
|
|
|
@@ -28,6 +28,7 @@ import { PlaceOrder, OrderRepository, Outbox, OrderApplicationModule } from "@bt
|
|
|
28
28
|
import { OrderPersistenceModule } from "@btravstack/example-order-infrastructure";
|
|
29
29
|
import { TenantId } from "@btravstack/example-order-domain";
|
|
30
30
|
import { observability } from "@btravstack/observability";
|
|
31
|
+
import { otel } from "@btravstack/observability/otel";
|
|
31
32
|
import { z } from "zod";
|
|
32
33
|
|
|
33
34
|
// The contract this README's worker serves — one workflow, one activity, one
|
|
@@ -56,7 +57,7 @@ const contract = defineContract({
|
|
|
56
57
|
});
|
|
57
58
|
|
|
58
59
|
const AppModule = Module("App")({
|
|
59
|
-
imports: [OrderApplicationModule, OrderPersistenceModule, observability()],
|
|
60
|
+
imports: [OrderApplicationModule, OrderPersistenceModule, observability(), otel()],
|
|
60
61
|
exports: [PlaceOrder, OrderRepository, Outbox, Logger],
|
|
61
62
|
});
|
|
62
63
|
-->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btravstack/temporal-worker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The Temporal worker runtime for @btravstack/core: one unit per activity attempt, and a drain that honours the kernel's deadline",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graceful-shutdown",
|
|
@@ -60,11 +60,11 @@
|
|
|
60
60
|
"unthrown": "5.7.0",
|
|
61
61
|
"vitest": "4.1.11",
|
|
62
62
|
"zod": "4.4.3",
|
|
63
|
-
"@btravstack/
|
|
64
|
-
"@btravstack/
|
|
65
|
-
"@btravstack/
|
|
66
|
-
"@btravstack/
|
|
67
|
-
"@btravstack/
|
|
63
|
+
"@btravstack/config": "0.5.0",
|
|
64
|
+
"@btravstack/core": "0.5.0",
|
|
65
|
+
"@btravstack/di": "0.5.0",
|
|
66
|
+
"@btravstack/internal-test-infra": "0.0.0",
|
|
67
|
+
"@btravstack/testing": "0.5.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"@temporal-contract/contract": "^8.0.0-beta",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"@temporalio/common": "^1.22.0",
|
|
74
74
|
"@temporalio/worker": "^1.22.0",
|
|
75
75
|
"unthrown": "^5.0.0",
|
|
76
|
-
"@btravstack/config": "^0.
|
|
77
|
-
"@btravstack/
|
|
78
|
-
"@btravstack/
|
|
76
|
+
"@btravstack/config": "^0.5.0",
|
|
77
|
+
"@btravstack/core": "^0.5.0",
|
|
78
|
+
"@btravstack/di": "^0.5.0"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
|
-
"node": ">=
|
|
81
|
+
"node": ">=22"
|
|
82
82
|
},
|
|
83
83
|
"scripts": {
|
|
84
84
|
"build": "tsdown src/index.ts --format cjs,esm --dts --clean",
|