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/react from 1.6.3 to 4.0.1 #709

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 7, 2023

Bumps @xstate/react from 1.6.3 to 4.0.1.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​4.0.1

Patch Changes

  • #4497 d7f220225 Thanks @​davidkpiano! - Fix an issue where after transitions do not work in React strict mode. Delayed events (including from after transitions) should now work as expected in all React modes.

@​xstate/react@​4.0.0

Major Changes

  • #3947 5fa3a0c74 Thanks @​davidkpiano! - Removed the ability to pass a factory function as argument to useMachine.

  • #4006 42df9a536 Thanks @​davidkpiano! - useActorRef is introduced, which returns an ActorRef from actor logic:

    const actorRef = useActorRef(machine, { ... });
    const anotherActorRef = useActorRef(fromPromise(...));

    useMachine is deprecated in favor of useActor, which works with machines and any other kind of logic

    -const [state, send] = useMachine(machine);
    +const [state, send] = useActor(machine);
    const [state, send] = useActor(fromTransition(...));

    useSpawn is removed in favor of useActorRef

    -const actorRef = useSpawn(machine);
    +const actorRef = useActorRef(machine);
    The previous use of useActor(actorRef) is now replaced with just using the actorRef directly, and with useSelector:
    -const [state, send] = useActor(actorRef);
    +const state = useSelector(actorRef, s => s);
    // actorRef.send(...)
    </code></pre>
    </li>
    <li>
    <p><a href="https://redirect.github.com/statelyai/xstate/pull/4050">#4050</a> <a href="https://github.com/statelyai/xstate/commit/fc88dc8e6d3fbc4ee8a1e0bdb538bab560b7a695"><code>fc88dc8e6</code></a> Thanks <a href="https://github.com/davidkpiano"><code>@​davidkpiano</code></a>! - The <code>options</code> prop has been added (back) to the <code>Context.Provider</code> component returned from <code>createActorContext</code>:</p>
    <pre lang="tsx"><code>const SomeContext = createActorContext(someMachine);
    // ...
    &lt;SomeContext.Provider options={{ input: 42 }}&gt;
    {/* ... */}
    &lt;/SomeContext.Provider&gt;;
    </code></pre>
    </li>
    </ul>
    <!-- raw HTML omitted -->
    </blockquote>
    <p>... (truncated)</p>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a href="https://github.com/statelyai/xstate/commit/8ac5a9075188f7d3eb95084392901218510a598b&quot;&gt;&lt;code&gt;8ac5a90&lt;/code&gt;&lt;/a> Version Packages (<a href="https://redirect.github.com/statelyai/xstate/issues/4563&quot;&gt;#4563&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/b0468324826840bef9c2fe647dd9d42bf86fa831&quot;&gt;&lt;code&gt;b046832&lt;/code&gt;&lt;/a> Add template data for StackBlitz + CodeSandbox (<a href="https://redirect.github.com/statelyai/xstate/issues/4561&quot;&gt;#4561&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/d7f220225c34808a96383099e1f9bfd3abd13962&quot;&gt;&lt;code&gt;d7f2202&lt;/code&gt;&lt;/a> Scheduler (<a href="https://redirect.github.com/statelyai/xstate/issues/4497&quot;&gt;#4497&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/80818017b23e4b6c8e40d0e64854f69ffc9f7307&quot;&gt;&lt;code&gt;8081801&lt;/code&gt;&lt;/a> Fix higher-level logic for machines (<a href="https://redirect.github.com/statelyai/xstate/issues/4513&quot;&gt;#4513&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/c5b85cdb9ed592259d753f433f9a296d61eed16e&quot;&gt;&lt;code&gt;c5b85cd&lt;/code&gt;&lt;/a> Add test cases for <code>params</code> resolving in higher-level guards (<a href="https://redirect.github.com/statelyai/xstate/issues/4560&quot;&gt;#4560&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/fac90604a00ae7c08eb465f83c1a68c80a27d176&quot;&gt;&lt;code&gt;fac9060&lt;/code&gt;&lt;/a> Add an extra test case related to Fast Refresh</li>
    <li><a href="https://github.com/statelyai/xstate/commit/a65f51db50fe17a96378f0c5c0465bd0fb83c5fb&quot;&gt;&lt;code&gt;a65f51d&lt;/code&gt;&lt;/a> Add Vue template (<a href="https://redirect.github.com/statelyai/xstate/issues/4546&quot;&gt;#4546&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/c409cdfc88ee486135c64032bc3e64b274ede8ae&quot;&gt;&lt;code&gt;c409cdf&lt;/code&gt;&lt;/a> Version Packages (<a href="https://redirect.github.com/statelyai/xstate/issues/4554&quot;&gt;#4554&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/80b9afbaeb943cc1378c0c67631b207d402ab557&quot;&gt;&lt;code&gt;80b9afb&lt;/code&gt;&lt;/a> Fixed defining <code>actors</code> with <code>input</code> within <code>setup</code> (<a href="https://redirect.github.com/statelyai/xstate/issues/4552&quot;&gt;#4552&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/687a8f76b6ea17a9819b99ac17a393dae2eaa0b5&quot;&gt;&lt;code&gt;687a8f7&lt;/code&gt;&lt;/a> Version Packages (<a href="https://redirect.github.com/statelyai/xstate/issues/4553&quot;&gt;#4553&lt;/a&gt;)&lt;/li>
    <li>Additional commits viewable in <a href="https://github.com/statelyai/xstate/compare/@xstate/[email protected]...@xstate/[email protected]&quot;&gt;compare view</a></li>
    </ul>
    </details>
    <br />
    
    
    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)
    

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

---
updated-dependencies:
- dependency-name: "@xstate/react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 7, 2023
Copy link

vercel bot commented Dec 7, 2023

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

Name Status Preview Comments Updated (UTC)
roover ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 7, 2023 8:16am

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 25, 2023

Superseded by #710.

@dependabot dependabot bot closed this Dec 25, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-4.0.1 branch December 25, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants