Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

React 15.5 upgrade #203

Closed
11 tasks done
Matt-Butler opened this issue Apr 10, 2017 · 15 comments
Closed
11 tasks done

React 15.5 upgrade #203

Matt-Butler opened this issue Apr 10, 2017 · 15 comments

Comments

@Matt-Butler
Copy link
Contributor Author

Matt-Butler commented Apr 11, 2017

I started some of the 15.5.x upgrade here: https://github.com/cerner/terra-core/tree/react-15.5

  • I updated each package to use the prop-types package.
  • We still need to update to react 15.5 after our 3rd party issues are resolved.

@bjankord
Copy link
Contributor

Looks like the enzyme PR to add compat with react 15.5 has been merged. Waiting on a release for that.

@bjankord
Copy link
Contributor

Pull request for react-docgen is still open: reactjs/react-docgen#172

@Matt-Butler
Copy link
Contributor Author

The react-docgen issue has been closed

@Matt-Butler
Copy link
Contributor Author

react-datepicker merged their fix

@ryanthemanuel
Copy link
Contributor

They released a version of react-docgen (2.14.1) to fix the build issues we were seeing around their compiling changes (reactjs/react-docgen#174). I believe that this should allow us to push to the appropriate version of react-docgen.

@bjankord
Copy link
Contributor

bjankord commented May 3, 2017

The react-intl pr for adding react 15.5 compat has been merged. This should be our last blocker for us on adding react 15.5 compat to our components.

@Matt-Butler
Copy link
Contributor Author

Matt-Butler commented May 8, 2017

https://www.npmjs.com/package/react-addons-test-utils
^ This has also been deprecated.

To get our jest tests working again, we need to also install react-test-renderer. enzymejs/enzyme#875 (comment)

@Matt-Butler
Copy link
Contributor Author

I updated the react-datepicker dependency to 0.46. In this version, they added a new prop called disableDateAutoCorrection.

@MichaelDeBoey
Copy link

react-intl v2.3.0 is released 🙂

@Matt-Butler
Copy link
Contributor Author

After updating react-intl to 2.3.0, all of our tests now pass.

When running the site locally, I am still seeing this warning:

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

I will investigate which dependency is still causing this warning.

@Matt-Butler
Copy link
Contributor Author

Matt-Butler commented May 9, 2017

After going through this exercise, I think it might be a good idea to separate out each of our components into their own webpack bundle.

  • It would test the component in isolation guaranteeing that css isn't leaking from one component to another.

  • It would be easier to isolate an issue down to a single component.

@Matt-Butler
Copy link
Contributor Author

I had missed a couple proptypes. This branch is ready to upgrade to react-15.5: https://github.com/cerner/terra-core/tree/react-15.5

There are no longer warnings and all tests are passing.

@Matt-Butler
Copy link
Contributor Author

After terra-time-input was merged into master, my tests are failing again. This is the issue:

I can't merge the pull request until that issue is resolved.

^ We have removed text-mask for now. Closing this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants