Skip to content

Version Packages - #154

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

Version Packages#154
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@typeonce/effect-machine@0.19.0

Minor Changes

  • b1a1f75: Make Machine.encodeSnapshot return a canonical JSON representation or fail
    with MachineSchemaEncodeError. Encoded state values, completion outputs, and
    history values are now typed as Schema.Json; rich schema values use their
    canonical JSON codecs, while cycles and other non-JSON values fail at the
    machine boundary instead of causing a later serialization crash.
    Declared Schema.Void and Schema.Undefined completion outputs now use their
    canonical null encoding; an omitted output is reserved for final states that
    do not declare an output schema.

    ClusterMachine.make now requires JSON-encoded state, completion-output, and
    public input-event schemas. Keep process-local capabilities in services,
    adapters, or internal events, and give transported values an explicit JSON
    codec. Cluster snapshot encoding failures are reported as
    SnapshotEncodeFailure without advancing the checkpoint.

    MachineTest.observedGraph continues to support process-local state. Its node
    encoded field is now optional: portable snapshots retain their canonical JSON
    form, while non-portable snapshots use local structural identity and omit it.
    Snapshot encoding failures no longer appear in the operation's error channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants