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

Merged
merged 1 commit into from
Nov 5, 2020
Merged

Version Packages #1513

merged 1 commit into from
Nov 5, 2020

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 1, 2020

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.14.0

Minor Changes

  • 119db8fb #1577 Thanks @davidkpiano! - Expressions can now be used in the stop() action creator:

    // ...
    actions: stop(context => context.someActor);

Patch Changes

  • 8c78e120 #1570 Thanks @davidkpiano! - The return type of spawn(machine) will now be Actor<State<TContext, TEvent>, TEvent>, which is a supertype of Interpreter<...>.

  • 602687c2 #1566 Thanks @davidkpiano! - Exit actions will now be properly called when an invoked machine reaches its final state. See #1109 for more details.

  • 6e44d02a #1553 Thanks @davidkpiano! - The state.children property now properly shows all spawned and invoked actors. See #795 for more details.

  • 72b0880e #1504 Thanks @Andarist! - Added status property on the Interpreter - this can be used to differentiate not started, running and stopped interpreters. This property is best compared to values on the new InterpreterStatus export.

@xstate/inspect@0.2.0

Minor Changes

  • 1725333a #1599 Thanks @davidkpiano! - The @xstate/inspect package is now built with Rollup which has fixed an issue with TypeScript compiler inserting references to this in the top-level scope of the output modules and thus making it harder for some tools (like Rollup) to re-bundle dist files as this in modules (as they are always in strict mode) is undefined.

@xstate/react@1.0.2

Patch Changes

  • c7927083 #1516 Thanks @davidkpiano! - The send function returned from the useService() now can take two arguments (an event type and payload), to match the behavior of @xstate/react version 0.x.

  • db77623a #1516 Thanks @davidkpiano! - The send value returned from the useService() hook will now accept a payload, which matches the signature of the send value returned from the useMachine() hook:

    const [state, send] = useService(someService);
    
    // ...
    
    // this is OK:
    send('ADD', { value: 3 });
    
    // which is equivalent to:
    send({ type: 'ADD', value: 3 });
  • 93f6db02 #1594 Thanks @Andarist! - Fixed an issue with internal setState in useService being called with 2 arguments instead of 1.

  • 72b0880e #1504 Thanks @Andarist! - Fixed issue with useService returning an initial state for services in their final states.

@github-actions github-actions bot force-pushed the changeset-release/master branch 5 times, most recently from feda8cd to a702dc5 Compare October 9, 2020 12:27
@github-actions github-actions bot force-pushed the changeset-release/master branch 3 times, most recently from 7fd8be4 to b7b079f Compare October 13, 2020 17:54
@github-actions github-actions bot force-pushed the changeset-release/master branch 14 times, most recently from d96d8d9 to a9b7b63 Compare October 25, 2020 14:33
@github-actions github-actions bot force-pushed the changeset-release/master branch 8 times, most recently from 2312733 to d404a83 Compare October 29, 2020 16:19
@github-actions github-actions bot force-pushed the changeset-release/master branch 8 times, most recently from 94e09f6 to 7820f21 Compare November 2, 2020 19:29
@a-y-u-s-h
Copy link

Please merge and publish the minor version bump for @xstate/inspect. It includes a merged pull request which supposedly fixes "Waiting for connection" issue on local projects using Rollup or NextJS.

@davidkpiano davidkpiano merged commit b228ade into master Nov 5, 2020
@davidkpiano davidkpiano deleted the changeset-release/master branch November 5, 2020 12:57
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.

2 participants