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 #2059

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Version Packages #2059

merged 1 commit into from
Apr 16, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 3, 2021

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

Releases

xstate@4.18.0

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>

@xstate/react@1.3.2

Patch Changes

  • bb5e81ea #2050 Thanks @theKashey! - Added an explicit entrypoint for @xstate/react/fsm which you can use instead of @xstate/react/lib/fsm. This is the only specifier that will be supported in the future - the other one will be dropped in the next major version.

    -import { useMachine } from '@xstate/react/lib/fsm'
    +import { useMachine } from '@xstate/react/fsm'

@github-actions github-actions bot force-pushed the changeset-release/master branch 5 times, most recently from e1b7702 to 59b8771 Compare April 12, 2021 12:47
@davidkpiano davidkpiano merged commit 8330bb5 into master Apr 16, 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.

None yet

1 participant