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.2 #710

Closed

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps @xstate/react from 1.6.3 to 4.0.2.

Release notes

Sourced from @​xstate/react's releases.

@​xstate/react@​4.0.2

Patch Changes

@​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);
    // ...
    </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/94c884103eb928938dbc16284822bc707f0df584&quot;&gt;&lt;code&gt;94c8841&lt;/code&gt;&lt;/a> Version Packages (<a href="https://redirect.github.com/statelyai/xstate/issues/4631&quot;&gt;#4631&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/1f2ccb97ca00ff2d2ec1c9996f8205dbe656602b&quot;&gt;&lt;code&gt;1f2ccb9&lt;/code&gt;&lt;/a> Remove some typegen-specific types (<a href="https://redirect.github.com/statelyai/xstate/issues/4600&quot;&gt;#4600&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/4dde96a255b43bc08e6f09bb34d4b5f3d97bd4d8&quot;&gt;&lt;code&gt;4dde96a&lt;/code&gt;&lt;/a> Version Packages (<a href="https://redirect.github.com/statelyai/xstate/issues/4619&quot;&gt;#4619&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/e8c0b15b2ed385b233c75d79def2a7e9fe99a597&quot;&gt;&lt;code&gt;e8c0b15&lt;/code&gt;&lt;/a> Pass <code>self</code> to <code>context</code> factories (<a href="https://redirect.github.com/statelyai/xstate/issues/4616&quot;&gt;#4616&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/6b74bbe32aa50a71a2d5782efd57752b53037295&quot;&gt;&lt;code&gt;6b74bbe&lt;/code&gt;&lt;/a> Bring Express example up to date with v5 (<a href="https://redirect.github.com/statelyai/xstate/issues/4610&quot;&gt;#4610&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/998a669797f40ac374af0706f07b623e4e844874&quot;&gt;&lt;code&gt;998a669&lt;/code&gt;&lt;/a> add media scanner workflow example (<a href="https://redirect.github.com/statelyai/xstate/issues/4589&quot;&gt;#4589&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/12e062bd594a1d05c8bc3eab7c15300384c04367&quot;&gt;&lt;code&gt;12e062b&lt;/code&gt;&lt;/a> ci(github-actions): bump node to v20 (<a href="https://redirect.github.com/statelyai/xstate/issues/4579&quot;&gt;#4579&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/34ee1fe64167a6bcc01d77235ab6c1abe90a3a4b&quot;&gt;&lt;code&gt;34ee1fe&lt;/code&gt;&lt;/a> Fix broken template links</li>
    <li><a href="https://github.com/statelyai/xstate/commit/75e6187a4a4e310b46c23bdb5885a2c596795b97&quot;&gt;&lt;code&gt;75e6187&lt;/code&gt;&lt;/a> Version Packages (<a href="https://redirect.github.com/statelyai/xstate/issues/4599&quot;&gt;#4599&lt;/a&gt;)&lt;/li>
    <li><a href="https://github.com/statelyai/xstate/commit/3ad929eb4a26eed0723aa80a7e4da68331ef9b23&quot;&gt;&lt;code&gt;3ad929e&lt;/code&gt;&lt;/a> Fix useActor send types for ActorLogic (<a href="https://redirect.github.com/statelyai/xstate/issues/4604&quot;&gt;#4604&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.2.
- [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 25, 2023
Copy link

vercel bot commented Dec 25, 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 25, 2023 8:34am

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 24, 2024

Superseded by #713.

@dependabot dependabot bot closed this Jan 24, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/xstate/react-4.0.2 branch January 24, 2024 08:44
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