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

fix(deps): update react monorepo to v18 (major) #545

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 29, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/react (source) 16.14.35 -> 18.2.6 age adoption passing confidence
@types/react-dom (source) 16.9.18 -> 18.2.4 age adoption passing confidence
react (source) 16.14.0 -> 18.2.0 age adoption passing confidence
react-dom (source) 16.14.0 -> 18.2.0 age adoption passing confidence

Release Notes

facebook/react

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 these updates 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 Mar 29, 2022

Codecov Report

Patch and project coverage have no change.

Comparison is base (473ee45) 91.09% compared to head (229fc08) 91.09%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #545   +/-   ##
=======================================
  Coverage   91.09%   91.09%           
=======================================
  Files          25       25           
  Lines         865      865           
  Branches      215      215           
=======================================
  Hits          788      788           
  Misses         74       74           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 55e4134 to b06a9b2 Compare April 14, 2022 14:05
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 3176bbb to 66b31cc Compare April 25, 2022 23:26
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from a1b5590 to 3b57516 Compare April 27, 2022 03:02
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from c61937b to b50562a Compare May 12, 2022 22:31
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from c08632f to 530be3d Compare June 7, 2022 23:38
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from b54b94a to a554600 Compare June 17, 2022 00:46
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from a554600 to 627e141 Compare July 6, 2022 03:20
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 998d5da to bfd7ee9 Compare July 27, 2022 23:46
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from bfd7ee9 to 63e4a55 Compare August 7, 2022 14:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 239718e to 3489086 Compare August 19, 2022 11:18
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3489086 to 46e5ca2 Compare August 30, 2022 23:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 2c5bc63 to ac75f81 Compare September 13, 2022 18:47
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 10 times, most recently from e634883 to adf6ef5 Compare March 29, 2023 00:51
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 56d6eea to d65f15d Compare April 4, 2023 03:38
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 0eed669 to fb7f667 Compare April 12, 2023 17:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from d732207 to 9a739ed Compare April 21, 2023 20:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4d88cbb to 69df438 Compare April 25, 2023 23:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 6 times, most recently from e08750f to 00d429b Compare May 6, 2023 13:32
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 00d429b to 229fc08 Compare May 9, 2023 21:13
@renovate renovate bot changed the title Update react monorepo to v18 (major) fix(deps): update react monorepo to v18 (major) May 9, 2023
@leolabs leolabs closed this May 10, 2023
@renovate
Copy link
Contributor Author

renovate bot commented May 10, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 18.x releases. But if you manually upgrade to 18.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/major-react-monorepo branch May 10, 2023 12:18
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.

1 participant