sonntam / node-red-contrib-xstate-machine

A xstate-based state machine implementation using state-machine-cat visualization for node red.
MIT License
22 stars 8 forks source link

Bump xstate from 4.30.0 to 4.33.1 #64

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps xstate from 4.30.0 to 4.33.1.

Release notes

Sourced from xstate's releases.

xstate@4.33.1

Patch Changes

  • #3514 b451f5789 Thanks @​Andarist! - Fixed an issue with .nextState(event) calls accidentally executing actions in machines with predictableActionArguments.

xstate@4.33.0

Minor Changes

  • #3289 c0a147e25 Thanks @​Andarist! - A new predictableActionArguments feature flag has been added that allows you to opt into some fixed behaviors that will be the default in v5. With this flag:

    • XState will always call an action with the event directly responsible for the related transition,
    • you also automatically opt-into preserveActionOrder.

    Please be aware that you might not able to use state from the meta argument when using this flag.

  • #3126 37b751cb3 Thanks @​Andarist! - All exit actions in the machine will now be correctly resolved and executed when a machine gets stopped or reaches its top-level final state. Previously, the actions were not correctly resolved and that was leading to runtime errors.

    To implement this fix in a reliable way, a new internal event has been introduced: { type: 'xstate.stop' } and when the machine stops its execution, all exit handlers of the current state (i.e. the active state nodes) will be called with that event. You should always assume that an exit handler might be called with that event.

Patch Changes

  • #3178 6badd2ba3 Thanks @​davidkpiano! - Added a dev-only error when forwardTo accidentally ends up trying to forward an event to an undefined actor. Such a situation indicates a logical error and risks an infinite loop.

  • #3453 368ed9b1c Thanks @​pixtron! - Call the complete callback of the subscribed observer when an interpreter gets stopped.

  • #3422 e35493f59 Thanks @​Andarist! - Fixed an issue with parallel regions not always being correctly reentered on external transitions of the containing parallel state targeting another region within that parallel state.

  • #3447 e93754d7a Thanks @​davidkpiano! - The types for state.nextEvents are now properly typed to the actual event types of the machine. Original PR: #1115 (Thanks @​alexreardon!)

  • #3424 88d540eb8 Thanks @​Andarist! - Fixed an issue with targeted ancestors not being correctly reentered during external transitions.

xstate@4.32.1

Patch Changes

  • #3292 16514e466 Thanks @​Andarist! - Fixed an issue in the EmittedFrom type helper that could prevent it from inferring the desired type from some services.

xstate@4.32.0

Minor Changes

  • #3234 ce376b388 Thanks @​Andarist! - Added a StateValueFrom helper that can be used to extract valid state values from a machine. This might specifically be useful with typegen because typegenless state.matches accepts any anyway.

Patch Changes

  • #3215 44c66e74f Thanks @​tom-sherman! - Removing the timeout that's built in to waitFor is now supported by explicitly passing an Infinity value.

... (truncated)

Commits
  • f2bf492 Version Packages (#3515)
  • b451f57 Fixed an issue with .nextState(event) calls accidentally executing actions ...
  • 6abfc5a Merge pull request #935 from JulianG/patch-1
  • 1f749a5 Merge branch 'main' into patch-1
  • d40a822 Version Packages (#3366)
  • 0dfc6d9 Fixed an issue with useSelector always computing fresh snapshots internally...
  • a6c9b6d Move changesets related to @xstate/test away from the .changeset directory
  • 1788590 Add a test for exiting exiting a deep descendant during a self-transition (#3...
  • 368ed9b Call subscription's complete when interpreter gets stopped (#3453)
  • 2f9af0e Add a note about minimum version of XState for predictableActionArguments
  • 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[bot] commented 1 year ago

Superseded by #65.