xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Your version
4.38.3 is the newest release of 4.x.
In short
1 new1 fixed
Release note
Minor Changes
Tags can now be added to state node configs under the
.tagsproperty:const machine = createMachine({ initial: 'green', states: { green: { tags: 'go' // single tag }, yellow: { tags: 'go' }, red: { tags: ['stop', 'other'] // multiple tags } } });You can query whether a state has a tag via
state.hasTag(tag):const canGo = state.hasTag('go'); // => `true` if in 'green' or 'yellow' state
Patch Changes
In callback invokes, the types of
callbackandonReceiveare properly scoped to the machine TEvent.
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.