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 main, this PR will be updated.
Releases
xstate@4.30.6
Patch Changes
#3131
d9a0bcfc9
Thanks @Andarist! - Fixed an issue with event type being inferred from too many places withincreateMachine
call and possibly ending up asany
/AnyEventObject
for the entire machine.#3133
4feef9d47
Thanks @fw6! - Fixed compatibility with esoteric Mini Program environment whereglobal
object was available butglobal.console
wasn't.#3140
502ffe91a
Thanks @Andarist! - Fixed an issue with interpreters started using a persisted state not being "resolved" in full. This could cause some things, such asafter
transitions, not being executed correctly after starting an interpreter like this.#3147
155539c85
Thanks @Andarist! - Fixed a TS inference issue causing some functions to infer the constraint type for the event type even though aStateMachine
passed to the function was parametrized with a concrete type for the event. More information can be found here.#3146
4cf89b5f9
Thanks @Andarist! - Fixed compatibility ofInterpreter
with older versions of TypeScript. This ensures that our interpreters can correctly be consumed by functions expectingActorRef
interface (like for exampleuseSelector
).#3139
7b45fda9e
Thanks @Andarist! -InterpreterFrom
andActorRefFrom
types used on machines with typegen data should now correctly return types with final/resolved typegen data. The "final" type here means a type that already encodes the information that all required implementations have been provided. Before this change this wouldn't typecheck correctly:#3097
c881c8ca9
Thanks @davidkpiano! - State that is persisted and restored frommachine.resolveState(state)
will now have the correctstate.machine
value, so thatstate.can(...)
and other methods will work as expected. See #3096 for more details.@xstate/inspect@0.6.4
Patch Changes
#3144
e08030faf
Thanks @lecepin! - Added UMD build for this package that is available in thedist
directory in the published package.#3144
e08030faf
Thanks @lecepin! - Added properpeerDependency
on XState. It was incorrectly omitted from thepackage.json
of this package.