Skip to content
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

Bump xstate from 4.6.7 to 4.23.1 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps xstate from 4.6.7 to 4.23.1.

Release notes

Sourced from xstate's releases.

[email protected]

Patch Changes

  • 141c91cf #2436 Thanks @​Andarist! - Fixed an issue where, when using model.createMachine, state's context was incorrectly inferred as any after refinement with .matches(...), e.g.

    // `state.context` became `any` erroneously
    if (state.matches('inactive')) {
      console.log(state.context.count);
    }

[email protected]

Minor Changes

  • 7dc7ceb8 #2379 Thanks @​davidkpiano! - There is a new .preserveActionOrder (default: false) setting in the machine configuration that preserves the order of actions when set to true. Normally, actions are executed in order except for assign(...) actions, which are prioritized and executed first. When .preserveActionOrder is set to true, assign(...) actions will not be prioritized, and will instead run in order. As a result, actions will capture the intermediate context values instead of the resulting context value from all assign(...) actions.

    // With `.preserveActionOrder: true`
    const machine = createMachine({
      context: { count: 0 },
      entry: [
        ctx => console.log(ctx.count), // 0
        assign({ count: ctx => ctx.count + 1 }),
        ctx => console.log(ctx.count), // 1
        assign({ count: ctx => ctx.count + 1 }),
        ctx => console.log(ctx.count) // 2
      ],
      preserveActionOrder: true
    });
    // With .preserveActionOrder: false (default)
    const machine = createMachine({
    context: { count: 0 },
    entry: [
    ctx => console.log(ctx.count), // 2
    assign({ count: ctx => ctx.count + 1 }),
    ctx => console.log(ctx.count), // 2
    assign({ count: ctx => ctx.count + 1 }),
    ctx => console.log(ctx.count) // 2
    ]
    // preserveActionOrder: false
    });

Patch Changes

... (truncated)

Commits
  • 0d6bd74 Merge pull request #2441 from statelyai/changeset-release/main
  • 728879b Version Packages
  • c897800 Update TypeScript to 4.3.5 (#2461)
  • 2ac46b8 Update resources.md
  • 10944fa Fix condition for selected filter class in the Vue example (#2442)
  • d2f5f91 Merge pull request #2429 from statelyai/davidkpiano/2425
  • 800b631 Merge pull request #2436 from statelyai/fix/model-create-machine-typestates
  • 2f7c610 Drop Equals usafe from State#matches types
  • a117095 Merge pull request #2440 from johtso/patch-1
  • 88c6479 Reword release notes
  • 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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants