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

Merged
merged 1 commit into from
Apr 15, 2020
Merged

Version Packages #1071

merged 1 commit into from
Apr 15, 2020

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 14, 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.9.0

Minor Changes

  • f3ff150 #1103 Thanks @davidkpiano! - Simplify the TransitionConfigArray and TransitionConfigMap types in order to fix excessively deep type instantiation TypeScript reports. This addresses #1015.

  • 6c47b66 #1076 Thanks @Andarist! - Added support for conditional actions. It's possible now to have actions executed based on conditions using following:

    entry: [
      choose([
        { cond: ctx => ctx > 100, actions: raise('TOGGLE') },
        {
          cond: 'hasMagicBottle',
          actions: [assign(ctx => ({ counter: ctx.counter + 1 }))]
        },
        { actions: ['fallbackAction'] }
      ])
    ];

    It works very similar to the if-else syntax where only the first matched condition is causing associated actions to be executed and the last ones can be unconditional (serving as a general fallback, just like else branch).

Patch Changes

  • 1a129f0 #1073 Thanks @Andarist! - Cleanup internal structures upon receiving termination events from spawned actors.

  • e88aa18 #1085 Thanks @Andarist! - Fixed an issue with data expressions of root's final nodes being called twice.

  • 88b17b2 #1090 Thanks @rjdestigter! - This change carries forward the typestate type information encoded in the arguments of the following functions and assures that the return type also has the same typestate type information:

    • Cloned state machine returned by .withConfig.
    • .state getter defined for services.
    • start method of services.
  • d5f622f #1069 Thanks @davidkpiano! - Loosened event type for SendAction<TContext, AnyEventObject>

@xstate/fsm@1.4.0

Minor Changes

  • 3d50808 #1082 Thanks @davidkpiano! - The .state property is now exposed on the service returned from interpret(machine), which is a getter that returns the latest state of the machine.

Patch Changes

  • dcbd72f #1122 Thanks @chancestrickland! - StateMachine.Config type accepts now a third type parameter - TState - similarly to other existing types. When provided it provides helpful intellisense when defining the state chart transitions.

@xstate/graph@1.1.0

Minor Changes

  • 137b0cd #1033 Thanks @ZempTime! - Added ESM build of the package which can be loaded through modern web bundlers (instead of default CommonJS files).

Patch Changes

@xstate/test@0.4.0

Minor Changes

  • 137b0cd #1033 Thanks @ZempTime! - Added ESM build of the package which can be loaded through modern web bundlers (instead of default CommonJS files).

Patch Changes

@codesandbox-ci
Copy link

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 40f091d:

Sandbox Source
objective-jennings-2tzmi Configuration
xenodochial-resonance-jofvf Configuration

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 14, 2020

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 806d35b:

Sandbox Source
sweet-rosalind-tr2mb Configuration
amazing-herschel-h9cfp Configuration

@github-actions github-actions bot force-pushed the changeset-release/master branch 20 times, most recently from e7dd013 to 42d4c89 Compare March 21, 2020 18:50
@github-actions github-actions bot force-pushed the changeset-release/master branch 7 times, most recently from a35bf0a to e36fcd9 Compare March 23, 2020 07:38
@github-actions github-actions bot force-pushed the changeset-release/master branch 9 times, most recently from 39f6545 to 5a5acbf Compare March 25, 2020 20:02
@github-actions github-actions bot force-pushed the changeset-release/master branch 10 times, most recently from 1458636 to be5de85 Compare April 4, 2020 21:20
@github-actions github-actions bot force-pushed the changeset-release/master branch 7 times, most recently from 883f674 to bd6cc8c Compare April 14, 2020 22:53
@davidkpiano davidkpiano merged commit 0c47d8c into master Apr 15, 2020
@davidkpiano davidkpiano deleted the changeset-release/master branch April 15, 2020 17:54
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