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

deps: update peerDeps to support React 17 without warnings #69

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

agilgur5
Copy link
Owner

@agilgur5 agilgur5 commented Feb 9, 2022

Summary

Update peerDependencies range to support React 17

Fixes #58
Closes #64

Description

  • seems to work without any component modifications needed on React 17

  • ensure tests pass with React 17

    • update devDeps to React 17 + react-dom 17
    • update devDeps to use unofficial Enzyme Adapter for React 17

Review Notes

Had to do some manual things in the background like migrating and re-setting-up Travis (and emailing them about OSS credits etc) as well as making sure Codecov still works etc. Make sure everything passes here before merging!

Will PR and merge my old standardization branch after this just to have less changes for this (less things to break). Those commits are like 2 years old now but still relevant. Will see about #42 after

- seems to work without any component modifications needed on React 17
  - it was supposed to have "no new features" in any case
    per the release blog post
    - https://reactjs.org/blog/2020/10/20/react-v17.html

- ensure tests pass with React 17
  - update devDeps to React 17 + react-dom 17
  - update devDeps to use unofficial Enzyme Adapter for React 17
    - official adapter has yet to be released, but this seems to work
      for many people and the usage here is quite simple, so should be
      fine for this use-case
      - and tests seem to pass without issue too
      - React 18 will be a separate story, but will cross that bridge
        when we get there
@agilgur5 agilgur5 added the scope: dependencies Pull requests that update a dependency file label Feb 9, 2022
@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #69 (13436f7) into main (d449c18) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #69   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           59        59           
  Branches         6         6           
=========================================
  Hits            59        59           

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 d449c18...13436f7. Read the comment docs.

Copy link
Owner Author

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

Tests pass, codecov pass, code LGTM (fairly straightforward)

@agilgur5 agilgur5 merged commit d6bc305 into main Feb 9, 2022
@agilgur5 agilgur5 deleted the react-17 branch February 9, 2022 03:26
Repository owner locked as resolved and limited conversation to collaborators Feb 27, 2022
@agilgur5 agilgur5 added scope: tests Tests could be improved. Or changes that only affect tests kind: feature New feature or request kind: internal Changes only affect the internals and not the API or usage labels Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: feature New feature or request kind: internal Changes only affect the internals and not the API or usage scope: dependencies Pull requests that update a dependency file scope: tests Tests could be improved. Or changes that only affect tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React 17 support in peerDeps range
1 participant