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

fix(deps): update react monorepo to v18 (major) #323

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 20, 2020

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (source) 16.13.1 -> 18.3.1 age adoption passing confidence
react-dom (source) 16.13.1 -> 18.3.1 age adoption passing confidence
react-test-renderer (source) 16.13.1 -> 18.3.1 age adoption passing confidence

Release Notes

facebook/react (react)

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.

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

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.

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
facebook/react (react-test-renderer)

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 Clien

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

@renovate renovate bot requested a review from moul as a code owner October 20, 2020 22:23
@auto-add-label auto-add-label bot added the bug Something isn't working label Oct 20, 2020
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Oct 20, 2020
@codecov
Copy link

codecov bot commented Oct 20, 2020

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 28.81%. Comparing base (9b77084) to head (6699840).
Report is 19 commits behind head on master.

❗ Current head 6699840 differs from pull request most recent head 6c9b736. Consider uploading reports for the commit 6c9b736 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #323      +/-   ##
==========================================
+ Coverage   27.95%   28.81%   +0.86%     
==========================================
  Files           6        6              
  Lines         440      288     -152     
==========================================
- Hits          123       83      -40     
+ Misses        315      203     -112     
  Partials        2        2              
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 45516f6 to 6d4886b Compare October 22, 2020 13:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 6d4886b to 7cf9709 Compare November 7, 2020 15:58
@renovate
Copy link
Contributor Author

renovate bot commented Nov 7, 2020

⚠️ 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 check 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: web/package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!   peer react@">=15" from react-router@5.2.0
npm ERR!   node_modules/react-router
npm ERR!     react-router@"5.2.0" from react-router-dom@5.2.0
npm ERR!     node_modules/react-router-dom
npm ERR!       react-router-dom@"5.2.0" from the root project
npm ERR!   3 more (react-router-dom, react-dom, react-test-renderer)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from @hot-loader/react-dom@16.13.0
npm ERR! node_modules/@hot-loader/react-dom
npm ERR!   @hot-loader/react-dom@"16.13.0" 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! See /tmp/renovate-cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate-cache/others/npm/_logs/2021-03-22T22_34_54_519Z-debug.log

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 7cf9709 to 6699840 Compare March 22, 2021 22:34
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 6699840 to 4e33bed Compare April 24, 2022 19:31
@renovate renovate bot changed the title fix(deps): update react monorepo to v17 (major) fix(deps): update react monorepo to v18 (major) Apr 24, 2022
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 4e33bed to 576b5b2 Compare May 15, 2022 23:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 576b5b2 to 4c58a29 Compare June 18, 2022 22:35
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 051c138 to da9559d Compare August 4, 2022 21:06
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from da9559d to 0fba39b Compare August 29, 2022 15:21
@renovate
Copy link
Contributor Author

