Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
xstate@4.10.0
Minor Changes
0133954
#1178 Thanks @davidkpiano! - The types for thesend()
andsendParent()
action creators have been changed to fix the issue of only being able to send events that the machine can receive. In reality, a machine can and should send events to other actors that it might not be able to receive itself. See #711 for more information.a1f1239
#1189 Thanks @davidkpiano! - Previously,state.matches(...)
was problematic because it was castingstate
tonever
if it didn't match the state value. This is now fixed by making theTypestate
resolution more granular.dbc6a16
#1183 Thanks @davidkpiano! - Actions from a restored state provided as a custom initial state tointerpret(machine).start(initialState)
are now executed properly. See Warning "No implementation found for action type" shown when starting machine from persisted state #1174 for more information.Patch Changes
a10d604
#1176 Thanks @itfarrier! - Fix passing state schema into State generic326db72
#1185 Thanks @Andarist! - Fixed an issue with invoked service not being correctly started if other service got stopped in a subsequent microstep (in response to raised or null event).c3a496e
#1160 Thanks @davidkpiano! - Delayed transitions defined usingafter
were previously causing a circular dependency when the machine was converted using.toJSON()
. This has now been fixed.e16e48e
#1153 Thanks @Andarist! - Fixed an issue withchoose
andpure
not being able to use actions defined in options.d496ecb
#1165 Thanks @davidkpiano! - XState will now warn if you define an.onDone
transition on the root node. Root nodes which are "done" represent the machine being in its final state, and can no longer accept any events. This has been reported as confusing in #1111.