@btravstack/temporal-worker 0.24.0 → 0.26.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/dist/index.d.mts +3 -3
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnyUnitModule, Refuse, Runtime, RuntimePort, UnitGate, UnitNeedsOf, UnitRecordOf } from "@btravstack/core";
|
|
2
2
|
import { AnyModule, AnyPort, AnyProvider, Exportable, Module, NeedsGate, PortClassOf, PortInstance, Provider, Scope, ServiceOf } from "@btravstack/di";
|
|
3
|
-
import { ConfigInvalid,
|
|
3
|
+
import { ConfigInvalid, EnvReading } from "@btravstack/config";
|
|
4
4
|
import { DeclareActivitiesHandlerOptions, EmptyContext } from "@temporal-contract/worker/activity";
|
|
5
5
|
import { Duration } from "@temporalio/common";
|
|
6
6
|
import { NativeConnection, Worker, WorkflowBundleWithSourceMap } from "@temporalio/worker";
|
|
@@ -220,11 +220,11 @@ type Provided = TemporalRuntime | TemporalConfig | TemporalConnection;
|
|
|
220
220
|
* Each configuration field is pinned on its own: a pinned field reads nothing
|
|
221
221
|
* from the environment, and a field left unpinned still does.
|
|
222
222
|
*/
|
|
223
|
-
export declare const temporal: <C extends ContractDefinition, Unit extends AnyUnitModule | undefined = undefined>(options: TemporalOptions<C, Unit>) => Module<Provided, ConfigInvalid | TemporalUnreachable,
|
|
223
|
+
export declare const temporal: <C extends ContractDefinition, Unit extends AnyUnitModule | undefined = undefined>(options: TemporalOptions<C, Unit>) => Module<Provided, ConfigInvalid | TemporalUnreachable, EnvReading<never, "TEMPORAL_ADDRESS" | "TEMPORAL_NAMESPACE" | "TEMPORAL_GRACE_PERIOD_MS" | "TEMPORAL_FORCE_AFTER_MS"> | Scope | ActivitiesInstanceOf<C> | UnitNeedsOf$1<Unit>>;
|
|
224
224
|
//#endregion
|
|
225
225
|
//#region src/temporal-module.d.ts
|
|
226
226
|
/** The starter's own module, as the sugar adds it to the application's imports. */
|
|
227
|
-
type TemporalStarter<C extends ContractDefinition, Unit extends AnyUnitModule | undefined> = Module<TemporalRuntime | TemporalConfig | TemporalConnection, ConfigInvalid | TemporalUnreachable,
|
|
227
|
+
type TemporalStarter<C extends ContractDefinition, Unit extends AnyUnitModule | undefined> = Module<TemporalRuntime | TemporalConfig | TemporalConnection, ConfigInvalid | TemporalUnreachable, EnvReading<never, "TEMPORAL_ADDRESS" | "TEMPORAL_NAMESPACE" | "TEMPORAL_GRACE_PERIOD_MS" | "TEMPORAL_FORCE_AFTER_MS"> | Scope | ActivitiesInstanceOf<C> | UnitNeedsOf$1<Unit>>;
|
|
228
228
|
/** The application's imports plus the starter — the tuple `Module(name)` is handed. */
|
|
229
229
|
type Imports<I extends readonly AnyModule[], C extends ContractDefinition, Unit extends AnyUnitModule | undefined> = readonly [...I, TemporalStarter<C, Unit>];
|
|
230
230
|
/** The activities provider plus the application's own — the tuple `Module(name)` is handed. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@btravstack/temporal-worker",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.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",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@btravstack/config": "0.
|
|
50
|
-
"@btravstack/core": "0.
|
|
51
|
-
"@btravstack/di": "0.
|
|
49
|
+
"@btravstack/config": "0.26.0",
|
|
50
|
+
"@btravstack/core": "0.26.0",
|
|
51
|
+
"@btravstack/di": "0.26.0",
|
|
52
52
|
"@btravstack/internal-test-infra": "0.0.0",
|
|
53
|
-
"@btravstack/testing": "0.
|
|
53
|
+
"@btravstack/testing": "0.26.0",
|
|
54
54
|
"@btravstack/tsconfig": "0.4.0",
|
|
55
55
|
"@temporal-contract/client": "8.0.0-beta.11",
|
|
56
56
|
"@temporal-contract/contract": "8.0.0-beta.11",
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"zod": "4.6.5"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@btravstack/config": "^0.
|
|
75
|
-
"@btravstack/core": "^0.
|
|
76
|
-
"@btravstack/di": "^0.
|
|
74
|
+
"@btravstack/config": "^0.26.0",
|
|
75
|
+
"@btravstack/core": "^0.26.0",
|
|
76
|
+
"@btravstack/di": "^0.26.0",
|
|
77
77
|
"@temporal-contract/client": "^8.0.0-beta.9",
|
|
78
78
|
"@temporal-contract/contract": "^8.0.0-beta.9",
|
|
79
79
|
"@temporal-contract/worker": "^8.0.0-beta.9",
|