Skip to content
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

fix(deps): update xstate monorepo (major) #1408

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 18, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@xstate/vue (source) ^2.0.0 -> ^3.1.1 age adoption passing confidence
xstate (source) ^4.38.3 -> ^5.9.1 age adoption passing confidence

Release Notes

statelyai/xstate (@​xstate/vue)

v3.1.1

Compare Source

Patch Changes
  • #​3799 51d254692 Thanks @​Andarist! - Fixed an issue that caused the internally used useSyncExternalStore to warn about the computed snapshot not being cached when a not-started machine servive was passed to useActor.

v3.1.0

Compare Source

Minor Changes
  • #​4231 c2402e7bc Thanks @​davidkpiano! - The actor passed to useSelector(actor, selector) is now allowed to be undefined for an actor that may not exist yet. For actors that may be undefined, the snapshot provided to the selector function can also be undefined:

    const count = useSelector(maybeActor, (snapshot) => {
      // `snapshot` may be undefined
      return snapshot?.context.count;
    });
    
    count; // number | undefined

v3.0.3

Compare Source

Patch Changes

v3.0.2

Compare Source

Patch Changes

v3.0.1

Compare Source

Patch Changes
  • #​3456 131d429ab Thanks @​davidkpiano! - Add shallowEqual helper comparator function.

  • #​3500 0dfc6d92f Thanks @​Andarist! - Fixed an issue with useSelector always computing fresh snapshots internally for uninitialized services. This avoids the internal useSyncExternalStore from warning about the snapshot value not being cached properly.

v3.0.0

Compare Source

Major Changes
  • #​2939 360e85462 Thanks @​Andarist! - This package now accepts React 18 as a peer dep and the implementation has been rewritten to use use-sync-external-store package. This doesn't break compatibility with older versions of React since we are using the shim to keep compatibility with those older versions.

  • #​2939 360e85462 Thanks @​Andarist! - asEffect and asLayoutEffect action creators were removed. They were not fitting the React model that well and could lead to issues as their existence suggested that they are easy to use.

    To execute actions at those exact times you can always either just call your stuff directly from those effects or send events to the machine from those effects and execute explicit actions in response to said events.

  • #​2939 360e85462 Thanks @​Andarist! - The signatures of useMachine and useService integrating with @xstate/fsm were changed. They now only accept a single generic each (TMachine and TService respectively). This has been done to match their signatures with the related hooks that integrate with xstate itself.

Patch Changes
  • #​2939 360e85462 Thanks @​Andarist! - In v2 we have changed signatures of useMachine and useInterpret. Instead of accepting a list of generics they now only support a single generic: TMachine. This change, erroneously, was only introduced to types targeting [email protected] but the types targeting previous TS releases were still using the older signatures. This has now been fixed and users of older TS versions should now be able to leverage typegen with @xstate/react.

  • #​2939 360e85462 Thanks @​Andarist! - useMachine for xstate now correctly rerenders with the initial state when the internal service is being restarted. This might happen during Fast Refresh and now you shouldn't be able to observe this stale state that didn't match the actual state of the service.

  • #​2939 360e85462 Thanks @​Andarist! - useMachine for @xstate/fsm now starts the service in an effect. This avoids side-effects in render and improves the compatibility with StrictMode.

  • #​2939 360e85462 Thanks @​Andarist! - Implementations given to useMachine targeting @xstate/fsm are now updated in a layout effect. This avoid some stale closure problems for actions that are executed in response to events sent from layout effects.

  • Updated dependencies [360e85462, 360e85462]:


Configuration

📅 Schedule: Branch creation - "before 5am every weekday" in timezone America/New_York, Automerge - "every weekday" in timezone America/New_York.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested review from kongponents-bot and a team as code owners December 18, 2023 06:56
@renovate renovate bot added dependencies Pull requests that update a dependency file renovate-bot labels Dec 18, 2023
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 9edc5b2 to 24b2f39 Compare December 19, 2023 06:57
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 24b2f39 to f93e815 Compare December 20, 2023 07:44
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from f93e815 to 7fa5448 Compare December 21, 2023 07:34
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 7fa5448 to 07a9eca Compare December 22, 2023 06:27
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 07a9eca to 554ca2b Compare December 22, 2023 09:03
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 554ca2b to a52a56e Compare December 25, 2023 06:37
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from a52a56e to b397f48 Compare December 25, 2023 09:15
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from b397f48 to 437a2f4 Compare December 27, 2023 06:06
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 437a2f4 to d8f3144 Compare December 28, 2023 05:08
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from d8f3144 to 8621d5b Compare January 1, 2024 06:45
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 8621d5b to 1dfdddc Compare January 1, 2024 06:51
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 1dfdddc to 965a7aa Compare January 3, 2024 06:10
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 965a7aa to 31420e4 Compare January 8, 2024 07:12
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from c80a86f to fd0e4c4 Compare March 6, 2024 06:02
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from fd0e4c4 to 1e4c334 Compare March 7, 2024 06:19
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 1e4c334 to 6582de8 Compare March 11, 2024 04:34
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 6582de8 to 65781ff Compare March 11, 2024 08:30
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 65781ff to b27374c Compare March 13, 2024 04:09
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from b27374c to 149927f Compare March 14, 2024 04:03
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 149927f to 78d9418 Compare March 18, 2024 05:08
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 78d9418 to a58c71b Compare March 18, 2024 07:36
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from a58c71b to 36bbbb0 Compare March 25, 2024 04:51
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 36bbbb0 to d25d5d2 Compare March 25, 2024 08:12
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from d25d5d2 to 092ab77 Compare March 28, 2024 04:14
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 092ab77 to 5078d3d Compare April 2, 2024 04:30
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 5078d3d to 716df84 Compare April 4, 2024 04:36
@renovate renovate bot force-pushed the renovate/major-xstate-monorepo branch from 716df84 to 4d49787 Compare April 5, 2024 05:00
@adamdehaven adamdehaven closed this Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file renovate-bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants