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: support React 17 #4031

Merged
merged 4 commits into from Oct 28, 2020
Merged

chore: support React 17 #4031

merged 4 commits into from Oct 28, 2020

Conversation

layershifter
Copy link
Member

@layershifter layershifter commented Aug 11, 2020

Fixes #4028.


On public side

This PR updates peerDependencies to avoid warnings related to React versions mismatch.

On our side

Updates React & dev dependencies to run our doc site and tests with React 17, with this we can ensure that nothing is broken. Currently shipped with unofficial adapter for Enzyme and there is no support for React 17 (enzymejs/enzyme#2429).

@github-actions
Copy link

github-actions bot commented Aug 11, 2020

size-limit report

Path Size
bundle-size/dist/Button.size.js 58.45 KB (-0.34% 🔽)
bundle-size/dist/Icon.size.js 25.06 KB (0%)
bundle-size/dist/Image.size.js 53.63 KB (-0.37% 🔽)
bundle-size/dist/Modal.size.js 68.54 KB (-0.29% 🔽)
bundle-size/dist/Portal.size.js 40.34 KB (-0.49% 🔽)

@brianespinosa brianespinosa linked an issue Aug 11, 2020 that may be closed by this pull request
@wojtekmaj
Copy link

Note: For now, you can use 3rd party adapter I built based on enzyme-adapter-react-16: https://www.npmjs.com/package/@wojtekmaj/enzyme-adapter-react-17

@vercel vercel bot temporarily deployed to Preview August 26, 2020 08:15 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2020

Codecov Report

Merging #4031 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4031   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files         186      186           
  Lines        3255     3255           
=======================================
  Hits         3250     3250           
  Misses          5        5           

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 c3640e4...0553686. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Oct 25, 2020

Codecov Report

Merging #4031 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4031   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         180      180           
  Lines        3241     3241           
=======================================
  Hits         3233     3233           
  Misses          8        8           

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 e8fe5f2...7b45c08. Read the comment docs.

@layershifter layershifter removed PR: Internal 🏠 wip Work in progress labels Oct 25, 2020
@layershifter layershifter changed the title chore: use React 17 chore: support React 17 Oct 25, 2020
@@ -40,11 +40,9 @@ const Document = ({ Body, children, Head, Html, siteData: { dev, versions } }) =
}.js`}
/>
<script
src={
dev
? ` https://cdn.jsdelivr.net/npm/@hot-loader/react-dom@${versions.react}/umd/react-dom.development.js`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no @hot-loader/react-dom for 17.0.1. It also creates weird issues with HMR...

@layershifter layershifter deleted the chore/use-react-17 branch October 28, 2020 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React 17 Compatibility
4 participants