xstate
5.33.4 · 7 Nov 2026MIT9M / weekRepositoryHomepagenpmAtom feed
Upgrading xstate From 4.23.1 to 4.23.2
1 release in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Add utility type
EmittedFrom<T>that extractsEmittedtype from any type which can emit data - Fixed
Widened the *From utility types to allow extracting from factory functions.
- Fixed
The custom
.toString()method on action objects is now removed which improves performance in larger applications (see #2488 for more context). - Fixed
The
contextproperty has been removed fromStateNodeConfig, as it has never been allowed, nor has it ever done anything. The previous typing was unsafe and allowedcontextto be specified on nested state nodes: - Fixed
A race condition occurred when a child service is immediately stopped and the parent service tried to remove it from its undefined state (during its own initialization). This has been fixed, and the race condition no longer occurs. See this issue for details.
- Fixed
Adjusted TS type definitions of the
withContextandwithConfigmethods so that they accept "lazy context" now. - Fixed
Fixed an issue with
state.hasTag('someTag')crashing when thestatewas rehydrated.
- 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.