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 next, this PR will be updated.
next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onnext
.Releases
xstate@5.0.0-alpha.1
Major Changes
#3455
ec39214c8
Thanks @davidkpiano! - Theinterpreter.onStop(...)
method has been removed. Use an observer instead viainterpreter.subscribe({ complete() { ... } })
instead.#3455
ec39214c8
Thanks @davidkpiano! - The.send(...)
method oninterpreter.send(...)
now requires the first argument (the event to send) to be an object; that is, either:{ type: 'someEvent' }
)The second argument (payload) is no longer supported, and should instead be included within the object:
#3455
ec39214c8
Thanks @davidkpiano! - Reading the initial state from an actor viaactor.initialState
is removed. Useactor.getInitialState()
instead.#3455
ec39214c8
Thanks @davidkpiano! - ThematchState(...)
helper function is removed.#3455
ec39214c8
Thanks @davidkpiano! - Thestrict: true
option for machine config has been removed.#3455
ec39214c8
Thanks @davidkpiano! - Theinterpreter.onError(...)
method has been removed. Useinterpreter.subscribe({ error(err) => { ... } })
instead.#3455
ec39214c8
Thanks @davidkpiano! -Interpreter['off']
method has been removed.#3455
ec39214c8
Thanks @davidkpiano! -.nextState
method has been removed from theInterpreter
.State#can
can be used to check if sending a particular event would lead to a state change.#3187
c800dec47
Thanks @davidkpiano! - ThecreateModel()
function has been removed in favor of relying on strong types in the machine configuration.#3455
ec39214c8
Thanks @davidkpiano! -sync
option has been removed frominvoke
andspawn
.Minor Changes
5fb3c683d
Thanks @Andarist! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package - it's no longer possible to import from files that are not considered to be a part of the public API.Patch Changes
#3455
ec39214c8
Thanks @davidkpiano! - Fixed an issue with inline actions not being correctly executed when there was an equally named action provided through theimplementations
argument.#3487
1b6e3dfb8
Thanks @Andarist, @davidkpiano! - Make it impossible to exit a root state. For example, this means that root-level transitions specified as external transitions will no longer restart root-level invocations. See #3072 for more details.#3389
aa8f5d5fd
Thanks @Andarist! - Fixed the declared signature of one of theStateMachine
's methods to avoid using a private namethis
. This makes it possible to emit correct.d.ts
for the associated file.#3374
a990f0ed1
Thanks @Andarist! - Fixed an issue with actors not being reinstantiated correctly when an actor with the same ID was first stopped and then invoked/spawned again in the same microstep.#3390
7abc41759
Thanks @Andarist! - Added back UMD builds. Please note that XState now comes with multiple entrypoints and you might need to load all of them (XState
,XStateActions
,XStateGuards
, etc.). It's also worth mentioning that those bundles don't reference each other so they don't actually share any code and some code might be duplicated between them.@xstate/fsm@3.0.0-alpha.0
Major Changes
#3455
ec39214c8
Thanks @davidkpiano! - The.send(...)
method oninterpreter.send(...)
now requires the first argument (the event to send) to be an object, e.g.{ type: 'someEvent' }
.Minor Changes
5fb3c683d
Thanks @Andarist! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package - it's no longer possible to import from files that are not considered to be a part of the public API.@xstate/react@4.0.0-alpha.1
Minor Changes
5fb3c683d
Thanks @Andarist! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package - it's no longer possible to import from files that are not considered to be a part of the public API.Patch Changes
5fb3c683d
,ec39214c8
]:@xstate/vue@3.0.0-alpha.1
Minor Changes
5fb3c683d
Thanks @Andarist! -exports
field has been added to thepackage.json
manifest. It limits what files can be imported from a package - it's no longer possible to import from files that are not considered to be a part of the public API.Patch Changes
5fb3c683d
,ec39214c8
]: