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 - autoclosed #10

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Sep 8, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (source) 16.13.1 || ^17.0.0 -> 16.13.1 || ^17.0.0 || ^18.0.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 is behind base branch, 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.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 4aa8e06 to ec47883 Compare September 19, 2023 23:49
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from fa8361c to 245487a Compare October 3, 2023 11:41
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 9047d84 to 88d23a2 Compare October 12, 2023 05:37
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from a0f5708 to c9c1a15 Compare October 22, 2023 02:44
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 8d99695 to 161b304 Compare October 28, 2023 08:25
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from f4093be to a5936a8 Compare November 7, 2023 18:07
@renovate renovate bot changed the base branch from renovate-changelog to main November 7, 2023 18:07
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from cd0a7da to f2a1d41 Compare November 13, 2023 16:03
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from da16bab to 2c2facf Compare November 23, 2023 05:15
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 8d821cd to f475081 Compare December 5, 2023 08:35
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f475081 to 1113e1e Compare December 6, 2023 14:26
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 0dc7d1d to 092683e Compare December 17, 2023 02:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 092683e to 65050f8 Compare December 30, 2023 08:57
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 65050f8 to 901b977 Compare January 8, 2024 05:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 901b977 to a144c60 Compare January 17, 2024 03:07
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 6 times, most recently from faea4a6 to a93c6c4 Compare February 9, 2024 05:48
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from a93c6c4 to ae1e971 Compare February 15, 2024 20:21
@renovate renovate bot changed the title chore(deps): update react monorepo to v18 (major) chore(deps): update dependency react to v18 Feb 15, 2024
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from ae1e971 to 3c5236b Compare February 16, 2024 14:18
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3c5236b to 04f897f Compare February 21, 2024 09:54
@renovate renovate bot changed the title chore(deps): update dependency react to v18 chore(deps): update dependency react to v18 - autoclosed Mar 8, 2024
@renovate renovate bot closed this Mar 8, 2024
@renovate renovate bot deleted the renovate/major-react-monorepo branch March 8, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
0 participants