@reventlessdev/reventless-gwt 1.0.0-alpha.214 → 1.0.0-alpha.216
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 +16 -0
- package/README.md +1 -1
- package/package.json +11 -11
- package/tests/DelegateGwtTest.res.mjs +8 -8
- package/tests/FlowCrossPluginGwtTest.res.mjs +6 -6
- package/tests/MappingGwtTest.res.mjs +2 -2
- package/tests/QueryGwtTest.res.mjs +3 -3
- package/tests/QueryResolverGwtTest.res.mjs +1 -1
- package/tests/StateViewSliceGwtTest.res.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.216 (2026-09-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** update rescript to 12.3.1 ([ea1ce37](https://github.com/ReventlessDev/reventless-core/commit/ea1ce377297640f6d0d360e6c84c778d59ecbcc5))
|
|
11
|
+
* **deps:** update sury to 11.0.0 ([8715b22](https://github.com/ReventlessDev/reventless-core/commit/8715b22b33856c46ba57518aad151065c123a995))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 1.0.0-alpha.215 (2026-09-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @reventlessdev/reventless-gwt
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# 1.0.0-alpha.214 (2026-09-21)
|
|
7
23
|
|
|
8
24
|
* feat(spec)!: typed projection keys ([fc6a018](https://github.com/ReventlessDev/reventless-core/commit/fc6a01811ba788f3289e84a435a09f77fa627e1a))
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ Register it as a ReScript dependency in `rescript.json`:
|
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
Requires ReScript `^12.3.
|
|
79
|
+
Requires ReScript `^12.3.1` (peer dependency). Run the CLI with `pnpm exec
|
|
80
80
|
reventless-dev run` (or add it to a package script).
|
|
81
81
|
|
|
82
82
|
## Links
|
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.216",
|
|
4
4
|
"description": "Given-When-Then DSLs and test harness for Reventless slice testing",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"sury": "11.0.0
|
|
17
|
-
"@reventlessdev/rescript-effect": "0.1.0-alpha.
|
|
18
|
-
"@reventlessdev/rescript-jest": "1.0.0-alpha.
|
|
19
|
-
"@reventlessdev/rescript-node": "2.0.0-alpha.
|
|
20
|
-
"@reventlessdev/reventless-core": "3.0.0-alpha.
|
|
21
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.
|
|
22
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
16
|
+
"sury": "11.0.0",
|
|
17
|
+
"@reventlessdev/rescript-effect": "0.1.0-alpha.34",
|
|
18
|
+
"@reventlessdev/rescript-jest": "1.0.0-alpha.11",
|
|
19
|
+
"@reventlessdev/rescript-node": "2.0.0-alpha.13",
|
|
20
|
+
"@reventlessdev/reventless-core": "3.0.0-alpha.269",
|
|
21
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.169",
|
|
22
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.141"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"rescript": "12.3.
|
|
26
|
-
"sury-ppx": "11.0.0
|
|
25
|
+
"rescript": "12.3.1",
|
|
26
|
+
"sury-ppx": "11.0.0",
|
|
27
27
|
"@reventlessdev/reventless-ppx": "1.0.0-alpha.81"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"rescript": "12.3.
|
|
30
|
+
"rescript": "^12.3.1"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"registry": "https://registry.npmjs.org"
|
|
@@ -11,12 +11,12 @@ let eventSchema = Sury.union([
|
|
|
11
11
|
TAG: "ProductBecameAvailable",
|
|
12
12
|
productId: s.m(Sury.string),
|
|
13
13
|
name: s.m(Sury.string),
|
|
14
|
-
price: s.m(Sury.
|
|
14
|
+
price: s.m(Sury.number)
|
|
15
15
|
})),
|
|
16
16
|
Sury.$schema(s => ({
|
|
17
17
|
TAG: "ProductPriceChanged",
|
|
18
18
|
productId: s.m(Sury.string),
|
|
19
|
-
price: s.m(Sury.
|
|
19
|
+
price: s.m(Sury.number)
|
|
20
20
|
}))
|
|
21
21
|
]);
|
|
22
22
|
|
|
@@ -52,12 +52,12 @@ let eventSchema$1 = Sury.union([
|
|
|
52
52
|
TAG: "ProductAdded",
|
|
53
53
|
productId: s.m(Sury.string),
|
|
54
54
|
name: s.m(Sury.string),
|
|
55
|
-
price: s.m(Sury.
|
|
55
|
+
price: s.m(Sury.number)
|
|
56
56
|
})),
|
|
57
57
|
Sury.$schema(s => ({
|
|
58
58
|
TAG: "ProductPriceChanged",
|
|
59
59
|
productId: s.m(Sury.string),
|
|
60
|
-
price: s.m(Sury.
|
|
60
|
+
price: s.m(Sury.number)
|
|
61
61
|
}))
|
|
62
62
|
]);
|
|
63
63
|
|
|
@@ -400,12 +400,12 @@ let commandSchema$4 = Sury.union([
|
|
|
400
400
|
TAG: "SyncNewProduct",
|
|
401
401
|
productId: s.m(Sury.string),
|
|
402
402
|
name: s.m(Sury.string),
|
|
403
|
-
price: s.m(Sury.
|
|
403
|
+
price: s.m(Sury.number)
|
|
404
404
|
})),
|
|
405
405
|
Sury.$schema(s => ({
|
|
406
406
|
TAG: "ChangeSyncedPrice",
|
|
407
407
|
productId: s.m(Sury.string),
|
|
408
|
-
price: s.m(Sury.
|
|
408
|
+
price: s.m(Sury.number)
|
|
409
409
|
}))
|
|
410
410
|
]);
|
|
411
411
|
|
|
@@ -541,7 +541,7 @@ ProductsExtGwt.describe("Products Extension delegate (FromExtension)", () => {
|
|
|
541
541
|
let commandSchema$5 = Sury.$schema(s => ({
|
|
542
542
|
TAG: "Restock",
|
|
543
543
|
sku: s.m(Sury.string),
|
|
544
|
-
qty: s.m(Sury.
|
|
544
|
+
qty: s.m(Sury.int32)
|
|
545
545
|
}));
|
|
546
546
|
|
|
547
547
|
let eventSchema$5 = Sury.literal("NoEvent");
|
|
@@ -574,7 +574,7 @@ let name$3 = "Stock";
|
|
|
574
574
|
let commandSchema$6 = Sury.$schema(s => ({
|
|
575
575
|
TAG: "Restock",
|
|
576
576
|
sku: s.m(Sury.string),
|
|
577
|
-
qty: s.m(Sury.
|
|
577
|
+
qty: s.m(Sury.int32)
|
|
578
578
|
}));
|
|
579
579
|
|
|
580
580
|
let eventSchema$6 = Sury.literal("NoEvent");
|
|
@@ -14,7 +14,7 @@ let commandSchema = Sury.$schema(s => ({
|
|
|
14
14
|
TAG: "AddProduct",
|
|
15
15
|
productId: s.m(DcbTag$Reventless.string),
|
|
16
16
|
name: s.m(Sury.string),
|
|
17
|
-
price: s.m(Sury.
|
|
17
|
+
price: s.m(Sury.number)
|
|
18
18
|
}));
|
|
19
19
|
|
|
20
20
|
let errorSchema = Sury.literal("AlreadyAdded");
|
|
@@ -23,7 +23,7 @@ let eventSchema = Sury.$schema(s => ({
|
|
|
23
23
|
TAG: "ProductAdded",
|
|
24
24
|
productId: s.m(DcbTag$Reventless.string),
|
|
25
25
|
name: s.m(Sury.string),
|
|
26
|
-
price: s.m(Sury.
|
|
26
|
+
price: s.m(Sury.number)
|
|
27
27
|
}));
|
|
28
28
|
|
|
29
29
|
function commandAuthorization(param) {
|
|
@@ -90,7 +90,7 @@ let eventSchema$1 = Sury.$schema(s => ({
|
|
|
90
90
|
TAG: "ProductBecameAvailable",
|
|
91
91
|
productId: s.m(Sury.string),
|
|
92
92
|
name: s.m(Sury.string),
|
|
93
|
-
price: s.m(Sury.
|
|
93
|
+
price: s.m(Sury.number)
|
|
94
94
|
}));
|
|
95
95
|
|
|
96
96
|
let directiveSchema = Sury.literal("NoDirective");
|
|
@@ -124,7 +124,7 @@ let eventSchema$2 = Sury.$schema(s => ({
|
|
|
124
124
|
TAG: "ProductAdded",
|
|
125
125
|
productId: s.m(Sury.string),
|
|
126
126
|
name: s.m(Sury.string),
|
|
127
|
-
price: s.m(Sury.
|
|
127
|
+
price: s.m(Sury.number)
|
|
128
128
|
}));
|
|
129
129
|
|
|
130
130
|
let errorSchema$1 = Sury.literal("NoError");
|
|
@@ -413,7 +413,7 @@ let commandSchema$6 = Sury.$schema(s => ({
|
|
|
413
413
|
TAG: "SyncProduct",
|
|
414
414
|
productId: s.m(DcbTag$Reventless.string),
|
|
415
415
|
name: s.m(Sury.string),
|
|
416
|
-
price: s.m(Sury.
|
|
416
|
+
price: s.m(Sury.number)
|
|
417
417
|
}));
|
|
418
418
|
|
|
419
419
|
let errorSchema$4 = Sury.literal("NoError");
|
|
@@ -422,7 +422,7 @@ let eventSchema$6 = Sury.$schema(s => ({
|
|
|
422
422
|
TAG: "ProductSynced",
|
|
423
423
|
productId: s.m(DcbTag$Reventless.string),
|
|
424
424
|
name: s.m(Sury.string),
|
|
425
|
-
price: s.m(Sury.
|
|
425
|
+
price: s.m(Sury.number)
|
|
426
426
|
}));
|
|
427
427
|
|
|
428
428
|
let moduleUrl$6 = "";
|
|
@@ -240,7 +240,7 @@ function evolve$3(_state, event) {
|
|
|
240
240
|
let commandSchema$3 = Sury.$schema(s => ({
|
|
241
241
|
TAG: "ReserveStock",
|
|
242
242
|
itemId: s.m(DcbTag$Reventless.string),
|
|
243
|
-
quantity: s.m(Sury.
|
|
243
|
+
quantity: s.m(Sury.int32)
|
|
244
244
|
}));
|
|
245
245
|
|
|
246
246
|
let errorSchema$3 = Sury.literal("OutOfStock");
|
|
@@ -248,7 +248,7 @@ let errorSchema$3 = Sury.literal("OutOfStock");
|
|
|
248
248
|
let eventSchema$3 = Sury.$schema(s => ({
|
|
249
249
|
TAG: "StockReserved",
|
|
250
250
|
itemId: s.m(DcbTag$Reventless.string),
|
|
251
|
-
quantity: s.m(Sury.
|
|
251
|
+
quantity: s.m(Sury.int32)
|
|
252
252
|
}));
|
|
253
253
|
|
|
254
254
|
function decide$3(state, command) {
|
|
@@ -14,7 +14,7 @@ let moduleUrl = "";
|
|
|
14
14
|
let stateSchema = Sury.$schema(s => ({
|
|
15
15
|
categoryId: s.m(Sury.string),
|
|
16
16
|
name: s.m(Sury.string),
|
|
17
|
-
archived: s.m(Sury.
|
|
17
|
+
archived: s.m(Sury.boolean)
|
|
18
18
|
}));
|
|
19
19
|
|
|
20
20
|
let config = ReadModel$Reventless.config(undefined, undefined, [{
|
|
@@ -208,14 +208,14 @@ let moduleUrl$1 = "";
|
|
|
208
208
|
let stateSchema$1 = Sury.$schema(s => ({
|
|
209
209
|
orderId: s.m(Sury.string),
|
|
210
210
|
customerId: s.m(Sury.string),
|
|
211
|
-
total: s.m(Sury.
|
|
211
|
+
total: s.m(Sury.int32)
|
|
212
212
|
}));
|
|
213
213
|
|
|
214
214
|
let consumedEventSchema = Sury.$schema(s => ({
|
|
215
215
|
TAG: "OrderPlaced",
|
|
216
216
|
orderId: s.m(Sury.string),
|
|
217
217
|
customerId: s.m(Sury.string),
|
|
218
|
-
total: s.m(Sury.
|
|
218
|
+
total: s.m(Sury.int32)
|
|
219
219
|
}));
|
|
220
220
|
|
|
221
221
|
function project(param) {
|
|
@@ -7,7 +7,7 @@ import * as Query_GWT$ReventlessGwt from "../src/Query_GWT.res.mjs";
|
|
|
7
7
|
let stateSchema = Sury.$schema(s => ({
|
|
8
8
|
productId: s.m(Sury.string),
|
|
9
9
|
name: s.m(Sury.string),
|
|
10
|
-
price: s.m(Sury.
|
|
10
|
+
price: s.m(Sury.number)
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
13
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|