Skip to content

Commit

Permalink
Bump react and @types/react (#967)
Browse files Browse the repository at this point in the history
[//]: # (dependabot-start)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some
time.

Note: if you make any changes to this PR yourself, they will take
precedence over the rebase.

---

[//]: # (dependabot-end)

Bumps
[react](https://github.com/facebook/react/tree/HEAD/packages/react) and
[@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react).
These dependencies needed to be updated together.
Updates `react` from 18.2.0 to 18.3.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/facebook/react/releases">react's
releases</a>.</em></p>
<blockquote>
<h2>18.3.1 (April 26, 2024)</h2>
<ul>
<li>Export <code>act</code> from <code>react</code> <a
href="https://github.com/facebook/react/commit/f1338f8080abd1386454a10bbf93d67bfe37ce85">f1338f</a></li>
</ul>
<h2>18.3.0 (April 25, 2024)</h2>
<p>This release is identical to 18.2 but adds warnings for deprecated
APIs and other changes that are needed for React 19.</p>
<p>Read the <a
href="https://react.dev/blog/2024/04/25/react-19-upgrade-guide">React 19
Upgrade Guide</a> for more info.</p>
<h3>React</h3>
<ul>
<li>Allow writing to <code>this.refs</code> to support string ref
codemod <a
href="https://github.com/facebook/react/commit/9090712fd3ca4e1099e1f92e67933c2cb4f32552">909071</a></li>
<li>Warn for deprecated <code>findDOMNode</code> outside StrictMode <a
href="https://github.com/facebook/react/commit/c3b283964108b0e8dbcf1f9eb2e7e67815e39dfb">c3b283</a></li>
<li>Warn for deprecated <code>test-utils</code> methods <a
href="https://github.com/facebook/react/commit/d4ea75dc4258095593b6ac764289f42bddeb835c">d4ea75</a></li>
<li>Warn for deprecated Legacy Context outside StrictMode <a
href="https://github.com/facebook/react/commit/415ee0e6ea0fe3e288e65868df2e3241143d5f7f">415ee0</a></li>
<li>Warn for deprecated string refs outside StrictMode <a
href="https://redirect.github.com/facebook/react/pull/25383">#25383</a></li>
<li>Warn for deprecated <code>defaultProps</code> for function
components <a
href="https://redirect.github.com/facebook/react/pull/25699">#25699</a></li>
<li>Warn when spreading <code>key</code> <a
href="https://redirect.github.com/facebook/react/pull/25697">#25697</a></li>
<li>Warn when using <code>act</code> from <code>test-utils</code> <a
href="https://github.com/facebook/react/commit/d4ea75dc4258095593b6ac764289f42bddeb835c">d4ea75</a></li>
</ul>
<h3>React DOM</h3>
<ul>
<li>Warn for deprecated <code>unmountComponentAtNode</code> <a
href="https://github.com/facebook/react/commit/8a015b68cc060079878e426610e64e86fb328f8d">8a015b</a></li>
<li>Warn for deprecated <code>renderToStaticNodeStream</code> <a
href="https://redirect.github.com/facebook/react/pull/28874">#28874</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/facebook/react/blob/main/CHANGELOG.md">react's
changelog</a>.</em></p>
<blockquote>
<h2>18.3.1 (April 26, 2024)</h2>
<ul>
<li>Export <code>act</code> from <code>react</code> <a
href="https://github.com/facebook/react/commit/f1338f8080abd1386454a10bbf93d67bfe37ce85">f1338f</a></li>
</ul>
<h2>18.3.0 (April 25, 2024)</h2>
<p>This release is identical to 18.2 but adds warnings for deprecated
APIs and other changes that are needed for React 19.</p>
<p>Read the <a
href="https://react.dev/blog/2024/04/25/react-19-upgrade-guide">React 19
Upgrade Guide</a> for more info.</p>
<h3>React</h3>
<ul>
<li>Allow writing to <code>this.refs</code> to support string ref
codemod <a
href="https://github.com/facebook/react/commit/9090712fd3ca4e1099e1f92e67933c2cb4f32552">909071</a></li>
<li>Warn for deprecated <code>findDOMNode</code> outside StrictMode <a
href="https://github.com/facebook/react/commit/c3b283964108b0e8dbcf1f9eb2e7e67815e39dfb">c3b283</a></li>
<li>Warn for deprecated <code>test-utils</code> methods <a
href="https://github.com/facebook/react/commit/d4ea75dc4258095593b6ac764289f42bddeb835c">d4ea75</a></li>
<li>Warn for deprecated Legacy Context outside StrictMode <a
href="https://github.com/facebook/react/commit/415ee0e6ea0fe3e288e65868df2e3241143d5f7f">415ee0</a></li>
<li>Warn for deprecated string refs outside StrictMode <a
href="https://redirect.github.com/facebook/react/pull/25383">#25383</a></li>
<li>Warn for deprecated <code>defaultProps</code> for function
components <a
href="https://redirect.github.com/facebook/react/pull/25699">#25699</a></li>
<li>Warn when spreading <code>key</code> <a
href="https://redirect.github.com/facebook/react/pull/25697">#25697</a></li>
<li>Warn when using <code>act</code> from <code>test-utils</code> <a
href="https://github.com/facebook/react/commit/d4ea75dc4258095593b6ac764289f42bddeb835c">d4ea75</a></li>
</ul>
<h3>React DOM</h3>
<ul>
<li>Warn for deprecated <code>unmountComponentAtNode</code> <a
href="https://github.com/facebook/react/commit/8a015b68cc060079878e426610e64e86fb328f8d">8a015b</a></li>
<li>Warn for deprecated <code>renderToStaticNodeStream</code> <a
href="https://redirect.github.com/facebook/react/pull/28874">#28874</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/facebook/react/commit/f1338f8080abd1386454a10bbf93d67bfe37ce85"><code>f1338f8</code></a>
Export <code>React.act</code> from 18.3</li>
<li><a
href="https://github.com/facebook/react/commit/d6c42f7b1134c4f033296ce4d47a7803aa0929df"><code>d6c42f7</code></a>
Bump to 18.3.1</li>
<li><a
href="https://github.com/facebook/react/commit/73bfaa16e1487d6c4a83ca960a6f0365af2ab440"><code>73bfaa1</code></a>
Turn on key spread warning in jsx-runtime for everyone (<a
href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/25697">#25697</a>)</li>
<li><a
href="https://github.com/facebook/react/commit/c2a246e956a164c7a92a3807c973bf9b56f85a6b"><code>c2a246e</code></a>
Turn on string ref deprecation warning for everybody (not codemoddable)
(<a
href="https://github.com/facebook/react/tree/HEAD/packages/react/issues/25383">#25383</a>)</li>
<li><a
href="https://github.com/facebook/react/commit/2cfb4741fdf2f9e3a843930d95ee6965fab44b8f"><code>2cfb474</code></a>
Bump version from 18.2 to 18.3</li>
<li>See full diff in <a
href="https://github.com/facebook/react/commits/v18.3.1/packages/react">compare
view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a
href="https://www.npmjs.com/~react-bot">react-bot</a>, a new releaser
for react since your current version.</p>
</details>
<br />

Updates `@types/react` from 18.2.73 to 18.3.1
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react">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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored May 2, 2024
1 parent 1c67322 commit 08e32e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"graphql": "^16.8.1",
"next": "14.1.4",
"next-themes": "^0.3.0",
"react": "18.2.0",
"react": "18.3.1",
"react-dom": "18.2.0",
"react-markdown": "^9.0.1",
"semver": "^7.6.0",
Expand All @@ -38,7 +38,7 @@
"@graphql-codegen/typescript-operations": "^4.2.0",
"@tailwindcss/typography": "^0.5.13",
"@types/node": "20.12.8",
"@types/react": "18.2.73",
"@types/react": "18.3.1",
"@types/react-dom": "18.2.23",
"autoprefixer": "^10.4.19",
"graphql-request": "^6.1.0",
Expand Down
18 changes: 13 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3383,14 +3383,22 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/[email protected]":
"@types/react@*":
version "18.2.73"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.73.tgz#0579548ad122660d99e00499d22e33b81e73ed94"
integrity sha512-XcGdod0Jjv84HOC7N5ziY3x+qL0AfmubvKOZ9hJjJ2yd5EE+KYjWhdOjt387e9HPheHkdggF9atTifMRtyAaRA==
dependencies:
"@types/prop-types" "*"
csstype "^3.0.2"

"@types/[email protected]":
version "18.3.1"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.1.tgz#fed43985caa834a2084d002e4771e15dfcbdbe8e"
integrity sha512-V0kuGBX3+prX+DQ/7r2qsv1NsdfnCLnTgnRJ1pYnxykBhGMz+qj+box5lq7XsO5mtZsBqpjwwTu/7wszPfMBcw==
dependencies:
"@types/prop-types" "*"
csstype "^3.0.2"

"@types/unist@*", "@types/unist@^3.0.0":
version "3.0.2"
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.2.tgz#6dd61e43ef60b34086287f83683a5c1b2dc53d20"
Expand Down Expand Up @@ -5913,10 +5921,10 @@ react-textarea-autosize@^8.5.3:
use-composed-ref "^1.3.0"
use-latest "^1.2.1"

react@18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==
react@18.3.1:
version "18.3.1"
resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891"
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
dependencies:
loose-envify "^1.1.0"

Expand Down

0 comments on commit 08e32e1

Please sign in to comment.