Skip to content

Commit bb5fb67

Browse files
Version Packages
1 parent c8728e5 commit bb5fb67

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

.changeset/live-machine-inspection.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# @typeonce/effect-machine
22

3+
## 0.13.0
4+
5+
### Minor Changes
6+
7+
- c8728e5: Add live, root-scoped machine inspection through `Machine.prepare(machine).inspection` and `AtomMachine.inspection(machineAtom)`.
8+
9+
The hot Effect `Stream` observes ordered creation, initialization, mailbox delivery and processing, state changes, emissions, Effect and timer activities, and termination for a prepared root and all locally owned descendants:
10+
11+
```ts
12+
const prepared = yield * Machine.prepare(machine)
13+
14+
yield *
15+
prepared.inspection.pipe(
16+
Stream.runForEach((event) => Console.log(event.sequence, event.subject.id, event._tag)),
17+
Effect.forkScoped({ startImmediately: true })
18+
)
19+
20+
const ref = yield * prepared.start
21+
```
22+
23+
Inspection is non-replayed, never fails, and completes with the root. Its session ids and ordering are local to one prepared ownership tree; distributed identity and delivery remain an Effect Cluster concern.
24+
325
## 0.12.0
426

527
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@typeonce/effect-machine",
3-
"version": "0.12.0",
3+
"version": "0.13.0",
44
"description": "Schema-first state machines and statecharts for Effect",
55
"author": "Sandro Maglione",
66
"repository": {

0 commit comments

Comments
 (0)