Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: bump @xstate/react from 2.0.1 to 3.0.0 in /site #966

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

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 11, 2022

Bumps @xstate/react from 2.0.1 to 3.0.0.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​3.0.0

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]:

    • @​xstate/fsm@​2.0.0
Commits
  • 7a698d4 Version Packages (#3155)
  • f3d6314 Fixed an issue that caused sending the same event multiple times to the inspe...
  • 2e6a361 Merge pull request #3207 from cunneen/patch-1
  • ce3d88b Update showcase.md
  • 518d2f9 Merge pull request #3190 from statelyai/davidkpiano/waitFor
  • 281f1fe Add missing changeset about changes in the core from #3200 (#3203)
  • 09e2130 Fixed an issue that prevented some states, containing broken~ toJSON, from be...
  • 56c0a36 waitFor fixes for cases when starting to waitFor stopped interpreter (#3200)
  • 8e171eb Consistently dispose internal handles in waitFor (#3201)
  • 4e9a938 Tweak changeset related to the "maximum call stack size exceeded" issue in `@...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from a team as a code owner April 11, 2022 19:10
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/site/xstate/react-3.0.0 branch from 853edf0 to 432b2e4 Compare April 11, 2022 20:10
Bumps [@xstate/react](https://github.com/statelyai/xstate) from 2.0.1 to 3.0.0.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/@xstate/[email protected]...@xstate/[email protected])

---
updated-dependencies:
- dependency-name: "@xstate/react"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@greyscaled greyscaled force-pushed the dependabot/npm_and_yarn/site/xstate/react-3.0.0 branch from 432b2e4 to deb0333 Compare April 11, 2022 20:11
@codecov
Copy link

codecov bot commented Apr 11, 2022

Codecov Report

Merging #966 (deb0333) into main (3cb11fc) will increase coverage by 0.24%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #966      +/-   ##
==========================================
+ Coverage   66.21%   66.45%   +0.24%     
==========================================
  Files         238      238              
  Lines       14221    14221              
  Branches      115      115              
==========================================
+ Hits         9416     9451      +35     
+ Misses       3861     3828      -33     
+ Partials      944      942       -2     
Flag Coverage Δ
unittest-go-macos-latest 53.45% <ø> (+0.29%) ⬆️
unittest-go-postgres- 65.88% <ø> (-0.18%) ⬇️
unittest-go-ubuntu-latest 55.81% <ø> (+0.32%) ⬆️
unittest-go-windows-2022 52.55% <ø> (+0.04%) ⬆️
unittest-js 61.56% <ø> (ø)
Impacted Files Coverage Δ
coderd/database/db.go 55.17% <0.00%> (-13.80%) ⬇️
cli/cliui/agent.go 77.19% <0.00%> (-5.27%) ⬇️
coderd/provisionerdaemons.go 62.56% <0.00%> (-2.53%) ⬇️
provisioner/echo/serve.go 56.80% <0.00%> (-2.41%) ⬇️
coderd/parameter/compute.go 78.51% <0.00%> (-2.23%) ⬇️
peer/channel.go 83.04% <0.00%> (-0.59%) ⬇️
coderd/database/queries.sql.go 83.97% <0.00%> (-0.22%) ⬇️
coderd/workspaceresources.go 60.56% <0.00%> (+1.21%) ⬆️
provisionerd/provisionerd.go 83.11% <0.00%> (+2.93%) ⬆️
peerbroker/listen.go 87.50% <0.00%> (+5.00%) ⬆️
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cb11fc...deb0333. Read the comment docs.

@greyscaled greyscaled enabled auto-merge (squash) April 11, 2022 20:29
@greyscaled greyscaled disabled auto-merge April 11, 2022 20:30
Copy link
Contributor

@greyscaled greyscaled left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking change doesn't seem to apply to our usage

@greyscaled greyscaled merged commit c97180c into main Apr 11, 2022
@greyscaled greyscaled deleted the dependabot/npm_and_yarn/site/xstate/react-3.0.0 branch April 11, 2022 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant