Skip to content

Commit 464b370

Browse files
authored
Merge pull request #12 from cevr/changeset-release/main
Version Packages
2 parents 7b83398 + 0bc86bf commit 464b370

4 files changed

Lines changed: 18 additions & 22 deletions

File tree

.changeset/actor-children-persistent.md

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

.changeset/observable-actor-system.md

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

CHANGELOG.md

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

3+
## 0.6.0
4+
5+
### Minor Changes
6+
7+
- [`9d5bd6f`](https://github.com/cevr/effect-machine/commit/9d5bd6fa81b3421124732d75fca210b2bb04c57c) Thanks [@cevr](https://github.com/cevr)! - Add actor.children to expose child actors spawned via self.spawn
8+
- `actor.children` returns `ReadonlyMap<string, ActorRef>` of children spawned via `self.spawn`
9+
- State-scoped children auto-removed from map on state exit
10+
- Works for both regular and persistent actors
11+
12+
- [`9d5bd6f`](https://github.com/cevr/effect-machine/commit/9d5bd6fa81b3421124732d75fca210b2bb04c57c) Thanks [@cevr](https://github.com/cevr)! - Add observable ActorSystem with event stream and sync observation
13+
- `system.subscribe(fn)` — sync callback for `ActorSpawned` / `ActorStopped` events, returns unsubscribe
14+
- `system.actors` — sync snapshot of all registered actors (`ReadonlyMap`)
15+
- `system.events` — async `Stream<SystemEvent>` via PubSub (each subscriber gets own queue)
16+
- Works with both explicit (`ActorSystemDefault`) and implicit (`Machine.spawn`) systems
17+
- No events emitted during system teardown
18+
- Double-stop prevention: `system.stop` + scope finalizer won't emit duplicate `ActorStopped`
19+
320
## 0.5.0
421

522
### 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": "effect-machine",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/cevr/effect-machine.git"

0 commit comments

Comments
 (0)