Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Upgrading xstate From 4.30.5 to 4.30.6

1 release in betweenevery note read

Reading releases, release notes and advisories…

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

Release by release

  1. 4.30.6

    11 Mar 20227 fixes
    • Fixed

      Fixed an issue with event type being inferred from too many places within createMachine call and possibly ending up as any/AnyEventObject for the entire machine.

    • Fixed

      Fixed compatibility with esoteric Mini Program environment where global object was available but global.console wasn't.

    • Fixed

      Fixed an issue with interpreters started using a persisted state not being "resolved" in full. This could cause some things, such as after transitions, not being executed correctly after starting an interpreter like this.

    • Fixed

      Fixed a TS inference issue causing some functions to infer the constraint type for the event type even though a StateMachine passed to the function was parametrized with a concrete type for the event. More information can be found here.

    • Fixed

      Fixed compatibility of Interpreter with older versions of TypeScript. This ensures that our interpreters can correctly be consumed by functions expecting ActorRef interface (like for example useSelector).

    • Fixed

      InterpreterFrom and ActorRefFrom types used on machines with typegen data should now correctly return types with final/resolved typegen data. The "final" type here means a type that already encodes the information that all required implementations have been provided. Before this change this wouldn't typecheck correctly:

    • Fixed

      State that is persisted and restored from machine.resolveState(state) will now have the correct state.machine value, so that state.can(...) and other methods will work as expected. See #3096 for more details.

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.