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

Merged
merged 1 commit into from
Sep 21, 2024
Merged

Version Packages #5089

merged 1 commit into from
Sep 21, 2024

Conversation

github-actions[bot]
Copy link
Contributor

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/store@2.6.0

Minor Changes

  • #5079 25963966c394fc904dc9b701a420b6e204ebe7f7 Thanks @davidkpiano! - The createStoreWithProducer(…) function now uses the new configuration API:

    import { createStoreWithProducer } from '@xstate/store';
    // DEPRECATED API
    // const store = createStoreWithProducer(
    //   producer,
    //   {
    //     count: 0
    //   },
    //   {
    //     inc: (context, event) => {
    //       context.count++;
    //     }
    //   }
    // );
    
    const store = createStoreWithProducer(producer, {
      context: {
        count: 0
      },
      on: {
        inc: (context, event) => {
          context.count++;
        }
      }
    });

xstate@5.18.2

Patch Changes

@xstate/graph@2.0.1

Patch Changes

@xstate/react@4.1.3

Patch Changes

@xstate/solid@0.2.2

Patch Changes

@xstate/svelte@3.0.5

Patch Changes

@xstate/vue@3.1.4

Patch Changes

@davidkpiano davidkpiano merged commit fe91f9e into main Sep 21, 2024
@davidkpiano davidkpiano deleted the changeset-release/main branch September 21, 2024 06:53
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