Skip to content
This repository has been archived by the owner on Oct 29, 2023. It is now read-only.

Deps: Update react monorepo to v18. (major) - autoclosed #87

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 24, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/react (source) 17.0.47 -> 18.2.31 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
react-is (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: Enabled.

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 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
Copy link
Contributor Author

renovate bot commented Jun 2, 2022

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR!   peer react@"^17.0.2 || ^18.0.0-0" from [email protected]
npm ERR!   node_modules/next
npm ERR!     next@"12.3.4" from the root project
npm ERR!     next@"*" from @types/[email protected]
npm ERR!     node_modules/@types/next
npm ERR!       dev @types/next@"9.0.0" from the root project
npm ERR!     1 more (next-seo)
npm ERR!   10 more (next-seo, react-resize-detector, react-smooth, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.11.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/swr
npm ERR!   swr@"0.5.7" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^16.11.0 || ^17.0.0" from [email protected]
npm ERR!   node_modules/swr
npm ERR!     swr@"0.5.7" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /tmp/worker/1da306/601f50/cache/others/npm/_logs/2023-10-22T15_16_21_733Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /tmp/worker/1da306/601f50/cache/others/npm/_logs/2023-10-22T15_16_21_733Z-debug-0.log

@vercel
Copy link

vercel bot commented Jun 2, 2022

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

Name Status Preview Comments Updated (UTC)
telemetry 🛑 Canceled (Inspect) Aug 6, 2023 5:54pm

@vercel
Copy link

vercel bot commented Jun 2, 2022

Deployment failed with the following error:

Resource is limited - try again in 6 hours (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from f161884 to 952f6fb Compare June 3, 2022 11:04
@vercel
Copy link

vercel bot commented Jun 3, 2022

Deployment failed with the following error:

Resource is limited - try again in 11 minutes (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 952f6fb to f7b45f7 Compare June 3, 2022 11:27
@vercel
Copy link

vercel bot commented Jun 3, 2022

Deployment failed with the following error:

Resource is limited - try again in 27 minutes (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f7b45f7 to 3fd8f66 Compare June 3, 2022 11:50
@vercel
Copy link

vercel bot commented Jun 3, 2022

Deployment failed with the following error:

Resource is limited - try again in 4 minutes (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3fd8f66 to 8311d95 Compare June 3, 2022 23:47
@vercel
Copy link

vercel bot commented Jun 3, 2022

Deployment failed with the following error:

Resource is limited - try again in 5 hours (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from ceb7525 to 16a626f Compare June 9, 2022 04:14
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 16a626f to eafa416 Compare June 9, 2022 04:34
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from eafa416 to 3aac922 Compare June 9, 2022 04:54
@vercel
Copy link

vercel bot commented Jun 9, 2022

Deployment failed with the following error:

Resource is limited - try again in 8 hours (more than 100, code: "api-deployments-free-per-day").

@vercel
Copy link

vercel bot commented Jun 10, 2022

Deployment failed with the following error:

Resource is limited - try again in 20 hours (more than 100, code: "api-deployments-free-per-day").

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from a7b12f1 to 27b8066 Compare October 7, 2023 02:45
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 27b8066 to e508041 Compare October 7, 2023 06:27
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e508041 to 53a9a7a Compare October 9, 2023 18:48
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 53a9a7a to c545b1c Compare October 10, 2023 00:09
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from c545b1c to e8eee44 Compare October 10, 2023 21:11
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e8eee44 to 722f707 Compare October 13, 2023 19:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 722f707 to d42cf3e Compare October 17, 2023 17:40
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from d42cf3e to fe35674 Compare October 18, 2023 13:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from fe35674 to ce1f9ac Compare October 19, 2023 20:47
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from ce1f9ac to 178874a Compare October 20, 2023 15:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 3 times, most recently from 85b571c to 2029793 Compare October 22, 2023 15:11
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2029793 to 3606336 Compare October 22, 2023 15:16
@renovate renovate bot changed the title Deps: Update react monorepo to v18. (major) Deps: Update react monorepo to v18. (major) - autoclosed Oct 23, 2023
@renovate renovate bot closed this Oct 23, 2023
@renovate renovate bot deleted the renovate/major-react-monorepo branch October 23, 2023 01:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants