Skip to content

build(deps): bump xstate from 5.20.2 to 5.22.1#2348

Merged
madhavilosetty-intel merged 2 commits into
mainfrom
dependabot/npm_and_yarn/xstate-5.22.1
Oct 6, 2025
Merged

build(deps): bump xstate from 5.20.2 to 5.22.1#2348
madhavilosetty-intel merged 2 commits into
mainfrom
dependabot/npm_and_yarn/xstate-5.22.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 6, 2025

Copy link
Copy Markdown
Contributor

Bumps xstate from 5.20.2 to 5.22.1.

Release notes

Sourced from xstate's releases.

xstate@5.22.1

Patch Changes

xstate@5.22.0

Minor Changes

  • #5367 76c857e Thanks @​davidkpiano! - Add type-bound action helpers to setup():

    • createAction(fn) – create type-safe custom actions
    • setup().assign(...), setup().sendTo(...), setup().raise(...), setup().log(...), setup().cancel(...), setup().stopChild(...), setup().enqueueActions(...), setup().emit(...), setup().spawnChild(...) – setup-scoped helpers that are fully typed to the setup's context/events/actors/guards/delays/emitted.

    These helpers return actions that are bound to the specific setup() they were created from and can be used directly in the machine produced by that setup.

    const machineSetup = setup({
      types: {} as {
        context: {
          count: number;
        };
        events: { type: 'inc'; value: number } | { type: 'TEST' };
        emitted: { type: 'PING' };
      }
    });
    // Custom action
    const action = machineSetup.createAction(({ context, event }) => {
    console.log(context.count, event.value);
    });
    // Type-bound built-ins (no wrapper needed)
    const increment = machineSetup.assign({
    count: ({ context }) => context.count + 1
    });
    const raiseTest = machineSetup.raise({ type: 'TEST' });
    const ping = machineSetup.emit({ type: 'PING' });
    const batch = machineSetup.enqueueActions(({ enqueue, check }) => {
    if (check(() => true)) {
    enqueue(increment);
    }
    });

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [xstate](https://github.com/statelyai/xstate) from 5.20.2 to 5.22.1.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/xstate@5.20.2...xstate@5.22.1)

---
updated-dependencies:
- dependency-name: xstate
  dependency-version: 5.22.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 6, 2025
@madhavilosetty-intel
madhavilosetty-intel enabled auto-merge (squash) October 6, 2025 20:00
@madhavilosetty-intel
madhavilosetty-intel merged commit 1519287 into main Oct 6, 2025
9 checks passed
@madhavilosetty-intel
madhavilosetty-intel deleted the dependabot/npm_and_yarn/xstate-5.22.1 branch October 6, 2025 20:02
@RosieAMT

RosieAMT commented Oct 8, 2025

Copy link
Copy Markdown

🎉 This PR is included in version 2.28.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants