Skip to content

Version Packages (beta)#4532

Merged
davidkpiano merged 1 commit intonextfrom
changeset-release/next
Nov 30, 2023
Merged

Version Packages (beta)#4532
davidkpiano merged 1 commit intonextfrom
changeset-release/next

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 30, 2023

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 next, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

next is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on next.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

xstate@5.0.0-beta.52

Major Changes

  • #4531 a5b198340 Thanks @Andarist! - The order of type parameters in ActorRef has been changed from from ActorRef<TEvent, TSnapshot> to ActorRef<TSnapshot, TEvent> for consistency with other types.

  • #4529 43843ea26 Thanks @Andarist! - The pure() and choose() action creators have been removed, in favor of the more flexible enqueueActions() action creator:

    entry: [
      // pure(() => {
      //   return [
      //     'action1',
      //     'action2'
      //   ]
      // }),
      enqueueActions(({ enqueue }) => {
        enqueue('action1');
        enqueue('action2');
      })
    ];
    entry: [
      // choose([
      //   {
      //     guard: 'someGuard',
      //     actions: ['action1', 'action2']
      //   }
      // ]),
      enqueueActions(({ enqueue, check }) => {
        if (check('someGuard')) {
          enqueue('action1');
          enqueue('action2');
        }
      })
    ];

Minor Changes

  • #4521 355e89627 Thanks @davidkpiano! - The event type of internal after events changed from xstate.after(1000)#some.state.id to xstate.after.1000.some.state.id for consistency.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 30, 2023

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 7bf2979:

Sandbox Source
XState Example Template Configuration
XState React Template Configuration

@github-actions github-actions bot force-pushed the changeset-release/next branch 3 times, most recently from b0273da to 578ddd8 Compare November 30, 2023 16:59
@github-actions github-actions bot force-pushed the changeset-release/next branch from 578ddd8 to 7bf2979 Compare November 30, 2023 17:02
@davidkpiano davidkpiano merged commit 0012138 into next Nov 30, 2023
@davidkpiano davidkpiano deleted the changeset-release/next branch November 30, 2023 17:13
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