matrix-art.meta

Issues/PRs archive for MTRNord/matrix-art
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.meta.git
Log | Files | Refs

162.md (35505B)


      1 # PR #162 Bump react and react-dom
      2 
      3 - **Status:** closed
      4 - **Author:** @dependabot[bot]
      5 - **Created:** 2022-04-27T08:28:54Z
      6 - **Branch:** dependabot/npm_and_yarn/react-and-react-dom-18.1.0 → main
      7 - **Closed:** 2022-05-23T08:41:38Z
      8 - **Labels:** dependencies, javascript
      9 - **Assignees:** @MTRNord
     10 - **Reviewers:** @MTRNord
     11 - **Diff:** [162.diff](./162.diff)
     12 
     13 ---
     14 
     15 Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom). These dependencies needed to be updated together.
     16 Updates `react` from 17.0.2 to 18.1.0
     17 <details>
     18 <summary>Release notes</summary>
     19 <p><em>Sourced from <a href="https://github.com/facebook/react/releases">react's releases</a>.</em></p>
     20 <blockquote>
     21 <h2>18.1.0 (April 26, 2022)</h2>
     22 <h3>React DOM</h3>
     23 <ul>
     24 <li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href="https://github.com/alireza-molaee"><code>@​alireza-molaee</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24274">#24274</a>)</li>
     25 <li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24271">#24271</a>)</li>
     26 <li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24308">#24308</a>)</li>
     27 <li>Fix some transition updates being ignored. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24353">#24353</a>)</li>
     28 <li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24247">#24247</a>)</li>
     29 <li>Fix throttling of revealing Suspense fallbacks. (<a href="https://github.com/sunderls"><code>@​sunderls</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24253">#24253</a>)</li>
     30 <li>Fix an inconsistency in whether the props object is the same between renders. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24421">#24421</a>)</li>
     31 <li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24298">#24298</a>)</li>
     32 <li>Fix a spurious hydration error. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24404">#24404</a>)</li>
     33 <li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24295">#24295</a>)</li>
     34 <li>Ensure the reason for hydration errors is always displayed. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24276">#24276</a>)</li>
     35 </ul>
     36 <h3>React DOM Server</h3>
     37 <ul>
     38 <li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24385">#24385</a>)</li>
     39 <li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24291">#24291</a>)</li>
     40 </ul>
     41 <h3>ESLint Plugin: React Hooks</h3>
     42 <ul>
     43 <li>Fix false positive errors with a large number of branches. (<a href="https://github.com/scyron6"><code>@​scyron6</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24287">#24287</a>)</li>
     44 <li>Don't consider a known dependency stable when the variable is reassigned. (<a href="https://github.com/afzalsayed96"><code>@​afzalsayed96</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24343">#24343</a>)</li>
     45 </ul>
     46 <h3>Use Subscription</h3>
     47 <ul>
     48 <li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24289">#24289</a>)</li>
     49 </ul>
     50 <h2>18.0.0 (March 29, 2022)</h2>
     51 <p>Below is a list of all new features, APIs, deprecations, and breaking changes.
     52 Read <a href="https://reactjs.org/blog/2022/03/29/react-v18.html">React 18 release post</a> and <a href="https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html">React 18 upgrade guide</a> for more information.</p>
     53 <h3>New Features</h3>
     54 <h3>React</h3>
     55 <ul>
     56 <li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>
     57 <li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>
     58 <li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>
     59 <li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>
     60 <li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>
     61 </ul>
     62 <h3>React DOM Client</h3>
     63 <p>These new APIs are now exported from <code>react-dom/client</code>:</p>
     64 <ul>
     65 <li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>
     66 </ul>
     67 <!-- raw HTML omitted -->
     68 </blockquote>
     69 <p>... (truncated)</p>
     70 </details>
     71 <details>
     72 <summary>Changelog</summary>
     73 <p><em>Sourced from <a href="https://github.com/facebook/react/blob/main/CHANGELOG.md">react's changelog</a>.</em></p>
     74 <blockquote>
     75 <h2>18.1.0 (April 26, 2022)</h2>
     76 <h3>React DOM</h3>
     77 <ul>
     78 <li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href="https://github.com/alireza-molaee"><code>@​alireza-molaee</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24274">#24274</a>)</li>
     79 <li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24271">#24271</a>)</li>
     80 <li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24308">#24308</a>)</li>
     81 <li>Fix some transition updates being ignored. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24353">#24353</a>)</li>
     82 <li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24247">#24247</a>)</li>
     83 <li>Fix throttling of revealing Suspense fallbacks. (<a href="https://github.com/sunderls"><code>@​sunderls</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24253">#24253</a>)</li>
     84 <li>Fix an inconsistency in whether the props object is the same between renders. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24421">#24421</a>)</li>
     85 <li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24298">#24298</a>)</li>
     86 <li>Fix a spurious hydration error. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24404">#24404</a>)</li>
     87 <li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24295">#24295</a>)</li>
     88 <li>Ensure the reason for hydration errors is always displayed. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24276">#24276</a>)</li>
     89 </ul>
     90 <h3>React DOM Server</h3>
     91 <ul>
     92 <li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24385">#24385</a>)</li>
     93 <li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24291">#24291</a>)</li>
     94 </ul>
     95 <h3>ESLint Plugin: React Hooks</h3>
     96 <ul>
     97 <li>Fix false positive errors with a large number of branches. (<a href="https://github.com/scyron6"><code>@​scyron6</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24287">#24287</a>)</li>
     98 <li>Don't consider a known dependency stable when the variable is reassigned. (<a href="https://github.com/afzalsayed96"><code>@​afzalsayed96</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24343">#24343</a>)</li>
     99 </ul>
    100 <h3>Use Subscription</h3>
    101 <ul>
    102 <li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24289">#24289</a>)</li>
    103 </ul>
    104 <h2>18.0.0 (March 29, 2022)</h2>
    105 <p>Below is a list of all new features, APIs, deprecations, and breaking changes.
    106 Read <a href="https://reactjs.org/blog/2022/03/29/react-v18.html">React 18 release post</a> and <a href="https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html">React 18 upgrade guide</a> for more information.</p>
    107 <h3>New Features</h3>
    108 <h3>React</h3>
    109 <ul>
    110 <li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>
    111 <li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>
    112 <li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>
    113 <li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>
    114 <li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>
    115 </ul>
    116 <h3>React DOM Client</h3>
    117 <p>These new APIs are now exported from <code>react-dom/client</code>:</p>
    118 <ul>
    119 <li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>
    120 </ul>
    121 <!-- raw HTML omitted -->
    122 </blockquote>
    123 <p>... (truncated)</p>
    124 </details>
    125 <details>
    126 <summary>Commits</summary>
    127 <ul>
    128 <li><a href="https://github.com/facebook/react/commit/22edb9f777d27369fd2c1fad378f74e237b6dfd3"><code>22edb9f</code></a> React <code>version</code> field should match package.json (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/24445">#24445</a>)</li>
    129 <li><a href="https://github.com/facebook/react/commit/4175f05934d3954827c00b7633c1ce8e4e87d227"><code>4175f05</code></a> Temporarily feature flag numeric fallback for symbols (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/24401">#24401</a>)</li>
    130 <li><a href="https://github.com/facebook/react/commit/e8f4a6653dc3f5d9702236a3abed887ca44dcfbb"><code>e8f4a66</code></a> Fix import in example</li>
    131 <li><a href="https://github.com/facebook/react/commit/bb49abea2377d6391a98cef536e9da4c26ddaa39"><code>bb49abe</code></a> Update some READMEs (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/24290">#24290</a>)</li>
    132 <li><a href="https://github.com/facebook/react/commit/7e3121e1cfe25f1af5079b3bf487b5b5202400d4"><code>7e3121e</code></a> Remove unstable_createMutableSource from experimental build (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/24209">#24209</a>)</li>
    133 <li><a href="https://github.com/facebook/react/commit/34aa5cfe0d9b6ec4667e02bf46ab34d83dfb2d6d"><code>34aa5cf</code></a> Update local package.jsons for 18</li>
    134 <li><a href="https://github.com/facebook/react/commit/72a933d2892dac9e5327678b6bd37af8d589bb22"><code>72a933d</code></a> Gate legacy hidden (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/24047">#24047</a>)</li>
    135 <li><a href="https://github.com/facebook/react/commit/d5f1b067c8bbb826b823d0354a28ba31078b70c0"><code>d5f1b06</code></a> [ServerContext] Flight support for ServerContext (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/23244">#23244</a>)</li>
    136 <li><a href="https://github.com/facebook/react/commit/17806594cc28284fe195f918e8d77de3516848ec"><code>1780659</code></a> Move createRoot/hydrateRoot to react-dom/client (<a href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/23385">#23385</a>)</li>
    137 <li><a href="https://github.com/facebook/react/commit/42f15b324f50d0fd98322c21646ac3013e30344a"><code>42f15b3</code></a> [DevTools][Transition Tracing] onTransitionComplete and onTransitionStart imp...</li>
    138 <li>Additional commits viewable in <a href="https://github.com/facebook/react/commits/v18.1.0/packages/react">compare view</a></li>
    139 </ul>
    140 </details>
    141 <br />
    142 
    143 Updates `react-dom` from 17.0.2 to 18.1.0
    144 <details>
    145 <summary>Release notes</summary>
    146 <p><em>Sourced from <a href="https://github.com/facebook/react/releases">react-dom's releases</a>.</em></p>
    147 <blockquote>
    148 <h2>18.1.0 (April 26, 2022)</h2>
    149 <h3>React DOM</h3>
    150 <ul>
    151 <li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href="https://github.com/alireza-molaee"><code>@​alireza-molaee</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24274">#24274</a>)</li>
    152 <li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24271">#24271</a>)</li>
    153 <li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24308">#24308</a>)</li>
    154 <li>Fix some transition updates being ignored. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24353">#24353</a>)</li>
    155 <li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24247">#24247</a>)</li>
    156 <li>Fix throttling of revealing Suspense fallbacks. (<a href="https://github.com/sunderls"><code>@​sunderls</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24253">#24253</a>)</li>
    157 <li>Fix an inconsistency in whether the props object is the same between renders. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24421">#24421</a>)</li>
    158 <li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24298">#24298</a>)</li>
    159 <li>Fix a spurious hydration error. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24404">#24404</a>)</li>
    160 <li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24295">#24295</a>)</li>
    161 <li>Ensure the reason for hydration errors is always displayed. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24276">#24276</a>)</li>
    162 </ul>
    163 <h3>React DOM Server</h3>
    164 <ul>
    165 <li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24385">#24385</a>)</li>
    166 <li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24291">#24291</a>)</li>
    167 </ul>
    168 <h3>ESLint Plugin: React Hooks</h3>
    169 <ul>
    170 <li>Fix false positive errors with a large number of branches. (<a href="https://github.com/scyron6"><code>@​scyron6</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24287">#24287</a>)</li>
    171 <li>Don't consider a known dependency stable when the variable is reassigned. (<a href="https://github.com/afzalsayed96"><code>@​afzalsayed96</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24343">#24343</a>)</li>
    172 </ul>
    173 <h3>Use Subscription</h3>
    174 <ul>
    175 <li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24289">#24289</a>)</li>
    176 </ul>
    177 <h2>18.0.0 (March 29, 2022)</h2>
    178 <p>Below is a list of all new features, APIs, deprecations, and breaking changes.
    179 Read <a href="https://reactjs.org/blog/2022/03/29/react-v18.html">React 18 release post</a> and <a href="https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html">React 18 upgrade guide</a> for more information.</p>
    180 <h3>New Features</h3>
    181 <h3>React</h3>
    182 <ul>
    183 <li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>
    184 <li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>
    185 <li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>
    186 <li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>
    187 <li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>
    188 </ul>
    189 <h3>React DOM Client</h3>
    190 <p>These new APIs are now exported from <code>react-dom/client</code>:</p>
    191 <ul>
    192 <li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>
    193 </ul>
    194 <!-- raw HTML omitted -->
    195 </blockquote>
    196 <p>... (truncated)</p>
    197 </details>
    198 <details>
    199 <summary>Changelog</summary>
    200 <p><em>Sourced from <a href="https://github.com/facebook/react/blob/main/CHANGELOG.md">react-dom's changelog</a>.</em></p>
    201 <blockquote>
    202 <h2>18.1.0 (April 26, 2022)</h2>
    203 <h3>React DOM</h3>
    204 <ul>
    205 <li>Fix the false positive warning about <code>react-dom/client</code> when using UMD bundle. (<a href="https://github.com/alireza-molaee"><code>@​alireza-molaee</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24274">#24274</a>)</li>
    206 <li>Fix <code>suppressHydrationWarning</code> to work in production too. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24271">#24271</a>)</li>
    207 <li>Fix <code>componentWillUnmount</code> firing twice inside of Suspense. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24308">#24308</a>)</li>
    208 <li>Fix some transition updates being ignored. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24353">#24353</a>)</li>
    209 <li>Fix <code>useDeferredValue</code> causing an infinite loop when passed an unmemoized value. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24247">#24247</a>)</li>
    210 <li>Fix throttling of revealing Suspense fallbacks. (<a href="https://github.com/sunderls"><code>@​sunderls</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24253">#24253</a>)</li>
    211 <li>Fix an inconsistency in whether the props object is the same between renders. (<a href="https://github.com/acdlite"><code>@​acdlite</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24421">#24421</a>)</li>
    212 <li>Fix a missing warning about a <code>setState</code> loop in <code>useEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24298">#24298</a>)</li>
    213 <li>Fix a spurious hydration error. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24404">#24404</a>)</li>
    214 <li>Warn when calling <code>setState</code> in <code>useInsertionEffect</code>. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24295">#24295</a>)</li>
    215 <li>Ensure the reason for hydration errors is always displayed. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24276">#24276</a>)</li>
    216 </ul>
    217 <h3>React DOM Server</h3>
    218 <ul>
    219 <li>Fix escaping for the <code>bootstrapScriptContent</code> contents. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24385">#24385</a>)</li>
    220 <li>Significantly improve performance of <code>renderToPipeableStream</code>. (<a href="https://github.com/gnoff"><code>@​gnoff</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24291">#24291</a>)</li>
    221 </ul>
    222 <h3>ESLint Plugin: React Hooks</h3>
    223 <ul>
    224 <li>Fix false positive errors with a large number of branches. (<a href="https://github.com/scyron6"><code>@​scyron6</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24287">#24287</a>)</li>
    225 <li>Don't consider a known dependency stable when the variable is reassigned. (<a href="https://github.com/afzalsayed96"><code>@​afzalsayed96</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24343">#24343</a>)</li>
    226 </ul>
    227 <h3>Use Subscription</h3>
    228 <ul>
    229 <li>Replace the implementation with the <code>use-sync-external-store</code> shim. (<a href="https://github.com/gaearon"><code>@​gaearon</code></a> in <a href="https://github-redirect.dependabot.com/facebook/react/pull/24289">#24289</a>)</li>
    230 </ul>
    231 <h2>18.0.0 (March 29, 2022)</h2>
    232 <p>Below is a list of all new features, APIs, deprecations, and breaking changes.
    233 Read <a href="https://reactjs.org/blog/2022/03/29/react-v18.html">React 18 release post</a> and <a href="https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html">React 18 upgrade guide</a> for more information.</p>
    234 <h3>New Features</h3>
    235 <h3>React</h3>
    236 <ul>
    237 <li><code>useId</code> is a new hook for generating unique IDs on both the client and server, while avoiding hydration mismatches. It is primarily useful for component libraries integrating with accessibility APIs that require unique IDs. This solves an issue that already exists in React 17 and below, but it’s even more important in React 18 because of how the new streaming server renderer delivers HTML out-of-order.</li>
    238 <li><code>startTransition</code> and <code>useTransition</code> let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).</li>
    239 <li><code>useDeferredValue</code> lets you defer re-rendering a non-urgent part of the tree. It is similar to debouncing, but has a few advantages compared to it. There is no fixed time delay, so React will attempt the deferred render right after the first render is reflected on the screen. The deferred render is interruptible and doesn't block user input.</li>
    240 <li><code>useSyncExternalStore</code> is a new hook that allows external stores to support concurrent reads by forcing updates to the store to be synchronous. It removes the need for <code>useEffect</code> when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.</li>
    241 <li><code>useInsertionEffect</code> is a new hook that allows CSS-in-JS libraries to address performance issues of injecting styles in render. Unless you’ve already built a CSS-in-JS library we don’t expect you to ever use this. This hook will run after the DOM is mutated, but before layout effects read the new layout. This solves an issue that already exists in React 17 and below, but is even more important in React 18 because React yields to the browser during concurrent rendering, giving it a chance to recalculate layout.</li>
    242 </ul>
    243 <h3>React DOM Client</h3>
    244 <p>These new APIs are now exported from <code>react-dom/client</code>:</p>
    245 <ul>
    246 <li><code>createRoot</code>: New method to create a root to <code>render</code> or <code>unmount</code>. Use it instead of <code>ReactDOM.render</code>. New features in React 18 don't work without it.</li>
    247 </ul>
    248 <!-- raw HTML omitted -->
    249 </blockquote>
    250 <p>... (truncated)</p>
    251 </details>
    252 <details>
    253 <summary>Commits</summary>
    254 <ul>
    255 <li><a href="https://github.com/facebook/react/commit/bd4784c8f8c6b17cf45c712db8ed8ed19a622b26"><code>bd4784c</code></a> Revert <a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24236">#24236</a> (Don't recreate the same fallback on the client if hydrating su...</li>
    256 <li><a href="https://github.com/facebook/react/commit/9ae80d6a2bf8f48f20e3d62b9672f21c1ff77bd8"><code>9ae80d6</code></a> Suppress hydration warnings when a preceding sibling suspends (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24404">#24404</a>)</li>
    257 <li><a href="https://github.com/facebook/react/commit/0dc4e6663dc875e0f734b1a96b26ebc33902323a"><code>0dc4e66</code></a> Land enableClientRenderFallbackOnHydrationMismatch (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24410">#24410</a>)</li>
    258 <li><a href="https://github.com/facebook/react/commit/354772952a8228255cc7e8e32906e427e5255c30"><code>3547729</code></a> Land enableSelectiveHydration flag (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24406">#24406</a>)</li>
    259 <li><a href="https://github.com/facebook/react/commit/392808a1f7fa2909492a742116ba8b549e862d70"><code>392808a</code></a> Land enableClientRenderFallbackOnTextMismatch flag (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24405">#24405</a>)</li>
    260 <li><a href="https://github.com/facebook/react/commit/a6d53f3468636bcee30c26d4e0df7a4582526d63"><code>a6d53f3</code></a> Revert &quot;Clean up Selective Hydration / Event Replay flag (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24156">#24156</a>)&quot; (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24402">#24402</a>)</li>
    261 <li><a href="https://github.com/facebook/react/commit/2bf5eba7247a58aeb7ba23b3b5630d8bf6c2c4da"><code>2bf5eba</code></a> explain the rationale for the chosen escaping implemenation in a comment (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24">#24</a>...</li>
    262 <li><a href="https://github.com/facebook/react/commit/d40dc73cf903e8a12fd29e900df2406e7f611c5c"><code>d40dc73</code></a> Escape bootstrapScriptContent for javascript embedding into HTML (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24385">#24385</a>)</li>
    263 <li><a href="https://github.com/facebook/react/commit/ea7b2ec2898c615f648aec30fcbcf73aed156583"><code>ea7b2ec</code></a> Remove wrong return pointer warning</li>
    264 <li><a href="https://github.com/facebook/react/commit/8dcedba15a4a0f5545e3b386355000208884b24f"><code>8dcedba</code></a> Add fallback shim for AbortController (<a href="https://github.com/facebook/react/tree/HEAD/packages/react-dom/issues/24285">#24285</a>)</li>
    265 <li>Additional commits viewable in <a href="https://github.com/facebook/react/commits/v18.1.0/packages/react-dom">compare view</a></li>
    266 </ul>
    267 </details>
    268 <br />
    269 
    270 
    271 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`.
    272 
    273 [//]: # (dependabot-automerge-start)
    274 [//]: # (dependabot-automerge-end)
    275 
    276 ---
    277 
    278 <details>
    279 <summary>Dependabot commands and options</summary>
    280 <br />
    281 
    282 You can trigger Dependabot actions by commenting on this PR:
    283 - `@dependabot rebase` will rebase this PR
    284 - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
    285 - `@dependabot merge` will merge this PR after your CI passes on it
    286 - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
    287 - `@dependabot cancel merge` will cancel a previously requested merge and block automerging
    288 - `@dependabot reopen` will reopen this PR if it is closed
    289 - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    290 - `@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)
    291 - `@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)
    292 - `@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)
    293 
    294 
    295 </details>
    296 
    297 
    298 ## Comments
    299 
    300 ### @dependabot[bot] — 2022-05-23T08:41:35Z
    301 
    302 Looks like these dependencies are updatable in another way, so this is no longer needed.
    303