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

Bump dependencies for react 15.6 compatibility #2

Merged

Conversation

eanakashima
Copy link
Member

@eanakashima eanakashima commented Oct 13, 2017

The diff is a bit noisy due to the dist files, but the important bits are:

  • some version tweaks in package.jsonto get deps compatible with 15.5/15.6
  • new .node-version file to lock in a version where the build script works
  • PropTypes / createClass imported from separate packages (release notes)

You can also use the standalone build by including `react-select.js` and `react-select.css` in your page. (If you do this though you'll also need to include the dependencies.) For example:
```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"></script>
Copy link
Member Author

Choose a reason for hiding this comment

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

Deleted this whole bit because I got annoyed at it matching a grep for older react versions. 🤐

@@ -1,7 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
Copy link
Member Author

Choose a reason for hiding this comment

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

A handful of these classes could be converted to es6 classes inheriting from React.PureComponent but I didn't want to take the time to dig through and figure out which ones. May come back to that if I need to make more changes to do React 16 compatibility.

Copy link

@toshok toshok left a comment

Choose a reason for hiding this comment

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

lgtm

@eanakashima eanakashima merged commit a52ab5b into honeycombio:master Oct 16, 2017
@eanakashima eanakashima deleted the eanakashima.bump-deps-for-react15.6 branch October 16, 2017 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants