xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
4.38.3 is the newest release of 4.x.
In short
2 new1 fixed
Release note
Minor Changes
Allow machines to communicate with the inspector even in production builds.
There is now support for "combinatorial machines" (state machines that only have one state):
const testMachine = createMachine({ context: { value: 42 }, on: { INC: { actions: assign({ value: ctx => ctx.value + 1 }) } } });These machines omit the
initialandstateproperties, as the entire machine is treated as a single state.
Patch Changes
Provide a convenience type for getting the
Interpretertype based on theStateMachinetype by transferring all generic parameters onto it. It can be used like this:InterpreterFrom<typeof machine>
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.