renovate bot commented Aug 29, 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: web/package-lock.json
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.0.0" from @hot-loader/react-dom@16.13.0
npm warn node_modules/@hot-loader/react-dom
npm warn   @hot-loader/react-dom@"16.13.0" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.0.0-0" from enzyme-adapter-react-16@1.15.2
npm warn node_modules/enzyme-adapter-react-16
npm warn   dev enzyme-adapter-react-16@"1.15.2" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.13.1" from react-dom@16.13.1
npm warn node_modules/react-dom
npm warn   react-dom@"18.3.1" from the root project
npm warn   2 more (enzyme-adapter-react-16, react-hot-loader)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.13.1" from react-dom@16.13.1
npm warn node_modules/react-dom
npm warn   react-dom@"18.3.1" from the root project
npm warn   2 more (enzyme-adapter-react-16, react-hot-loader)
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.8.6" from react-feather@2.0.8
npm warn node_modules/react-feather
npm warn   react-feather@"2.0.8" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^16.8.0" from react-hook-form@6.0.1
npm warn node_modules/react-hook-form
npm warn   react-hook-form@"6.0.1" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react@16.13.1
npm warn node_modules/react
npm warn   react@"18.3.1" from the root project
npm warn   12 more (@hot-loader/react-dom, airbnb-prop-types, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer react@"^15.0.0 || ^16.0.0" from react-hot-loader@4.12.20
npm warn node_modules/react-hot-loader
npm warn   dev react-hot-loader@"4.12.20" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react-dom@16.13.1
npm warn node_modules/react-dom
npm warn   react-dom@"18.3.1" from the root project
npm warn   2 more (enzyme-adapter-react-16, react-hot-loader)
npm warn
npm warn Could not resolve dependency:
npm warn peer react-dom@"^16.0.0-0" from enzyme-adapter-react-16@1.15.2
npm warn node_modules/enzyme-adapter-react-16
npm warn   dev enzyme-adapter-react-16@"1.15.2" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: Depviz@1.0.0
npm warn Found: react-dom@16.13.1
npm warn node_modules/react-dom
npm warn   react-dom@"18.3.1" from the root project
npm warn   2 more (enzyme-adapter-react-16, react-hot-loader)
npm warn
npm warn Could not resolve dependency:
npm warn peer react-dom@"^15.0.0 || ^16.0.0" from react-hot-loader@4.12.20
npm warn node_modules/react-hot-loader
npm warn   dev react-hot-loader@"4.12.20" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @jimp/plugin-threshold@0.10.3
npm warn Found: @jimp/plugin-color@0.6.8
npm warn node_modules/@jimp/plugin-color
npm warn   @jimp/plugin-color@"^0.6.8" from @jimp/plugins@0.6.8
npm warn   node_modules/@jimp/plugins
npm warn     @jimp/plugins@"^0.6.8" from jimp@0.6.8
npm warn     node_modules/jimp
npm warn
npm warn Could not resolve dependency:
npm warn peer @jimp/plugin-color@">=0.8.0" from @jimp/plugin-threshold@0.10.3
npm warn node_modules/@jimp/plugin-threshold
npm warn   @jimp/plugin-threshold@"^0.10.3" from @jimp/plugins@0.10.3
npm warn   node_modules/potrace/node_modules/@jimp/plugins
npm warn
npm warn Conflicting peer dependency: @jimp/plugin-color@0.22.12
npm warn node_modules/@jimp/plugin-color
npm warn   peer @jimp/plugin-color@">=0.8.0" from @jimp/plugin-threshold@0.10.3
npm warn   node_modules/@jimp/plugin-threshold
npm warn     @jimp/plugin-threshold@"^0.10.3" from @jimp/plugins@0.10.3
npm warn     node_modules/potrace/node_modules/@jimp/plugins
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: @jimp/plugin-threshold@0.10.3
npm warn Found: @jimp/plugin-resize@0.6.8
npm warn node_modules/@jimp/plugin-resize
npm warn   peer @jimp/plugin-resize@">=0.3.5" from @jimp/plugin-contain@0.6.8
npm warn   node_modules/@jimp/plugin-contain
npm warn     @jimp/plugin-contain@"^0.6.8" from @jimp/plugins@0.6.8
npm warn     node_modules/@jimp/plugins
npm warn   5 more (@jimp/plugin-cover, @jimp/plugin-rotate, ...)
npm warn
npm warn Could not resolve dependency:
npm warn peer @jimp/plugin-resize@">=0.8.0" from @jimp/plugin-threshold@0.10.3
npm warn node_modules/@jimp/plugin-threshold
npm warn   @jimp/plugin-threshold@"^0.10.3" from @jimp/plugins@0.10.3
npm warn   node_modules/potrace/node_modules/@jimp/plugins
npm warn
npm warn Conflicting peer dependency: @jimp/plugin-resize@0.22.12
npm warn node_modules/@jimp/plugin-resize
npm warn   peer @jimp/plugin-resize@">=0.8.0" from @jimp/plugin-threshold@0.10.3
npm warn   node_modules/@jimp/plugin-threshold
npm warn     @jimp/plugin-threshold@"^0.10.3" from @jimp/plugins@0.10.3
npm warn     node_modules/potrace/node_modules/@jimp/plugins
npm warn ERESOLVE overriding peer dependency
npm warn ERESOLVE overriding peer dependency
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: eslint-watch@7.0.0
npm error Found: eslint@8.2.0
npm error node_modules/eslint
npm error   dev eslint@"8.2.0" from the root project
npm error   peer eslint@">= 4.12.1" from babel-eslint@10.1.0
npm error   node_modules/babel-eslint
npm error     dev babel-eslint@"10.1.0" from the root project
npm error   10 more (eslint-config-airbnb, eslint-config-airbnb-base, ...)
npm error
npm error Could not resolve dependency:
npm error peer eslint@">=7 <8.0.0" from eslint-watch@7.0.0
npm error node_modules/eslint-watch
npm error   dev eslint-watch@"7.0.0" from the root project
npm error
npm error Conflicting peer dependency: eslint@7.32.0
npm error node_modules/eslint
npm error   peer eslint@">=7 <8.0.0" from eslint-watch@7.0.0
npm error   node_modules/eslint-watch
npm error     dev eslint-watch@"7.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-04-26T20_46_33_511Z-eresolve-report.txt

npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-04-26T20_46_33_511Z-debug-0.log

@socket-security
Copy link

socket-security bot commented Aug 29, 2022

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from eb2db01 to 73768e0 Compare September 27, 2022 21:03
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 73768e0 to 164f923 Compare October 13, 2022 11:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 164f923 to e4fc3b0 Compare October 26, 2022 10:57
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from ae439a4 to 24ef6d1 Compare April 26, 2024 17:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 24ef6d1 to 6c9b736 Compare April 26, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔍 Ready for Review Pull Request is not reviewed yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants