@reventlessdev/reventless-gwt 1.0.0-alpha.290 → 1.0.0-alpha.291
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/package.json +4 -4
- package/src/Decision_GWT.res.mjs +1 -1
- package/src/Flow_GWT.res +9 -3
- package/src/Flow_GWT.res.mjs +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# 1.0.0-alpha.291 (2026-11-19)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **dcb:** a pair's events are read across partitions, its hits fetched in batches ([636b9e7](https://github.com/ReventlessDev/reventless-core/commit/636b9e7cdc85c31fe2aa9ca8909fc439f446536d))
|
|
11
|
+
* **dcb:** a slice can mark its own key on a consumed event to read it across partitions ([bf380ee](https://github.com/ReventlessDev/reventless-core/commit/bf380eeffeed7a1d29ef114c8f8e500a6af306d4))
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# 1.0.0-alpha.290 (2026-11-16)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @reventlessdev/reventless-gwt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/reventless-gwt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.291",
|
|
4
4
|
"description": "Given-When-Then DSLs and test harness for Reventless slice testing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@reventlessdev/rescript-effect": "1.0.0-alpha.3",
|
|
18
18
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.13",
|
|
19
19
|
"@reventlessdev/rescript-node": "2.0.0-alpha.26",
|
|
20
|
-
"@reventlessdev/reventless-core": "3.0.0-alpha.
|
|
21
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.
|
|
22
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
20
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.342",
|
|
21
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.235",
|
|
22
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.204"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"rescript": "12.3.1",
|
package/src/Decision_GWT.res.mjs
CHANGED
|
@@ -534,7 +534,7 @@ function Make(Spec) {
|
|
|
534
534
|
}
|
|
535
535
|
errors.contents = [];
|
|
536
536
|
appendConditionFailure.contents = undefined;
|
|
537
|
-
let query = DcbTag$Reventless.buildQueryFromCommand(consumedEventTypes, Spec.commandSchema, cmd, tagKeysByEventType, crossPartitionTagKeys, payloadTagKeys);
|
|
537
|
+
let query = DcbTag$Reventless.buildQueryFromCommand(consumedEventTypes, Spec.commandSchema, cmd, tagKeysByEventType, crossPartitionTagKeys, payloadTagKeys, undefined);
|
|
538
538
|
let condition = {
|
|
539
539
|
query: query
|
|
540
540
|
};
|
package/src/Flow_GWT.res
CHANGED
|
@@ -245,10 +245,16 @@ let thenBoundaryScopeResolves = async (
|
|
|
245
245
|
// Deploy and boot derive the storage partition from the same slices and refuse
|
|
246
246
|
// the boundary when it fails, so the test fails with their reasons.
|
|
247
247
|
let partitionReasons = {
|
|
248
|
-
let
|
|
249
|
-
|
|
248
|
+
let shapes = slices->Array.map(Reventless.DcbTag.sliceShape)
|
|
249
|
+
let hints = Reventless.DcbValidation.validatePartitionHintsVsInference(~shapes)
|
|
250
|
+
let arms = Reventless.DcbValidation.validateCrossPartitionArms(
|
|
251
|
+
~shapes,
|
|
252
|
+
~inferred=Reventless.DcbScopeInference.infer(shapes),
|
|
250
253
|
)
|
|
251
|
-
let contradictions =
|
|
254
|
+
let contradictions =
|
|
255
|
+
hints.contradictions
|
|
256
|
+
->Array.concat(arms.contradictions)
|
|
257
|
+
->Array.map(e => `${e.sliceName}: ${e.message}`)
|
|
252
258
|
switch Reventless.DcbTag.deriveBoundaryPartition(slices) {
|
|
253
259
|
| _ => contradictions
|
|
254
260
|
| exception JsExn(err) =>
|
package/src/Flow_GWT.res.mjs
CHANGED
|
@@ -141,8 +141,10 @@ function test(name, timeout, body) {
|
|
|
141
141
|
async function thenBoundaryScopeResolves(flowP, name, slices) {
|
|
142
142
|
let s = await flowP;
|
|
143
143
|
let scope = DcbTag$Reventless.deriveEffectiveScope(slices);
|
|
144
|
-
let
|
|
145
|
-
let
|
|
144
|
+
let shapes = slices.map(DcbTag$Reventless.sliceShape);
|
|
145
|
+
let hints = DcbValidation$Reventless.validatePartitionHintsVsInference(shapes);
|
|
146
|
+
let arms = DcbValidation$Reventless.validateCrossPartitionArms(shapes, DcbScopeInference$Reventless.infer(shapes));
|
|
147
|
+
let contradictions = hints.contradictions.concat(arms.contradictions).map(e => e.sliceName + `: ` + e.message);
|
|
146
148
|
let partitionReasons;
|
|
147
149
|
try {
|
|
148
150
|
DcbTag$Reventless.deriveBoundaryPartition(slices);
|
|
@@ -205,7 +207,7 @@ function CommandStep(Spec) {
|
|
|
205
207
|
})), crossPartitionTagKeys);
|
|
206
208
|
let whenCommand = async (flowP, command) => {
|
|
207
209
|
let s = await flowP;
|
|
208
|
-
let query = DcbTag$Reventless.buildQueryFromCommand(consumedEventTypes, Spec.commandSchema, command, tagKeysByEventType, crossPartitionTagKeys, payloadTagKeys);
|
|
210
|
+
let query = DcbTag$Reventless.buildQueryFromCommand(consumedEventTypes, Spec.commandSchema, command, tagKeysByEventType, crossPartitionTagKeys, payloadTagKeys, undefined);
|
|
209
211
|
let history = decodeMatching(s.log, consumedDecoder, query);
|
|
210
212
|
let state = Stdlib_Array.reduce(history, Decision.initialState, Decision.evolve);
|
|
211
213
|
let events = Decision.decide(state, command);
|