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.9.0
Minor Changes
f3ff150
#1103 Thanks @davidkpiano! - Simplify theTransitionConfigArray
andTransitionConfigMap
types in order to fix excessively deep type instantiation TypeScript reports. This addresses #1015.6c47b66
#1076 Thanks @Andarist! - Added support for conditional actions. It's possible now to have actions executed based on conditions using following:It works very similar to the if-else syntax where only the first matched condition is causing associated actions to be executed and the last ones can be unconditional (serving as a general fallback, just like else branch).
Patch Changes
1a129f0
#1073 Thanks @Andarist! - Cleanup internal structures upon receiving termination events from spawned actors.e88aa18
#1085 Thanks @Andarist! - Fixed an issue with data expressions of root's final nodes being called twice.88b17b2
#1090 Thanks @rjdestigter! - This change carries forward the typestate type information encoded in the arguments of the following functions and assures that the return type also has the same typestate type information:.withConfig
..state
getter defined for services.start
method of services.d5f622f
#1069 Thanks @davidkpiano! - Loosened event type forSendAction<TContext, AnyEventObject>
@xstate/fsm@1.4.0
Minor Changes
3d50808
#1082 Thanks @davidkpiano! - The.state
property is now exposed on the service returned frominterpret(machine)
, which is a getter that returns the latest state of the machine.Patch Changes
dcbd72f
#1122 Thanks @chancestrickland! -StateMachine.Config
type accepts now a third type parameter -TState
- similarly to other existing types. When provided it provides helpful intellisense when defining the state chart transitions.@xstate/graph@1.1.0
Minor Changes
137b0cd
#1033 Thanks @ZempTime! - Added ESM build of the package which can be loaded through modern web bundlers (instead of default CommonJS files).Patch Changes
f3ff150
,6c47b66
,1a129f0
,e88aa18
,88b17b2
,d5f622f
]:@xstate/test@0.4.0
Minor Changes
137b0cd
#1033 Thanks @ZempTime! - Added ESM build of the package which can be loaded through modern web bundlers (instead of default CommonJS files).Patch Changes
f3ff150
,6c47b66
,1a129f0
,e88aa18
,88b17b2
,137b0cd
,d5f622f
]: