xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.30.6 to 4.31.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
The
waitFor(...)helper function, which asynchronously waits for an actor's emitted value to satisfy apredicatebefore atimeout, is now available. - New
Subscribing to a stopped interpreter will now always immediately emit its state and call a completion callback.
- Fixed
Fixed an issue with
state.tagsnot having correct values when resolving micro transitions (taken in response to raised events). This was creating issues when checking tags in guards. - Fixed
Fixed an issue with
onDoneon parallel states not being "called" correctly when a parallel state had a history state defined directly on it. - Fixed
Fixed issues with not disposing some cached internal values when stopping interpreters, which could have led to issues when starting such an interpreter again.
- Fixed
Made type displays (like in the IDE tooltips etc) more readable by using a type interface for the internal
ResolveTypegenMetatype.
- New
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.