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 react monorepo to v18 (major) #219

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 27, 2020

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/react (source) 16.9.15 -> 18.2.42 age adoption passing confidence
react (source) 16.10.2 -> 18.2.0 age adoption passing confidence
react-dom (source) 16.10.2 -> 18.2.0 age adoption passing confidence
react-test-renderer (source) 16.9.0 -> 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.

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)

v16.14.0

Compare Source

React

v16.13.1

Compare Source

React DOM
  • Fix bug in legacy mode Suspense where effect clean-up functions are not fired. This only affects users who use Suspense for data fetching in legacy mode, which is not technically supported. (@​acdlite in #​18238)
  • Revert warning for cross-component updates that happen inside class render lifecycles (componentWillReceiveProps, shouldComponentUpdate, and so on). (@​gaearon in #​18330)

v16.13.0

Compare Source

React
React DOM
Concurrent Mode (Experimental)

v16.12.0

Compare Source

React DOM
React Is

v16.11.0

Compare Source

React DOM
  • Fix mouseenter handlers from firing twice inside nested React containers. @​yuanoook in #​16928
  • Remove unstable_createRoot and unstable_createSyncRoot experimental APIs. (These are available in the Experimental channel as createRoot and createSyncRoot.) (@​acdlite in #​17088)

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.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3749a32 to 545f556 Compare April 26, 2021 12:25
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 545f556 to 974100d Compare October 18, 2021 23:40
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 974100d to 3cab304 Compare April 25, 2022 02:50
@renovate renovate bot changed the title chore(deps): update react monorepo to v17 (major) chore(deps): update react monorepo to v18 (major) Apr 25, 2022
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3cab304 to 9043048 Compare May 16, 2022 00:24
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 9043048 to a5206f5 Compare June 18, 2022 14:43
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from a5206f5 to 59b306c Compare September 25, 2022 20:11
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 59b306c to 8370365 Compare November 20, 2022 08:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8370365 to 6db86a6 Compare March 16, 2023 06:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 5f5a79b to 47643bb Compare March 29, 2023 23:25
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 47643bb to eb65400 Compare April 3, 2023 10:51
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 86340d4 to 5100734 Compare April 17, 2023 17:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 49ce793 to 6ab1154 Compare June 1, 2023 20:02
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 6406946 to 805026b Compare June 12, 2023 22:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 79707e3 to e19b6b6 Compare June 23, 2023 18:47
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e19b6b6 to 17df75d Compare July 13, 2023 20:05
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 1d6dad5 to 9e8f2d1 Compare July 31, 2023 21:56
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from c0c9c12 to 4cf70e3 Compare August 9, 2023 19:59
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 4cf70e3 to 970c354 Compare August 22, 2023 19:08
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 970c354 to cdb3fa4 Compare September 18, 2023 20:47
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from f3f6810 to 7a53c78 Compare October 1, 2023 12:12
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 7acfe0c to a9026d4 Compare October 10, 2023 23:03
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from d44cd97 to 8784b99 Compare October 20, 2023 14:31
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from cca15d0 to b49d4bd Compare October 26, 2023 06:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 24cdda6 to 6c68f25 Compare November 7, 2023 22:59
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 1bdeeab to 55f0fa6 Compare November 27, 2023 20:20
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 89f31a0 to 2cbffaa Compare December 2, 2023 18:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2cbffaa to 781e24e Compare December 4, 2023 22:44
@sandiiarov sandiiarov closed this Dec 8, 2023
Copy link
Contributor Author

renovate bot commented Dec 8, 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 December 8, 2023 16:04
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