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.14.0
Minor Changes
119db8fb
#1577 Thanks @davidkpiano! - Expressions can now be used in thestop()
action creator:Patch Changes
8c78e120
#1570 Thanks @davidkpiano! - The return type ofspawn(machine)
will now beActor<State<TContext, TEvent>, TEvent>
, which is a supertype ofInterpreter<...>
.602687c2
#1566 Thanks @davidkpiano! - Exit actions will now be properly called when an invoked machine reaches its final state. See #1109 for more details.6e44d02a
#1553 Thanks @davidkpiano! - Thestate.children
property now properly shows all spawned and invoked actors. See #795 for more details.72b0880e
#1504 Thanks @Andarist! - Addedstatus
property on theInterpreter
- this can be used to differentiate not started, running and stopped interpreters. This property is best compared to values on the newInterpreterStatus
export.@xstate/inspect@0.2.0
Minor Changes
1725333a
#1599 Thanks @davidkpiano! - The@xstate/inspect
package is now built with Rollup which has fixed an issue with TypeScript compiler inserting references tothis
in the top-level scope of the output modules and thus making it harder for some tools (like Rollup) to re-bundle dist files asthis
in modules (as they are always in strict mode) isundefined
.@xstate/react@1.0.2
Patch Changes
c7927083
#1516 Thanks @davidkpiano! - Thesend
function returned from theuseService()
now can take two arguments (an event type and payload), to match the behavior of@xstate/react
version 0.x.db77623a
#1516 Thanks @davidkpiano! - Thesend
value returned from theuseService()
hook will now accept a payload, which matches the signature of thesend
value returned from theuseMachine()
hook:93f6db02
#1594 Thanks @Andarist! - Fixed an issue with internalsetState
inuseService
being called with 2 arguments instead of 1.72b0880e
#1504 Thanks @Andarist! - Fixed issue withuseService
returning an initial state for services in their final states.