@systemfsoftware/effect-daemon-spec 3.0.12 → 3.0.14
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 +15 -0
- package/dist/effect-daemon-spec-untrimmed.d.ts +4 -4
- package/dist/effect-daemon-spec.d.ts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +4 -2
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @systemfsoftware/effect-daemon-spec
|
|
2
2
|
|
|
3
|
+
## 3.0.14
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Unconstrained type holes are defaulted type parameters (`<A = unknown>`) instead of a type argument `unknown`. Calls that omit those arguments are unchanged.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies:
|
|
10
|
+
- @systemfsoftware/effect-cell-types@9.0.0
|
|
11
|
+
|
|
12
|
+
## 3.0.13
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Bump the stryker catalog to pull in the latest patch releases of the stryker-js ecosystem.
|
|
17
|
+
|
|
3
18
|
## 3.0.12
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -255,8 +255,8 @@ export declare const stream: <A, E, R, L extends LockConfig>(opts: CommonOpts<L>
|
|
|
255
255
|
readonly stream: Stream.Stream<A, E, R>;
|
|
256
256
|
}) => Worker_2<E, R, L>;
|
|
257
257
|
|
|
258
|
-
export declare interface StreamLoop<E, R> extends StreamLoopTag {
|
|
259
|
-
readonly stream: Stream.Stream<
|
|
258
|
+
export declare interface StreamLoop<E, R, A = unknown> extends StreamLoopTag {
|
|
259
|
+
readonly stream: Stream.Stream<A, E, R>;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
export declare const StreamLoopTag: {
|
|
@@ -356,9 +356,9 @@ declare const TickPolicyConfig_base: Schema.Class<TickPolicyConfig, Schema.Struc
|
|
|
356
356
|
readonly startLogLevel: Schema.optional<Schema.Literals<readonly ["debug", "info"]>>;
|
|
357
357
|
}>, {}>;
|
|
358
358
|
|
|
359
|
-
export declare interface TickPolicyHooks {
|
|
359
|
+
export declare interface TickPolicyHooks<RetrySchedule = unknown> {
|
|
360
360
|
readonly spanAttributes?: Effect.Effect<Record<string, string | number | boolean>>;
|
|
361
|
-
readonly innerRetry?: Schedule.Schedule<
|
|
361
|
+
readonly innerRetry?: Schedule.Schedule<RetrySchedule>;
|
|
362
362
|
readonly trackDuration?: Metric.Histogram<Duration.Duration>;
|
|
363
363
|
}
|
|
364
364
|
|
|
@@ -255,8 +255,8 @@ export declare const stream: <A, E, R, L extends LockConfig>(opts: CommonOpts<L>
|
|
|
255
255
|
readonly stream: Stream.Stream<A, E, R>;
|
|
256
256
|
}) => Worker_2<E, R, L>;
|
|
257
257
|
|
|
258
|
-
export declare interface StreamLoop<E, R> extends StreamLoopTag {
|
|
259
|
-
readonly stream: Stream.Stream<
|
|
258
|
+
export declare interface StreamLoop<E, R, A = unknown> extends StreamLoopTag {
|
|
259
|
+
readonly stream: Stream.Stream<A, E, R>;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
export declare const StreamLoopTag: {
|
|
@@ -356,9 +356,9 @@ declare const TickPolicyConfig_base: Schema.Class<TickPolicyConfig, Schema.Struc
|
|
|
356
356
|
readonly startLogLevel: Schema.optional<Schema.Literals<readonly ["debug", "info"]>>;
|
|
357
357
|
}>, {}>;
|
|
358
358
|
|
|
359
|
-
export declare interface TickPolicyHooks {
|
|
359
|
+
export declare interface TickPolicyHooks<RetrySchedule = unknown> {
|
|
360
360
|
readonly spanAttributes?: Effect.Effect<Record<string, string | number | boolean>>;
|
|
361
|
-
readonly innerRetry?: Schedule.Schedule<
|
|
361
|
+
readonly innerRetry?: Schedule.Schedule<RetrySchedule>;
|
|
362
362
|
readonly trackDuration?: Metric.Histogram<Duration.Duration>;
|
|
363
363
|
}
|
|
364
364
|
|
package/dist/index.d.ts
CHANGED
|
@@ -178,9 +178,9 @@ export type PollOpts<A, E, R, L extends LockConfig> = CommonOpts<L> & {
|
|
|
178
178
|
readonly prereq: Effect.Effect<Option.Option<A>, E, R>;
|
|
179
179
|
readonly work: (data: A) => Effect.Effect<void, E, R>;
|
|
180
180
|
});
|
|
181
|
-
export interface TickPolicyHooks {
|
|
181
|
+
export interface TickPolicyHooks<RetrySchedule = unknown> {
|
|
182
182
|
readonly spanAttributes?: Effect.Effect<Record<string, string | number | boolean>>;
|
|
183
|
-
readonly innerRetry?: Schedule.Schedule<
|
|
183
|
+
readonly innerRetry?: Schedule.Schedule<RetrySchedule>;
|
|
184
184
|
readonly trackDuration?: Metric.Histogram<Duration.Duration>;
|
|
185
185
|
}
|
|
186
186
|
export interface ReporterPolicyHooks {
|
|
@@ -191,8 +191,8 @@ export interface PollLoop<E, R> extends PollLoopTag {
|
|
|
191
191
|
readonly gate: Effect.Effect<Option.Option<Effect.Effect<void, E, R>>, E, R>;
|
|
192
192
|
readonly interval: Duration.Input;
|
|
193
193
|
}
|
|
194
|
-
export interface StreamLoop<E, R> extends StreamLoopTag {
|
|
195
|
-
readonly stream: Stream.Stream<
|
|
194
|
+
export interface StreamLoop<E, R, A = unknown> extends StreamLoopTag {
|
|
195
|
+
readonly stream: Stream.Stream<A, E, R>;
|
|
196
196
|
}
|
|
197
197
|
export interface SubscriptionLoop<E, R> extends SubscriptionLoopTag {
|
|
198
198
|
readonly acquire: Effect.Effect<void, E, R>;
|
package/dist/index.mjs
CHANGED
|
@@ -534,7 +534,9 @@ const DecideInputBase = Schema.Struct({
|
|
|
534
534
|
var DecideInput = class DecideInput extends Schema.Class("DecideInput")(DecideInputBase, { toCodecArbitrary: () => Schema.link()(DecideInputGenerated, {
|
|
535
535
|
decode: SchemaGetter.transform((generated) => new DecideInput(commandFromGenerated(generated))),
|
|
536
536
|
encode: SchemaGetter.transform(generatedFromCommand)
|
|
537
|
-
}) }) {
|
|
537
|
+
}) }) {
|
|
538
|
+
static [Workflow.InstrumentationBrand] = ["strategy"];
|
|
539
|
+
};
|
|
538
540
|
//#endregion
|
|
539
541
|
//#region src/internal/choose-restart-strategy.workflow.ts
|
|
540
542
|
/**
|
|
@@ -725,7 +727,7 @@ const handleRestart = (ctx, cause, onSignal) => Effect.gen(function* () {
|
|
|
725
727
|
* phase signatures hand the command to the read alone. Restarts are rare, so the allocation is
|
|
726
728
|
* paid only when a supervised child has actually died.
|
|
727
729
|
*/
|
|
728
|
-
const restartDescription = (spec) => Sandwich.
|
|
730
|
+
const restartDescription = (spec) => Sandwich.named("supervisor.restart-description")((intensity) => Effect.andThen(intensity.record, intensity.isExceeded)).decode(Sandwich.pure((intensityExceeded) => Result.succeed({
|
|
729
731
|
strategy: spec.strategy,
|
|
730
732
|
totalChildren: spec.totalChildren,
|
|
731
733
|
failedIndex: spec.failedIndex,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/effect-daemon-spec",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.14",
|
|
5
5
|
"author": "Ryan Lee <drdgvhbh@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@systemfsoftware/effect-cell-types": "^
|
|
40
|
+
"@systemfsoftware/effect-cell-types": "^9.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@effect/vitest": "4.0.0-rc.116",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
|
|
46
46
|
"@systemfsoftware/stryker-ignorer-effect-schema-declarations": "^0.1.0",
|
|
47
47
|
"@systemfsoftware/stryker-ignorer-in-source-vitest-block": "^0.1.0",
|
|
48
|
-
"@systemfsoftware/stryker-js": "^
|
|
49
|
-
"@systemfsoftware/stryker-js-typescript-checker": "^7.0.
|
|
50
|
-
"@systemfsoftware/stryker-js-vitest-runner": "^7.0.
|
|
51
|
-
"@systemfsoftware/stryker-test-contribution": "^3.0.
|
|
48
|
+
"@systemfsoftware/stryker-js": "^10.0.1",
|
|
49
|
+
"@systemfsoftware/stryker-js-typescript-checker": "^7.0.4",
|
|
50
|
+
"@systemfsoftware/stryker-js-vitest-runner": "^7.0.1",
|
|
51
|
+
"@systemfsoftware/stryker-test-contribution": "^3.0.3",
|
|
52
52
|
"@types/node": "^26",
|
|
53
53
|
"@vitest/coverage-v8": "^5",
|
|
54
54
|
"effect": "4.0.0-rc.116",
|
|
@@ -58,15 +58,14 @@
|
|
|
58
58
|
"tsdown": "^0.23.0",
|
|
59
59
|
"typescript": "^7",
|
|
60
60
|
"vitest": "^5",
|
|
61
|
-
"@systemfsoftware/effect-gherkin-spec": "^4.2.
|
|
62
|
-
"@systemfsoftware/
|
|
61
|
+
"@systemfsoftware/effect-gherkin-spec": "^4.2.2",
|
|
62
|
+
"@systemfsoftware/effect-schema-law": "^2.2.1",
|
|
63
|
+
"@systemfsoftware/oxlint-config-recommended": "^1.1.0",
|
|
63
64
|
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
64
|
-
"@systemfsoftware/tsconfig": "^1.3.
|
|
65
|
-
"@systemfsoftware/effect-schema-vite": "^2.2.0",
|
|
65
|
+
"@systemfsoftware/tsconfig": "^1.3.6",
|
|
66
66
|
"@systemfsoftware/tsdown-config": "^0.1.0",
|
|
67
|
-
"@systemfsoftware/
|
|
68
|
-
"@systemfsoftware/
|
|
69
|
-
"@systemfsoftware/all": "^2.1.1"
|
|
67
|
+
"@systemfsoftware/effect-schema-vite": "^2.2.1",
|
|
68
|
+
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
71
|
"effect": "4.0.0-rc.116"
|