xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 201 releases5.33.4
7 Nov 2026Summary· from the note as AI read it
Read before upgrading: 1 change to make.
Patch Changes
core: Fix
assertEventnarrowing when the event type is behind a generic type parameterPreviously, calling
assertEventinside a function whose event parameter was typed with a generic (e.g.function f<TEvent extends SomeEventUnion>(event: TEvent)) would compile, but every property access oneventafterward would fail to type-check with a "Property does not exist" error. This is now fixed -assertEventnarrows generic event parameters the same way it narrows concrete ones, while still rejecting invalid event descriptors at compile time.assertEventalso keeps narrowing events whosetypefield is a union of literals (e.g.{ type: 'a' | 'b'; value: string }) when asserting one of those literals, for both concrete and generic event parameters.Partial wildcard descriptors now preserve the bare prefix event in the narrowed type, matching runtime behavior. For example,
assertEvent(event, 'FEEDBACK.*')keeps bothFEEDBACKandFEEDBACK.GOOD, so accessing a payload specific toFEEDBACK.GOODrequires further narrowing. This also applies toExtractEventand event types inferred for partial wildcard transitions.
5.33.3
17 Oct 2026Fixed child actors not being stopped when a machine errors because of an unhandled error from an invoked actor. The remaining invoked and spawned actors are now stopped (and their cleanup functions are called) before the machine settles in the error state, instead of being left running as orphans.
5.33.2
15 Sep 2026Fixed metadata types in generic history values, snapshot nodes, and directed graph results. These containers now accept arbitrary state and transition metadata consistently with
AnyStateNodeandAnyTransitionDefinition, avoiding unsafe-type warnings when inspecting machines through generic APIs.
Dependency tracking
Know when your own dependencies move
xstate published 21 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 21 Nov 2026. Releases and advisories last read 21 Nov 2026.
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.