@reventlessdev/online-shop-hybrid-ordering 1.0.0-alpha.281 → 1.0.0-alpha.282
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 +13 -0
- package/package.json +10 -10
- package/src/CatalogProduct/StateViewStream/AvailableProducts.res +1 -1
- package/src/CatalogProduct/StateViewStream/AvailableProducts.res.mjs +0 -3
- package/src/Notification/StateViewStream/NotificationDeliveries.res.mjs +1 -4
- package/src/Notification/StateViewStream/NotificationSubscriptions.res.mjs +1 -4
- package/src/Order/StateViewStream/Orders.res +1 -1
- package/src/Order/StateViewStream/Orders.res.mjs +0 -3
- package/src/Plugin.res.mjs +4 -4
- package/tests/CatalogProduct/StateViewStream/AvailableProducts_GWT.res.mjs +1 -1
- package/tests/Flow/OrderingFlow_GWT.res.mjs +1 -1
- package/tests/Notification/StateViewStream/NotificationDeliveries_GWT.res.mjs +1 -1
- package/tests/Order/StateViewStream/Orders_GWT.res.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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.282 (2026-10-21)
|
|
7
|
+
|
|
8
|
+
* feat!: a state view's row key is module Id ([08c9726](https://github.com/ReventlessDev/reventless-core/commit/08c972659a3d689a39fd5e2f2026597155e92210))
|
|
9
|
+
|
|
10
|
+
### BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* a state view spec declares its row key as module Id. A
|
|
13
|
+
hand-written module Key in a spec under StateView/ or StateViewStream/
|
|
14
|
+
fails the build with "A state view's row key is `module Id`, not
|
|
15
|
+
`module Key`".
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
# 1.0.0-alpha.281 (2026-10-21)
|
|
7
20
|
|
|
8
21
|
* 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.
|
|
3
|
+
"version": "1.0.0-alpha.282",
|
|
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-ordering-spec": "1.0.0-alpha.167",
|
|
24
25
|
"@reventlessdev/rescript-pulumi-pulumi": "3.0.0-alpha.0",
|
|
25
|
-
"@reventlessdev/
|
|
26
|
-
"@reventlessdev/
|
|
27
|
-
"@reventlessdev/reventless-infra": "3.0.0-alpha.
|
|
28
|
-
"@reventlessdev/
|
|
29
|
-
"@reventlessdev/reventless-
|
|
30
|
-
"@reventlessdev/
|
|
31
|
-
"@reventlessdev/trait-
|
|
32
|
-
"@reventlessdev/trait-notification": "1.0.0-alpha.51"
|
|
26
|
+
"@reventlessdev/online-shop-hybrid-catalog-spec": "1.0.0-alpha.168",
|
|
27
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.250",
|
|
28
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.199",
|
|
29
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.293",
|
|
30
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.171",
|
|
31
|
+
"@reventlessdev/trait-address-geocoding": "1.0.0-alpha.52",
|
|
32
|
+
"@reventlessdev/trait-notification": "1.0.0-alpha.52"
|
|
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.
|
|
37
|
+
"@reventlessdev/reventless-ppx": "1.0.0-alpha.104"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"rescript": "^12.3.1"
|
|
@@ -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
|
-
|
|
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
|
-
|
|
75
|
+
Id,
|
|
79
76
|
subIdConfig,
|
|
80
77
|
moduleUrl,
|
|
81
78
|
authorization,
|
|
@@ -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,
|
package/src/Plugin.res.mjs
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
+
Id: OrderId$OrderingPlugin,
|
|
16
16
|
consumedEventSchema: Orders$OrderingPlugin.consumedEventSchema,
|
|
17
17
|
subIdConfig: undefined
|
|
18
18
|
})({
|