Skip to content

chore(deps): update react monorepo to v18 (major) - autoclosed#18

Closed
renovate[bot] wants to merge 1 commit intomainfrom
renovate/major-react-monorepo
Closed

chore(deps): update react monorepo to v18 (major) - autoclosed#18
renovate[bot] wants to merge 1 commit intomainfrom
renovate/major-react-monorepo

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented May 21, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/react (source) 17.0.44 -> 18.2.74 age adoption passing confidence
@types/react-dom (source) 17.0.16 -> 18.2.24 age adoption passing confidence
react (source) 17.0.2 -> 18.2.0 age adoption passing confidence
react-dom (source) 17.0.2 -> 18.2.0 age adoption passing confidence

Release Notes

facebook/react (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.


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.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
auths ⬜️ Ignored (Inspect) May 21, 2022 at 3:29AM (UTC)

@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from b709b13 to 17ff5e4 Compare June 14, 2022 23:16
@renovate
Copy link
Copy Markdown
Author

renovate Bot commented Mar 12, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 17ff5e4 to 310327b Compare March 18, 2023 04:06
@renovate renovate Bot changed the title fix(deps): update react monorepo to v18 (major) chore(deps): update react monorepo to v18 (major) Mar 18, 2023
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from f052627 to 1b02375 Compare March 29, 2023 04:04
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 1b02375 to 5437d0f Compare April 3, 2023 10:20
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 9fc372c to 663cb7b Compare April 17, 2023 17:16
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 715f568 to 77d4d8c Compare June 2, 2023 17:34
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 3d9e7ef to b531f7f Compare June 12, 2023 20:28
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 27e4187 to 47881f5 Compare June 23, 2023 20:01
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from e6264c1 to 56cc5ea Compare July 13, 2023 18:10
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from c61c2f9 to 1fe120a Compare July 31, 2023 21:13
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 90af53d to 82ddfad Compare August 9, 2023 20:47
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 82ddfad to 33bed21 Compare August 22, 2023 22:12
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 33bed21 to 89334c9 Compare September 18, 2023 17:40
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from df2505a to 46c4a33 Compare September 27, 2023 08:14
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 7ddf400 to 14216f6 Compare November 7, 2023 21:13
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 3b2f0f7 to f876050 Compare November 27, 2023 23:02
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 3d1495a to a2cfbc1 Compare December 4, 2023 21:47
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 5437207 to bf107ec Compare December 16, 2023 02:07
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from bf107ec to 6468e72 Compare December 28, 2023 16:44
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 6468e72 to 7665325 Compare January 6, 2024 10:53
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 7665325 to 47cd9ea Compare January 15, 2024 11:36
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 8 times, most recently from 25adda3 to cd75b83 Compare February 7, 2024 19:21
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 47a224a to 8a1c2bc Compare February 23, 2024 10:56
@renovate renovate Bot force-pushed the renovate/major-react-monorepo branch from 8a1c2bc to 618b820 Compare February 26, 2024 21:28
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.

0 participants