Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Bump @xstate/react from 1.6.1 to 2.0.0 #1332

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 30, 2022

Bumps @xstate/react from 1.6.1 to 2.0.0.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​2.0.0

Major Changes

  • #2674 e5a8b8dff Thanks @​Andarist, @​mattpocock! - To avoid breaking any consumers and to leverage the newly introduced typegen support, the major version of this package had to be bumped. While you can still use it with older versions of TS, the typegen support in this package requires TS version 4.0 or greater.

    When using hooks from @xstate/react it's recommended to skip providing explicit generics to them. Note that that generics list has changed since v1 and we now only accept a single generic, TMachine.

  • #2674 ab919d300 Thanks @​Andarist! - Removed already deprecated useService from @xstate/react. You can replace its usage with useActor.

Patch Changes

@​xstate/react@​1.6.3

Patch Changes

@​xstate/react@​1.6.2

Patch Changes

  • #2736 2246ae051 Thanks @​Andarist, @​davidkpiano, @​VanTanev! - The useSelector(...) hook now works as expected when the actor passed in changes. The hook will properly subscribe to the new actor 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 via withConfig.

    const machine = createMachine({
      initial: 'foo',
      context: { id: 1 },
      states: {
        foo: {
          on: {
            CHECK: {
              target: 'bar',
              cond: 'hasOverflown'
            }
          }
        },
        bar: {}
      }
    });
    const [id, setId] = useState(1);
    const [current, send] = useMachine(
    machine.withConfig({
    guards: {
    hasOverflown: () => id > 1 // id is a reference to an outside value
    }

... (truncated)

Commits
  • f23b63d Version Packages (#2960)
  • 5491d4e Added documentation for typegen & the VS Code extension (#2963)
  • bc6980c Reformat config.schema changeset (#2975)
  • 69cc91b Merge pull request #2674 from statelyai/andarist/typegen-types
  • a0c052b Add a note about tsTypes feature being in beta
  • 6ec4cff Fixed the issue with implementations triggered by internal events when there ...
  • 2200d1b Merge pull request #2969 from statelyai/matt/fixed-issue-where-you-could-not-...
  • 28effb9 Fixed TS error
  • 69977b6 Merge branch 'andarist/typegen-types' of github.com:statelyai/xstate into mat...
  • 04cd4fa Update packages/core/src/model.types.ts
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by xstate-release-bot, a new releaser for @​xstate/react since your current version.


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/statelyai/xstate) from 1.6.1 to 2.0.0.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/@xstate/react@1.6.1...@xstate/react@2.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 30, 2022
@codecov
Copy link

codecov bot commented Jan 30, 2022

Codecov Report

Merging #1332 (551a39d) into develop (cf0c315) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1332   +/-   ##
========================================
  Coverage    61.84%   61.84%           
========================================
  Files           48       48           
  Lines         1106     1106           
  Branches       285      286    +1     
========================================
  Hits           684      684           
  Misses         413      413           
  Partials         9        9           

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 6, 2022

Superseded by #1400.

@dependabot dependabot bot closed this Mar 6, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-2.0.0 branch March 6, 2022 09:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants