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

Version Packages #3366

Merged
merged 1 commit into from
Aug 5, 2022
Merged

Version Packages #3366

merged 1 commit into from
Aug 5, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented May 31, 2022

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

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: Giving better type information for nextEvents #1115 (Thanks @alexreardon!)

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

@xstate/react@3.0.1

Patch Changes

  • #3456 131d429ab Thanks @davidkpiano! - Add shallowEqual helper comparator function.

  • #3500 0dfc6d92f Thanks @Andarist! - Fixed an issue with useSelector always computing fresh snapshots internally for uninitialized services. This avoids the internal useSyncExternalStore from warning about the snapshot value not being cached properly.

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 31, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8861be5:

Sandbox Source
XState Example Template Configuration
XState React Template Configuration

@github-actions github-actions bot force-pushed the changeset-release/main branch 6 times, most recently from 7066de3 to 66378b3 Compare June 7, 2022 16:36
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from a44cf09 to 4d19a1a Compare June 18, 2022 09:01
@github-actions github-actions bot force-pushed the changeset-release/main branch 3 times, most recently from d7e42a0 to 04818d6 Compare June 25, 2022 08:04
@github-actions github-actions bot force-pushed the changeset-release/main branch 4 times, most recently from 186d449 to 98b7386 Compare July 5, 2022 20:20
@github-actions github-actions bot force-pushed the changeset-release/main branch 2 times, most recently from e23d6ee to 7322efe Compare July 18, 2022 15:50
@github-actions github-actions bot force-pushed the changeset-release/main branch 8 times, most recently from 3719968 to f0080fe Compare August 3, 2022 08:37
@Andarist Andarist merged commit d40a822 into main Aug 5, 2022
@Andarist Andarist deleted the changeset-release/main branch August 5, 2022 12:31
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.

None yet

1 participant