-
Notifications
You must be signed in to change notification settings - Fork 60
React 15.5 migration #74
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
Conversation
@adriantoine The latest npm version of |
Indeed, I don't know why I've put Thanks I'll update! |
Yes please! This warning is driving me crazy. |
Yes, this is bugging me as well! |
package.json
Outdated
@@ -69,8 +70,9 @@ | |||
"karma-sourcemap-loader": "^0.3.7", | |||
"karma-webpack": "^1.8.0", | |||
"mocha": "^3.1.2", | |||
"react": "^15.3.2", | |||
"react-dom": "^15.3.2", | |||
"prop-types": "~15.5.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a caret range here?
src/ScrollBehaviorContext.js
Outdated
@@ -1,16 +1,17 @@ | |||
import React from 'react'; | |||
import PropTypes from 'prop-types'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alphabetize these by package
@taion thanks for the review, I've updated the PR. |
package.json
Outdated
@@ -36,6 +36,7 @@ | |||
"peerDependencies": { | |||
"history": "^2.0.0 || ^3.0.0", | |||
"react": "^0.14.0 || ^15.0.0", | |||
"prop-types": "^15.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't need to be a peer dep i don't think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure where to put it, If it's not a peer, should it be in the normal dependencies?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correct, just a normal dep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I'll update it
@taion I've updated the PR. |
Thanks! |
No problem, thanks for merging! |
Thats for the fast update! |
Migration to React 15.5, see https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html.
I've just changed the code to load PropTypes from the
prop-types
package instead of thereact
one, that removes the deprecation warning.