Skip to content

Version Packages - #167

Merged
SandroMaglione merged 1 commit into
mainfrom
changeset-release/main
Aug 23, 2026
Merged

Version Packages#167
SandroMaglione merged 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.22.0

Minor Changes

  • 6d080f5: Make state construction modes explicit and allow one topology target to replace a retained valued owner atomically.

    Valued builders are no longer callable. Replace target(value) and nested builder(value, ...) calls with .decoded(value, ...); keep .from(input, ...) for schema make input. Plain state-update resolvers now expose the decoded owner as current and its construction builder as owner, replacing the previous ancestors plus target pattern.

    Declare a combined transition with .updating(ownerSelector). The resolver must finish destination construction with .update(...), so the owner replacement cannot be omitted:

    to.local
      .SavingPlan()
      .updating(to.branch.Ready)
      .resolve(({ current, owner, target }) =>
        target
          .from({ request })
          .update(owner.decoded(new Ready({ ...current, notice: null })))
      )

    Transition inspection and retained microsteps now include an updates array naming replaced owners.

@SandroMaglione
SandroMaglione merged commit bd2d327 into main Aug 23, 2026
8 checks passed
@SandroMaglione
SandroMaglione deleted the changeset-release/main branch August 23, 2026 12:54
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.

1 participant