@reventlessdev/online-shop-hybrid-ordering 1.0.0-alpha.281 → 1.0.0-alpha.283

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,27 @@
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.283 (2026-10-21)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/online-shop-hybrid-ordering
9
+
10
+
11
+
12
+
13
+
14
+ # 1.0.0-alpha.282 (2026-10-21)
15
+
16
+ * feat!: a state view's row key is module Id ([08c9726](https://github.com/ReventlessDev/reventless-core/commit/08c972659a3d689a39fd5e2f2026597155e92210))
17
+
18
+ ### BREAKING CHANGES
19
+
20
+ * a state view spec declares its row key as module Id. A
21
+ hand-written module Key in a spec under StateView/ or StateViewStream/
22
+ fails the build with "A state view's row key is `module Id`, not
23
+ `module Key`".
24
+
25
+
26
+
6
27
  # 1.0.0-alpha.281 (2026-10-21)
7
28
 
8
29
  * feat!: the write-side logic module is called the decision, and a codemod moves an app over ([cb573ff](https://github.com/ReventlessDev/reventless-core/commit/cb573ff5b928c7d7f3e75988dfaa65066f8c95eb))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-hybrid-ordering",
3
- "version": "1.0.0-alpha.281",
3
+ "version": "1.0.0-alpha.283",
4
4
  "description": "Online Shop Hybrid example — Ordering plugin (Customer aggregate + Order/CatalogProduct DCB)",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,20 +21,20 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "sury": "11.0.0",
24
+ "@reventlessdev/online-shop-hybrid-catalog-spec": "1.0.0-alpha.169",
24
25
  "@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
25
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.249",
26
- "@reventlessdev/online-shop-hybrid-catalog-spec": "1.0.0-alpha.167",
27
- "@reventlessdev/reventless-infra": "3.0.0-alpha.198",
28
- "@reventlessdev/online-shop-hybrid-ordering-spec": "1.0.0-alpha.166",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.292",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.170",
31
- "@reventlessdev/trait-address-geocoding": "1.0.0-alpha.51",
32
- "@reventlessdev/trait-notification": "1.0.0-alpha.51"
26
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.251",
27
+ "@reventlessdev/online-shop-hybrid-ordering-spec": "1.0.0-alpha.168",
28
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.200",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.294",
30
+ "@reventlessdev/trait-address-geocoding": "1.0.0-alpha.53",
31
+ "@reventlessdev/trait-notification": "1.0.0-alpha.53",
32
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.172"
33
33
  },
34
34
  "devDependencies": {
35
35
  "rescript": "12.3.1",
36
36
  "sury-ppx": "11.0.0",
37
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.103"
37
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.104"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "rescript": "^12.3.1"
@@ -6,7 +6,7 @@
6
6
  @@reventless.spec
7
7
 
8
8
  // Rows are keyed by this identity.
9
- module Key = CatalogSpec.ProductId
9
+ module Id = CatalogSpec.ProductId
10
10
  @@reventless.visibility(Internal)
11
11
 
12
12
  @schema
@@ -67,8 +67,6 @@ let name = "AvailableProducts";
67
67
 
68
68
  let Id;
69
69
 
70
- let Key;
71
-
72
70
  let subIdConfig;
73
71
 
74
72
  let moduleUrl = "@reventlessdev/online-shop-hybrid-ordering/src/CatalogProduct/StateViewStream/AvailableProducts.res.mjs";
@@ -80,7 +78,6 @@ let visibility = "Internal";
80
78
  export {
81
79
  name,
82
80
  Id,
83
- Key,
84
81
  consumedEventSchema,
85
82
  config,
86
83
  subIdConfig,
@@ -114,8 +114,6 @@ let name = "NotificationDeliveries";
114
114
 
115
115
  let Id;
116
116
 
117
- let Key;
118
-
119
117
  let subIdConfig;
120
118
 
121
119
  let moduleUrl = "@reventlessdev/online-shop-hybrid-ordering/src/Notification/StateViewStream/NotificationDeliveries.res.mjs";
@@ -126,11 +124,10 @@ let visibility = "Public";
126
124
 
127
125
  export {
128
126
  name,
129
- Id,
130
127
  outcomeSchema,
131
128
  consumedEventSchema,
132
129
  config,
133
- Key,
130
+ Id,
134
131
  subIdConfig,
135
132
  stateSchema$1 as stateSchema,
136
133
  moduleUrl,
@@ -58,8 +58,6 @@ let name = "NotificationSubscriptions";
58
58
 
59
59
  let Id;
60
60
 
61
- let Key;
62
-
63
61
  let subIdConfig;
64
62
 
65
63
  let moduleUrl = "@reventlessdev/online-shop-hybrid-ordering/src/Notification/StateViewStream/NotificationSubscriptions.res.mjs";
@@ -70,12 +68,11 @@ let visibility = "Public";
70
68
 
71
69
  export {
72
70
  name,
73
- Id,
74
71
  subscriptionSchema,
75
72
  stateSchema$1 as stateSchema,
76
73
  consumedEventSchema,
77
74
  config,
78
- Key,
75
+ Id,
79
76
  subIdConfig,
80
77
  moduleUrl,
81
78
  authorization,
@@ -4,7 +4,7 @@
4
4
  @@reventless.spec
5
5
 
6
6
  // Rows are keyed by this identity.
7
- module Key = OrderId
7
+ module Id = OrderId
8
8
 
9
9
  // Catalog's store, named explicitly: the ppx would otherwise derive an
10
10
  // *Ordering* store from the field name, and nothing writes to that one.
@@ -128,8 +128,6 @@ let name = "Orders";
128
128
 
129
129
  let Id;
130
130
 
131
- let Key;
132
-
133
131
  let subIdConfig;
134
132
 
135
133
  let moduleUrl = "@reventlessdev/online-shop-hybrid-ordering/src/Order/StateViewStream/Orders.res.mjs";
@@ -141,7 +139,6 @@ let visibility = "Public";
141
139
  export {
142
140
  name,
143
141
  Id,
144
- Key,
145
142
  catalogProductImage,
146
143
  shippingMethodSchema,
147
144
  orderLineSchema,
@@ -230,7 +230,7 @@ function Make(Platform) {
230
230
  name: AvailableProducts$OrderingPlugin.name,
231
231
  moduleUrl: AvailableProducts$OrderingPlugin.moduleUrl,
232
232
  stateSchema: AvailableProducts$OrderingPlugin.stateSchema,
233
- Key: ProductId$CatalogSpec,
233
+ Id: ProductId$CatalogSpec,
234
234
  consumedEventSchema: AvailableProducts$OrderingPlugin.consumedEventSchema,
235
235
  config: AvailableProducts$OrderingPlugin.config,
236
236
  subIdConfig: undefined,
@@ -244,7 +244,7 @@ function Make(Platform) {
244
244
  name: NotificationDeliveries$OrderingPlugin.name,
245
245
  moduleUrl: NotificationDeliveries$OrderingPlugin.moduleUrl,
246
246
  stateSchema: NotificationDeliveries$OrderingPlugin.stateSchema,
247
- Key: {
247
+ Id: {
248
248
  schema: Id$Reventless.StringPure.schema,
249
249
  make: prim => prim,
250
250
  makeFromString: prim => prim,
@@ -264,7 +264,7 @@ function Make(Platform) {
264
264
  name: NotificationSubscriptions$OrderingPlugin.name,
265
265
  moduleUrl: NotificationSubscriptions$OrderingPlugin.moduleUrl,
266
266
  stateSchema: NotificationSubscriptions$OrderingPlugin.stateSchema,
267
- Key: {
267
+ Id: {
268
268
  schema: Id$Reventless.StringPure.schema,
269
269
  make: prim => prim,
270
270
  makeFromString: prim => prim,
@@ -284,7 +284,7 @@ function Make(Platform) {
284
284
  name: Orders$OrderingPlugin.name,
285
285
  moduleUrl: Orders$OrderingPlugin.moduleUrl,
286
286
  stateSchema: Orders$OrderingPlugin.stateSchema,
287
- Key: OrderId$OrderingPlugin,
287
+ Id: OrderId$OrderingPlugin,
288
288
  consumedEventSchema: Orders$OrderingPlugin.consumedEventSchema,
289
289
  config: Orders$OrderingPlugin.config,
290
290
  subIdConfig: undefined,
@@ -9,7 +9,7 @@ import * as AvailableProducts_Projection$OrderingPlugin from "../../../src/Catal
9
9
  let include = Projection_GWT$ReventlessGwt.Make({
10
10
  name: AvailableProducts$OrderingPlugin.name,
11
11
  stateSchema: AvailableProducts$OrderingPlugin.stateSchema,
12
- Key: ProductId$CatalogSpec,
12
+ Id: ProductId$CatalogSpec,
13
13
  consumedEventSchema: AvailableProducts$OrderingPlugin.consumedEventSchema,
14
14
  subIdConfig: undefined
15
15
  })({
@@ -76,7 +76,7 @@ let Ship = Flow_GWT$ReventlessGwt.CommandStep({
76
76
  let OrdersView = Flow_GWT$ReventlessGwt.ViewStep({
77
77
  name: Orders$OrderingPlugin.name,
78
78
  stateSchema: Orders$OrderingPlugin.stateSchema,
79
- Key: OrderId$OrderingPlugin,
79
+ Id: OrderId$OrderingPlugin,
80
80
  consumedEventSchema: Orders$OrderingPlugin.consumedEventSchema,
81
81
  subIdConfig: undefined
82
82
  })({
@@ -12,7 +12,7 @@ import * as NotificationDeliveries_Projection$OrderingPlugin from "../../../src/
12
12
  let include = Projection_GWT$ReventlessGwt.Make({
13
13
  name: NotificationDeliveries$OrderingPlugin.name,
14
14
  stateSchema: NotificationDeliveries$OrderingPlugin.stateSchema,
15
- Key: {
15
+ Id: {
16
16
  schema: Id$Reventless.StringPure.schema,
17
17
  make: prim => prim,
18
18
  makeFromString: prim => prim,
@@ -12,7 +12,7 @@ import * as Orders_Projection$OrderingPlugin from "../../../src/Order/StateViewS
12
12
  let include = Projection_GWT$ReventlessGwt.Make({
13
13
  name: Orders$OrderingPlugin.name,
14
14
  stateSchema: Orders$OrderingPlugin.stateSchema,
15
- Key: OrderId$OrderingPlugin,
15
+ Id: OrderId$OrderingPlugin,
16
16
  consumedEventSchema: Orders$OrderingPlugin.consumedEventSchema,
17
17
  subIdConfig: undefined
18
18
  })({