Skip to content

React 18 cleanup #819

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

Merged
merged 2 commits into from
Apr 10, 2022
Merged

React 18 cleanup #819

merged 2 commits into from
Apr 10, 2022

Conversation

mpeyper
Copy link
Member

@mpeyper mpeyper commented Apr 10, 2022

What:

  1. Changing type dependencies to peers deps and restricting to <18.0
  2. Add a note in README and docs about not supporting react 18 in this library
  3. Update a bunch of dependencies that that have been waiting in other PRs for a while now
    • Reverted the dependency bumps as it broke both netlify and lint checks

Why:

Mostly to stop accidentally resolving type versions that will break things for people and to try to remove any confusion about why we aren't suporting React 18 yet.

How:

I've made the type changes a BREAKING CHANGE to be extra cautious for our users in case they need to install the dependencies themselves now, but the update should not require any code changes for anyone.

If all the build check pass for this I will just merge it without waiting for reviews.

@mpeyper mpeyper added docs Changes to the documentation dependencies Pull requests that update a dependency file BREAKING CHANGE This change will require a major version bump labels Apr 10, 2022
@netlify
Copy link

netlify bot commented Apr 10, 2022

Deploy Preview for react-hooks-testing-library failed.

Name Link
🔨 Latest commit eda0113
🔍 Latest deploy log https://app.netlify.com/sites/react-hooks-testing-library/deploys/6252c66eabc4910009c43a87

mpeyper added 2 commits April 10, 2022 21:57
BREAKING CHANGE: type dependencies will not longer be automatically installed.  If @types/react is not already listed in your package.json, please install it with `npm install --save-dev @types/react@^17`.
@codecov
Copy link

codecov bot commented Apr 10, 2022

Codecov Report

Merging #819 (eda0113) into main (f410f9e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main      #819   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           15        15           
  Lines          246       246           
  Branches        34        34           
=========================================
  Hits           246       246           

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 f410f9e...eda0113. Read the comment docs.

@mpeyper
Copy link
Member Author

mpeyper commented Apr 10, 2022

Hmm.... I don't know why netlify is suddenly failing with an error from gatsby. I guess just the note in README will have to do.

@mpeyper mpeyper merged commit a267f1e into main Apr 10, 2022
@mpeyper mpeyper deleted the react-18-cleanup branch April 10, 2022 12:07
@github-actions
Copy link

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE This change will require a major version bump dependencies Pull requests that update a dependency file docs Changes to the documentation released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant