Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Your version

5.26.0

26 Jan 2026Where it was published

5.33.4 is the newest release of 5.x.

In short

1 new

Release note

Minor Changes

  • Add getNextTransitions(state) utility to get all transitions available from current state.

    import { getNextTransitions } from 'xstate';
    
    // ...
    
    const state = actor.getSnapshot();
    const transitions = getNextTransitions(state);
    
    transitions.forEach((t) => {
      console.log(`Event: ${t.eventType}, Source: ${t.source.key}`);
    });

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.