xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Your version
5.33.4 is the newest release of 5.x.
In short
1 new
Release note
Minor Changes
Add a
filterEventsoption toxstate/graphtraversal helpers andcreateTestModel(...)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.