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

Bump xstate from 4.25.0 to 4.30.1 #1379

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 20, 2022

Bumps xstate from 4.25.0 to 4.30.1.

Release notes

Sourced from xstate's releases.

xstate@4.30.1

Patch Changes

  • #3040 18dc2b3e2 Thanks @​davidkpiano! - The AnyState and AnyStateMachine types are now available, which can be used to express any state and state machine, respectively:

    import type { AnyState, AnyStateMachine } from 'xstate';
    // A function that takes in any state machine
    function visualizeMachine(machine: AnyStateMachine) {
    // (exercise left to reader)
    }
    function logState(state: AnyState) {
    // ...
    }

  • #3042 e53396f08 Thanks @​suerta-git! - Added the AnyStateConfig type, which represents any StateConfig<...>:

    import type { AnyStateConfig } from 'xstate';
    import { State } from 'xstate';
    // Retrieving the state config from localStorage
    const stateConfig: AnyStateConfig = JSON.parse(
    localStorage.getItem('app-state')
    );
    // Use State.create() to restore state from config object with correct type
    const previousState = State.create(stateConfig);

xstate@4.30.0

Minor Changes

  • #2965 8b8f719c3 Thanks @​satyasinha! - All actions are now available in the actions variable when importing: import { actions } from 'xstate'

  • #2892 02de3d44f Thanks @​davidkpiano! - Persisted state can now be easily restored to a state compatible with the machine without converting it to a State instance first:

    // Persisting a state
    someService.subscribe(state => {
      localStorage.setItem('some-state', JSON.stringify(state));
    });
    // Restoring a state
    const stateJson = localStorage.getItem('some-state');

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by xstate-release-bot, a new releaser for xstate 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](https://github.com/statelyai/xstate) from 4.25.0 to 4.30.1.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/xstate@4.25.0...xstate@4.30.1)

---
updated-dependencies:
- dependency-name: xstate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

codecov bot commented Feb 20, 2022

Codecov Report

Merging #1379 (7fe033e) into develop (cf0c315) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1379   +/-   ##
========================================
  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 Feb 27, 2022

Superseded by #1391.

@dependabot dependabot bot closed this Feb 27, 2022
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate-4.30.1 branch February 27, 2022 09:03
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