Skip to content

Version Packages#10

Merged
alexmarqs merged 1 commit into
mainfrom
changeset-release/main
Jun 21, 2026
Merged

Version Packages#10
alexmarqs 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

rollbackit@1.1.0

Minor Changes

  • 1938483: Add step() and timeouts.

    • step(description, run, rollback, options?) — runs a forward action and registers its compensation in one call, registering the rollback only if the action resolves and threading its result into the rollback. Returns whatever run returns.
    • Timeouts & cancellation — bound a single step (StepOptions.timeout) or the whole operation (WithRollbackOptions.timeout). On timeout a TimeoutError (a RollbackError subclass) is thrown and an AbortSignal is fired so in-flight work can cancel; withRollback still unwinds whatever was registered before re-throwing. withRollback's callback now receives that signal as its second argument.
    • Export TimeoutError and the StepOptions type.

@alexmarqs alexmarqs merged commit 66c435c into main Jun 21, 2026
4 checks passed
@alexmarqs alexmarqs deleted the changeset-release/main branch June 21, 2026 16:57
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