domaintrail 0.2.0 → 0.3.0
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/README.md +5 -3
- package/dist/dt.js +323 -216
- package/dist/web/{chunk-13zkn5c3.js → chunk-xn56ecvv.js} +2 -2
- package/dist/web/index.html +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -71,15 +71,17 @@ context Sales "販売" {
|
|
|
71
71
|
id: OrderId
|
|
72
72
|
state Draft
|
|
73
73
|
state Confirmed { confirmedAt: Timestamp }
|
|
74
|
-
create command place()
|
|
75
|
-
command confirm(at: Timestamp)
|
|
74
|
+
create command place() -> Draft
|
|
75
|
+
command confirm(at: Timestamp) Draft -> Confirmed emits OrderConfirmed
|
|
76
76
|
}
|
|
77
77
|
persistent event OrderConfirmed { orderId: OrderId confirmedAt: Timestamp }
|
|
78
78
|
}
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
The design decisions behind the DSL are in [docs/adr](docs/adr): shared contexts ([0004](docs/adr/0004-shared-contexts.md)),
|
|
82
|
-
unions ([0005](docs/adr/0005-unions.md)), persistent events ([0008](docs/adr/0008-persistent-events.md))
|
|
82
|
+
unions ([0005](docs/adr/0005-unions.md)), persistent events ([0008](docs/adr/0008-persistent-events.md)),
|
|
83
|
+
command transitions ([0014](docs/adr/0014-command-transitions.md)), handlers per state
|
|
84
|
+
([0015](docs/adr/0015-handlers-per-state.md)) and more.
|
|
83
85
|
|
|
84
86
|
## Live View
|
|
85
87
|
|