NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #4208 most downloaded on npm
Finite State Machines and Statecharts for the Modern Web.
Latest stable
5.33.4
Last release 15 days ago
07 Nov 2026
Ships on a steady schedule
a new release about every 1 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
352 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
73cff29: Add createSourceAtom for read-only external snapshots. Direct and derived subscribers share one listener, released when the last consumer lea
73cff29: Add createSourceAtom for read-only external snapshots. Direct and derived subscribers share one listener, released when the last consumer leaves. Plain reads do not subscribe; reconnecting refreshes the snapshot. The source adapter can return a cleanup function or a { unsubscribe() } subscription. Public atom subscriptions always return { unsubscribe() }, matching existing XState subscriptions.
Failed activation remains eligible for a later atom operation. Errors delivering an async atom result are exposed through its error state.
const isDark = createSourceAtom({
getSnapshot: () => media.matches,
subscribe: (notify) => {
media.addEventListener('change', notify);
return () => media.removeEventListener('change', notify);
}
});
c27b509: fromStore() now returns XState v6 actor logic and requires xstate@6. xstate is declared as an optional peer dependency; it is only needed if
c27b509: fromStore() now returns XState v6 actor logic and requires xstate@6. xstate is declared as an optional peer dependency; it is only needed if you use fromStore(). Use @xstate/store@4 with XState v5.
import { createActor } from 'xstate';
import { fromStore } from '@xstate/store';
const logic = fromStore({ context: { count: 0 }, on: { inc: (ctx) => ({ count: ctx.count + 1 }) } });
const actor = createActor(logic).start();
actor.send({ type: 'inc' });
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #4380 `e9e065822` Thanks @Andarist! - Fixed an issue with exit actions sometimes being called twice when a machine reaches its fin
`ts import { cancel } from 'xstate'; `
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.