xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
4.38.3 is the newest release of 4.x.
In short
1 new5 fixed
Release note
Minor Changes
The
createModel(...)function is now marked as deprecated, as it will be removed in XState version 5. It is recommended to use Typegen instead.
Patch Changes
Fixed an issue with targeted ancestors not being correctly exited when reented during external transitions.
Fixed an issue with external transitions targeting ancestor states. In such a case,
entryactions were incorrectly called on the states between the source state and the target state for states that were not reentered within this transition.Fixed an issue with the active descendants of the targeted ancestor not being correctly reentered during external transitions.
Updated
pureaction types to allow actiontypestrings to be returned in the array.const machine = createMachine( { entry: ['doStuff'] }, { actions: { doStuff: pure(() => ['someAction']), someAction: () => console.log('executed by doStuff') } } );Returning action
typestrings were already handled byxstateand the types now correctly reflect that.The warning for the
predictableActionArgumentssetting has been improved to only warn if it is absent. You can disable the warning by settingpredictableActionArguments: false. It's still recommended to set it totruethough.
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.