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

chore(deps): update dependency react to v18 #3607

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 1, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (source) ^16.8.4 -> ^18.0.0 age adoption passing confidence

Release Notes

facebook/react (react)

v18.3.1

Compare Source

v18.3.0

Compare Source

v18.2.0

Compare Source

React DOM
React DOM Server
Server Components (Experimental)

v18.1.0

Compare Source

React DOM
React DOM Server
ESLint Plugin: React Hooks
Use Subscription

v18.0.0

Compare Source

Below is a list of all new features, APIs, deprecations, and breaking changes.
Read React 18 release post and React 18 upgrade guide for more information.

New Features
React
  • useId 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.
  • startTransition and useTransition 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).
  • useDeferredValue 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.
  • useSyncExternalStore 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 useEffect when implementing subscriptions to external data sources, and is recommended for any library that integrates with state external to React.
  • useInsertionEffect 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.
React DOM Client

These new APIs are now exported from react-dom/client:

  • createRoot: New method to create a root to render or unmount. Use it instead of ReactDOM.render. New features in React 18 don't work without it.
  • hydrateRoot: New method to hydrate a server rendered application. Use it instead of ReactDOM.hydrate in conjunction with the new React DOM Server APIs. New features in React 18 don't work without it.

Both createRoot and hydrateRoot accept a new option called onRecoverableError in case you want to be notified when React recovers from errors during rendering or hydration for logging. By default, React will use reportError, or console.error in the older browsers.

React DOM Server

These new APIs are now exported from react-dom/server and have full support for streaming Suspense on the server:

  • renderToPipeableStream: for streaming in Node environments.
  • renderToReadableStream: for modern edge runtime environments, such as Deno and Cloudflare workers.

The existing renderToString method keeps working but is discouraged.

v17.0.2

Compare Source

React DOM

v17.0.1

Compare Source

React DOM

v17.0.0

Compare Source

Today, we are releasing React 17!

Learn more about React 17 and how to update to it on the official React blog.

React
React DOM
React DOM Server
React Test Renderer
Concurrent Mode (Experimental)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@codecov
Copy link

codecov bot commented Apr 1, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.15%. Comparing base (bedce93) to head (f247a51).

❗ Current head f247a51 differs from pull request most recent head 6986da9. Consider uploading reports for the commit 6986da9 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3607   +/-   ##
=======================================
  Coverage   93.15%   93.15%           
=======================================
  Files          91       91           
  Lines        6792     6792           
  Branches     1579     1579           
=======================================
  Hits         6327     6327           
  Misses        429      429           
  Partials       36       36           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bedce93...6986da9. Read the comment docs.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from f95aacb to dac6502 Compare April 7, 2022 15:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 6 times, most recently from e64284c to 5625213 Compare April 21, 2022 17:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 9f3eeba to a09605f Compare May 20, 2022 17:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 9a38b49 to 71d4aa7 Compare June 10, 2022 16:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 71d4aa7 to 5210766 Compare August 1, 2022 22:42
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 5210766 to cde0ace Compare August 18, 2022 01:06
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 6 times, most recently from c76f29f to 57a81cd Compare August 29, 2022 22:00
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 57a81cd to 5cb6b38 Compare September 22, 2022 16:49
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 5cb6b38 to 9d90459 Compare October 4, 2022 15:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from cfd28b7 to 36a7489 Compare October 22, 2022 16:15
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from cb01960 to 4cd7735 Compare April 28, 2023 11:46
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 4cd7735 to c703b82 Compare May 17, 2023 18:59
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from c703b82 to 3be04d2 Compare May 24, 2023 19:16
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3be04d2 to 1e31739 Compare June 13, 2023 13:49
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from ac2785a to c6ef136 Compare June 24, 2023 06:20
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from c6ef136 to 8886d0c Compare August 5, 2023 14:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from eaddc1c to 513da95 Compare October 7, 2023 11:11
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 513da95 to e8fe001 Compare October 25, 2023 23:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e8fe001 to 1b06129 Compare November 4, 2023 15:27
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1b06129 to 29e8c09 Compare March 12, 2024 20:17
Copy link
Contributor Author

renovate bot commented Mar 12, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: website/yarn.lock
error This project's package.json defines "packageManager": "yarn@4.1.1". However the current global version of Yarn is 1.22.22.

Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 7 times, most recently from 85276f7 to b83847b Compare March 13, 2024 14:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from b83847b to 069497d Compare March 24, 2024 22:16
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 069497d to 8075d5e Compare April 18, 2024 15:40
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8075d5e to 2f4b3e9 Compare May 10, 2024 17:37
Copy link
Contributor Author

renovate bot commented May 10, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: website/yarn.lock
error This project's package.json defines "packageManager": "yarn@4.1.1". However the current global version of Yarn is 1.22.22.

Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from b33bc27 to f247a51 Compare May 10, 2024 18:27
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f247a51 to 6986da9 Compare May 10, 2024 18:31
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.

None yet

0 participants