Skip to content

build(deps): bump @xstate/react from 1.3.4 to 1.5.1#198

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

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

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 21, 2021

Bumps @xstate/react from 1.3.4 to 1.5.1.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​1.5.1

Patch Changes

  • 453acacb #2389 Thanks @​davidkpiano! - An internal issue where the spawnBehavior import for the useSpawn(...) hook was broken internally has been fixed.

@​xstate/react@​1.5.0

Minor Changes

  • 432b60f7 #2280 Thanks @​davidkpiano! - Just like useInterpret(...), other types of actors can now be spawned from behaviors using useSpawn(...):

    import { fromReducer } from 'xstate/lib/behaviors';
    import { useActor, useSpawn } from '@xstate/react';
    type CountEvent = { type: 'INC' } | { type: 'DEC' };
    const countBehavior = fromReducer(
    (count: number, event: CountEvent): number => {
    if (event.type === 'INC') {
    return count + 1;
    } else if (event.type === 'DEC') {
    return count - 1;
    }
    return count;
    
    },
    0 // initial state
    );
    const Component = () => {
    const countActorRef = useSpawn(countBehavior);
    const [count, send] = useActor(countActorRef);
    return (
    <div>
    Count: {count}
    <button onClick={() => send({ type: 'INC' })}>Increment</button>
    <button onClick={() => send({ type: 'DEC' })}>Decrement</button>
    </div>
    );
    };

@​xstate/react@​1.4.0

Minor Changes

  • 849ec56c #2286 Thanks @​davidkpiano! - The useService(...) hook will be deprecated, since services are also actors. In future versions, the useActor(...) hook should be used instead:

    -const [state, send] = useService(service);

... (truncated)

Commits
  • 60e5113 Merge pull request #2390 from statelyai/changeset-release/main
  • 3eef62c Version Packages
  • a1dc823 Merge pull request #2382 from statelyai/davidkpiano/2380
  • 51f7cfb Merge pull request #2389 from statelyai/davidkpiano/usespawn-hotfix
  • 19cd991 Modify changeset
  • 453acac Add changeset
  • 0cbc673 Change import of spawnBehavior
  • 8c1e01d Merge pull request #2385 from statelyai/changeset-release/main
  • 5bd3f72 Version Packages
  • e23aa41 Fixed github.repository check in the release action
  • 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)

@Addono Addono force-pushed the master branch 2 times, most recently from 8da470a to fe530e3 Compare July 23, 2021 17:38
Bumps [@xstate/react](https://github.com/davidkpiano/xstate) from 1.3.4 to 1.5.1.
- [Release notes](https://github.com/davidkpiano/xstate/releases)
- [Commits](https://github.com/davidkpiano/xstate/compare/@xstate/react@1.3.4...@xstate/react@1.5.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.5.1 branch from 6af0ea5 to 7cd914c Compare July 24, 2021 05:07
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 31, 2021

Superseded by #227.

@dependabot dependabot bot closed this Aug 31, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-1.5.1 branch August 31, 2021 14:05
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