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) #66

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Oct 26, 2020

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react (source) 17.0.2 -> 18.3.1 age adoption passing confidence
react-dom (source) 17.0.2 -> 18.3.1 age adoption passing confidence
react-test-renderer (source) ^17.0.2 -> ^18.0.0 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.

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.

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 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 - "after 12am and before 08:30am on Monday" in timezone America/New_York, 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 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 force-pushed the renovate/major-react-monorepo branch 4 times, most recently from 3870e63 to 0dbffbd Compare November 2, 2020 05:16
@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #66 (29f5d69) into master (76d3b5c) will decrease coverage by 86.74%.
The diff coverage is n/a.

❗ Current head 29f5d69 differs from pull request most recent head e47e158. Consider uploading reports for the commit e47e158 to get more accurate results
Impacted file tree graph

@@           Coverage Diff            @@
##           master   #66       +/-   ##
========================================
- Coverage   86.74%     0   -86.75%     
========================================
  Files          87     0       -87     
  Lines        2075     0     -2075     
  Branches      460     0      -460     
========================================
- Hits         1800     0     -1800     
+ Misses        275     0      -275     
Impacted Files Coverage Δ
src/users/account-actions/constants.js
...rc/users/entitlements/v2/ExpireEntitlementForm.jsx
src/users/data/test/entitlementForm.js
src/users/entitlements/v2/EntitlementForm.jsx
src/SupportToolsTab/SupportToolsTab.jsx
src/users/v2/IdentityVerificationStatus.jsx
src/users/enrollments/EnrollmentForm.jsx
src/users/UserSummary.jsx
src/utils/index.js
src/users/data/test/ssoRecords.js
... and 77 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 76d3b5c...e47e158. Read the comment docs.

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 0dbffbd to 29f5d69 Compare November 2, 2020 06:32
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 29f5d69 to 3bbf35f Compare November 9, 2020 13:16
@renovate renovate bot changed the title Update react monorepo to v17 (major) fix(deps): update react monorepo to v17 (major) Nov 9, 2020
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 3bbf35f to 8703e39 Compare November 23, 2020 09:06
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 5 times, most recently from b8e2d04 to 00106ff Compare December 21, 2020 13:02
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 00106ff to be8499c Compare December 28, 2020 06:33
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4467aff to 54bef19 Compare February 1, 2021 05:24
@renovate renovate bot changed the title fix(deps): update react monorepo to v17 (major) Update react monorepo to v17 (major) Feb 1, 2021
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4a8ccc2 to 8f73007 Compare February 15, 2021 05:14
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8f73007 to 934406f Compare February 22, 2021 08:37
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 2adad64 to ccd939c Compare March 15, 2021 04:18
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from add1b8e to 620f95b Compare March 29, 2021 04:22
@renovate renovate bot changed the title Update react monorepo to v17 (major) fix(deps): update react monorepo to v17 (major) Mar 29, 2021
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 4630d0c to da9740c Compare April 5, 2021 08:39
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 5df62a3 to bb32ae3 Compare April 19, 2021 04:32
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from b209593 to 9424e2e Compare October 2, 2023 04:26
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 9424e2e to fbdd90e Compare October 9, 2023 04:22
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from c6e68d4 to e0a86c2 Compare October 23, 2023 04:38
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 5862ea8 to 77a873e Compare November 6, 2023 06:55
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 77a873e to fcc0765 Compare December 4, 2023 05:26
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 48158c1 to 0e88969 Compare December 18, 2023 07:42
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 0e88969 to cceb0b6 Compare January 22, 2024 06:30
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from cceb0b6 to 8c50855 Compare February 12, 2024 07:35
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 8c50855 to 919805b Compare March 18, 2024 06:36
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 919805b to eaa265a Compare March 25, 2024 07:19
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from eaa265a to 581f1ca Compare April 1, 2024 07:36
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from b6b3cbb to f01f1ff Compare April 29, 2024 04:13
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from f01f1ff to 1bd8808 Compare June 24, 2024 08:16
Copy link
Author

renovate bot commented Jun 24, 2024

⚠️ 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 error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @edx/frontend-enterprise-utils@9.1.0
npm error Found: react@18.3.1
npm error node_modules/react
npm error   react@"18.3.1" from the root project
npm error   peer react@"^16.6.0 || 17 || 18" from react-intl@6.6.5
npm error   node_modules/@edx/frontend-platform/node_modules/react-intl
npm error     react-intl@"6.6.5" from @edx/frontend-platform@8.0.0
npm error     node_modules/@edx/frontend-platform
npm error       @edx/frontend-platform@"8.0.0" from the root project
npm error       1 more (@edx/frontend-enterprise-utils)
npm error   35 more (@fortawesome/react-fontawesome, ...)
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.12.0 || ^17.0.0" from @edx/frontend-enterprise-utils@9.1.0
npm error node_modules/@edx/frontend-enterprise-utils
npm error   @edx/frontend-enterprise-utils@"9.1.0" from the root project
npm error
npm error Conflicting peer dependency: react@17.0.2
npm error node_modules/react
npm error   peer react@"^16.12.0 || ^17.0.0" from @edx/frontend-enterprise-utils@9.1.0
npm error   node_modules/@edx/frontend-enterprise-utils
npm error     @edx/frontend-enterprise-utils@"9.1.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-09-30T06_57_10_816Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-09-30T06_57_10_816Z-debug-0.log

@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1bd8808 to d5be079 Compare July 8, 2024 04:44
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from d5be079 to 529e608 Compare July 29, 2024 04:09
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch 2 times, most recently from 2b1824f to 6f412ac Compare August 12, 2024 04:23
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 6f412ac to 2a1d944 Compare August 19, 2024 06:04
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2a1d944 to 1c4b7a6 Compare August 26, 2024 06:30
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1c4b7a6 to e283f3b Compare September 9, 2024 04:23
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from e283f3b to 1e34db7 Compare September 16, 2024 04:54
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 1e34db7 to 2565e1d Compare September 23, 2024 06:34
@renovate renovate bot force-pushed the renovate/major-react-monorepo branch from 2565e1d to ef0ec6d Compare September 30, 2024 06:57
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.

0 participants