Packages

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…

Other targets from 4.30.6Newest 4.x4.38.3Latest5.33.4
  1. 4.30.6yours
  2. 4.31.0target
0
changes to make
0
advisories fixed
2
new
4
fixes

Release by release

  1. 4.31.0

    8 Apr 20222 new · 4 fixes
    • New

      The waitFor(...) helper function, which asynchronously waits for an actor's emitted value to satisfy a predicate before a timeout, 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.tags not 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 onDone on 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 ResolveTypegenMeta type.

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.