@reventlessdev/reventless-gwt 1.0.0-alpha.162 → 1.0.0-alpha.164

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,21 @@
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.164 (2026-08-08)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/reventless-gwt
9
+
10
+
11
+
12
+
13
+
14
+ # 1.0.0-alpha.163 (2026-08-08)
15
+
16
+ ### Features
17
+
18
+ * **core,spec:** surface a write-side component's declared error types ([c9c2505](https://github.com/ReventlessDev/reventless-core/commit/c9c25057c70595fe27d73447c9aef9b451f86168))
19
+
20
+
6
21
  # 1.0.0-alpha.162 (2026-08-08)
7
22
 
8
23
  **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.162",
3
+ "version": "1.0.0-alpha.164",
4
4
  "description": "Given-When-Then DSLs and test harness for Reventless slice testing",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -15,11 +15,11 @@
15
15
  "dependencies": {
16
16
  "sury": "11.0.0-alpha.4",
17
17
  "@reventlessdev/rescript-effect": "0.1.0-alpha.32",
18
- "@reventlessdev/rescript-jest": "1.0.0-alpha.10",
19
18
  "@reventlessdev/rescript-node": "2.0.0-alpha.2",
20
- "@reventlessdev/reventless-infra": "3.0.0-alpha.127",
21
- "@reventlessdev/reventless-core": "3.0.0-alpha.215",
22
- "@reventlessdev/reventless-spec": "3.0.0-alpha.101"
19
+ "@reventlessdev/rescript-jest": "1.0.0-alpha.10",
20
+ "@reventlessdev/reventless-core": "3.0.0-alpha.217",
21
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.128",
22
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.102"
23
23
  },
24
24
  "devDependencies": {
25
25
  "rescript": "12.3.0",
@@ -38,6 +38,13 @@ test("loadGraph cold-loads structures from the real plugins", async () => {
38
38
  let category = catalog.aggregates->Array.find((a: Reventless.Plugin.writableDef) => a.name == "Category")->Option.getOrThrow
39
39
  ok(category.producedEventTypes->Array.includes("Catalog.Added"))
40
40
 
41
+ // An aggregate's declared errors ride the structure beside its events: what the
42
+ // Category aggregate can refuse a command with, read off a real built plugin.
43
+ deepEqual(
44
+ category.errors->Array.map((e: Reventless.Plugin.errorDef) => e.name),
45
+ ["CategoryAlreadyExists", "CategoryNotFound", "CategoryAlreadyArchived"],
46
+ )
47
+
41
48
  let ordering = structureFor(g, "Ordering")->Option.getOrThrow
42
49
  let order = ordering.aggregates->Array.find((a: Reventless.Plugin.writableDef) => a.name == "Order")->Option.getOrThrow
43
50
  ok(order.producedEventTypes->Array.includes("Ordering.Placed"))
@@ -34,6 +34,11 @@ Nodetest.test("loadGraph cold-loads structures from the real plugins", async ()
34
34
  let catalog = Stdlib_Option.getOrThrow(structureFor(g, "Catalog"), undefined);
35
35
  let category = Stdlib_Option.getOrThrow(catalog.aggregates.find(a => a.name === "Category"), undefined);
36
36
  Strict.ok(category.producedEventTypes.includes("Catalog.Added"));
37
+ Strict.deepEqual(category.errors.map(e => e.name), [
38
+ "CategoryAlreadyExists",
39
+ "CategoryNotFound",
40
+ "CategoryAlreadyArchived"
41
+ ]);
37
42
  let ordering = Stdlib_Option.getOrThrow(structureFor(g, "Ordering"), undefined);
38
43
  let order = Stdlib_Option.getOrThrow(ordering.aggregates.find(a => a.name === "Order"), undefined);
39
44
  Strict.ok(order.producedEventTypes.includes("Ordering.Placed"));