@systemfsoftware/effect-daemon-spec 3.0.5 → 3.0.6
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 +8 -0
- package/dist/index.mjs +2 -11
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @systemfsoftware/effect-daemon-spec
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Peer Effect requirement advances to 4.0.0-rc.112. No API changes.
|
|
8
|
+
|
|
9
|
+
- The arbitraries derived for several schema filters now construct their valid values directly instead of drawing many samples and discarding them. Filtered schemas such as the worker-call guard, the edit-entry guards, and the restart-cap check generate matching values on the first draws, so property suites that use them finish faster. Every value still satisfies the same filter as before.
|
|
10
|
+
|
|
3
11
|
## 3.0.5
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,6 @@ const DynamicSpecTypeId = Symbol.for("@systemfsoftware/effect-daemon/DynamicSpec
|
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/DaemonHealth.schema.ts
|
|
19
19
|
var DynamicLimitExceeded = class extends Schema.TaggedError()("DynamicLimitExceeded", { limit: Schema.Int.pipe(Schema.check(Schema.isGreaterThanOrEqualTo(0))) }) {};
|
|
20
|
-
Schema.decodeUnknownExit(DynamicLimitExceeded);
|
|
21
20
|
//#endregion
|
|
22
21
|
//#region src/DaemonMetrics.ts
|
|
23
22
|
const supervisorRestartsCounter = Metric.counter("app.daemon.supervisor.restart", { description: "Daemon supervisor restart count" });
|
|
@@ -55,10 +54,10 @@ var ChildPolicyConfig = class extends Schema.Class("ChildPolicyConfig")({
|
|
|
55
54
|
])),
|
|
56
55
|
intensity: Schema.optional(IntensityConfig)
|
|
57
56
|
}) {};
|
|
58
|
-
|
|
57
|
+
Schema.Class("SupervisorPolicyConfig")({
|
|
59
58
|
intensity: Schema.optional(IntensityConfig),
|
|
60
59
|
cooldown: Schema.optional(Schema.Duration)
|
|
61
|
-
})
|
|
60
|
+
});
|
|
62
61
|
var LockPolicyConfig = class extends Schema.Class("LockPolicyConfig")({
|
|
63
62
|
mode: Schema.optional(Schema.Literals([
|
|
64
63
|
"none",
|
|
@@ -76,14 +75,6 @@ const MaxChildren = Schema.Int.pipe(Schema.check(Schema.isBetween({
|
|
|
76
75
|
minimum: 1,
|
|
77
76
|
maximum: MAX_CHILDREN_CEILING
|
|
78
77
|
})), Schema.brand("MaxChildren"));
|
|
79
|
-
Schema.Int.pipe(Schema.check(Schema.makeFilter((children) => children < 1 || children > 1e3, { arbitrary: { candidate: {
|
|
80
|
-
weight: 20,
|
|
81
|
-
make: (fc) => fc.oneof(fc.integer({ max: 0 }), fc.integer({ min: 1001 }))
|
|
82
|
-
} } })));
|
|
83
|
-
Schema.decodeUnknownExit(ChildPolicyConfig);
|
|
84
|
-
Schema.decodeUnknownExit(LockPolicyConfig);
|
|
85
|
-
Schema.decodeUnknownExit(TickPolicyConfig);
|
|
86
|
-
Schema.decodeUnknownExit(SupervisorPolicyConfig);
|
|
87
78
|
//#endregion
|
|
88
79
|
//#region src/DaemonReporterAdapter.ts
|
|
89
80
|
var DaemonReporter = class extends Context.Service()("@systemfsoftware/effect-daemon-spec/DaemonReporterAdapter/DaemonReporter") {};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/effect-daemon-spec",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.6",
|
|
5
5
|
"author": "Ryan Lee <drdgvhbh@gmail.com>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
|
|
9
|
-
"directory": "packages/
|
|
9
|
+
"directory": "packages/effect-daemon-spec"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/
|
|
11
|
+
"homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/effect-daemon-spec#readme",
|
|
12
12
|
"bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
|
|
13
13
|
"description": "Supervision-tree daemons for Effect-TS — leader election, distributed locks, restart-intensity backoff, dynamic children, and health latches as a pure typed core.",
|
|
14
14
|
"keywords": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@systemfsoftware/effect-cell-types": "^6.0.
|
|
40
|
+
"@systemfsoftware/effect-cell-types": "^6.0.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@effect/vitest": "4.0.0-rc.112",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
"tsdown": "^0.22.14",
|
|
53
53
|
"typescript": "^7",
|
|
54
54
|
"vitest": "^4",
|
|
55
|
-
"@systemfsoftware/effect-
|
|
56
|
-
"@systemfsoftware/effect-schema-law": "^2.0.
|
|
57
|
-
"@systemfsoftware/
|
|
58
|
-
"@systemfsoftware/stryker-js-cli": "^5.0.0",
|
|
59
|
-
"@systemfsoftware/stryker-js-typescript-checker": "^4.0.0",
|
|
55
|
+
"@systemfsoftware/effect-schema-vite": "^2.0.3",
|
|
56
|
+
"@systemfsoftware/effect-schema-law": "^2.0.2",
|
|
57
|
+
"@systemfsoftware/oxlint-plugin-cell-vocabulary": "^2.0.1",
|
|
60
58
|
"@systemfsoftware/oxlint-config": "^0.1.0",
|
|
61
|
-
"@systemfsoftware/stryker-js-
|
|
62
|
-
"@systemfsoftware/
|
|
63
|
-
"@systemfsoftware/
|
|
64
|
-
"@systemfsoftware/stryker-
|
|
59
|
+
"@systemfsoftware/stryker-js-cli": "^6.0.0",
|
|
60
|
+
"@systemfsoftware/effect-gherkin-spec": "^4.0.1",
|
|
61
|
+
"@systemfsoftware/stryker-js-vitest-runner": "^4.0.0",
|
|
62
|
+
"@systemfsoftware/stryker-js-typescript-checker": "^5.0.0",
|
|
63
|
+
"@systemfsoftware/stryker-plugins": "^3.0.0",
|
|
64
|
+
"@systemfsoftware/stryker-test-contribution": "^2.0.0",
|
|
65
65
|
"@systemfsoftware/tsconfig": "^1.3.3",
|
|
66
66
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
67
67
|
},
|