Packages

xstate

5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed

Upgrading xstate From 4.29.0 to 4.30.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.29.0Newest 4.x4.38.3Latest5.33.4
  1. 4.29.0yours
  2. 4.30.0target
1
change to make
0
advisories fixed
2
new
4
fixes

Before you upgrade

Tick each one off as you go
  • Deprecated4.30.0

Release by release

  1. 4.30.0

    Deprecation12 Feb 20222 new · 4 fixes
    • Deprecated

      Marked all phantom properties on the StateMachine type as deprecated. This deprioritized them in IDEs so they don't popup as first suggestions during property access.

    • New

      All actions are now available in the actions variable when importing: import { actions } from 'xstate'

    • New

      Persisted state can now be easily restored to a state compatible with the machine without converting it to a State instance first:

    • Fixed

      Fixed an issue with a reference to @types/node being inserted into XState's compiled output. This could cause unexpected issues in projects expecting APIs like setTimeout to be typed with browser compatibility in mind.

    • Fixed

      Fixed an issue with states created using machine.getInitialState not being "resolved" in full. This could cause some things, such as after transitions, not being executed correctly after starting an interpreter using such state.

    • Fixed

      Fixed an issue with state.context becoming any after state.matches when typegen is used.

    • Fixed

      Moved an internal @ts-ignore to a JSDoc-style comment to fix consuming projects that do not use skipLibCheck. Regular inline and block comments are not preserved in the TypeScript's emit.

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.