From 27d7ccf88efd69e0904b481e40d66a3f7d70e394 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 15 Aug 2026 16:46:47 +0000 Subject: [PATCH] Version Packages --- .changeset/calm-machines-prepare.md | 16 ---------------- CHANGELOG.md | 18 ++++++++++++++++++ package.json | 2 +- 3 files changed, 19 insertions(+), 17 deletions(-) delete mode 100644 .changeset/calm-machines-prepare.md diff --git a/.changeset/calm-machines-prepare.md b/.changeset/calm-machines-prepare.md deleted file mode 100644 index 1109f43..0000000 --- a/.changeset/calm-machines-prepare.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@typeonce/effect-machine": minor ---- - -Add `Machine.prepare` for composing snapshot and emission streams before a machine initializes, while keeping `Machine.start` as the one-step convenience. - -```ts -const prepared = yield * Machine.prepare(machine) -yield * prepared.emissions.pipe( - Stream.runForEach(handleEmission), - Effect.forkScoped({ startImmediately: true }) -) -const ref = yield * prepared.start -``` - -AtomMachine emission streams use the same preparation boundary, and machine definitions now expose `definition.invoke(...)` so invocation `self` and `parent` references use the exact public input and `parentEvents` protocols. diff --git a/CHANGELOG.md b/CHANGELOG.md index 314da52..495ffb7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # @typeonce/effect-machine +## 0.11.0 + +### Minor Changes + +- 2a84cd2: Add `Machine.prepare` for composing snapshot and emission streams before a machine initializes, while keeping `Machine.start` as the one-step convenience. + + ```ts + const prepared = yield * Machine.prepare(machine) + yield * + prepared.emissions.pipe( + Stream.runForEach(handleEmission), + Effect.forkScoped({ startImmediately: true }) + ) + const ref = yield * prepared.start + ``` + + AtomMachine emission streams use the same preparation boundary, and machine definitions now expose `definition.invoke(...)` so invocation `self` and `parent` references use the exact public input and `parentEvents` protocols. + ## 0.10.0 ### Minor Changes diff --git a/package.json b/package.json index 09b1d23..3525cc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@typeonce/effect-machine", - "version": "0.10.0", + "version": "0.11.0", "description": "Schema-first state machines and statecharts for Effect", "author": "Sandro Maglione", "repository": {