Skip to content

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 16, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
xstate 4.17.1 -> 4.19.1 age adoption passing confidence

Release Notes

davidkpiano/xstate

v4.19.1

Compare Source

Patch Changes
  • 64ab1150 #​2173 Thanks @​Andarist! - Fixed an issue with tags not being set correctly after sending an event to a machine that didn't result in selecting any transitions.

v4.19.0

Compare Source

Minor Changes
  • 4f2f626d #​2143 Thanks @​davidkpiano! - Tags can now be added to state node configs under the .tags property:

    const machine = createMachine({
      initial: 'green',
      states: {
        green: {
          tags: 'go' // single tag
        },
        yellow: {
          tags: 'go'
        },
        red: {
          tags: ['stop', 'other'] // multiple tags
        }
      }
    });

    You can query whether a state has a tag via state.hasTag(tag):

    const canGo = state.hasTag('go');
    // => `true` if in 'green' or 'yellow' state
Patch Changes
  • a61d01ce #​2125 Thanks @​VanTanev! - In callback invokes, the types of callback and onReceive are properly scoped to the machine TEvent.

v4.18.0

Compare Source

Minor Changes
  • d0939ec6 #​2046 Thanks @​SimeonC! - Allow machines to communicate with the inspector even in production builds.

  • e37fffef #​2079 Thanks @​davidkpiano! - There is now support for "combinatorial machines" (state machines that only have one state):

    const testMachine = createMachine({
      context: { value: 42 },
      on: {
        INC: {
          actions: assign({ value: ctx => ctx.value + 1 })
        }
      }
    });

    These machines omit the initial and state properties, as the entire machine is treated as a single state.

Patch Changes
  • 6a9247d4 #​2102 Thanks @​VanTanev! - Provide a convenience type for getting the Interpreter type based on the StateMachine type by transferring all generic parameters onto it. It can be used like this: InterpreterFrom<typeof machine>

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box.

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/xstate-4.x branch from 84886bf to fe2c6f3 Compare April 29, 2021 16:34
@renovate renovate bot changed the title fix(deps): update dependency xstate to v4.18.0 fix(deps): update dependency xstate to v4.19.0 Apr 29, 2021
@renovate renovate bot force-pushed the renovate/xstate-4.x branch from fe2c6f3 to 681792e Compare May 5, 2021 02:11
@renovate renovate bot changed the title fix(deps): update dependency xstate to v4.19.0 fix(deps): update dependency xstate to v4.19.1 May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant