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

Update dependency react to v19 #303

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 29, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (source) 17.0.2 -> 19.0.0 age adoption passing confidence

Release Notes

facebook/react (react)

v19.0.0

Compare Source

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.


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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 9c33aef to 18eaa23 Compare April 2, 2022 20:01
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 7937036 to fe01f17 Compare April 11, 2022 18:27
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 4b30c89 to 1e858d6 Compare April 30, 2022 13:24
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 6a75a50 to 248f2b8 Compare June 16, 2022 06:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 026c235 to 9e31218 Compare June 28, 2022 12:10
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 606320f to 7181a0c Compare July 20, 2022 10:40
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4ef3442 to ab1a3ae Compare July 26, 2022 13:37
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from ab1a3ae to 8e8f619 Compare August 9, 2022 18:01
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 12a60d2 to b2b3979 Compare August 31, 2022 11:06
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from b2b3979 to 94579e3 Compare September 15, 2022 07:06
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 98524db to f4b0c13 Compare October 4, 2022 09:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f4b0c13 to 3d6749b Compare November 23, 2022 05:51
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 42f68d8 to 7e41e50 Compare December 7, 2022 23:49
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 7e41e50 to a9078f5 Compare December 28, 2022 00:49
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 83fc144 to 8bbb907 Compare January 14, 2023 05:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8bbb907 to 0dec4ad Compare February 8, 2023 03:56
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 9669c79 to 2a9fe6f Compare February 15, 2024 01:28
@vctqs1
Copy link

vctqs1 commented Feb 18, 2024

Related to this error

[!] Error: Package subpath './cjs/react.development.js' is not defined by "exports" in /home/runner/work/react/react/node_modules/react/package.json

I'm doing a request to exports cjs files to resolve this error in PR facebook/react#28373

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 13ff2a5 to bbb66dd Compare February 19, 2024 00:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from bbb66dd to 3639f06 Compare April 12, 2024 15:08
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 2c856ed to 616198e Compare April 26, 2024 19:51
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 616198e to c829008 Compare May 20, 2024 20:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 845c405 to 52497d7 Compare June 5, 2024 12:36
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 52497d7 to 9d54e60 Compare June 11, 2024 08:10
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 9d54e60 to df16402 Compare June 21, 2024 11:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from df16402 to 9f38e65 Compare July 1, 2024 10:02
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 23de3d9 to 61809a6 Compare July 14, 2024 08:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 54285c0 to f7c3296 Compare October 9, 2024 21:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f7c3296 to 443756c Compare October 16, 2024 07:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 698069b to f9001c1 Compare November 26, 2024 14:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from e6d60fc to b42a627 Compare December 5, 2024 20:45
@renovate renovate bot changed the title Update dependency react to v18 Update dependency react to v19 Dec 5, 2024
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from b42a627 to eb23af5 Compare December 23, 2024 13:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from eb23af5 to 2be29e8 Compare January 8, 2025 03:21
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2be29e8 to 75731fc Compare January 9, 2025 11:01
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