Patch Changes
-
#3088
9f02271a3
Thanks @Andarist! - Added some internal@ts-ignore
comments to fix consuming projects that do not useskipLibCheck
. -
#3082
8d3f2cfea
Thanks @Andarist! - Fixed an issue with context type being inferred from too many places withincreateMachine
call and possibly ending up asany
for the entire machine. -
#3027
97ad964bd
Thanks @hedgepigdaniel! - Fixed an issue with not being able to callcreateMachine
in a generic context when the type for the context was generic and not concrete. -
#3084
50c271dc1
Thanks @Andarist! - Fixed an issue with context type defined usingschema.context
being sometimes widened based onconfig.context
. If both are given theschema.context
should always take precedence and should represent the complete type of the context. -
#3089
862697e29
Thanks @Andarist! - Fixed compatibility with Skypack by exporting some shared utilities from root entry of XState and consuming them directly in other packages (this avoids accessing those things using deep imports and thus it avoids creating those compatibility problems). -
#3087
ae9579497
Thanks @Andarist! - Fixed an issue withActorRefFrom
not resolving the typegen metadata from machine types given to it. This could sometimes result in types assignability problems, especially when using machine factories andspawn
.