@reventlessdev/reventless-gwt 1.0.0-alpha.273 → 1.0.0-alpha.275
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
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
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.275 (2026-11-01)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **core:** a command's outcome, the flow through automations, and each view change are told ([dcaeed2](https://github.com/ReventlessDev/reventless-core/commit/dcaeed2fabe2047a21797b459f2931618474dec3))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# 1.0.0-alpha.274 (2026-10-31)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **gwt:** an aggregate's scenarios can hold a todo, as a slice's can ([4101db4](https://github.com/ReventlessDev/reventless-core/commit/4101db4c501e8c935745a3c7e73170d624750039))
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
# 1.0.0-alpha.273 (2026-10-30)
|
|
7
21
|
|
|
8
22
|
### Features
|
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.275",
|
|
4
4
|
"description": "Given-When-Then DSLs and test harness for Reventless slice testing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"sury": "11.0.0",
|
|
17
|
-
"@reventlessdev/rescript-effect": "1.0.0-alpha.1",
|
|
18
17
|
"@reventlessdev/rescript-jest": "1.0.0-alpha.13",
|
|
19
|
-
"@reventlessdev/rescript-node": "2.0.0-alpha.
|
|
20
|
-
"@reventlessdev/
|
|
21
|
-
"@reventlessdev/reventless-
|
|
22
|
-
"@reventlessdev/reventless-
|
|
18
|
+
"@reventlessdev/rescript-node": "2.0.0-alpha.25",
|
|
19
|
+
"@reventlessdev/rescript-effect": "1.0.0-alpha.1",
|
|
20
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.326",
|
|
21
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.221",
|
|
22
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.192"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"rescript": "12.3.1",
|
package/src/Decision_GWT.res
CHANGED
|
@@ -808,6 +808,7 @@ module type AggregateT = {
|
|
|
808
808
|
module Spec: AggregateSpec
|
|
809
809
|
|
|
810
810
|
let describe: (string, unit => unit) => unit
|
|
811
|
+
let todo: string => unit
|
|
811
812
|
let test: (string, unit => Outcome.outcome) => unit
|
|
812
813
|
|
|
813
814
|
let givenEvents: array<Spec.event> => array<Spec.event>
|
|
@@ -848,6 +849,7 @@ module MakeFromAggregate = (Spec: AggregateSpec, Decision: Decision.T with modul
|
|
|
848
849
|
module Spec = Spec
|
|
849
850
|
|
|
850
851
|
let describe = JestBind.describe
|
|
852
|
+
let todo = JestBind.todo
|
|
851
853
|
let test = (name, body) =>
|
|
852
854
|
JestBind.test(~slice=Spec.name, name, () =>
|
|
853
855
|
ScenarioRecorder.around(~spec=Spec.name, name, body)
|
package/src/Decision_GWT.res.mjs
CHANGED
|
@@ -44,7 +44,7 @@ function Make(Projection) {
|
|
|
44
44
|
let deleteSubState = (store, id, subId, getSubId) => {
|
|
45
45
|
store[id] = Stdlib_Option.getOr(Stdlib_Option.map(store[id], states => states.filter(state => Primitive_object.notequal(getSubId(state), subId))), []);
|
|
46
46
|
};
|
|
47
|
-
let handleActions = (actions, operations) => Projection$ReventlessCore.handleActions(undefined, actions, operations, Projection.subIdConfig);
|
|
47
|
+
let handleActions = (actions, operations) => Projection$ReventlessCore.handleActions(undefined, undefined, actions, operations, Projection.subIdConfig);
|
|
48
48
|
let update = async (store, events$p) => {
|
|
49
49
|
await handleActions(events$p.map(event$p => Projection$ReventlessCore.rewriteTrail(Projection$Reventless.mapActionId(Projection.project(event$p), Projection.targetIdToString, Projection.targetIdFromString), event$p.meta.time, Projection.targetStateSchema)), {
|
|
50
50
|
load: extra => Promise.resolve({
|
|
@@ -58,7 +58,7 @@ function Make(Spec) {
|
|
|
58
58
|
let deleteSubState = (store, id, subId, getSubId) => {
|
|
59
59
|
store[id] = Stdlib_Option.getOr(Stdlib_Option.map(store[id], states => states.filter(state => Primitive_object.notequal(getSubId(state), subId))), []);
|
|
60
60
|
};
|
|
61
|
-
let runActions = (actions, operations) => Projection$ReventlessCore.handleActions(undefined, actions, operations, Spec.subIdConfig);
|
|
61
|
+
let runActions = (actions, operations) => Projection$ReventlessCore.handleActions(undefined, undefined, actions, operations, Spec.subIdConfig);
|
|
62
62
|
let update = async (store, events) => {
|
|
63
63
|
let actions = events.map(ev => Projection.project({
|
|
64
64
|
event: ev,
|