-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update xstate monorepo to v5 (major) #100
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-xstate-monorepo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1b288fd
to
27964a3
Compare
6001474
to
a0a3989
Compare
6f6f675
to
f8aa8b5
Compare
e237280
to
840f913
Compare
237c950
to
4c943f8
Compare
2744571
to
cbbc1be
Compare
79a7037
to
61c0dc1
Compare
1f0d4a0
to
a188f50
Compare
e9e95c2
to
f730f12
Compare
f730f12
to
83b431d
Compare
5622885
to
79e7a81
Compare
79e7a81
to
af12c99
Compare
af12c99
to
3dcbb72
Compare
3dcbb72
to
7cb1131
Compare
7cb1131
to
d978cb3
Compare
d978cb3
to
f7681f8
Compare
f7681f8
to
30393cf
Compare
839517e
to
00fbf70
Compare
3a985e8
to
6030999
Compare
cf42d43
to
dcb0dfe
Compare
dcb0dfe
to
2386698
Compare
2386698
to
4dd8a47
Compare
4dd8a47
to
e55afb2
Compare
e55afb2
to
1eb3bc3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 contains the following updates:
0.8.1
->5.0.2
4.38.3
->5.19.2
Release Notes
statelyai/xstate (@xstate/react)
v5.0.2
Compare Source
Patch Changes
80b9afbae
Thanks @Andarist! - Fixed definingactors
withinput
withinsetup
.v5.0.1
Compare Source
Patch Changes
5041764b2
Thanks @laurakalbag! - Flag that docs in this repo are deprecated in favour of docs at stately.ai/docs/xstatev5.0.0
Compare Source
Patch Changes
#5109
d67b71dd25d457a2a59f2c943db13f50fab7ec3d
Thanks @davidkpiano! - Add React 19 as a peer dependencyUpdated dependencies [
8c4b70652acaef2702f32435362e4755679a516d
]:v4.1.3
Compare Source
Patch Changes
25963966c394fc904dc9b701a420b6e204ebe7f7
]:v4.1.2
Compare Source
Patch Changes
#5055
ad38c35c37
Thanks @SandroMaglione! - Updated types ofuseActor
,useMachine
, anduseActorRef
to requireinput
when defined insidetypes/input
.Previously even when
input
was defined insidetypes
,useActor
,useMachine
, anduseActorRef
would not make the input required:With this change the above code will show a type error, since
input
is now required:This avoids runtime errors when forgetting to pass
input
when defined insidetypes
.v4.1.1
Compare Source
Patch Changes
#4844
5aa6eb05c
Thanks @davidkpiano! - TheuseSelector(…)
hook from@xstate/react
is now compatible with stores from@xstate/store
.v4.1.0
Compare Source
Minor Changes
#4231
c2402e7bc
Thanks @davidkpiano! - Theactor
passed touseSelector(actor, selector)
is now allowed to beundefined
for an actor that may not exist yet. For actors that may beundefined
, thesnapshot
provided to theselector
function can also beundefined
:v4.0.3
Compare Source
Patch Changes
#4695
52900a084
Thanks @davidkpiano! - Options increateActorContext
are now properly merged with provider options. Previously, provider options replaced the actor options.v4.0.2
Compare Source
Patch Changes
1f2ccb97c
Thanks @davidkpiano! - Typegen-based types for detecting missing implementations have been removed internally.v4.0.1
Compare Source
Patch Changes
d7f220225
Thanks @davidkpiano! - Fix an issue whereafter
transitions do not work in React strict mode. Delayed events (including fromafter
transitions) should now work as expected in all React modes.v4.0.0
Compare Source
Major Changes
#3947
5fa3a0c74
Thanks @davidkpiano! - Removed the ability to pass a factory function as argument touseMachine
.#4006
42df9a536
Thanks @davidkpiano! -useActorRef
is introduced, which returns anActorRef
from actor logic:~~
useMachine
~~ is deprecated in favor ofuseActor
, which works with machines and any other kind of logic~~
useSpawn
~~ is removed in favor ofuseActorRef
#4050
fc88dc8e6
Thanks @davidkpiano! - Theoptions
prop has been added (back) to theContext.Provider
component returned fromcreateActorContext
:#4006
42df9a536
Thanks @davidkpiano! -useActor
has been removed from the created actor context, you should be able to replace its usage withMyCtx.useSelector
andMyCtx.useActorRef
.#4265
1153b3f9a
Thanks @davidkpiano! - FSM-related functions have been removed.#3947
5fa3a0c74
Thanks @davidkpiano! - Implementations for machines onuseMachine
hooks should go directly on the machine viamachine.provide(...)
, and are no longer allowed to be passed in as options.#3148
7a68cbb61
Thanks @davidkpiano! - RemovedgetSnapshot
parameter from hooks. It is expected that the receivedactorRef
has to have agetSnapshot
method on it that can be used internally.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.409552cf8
Thanks @davidkpiano! - TheuseMachine
function is an alias ofuseActor
.340aee643
Thanks @Andarist! - Fast refresh now works as expected for most use-cases.fc88dc8e6
Thanks @davidkpiano! - TheobserverOrListener
argument has been removed from the 3rd argument ofcreateActorContext(logic, options)
.v3.2.2
Compare Source
Patch Changes
6665f0a32
Thanks @c-w! - Updated the allowed range for theuse-isomorphic-layout-effect
dependency.v3.2.1
Compare Source
Patch Changes
c110c429d
Thanks @Andarist! - Fixed compatibility of the generated TS types forcreateActorContext
with pre-4.7.v3.2.0
Compare Source
Minor Changes
#3814
494203b3d
Thanks @Andarist! - TheProvider
fromcreateActorContext(...)
now accepts theoptions={{...}}
prop that takes the same object as the second argument to theuseMachine(machine, options)
hook.These options are no longer passed as the second argument to the
createActorContext(machine)
function:v3.1.2
Compare Source
Patch Changes
#4844
5aa6eb05c
Thanks @davidkpiano! - TheuseSelector(…)
hook from@xstate/react
is now compatible with stores from@xstate/store
.v3.1.1
Compare Source
Patch Changes
f112081b9
Thanks @davidkpiano! - Fixsend(…)
type foruseActor(…)
v3.1.0
Compare Source
Minor Changes
#4231
c2402e7bc
Thanks @davidkpiano! - Theactor
passed touseSelector(actor, selector)
is now allowed to beundefined
for an actor that may not exist yet. For actors that may beundefined
, thesnapshot
provided to theselector
function can also beundefined
:v3.0.2
Compare Source
Patch Changes
4190c3fd6
Thanks @davidkpiano! - Computing the initial state is now consistent withuseMachine
anduseActor
, avoiding stale initial state problems with nested machinesv3.0.1
Compare Source
Patch Changes
f8cc116d3
Thanks @davidkpiano! - Actoroptions
are now optional inuseActor
.v3.0.0
Compare Source
Major Changes
#4288
cfdf754f8
Thanks @davidkpiano! - TheuseMachine(machine)
hook now returns{ snapshot, send, actorRef }
instead of{ state, send, service }
:#3148
7a68cbb61
Thanks @davidkpiano! - RemovedgetSnapshot
parameter from composables. It is expected that the receivedactorRef
has to have agetSnapshot
method on it that can be used internally.#4265
1153b3f9a
Thanks @davidkpiano! - FSM-related functions have been removed.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.cfdf754f8
Thanks @davidkpiano! - TheuseInterpret(machine)
anduseSpawn(machine)
hooks have been removed; use theuseActorRef(machine)
hook instead.v2.0.1
Compare Source
Patch Changes
862697e29
Thanks @Andarist! - Fixed compatibility with Skypack by exporting some shared utilities from root entry of XState and consuming them directly in other packages (this avoids accessing those things using deep imports and thus it avoids creating those compatibility problems).v2.0.0
Compare Source
Major Changes
eeadb7121
Thanks @TkDodo! - - Replaceuse-sync-external-store/shim
withuseSyncExternalStore
from React.getSnapshot
inuseSyncExternalStore
.getServerSnapshot
inuseSyncExternalStore
.store
to always be defined inuseSelector
v1.6.3
Compare Source
Patch Changes
c1503b121
Thanks @Andarist! - Fixed an over-rendering issue in theuseSelector
.v1.6.2
Compare Source
Patch Changes
#2736
2246ae051
Thanks @Andarist, @davidkpiano, @VanTanev! - TheuseSelector(...)
hook now works as expected when theactor
passed in changes. The hook will properly subscribe to the newactor
and select the desired value. See #2702#2685
469268d39
Thanks @farskid, @Andarist! - Fixed a regression with a development-only warning not being shown when a machine reference is updated during the hook lifecycle. This usually happens when machine options are dependent on external values and they're passed viawithConfig
.v1.6.1
Compare Source
Patch Changes
5aaa8445c
Thanks @Andarist! - Fixed an issue with implementations provided outside of React being wiped out and unusable.v1.6.0
Compare Source
Minor Changes
4b4872ca
#2241 Thanks @mattpocock! - Changed the behaviour of guards, delays and activities when declared as options inuseMachine
/useInterpret
.Previously, guards could not reference external props, because they would not be updated when the props changed. For instance:
When the component is created,
props.isOpen
would be checked and evaluated to the initial value. But if the guard is evaluated at any other time, it will not respond to the props' changed value.This is not true of actions/services. This will work as expected:
This change brings guards and delays into line with actions and services.
context
rather than external data in your guards and delays.Patch Changes
fe3e859f
#2522 Thanks @farskid, @Andarist! - Fixed an issue with actors not being spawned correctly byuseMachine
anduseInterpret
when they were defined a lazily evaluated context, like for example here:v1.5.1
Compare Source
Patch Changes
453acacb
#2389 Thanks @davidkpiano! - An internal issue where thespawnBehavior
import for theuseSpawn(...)
hook was broken internally has been fixed.v1.5.0
Compare Source
Minor Changes
432b60f7
#2280 Thanks @davidkpiano! - Just likeuseInterpret(...)
, other types of actors can now be spawned from behaviors usinguseSpawn(...)
:v1.4.0
Compare Source
Minor Changes
849ec56c
#2286 Thanks @davidkpiano! - TheuseService(...)
hook will be deprecated, since services are also actors. In future versions, theuseActor(...)
hook should be used instead:Patch Changes
ea3aaffb
#2326 Thanks @davidkpiano! - Thesend
type returned in the tuple fromuseActor(someService)
was an incorrectnever
type; this has been fixed.v1.3.4
Compare Source
Patch Changes
aa3c2991
#2223 Thanks @davidkpiano! - Support for actor refs with the.getSnapshot()
method (added for spawned actors in XState version 4.19) is now supported in theuseActor(...)
hook.v1.3.3
Compare Source
Patch Changes
27e7242c
#2112 Thanks @davidkpiano! - TheexecuteEffect
function is no longer exported (was meant to be internal and is useless as a public function anyway). This also fixes a circular dependency issue.v1.3.2
Compare Source
Patch Changes
bb5e81ea
#2050 Thanks @theKashey! - Added an explicit entrypoint for@xstate/react/fsm
which you can use instead of@xstate/react/lib/fsm
. This is the only specifier that will be supported in the future - the other one will be dropped in the next major version.v1.3.1
Compare Source
Patch Changes
b076b253
#1947 Thanks @lukekarrys! - Fix typing of the service returned from the fsm useMachine hook by passing it Typestate9b5dc784
#1950 Thanks @Andarist! - Fixed an issue withtoObserver
being internally imported fromxstate/lib/utils
which has broken UMD build and the declared peer dep contract.v1.3.0
Compare Source
Minor Changes
577ae023
#1915 Thanks @davidkpiano! - New hook:useInterpret(machine)
, which is a low-level hook that interprets themachine
and returns theservice
:577ae023
#1915 Thanks @davidkpiano! - New hook:useSelector(actor, selector)
, which subscribes toactor
and returns the selected state derived fromselector(snapshot)
:v1.2.2
Compare Source
Patch Changes
4b31cefb
#1780 Thanks @Andarist! - Fixed an issue with some external packages not being bundled correctly into the UMD bundles.v1.2.1
Compare Source
Patch Changes
a16a5f2f
#1756 Thanks @dimitardanailov! - Fixed an issue withprocess
references not being removed correctly from the UMD bundles.v1.2.0
Compare Source
Minor Changes
dd98296e
#1738 Thanks @dimitardanailov! - Added UMD bundle.v1.1.0
Compare Source
Minor Changes
89f9c27c
#1622 Thanks @davidkpiano! - Spawned/invoked actors and interpreters are now typed as extendingActorRef
rather thanActor
orInterpreter
. This unification of types should make it more straightforward to provide actor types in React:It's also easier to specify the type of a spawned/invoked machine with
ActorRefFrom
:v1.0.3
Compare Source
Patch Changes
27db2950
#1636 Thanks @Andarist! - Allow React 17 in the specified peer dependency range.v1.0.2
Compare Source
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.v1.0.1
Compare Source
Patch Changes
c0bd0407
#1493 Thanks @davidkpiano! - There will now be a descriptive error when trying to use an actor-like object in theuseService()
hook, whereuseActor()
should be preferred:All notable changes to this project will be documented in this file.
v1.0.0
Major Changes
f73366504
Thanks @davidkpiano! - Release@xstate/store
version 1.0Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,every weekend,before 5am every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.