Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Your version

5.30.0

28 Mar 2026Where it was published

5.33.4 is the newest release of 5.x.

In short

1 new

Release note

Minor Changes

  • Add a filterEvents option to xstate/graph traversal helpers and
    createTestModel(...) to control which events should be explored from each
    state.

    This makes it possible to opt into enabled-only traversal for machine snapshots,
    such as when you only want to explore events that currently pass guards:

    import { createTestModel } from 'xstate/graph';
    
    const model = createTestModel(machine);
    
    const paths = model.getSimplePaths({
      filterEvents: (state, event) => state.can(event)
    });

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.