Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/bright-machines-remember.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/calm-machines-construct.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/calm-machines-enter.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/clear-machines-diagnose.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/steady-machines-bind.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/tidy-states-omit-input.md

This file was deleted.

24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @typeonce/effect-machine

## 0.3.0

### Minor Changes

- 1d1f35f: Add fully typed shallow and deep history states. History targets restore schema-validated state values, support typed defaults before the first capture, require only the initializers needed by shallow restoration, preserve parallel configurations, and round-trip through snapshot encoding and decoding.
- e556e63: Add safe `.from` state construction to initial and transition target builders.
Constructor inputs are resolved through the selected state schema during
planning, preserving defaults and class identity while reporting validation
failures as `MachineSchemaDecodeError` values.
- 3646067: Allow state builder `.from()` calls to omit the constructor input when the
selected schema accepts `{}`. Required fields and compound or parallel child
selection remain type-safe, and omitted inputs still run through schema
construction during planning.

### Patch Changes

- 607a0c4: Allow local and branch targets to enter inactive nested parallel states. These
targets now require a complete selection for every parallel region while
preserving partial updates for parallel states that are already active.
- ea8e165: Improve compile-time diagnostics for invalid state definitions, event protocols,
and handler configurations. Errors now retain the relevant configuration shape
and state path while preserving existing inference and type safety.
- 955663f: Preserve every machine protocol channel when creating bound AtomMachine bridges from deeply composed handled machines. Inline invoked children also retain their exact error, service, event, and output types instead of inheriting erased contextual `any` channels.

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@typeonce/effect-machine",
"version": "0.2.0",
"version": "0.3.0",
"description": "Schema-first state machines and statecharts for Effect",
"author": "Sandro Maglione",
"repository": {
Expand Down