Skip to content

build(deps): bump @xstate/react from 1.3.4 to 1.6.1#227

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/xstate/react-1.6.1
Closed

build(deps): bump @xstate/react from 1.3.4 to 1.6.1#227
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/xstate/react-1.6.1

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 31, 2021

Bumps @xstate/react from 1.3.4 to 1.6.1.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​1.6.1

Patch Changes

  • #2587 5aaa8445c Thanks @​Andarist! - Fixed an issue with implementations provided outside of React being wiped out and unusable.

@​xstate/react@​1.6.0

Minor Changes

  • 4b4872ca #2241 Thanks @​mattpocock! - Changed the behaviour of guards, delays and activities when declared as options in useMachine/useInterpret.

    Previously, guards could not reference external props, because they would not be updated when the props changed. For instance:

    const Modal = props => {
      useMachine(modalMachine, {
        guards: {
          isModalOpen: () => props.isOpen
        }
      });
    };

    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:

    const Modal = props => {
      useMachine(modalMachine, {
        actions: {
          consoleLogModalOpen: () => {
            console.log(props.isOpen);
          }
        }
      });
    };

    This change brings guards and delays into line with actions and services.

    ⚠️ NOTE: Whenever possible, use data from within 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 by useMachine and useInterpret when they were defined a lazily evaluated context, like for example here:

    createMachine({
      // lazy context
      context: () => ({

... (truncated)

Commits
  • b324f02 Merge pull request #2591 from statelyai/changeset-release/main
  • e2750f4 Version Packages
  • df2af68 Fixup thank you notes in some changelog entries
  • 29d342c Bump @changesets/changelog-github
  • efc8e25 Merge pull request #2587 from statelyai/andarist/fix-options-syncing-in-react
  • b42f186 Merge pull request #2590 from arturcarvalho/patch-1
  • 0ce0bcc Add "," to make example work
  • 5aaa844 Add changesets
  • fef475a Add tests for implementations provided outside of React and allow updated~ gu...
  • aa5ed21 Fixed an issue with updating options in React's effect
  • 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)

Bumps [@xstate/react](https://github.com/davidkpiano/xstate) from 1.3.4 to 1.6.1.
- [Release notes](https://github.com/davidkpiano/xstate/releases)
- [Commits](https://github.com/davidkpiano/xstate/compare/@xstate/react@1.3.4...@xstate/react@1.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/xstate/react-1.6.1 branch from be20fc8 to 33b1620 Compare September 7, 2021 05:58
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 2, 2021

Superseded by #286.

@dependabot dependabot bot closed this Nov 2, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-1.6.1 branch November 2, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants

Comments