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

build(deps-dev): bump xstate from 4.38.3 to 5.15.0 #210

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 14, 2024

Bumps xstate from 4.38.3 to 5.15.0.

Release notes

Sourced from xstate's releases.

[email protected]

Minor Changes

  • #4976 452bce71e Thanks @​with-heart! - Added exports for actor logic-specific ActorRef types: CallbackActorRef, ObservableActorRef, PromiseActorRef, and TransitionActorRef.

    Each type represents ActorRef narrowed to the corresponding type of logic (the type of self within the actor's logic):

    • CallbackActorRef: actor created by fromCallback

      import { fromCallback, createActor } from 'xstate';
      /** The events the actor receives. /
      type Event = { type: 'someEvent' };
      /* The actor's input. */
      type Input = { name: string };
      /** Actor logic that logs whenever it receives an event of type someEvent. */
      const logic = fromCallback<Event, Input>(({ self, input, receive }) => {
      self;
      // ^? CallbackActorRef<Event, Input>
      receive((event) => {
      if (event.type === 'someEvent') {
      console.log(${input.name}: received &quot;someEvent&quot; event);
      // logs 'myActor: received "someEvent" event'
      }
      });
      });
      const actor = createActor(logic, { input: { name: 'myActor' } });
      //    ^? CallbackActorRef<Event, Input>

    • ObservableActorRef: actor created by fromObservable and fromEventObservable

      import { fromObservable, createActor } from 'xstate';
      import { interval } from 'rxjs';
      /** The type of the value observed by the actor's logic. /
      type Context = number;
      /* The actor's input. */
      type Input = { period?: number };
      /**
      
      Actor logic that observes a number incremented every input.period
      milliseconds (default: 1_000).
      */
      const logic = fromObservable<Context, Input>(({ input, self }) => {

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 14, 2024

The following labels could not be found: dependencies, node, Skip Changelog.

Copy link

vercel bot commented Jul 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spectacular-console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 8:43am
spectacular-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 8:43am
spectacular-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 8:43am

Copy link

changeset-bot bot commented Jul 14, 2024

⚠️ No Changeset found

Latest commit: ba3bb24

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Bumps [xstate](https://github.com/statelyai/xstate) from 4.38.3 to 5.15.0.
- [Release notes](https://github.com/statelyai/xstate/releases)
- [Commits](https://github.com/statelyai/xstate/compare/[email protected]@5.15.0)

---
updated-dependencies:
- dependency-name: xstate
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 26, 2024

Superseded by #217.

@dependabot dependabot bot closed this Jul 26, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate-5.15.0 branch July 26, 2024 23:37
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.

0 participants