Skip to content

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

Merged
merged 5 commits into from
Apr 10, 2017
Merged

React 15.5 migration #74

merged 5 commits into from
Apr 10, 2017

Conversation

adriantoine
Copy link
Contributor

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 the react one, that removes the deprecation warning.

@kshmidt
Copy link

kshmidt commented Apr 10, 2017

@adriantoine The latest npm version of react and react-dom is 15.5.3, not 15.5.6.

@adriantoine
Copy link
Contributor Author

Indeed, I don't know why I've put 15.5.6 🤔

Thanks I'll update!

@andrevenancio
Copy link

Yes please! This warning is driving me crazy.

@sabarasaba
Copy link

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",
Copy link
Owner

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?

@@ -1,16 +1,17 @@
import React from 'react';
import PropTypes from 'prop-types';
Copy link
Owner

Choose a reason for hiding this comment

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

alphabetize these by package

@adriantoine
Copy link
Contributor Author

adriantoine commented Apr 10, 2017

@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",
Copy link
Owner

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?

Copy link
Contributor Author

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?

Copy link
Owner

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

Copy link
Contributor Author

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

@adriantoine
Copy link
Contributor Author

@taion I've updated the PR.

@taion taion merged commit 39ebb6b into taion:master Apr 10, 2017
@taion
Copy link
Owner

taion commented Apr 10, 2017

Thanks!

@adriantoine
Copy link
Contributor Author

No problem, thanks for merging!

@andrevenancio
Copy link

Thats for the fast update!

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

Successfully merging this pull request may close these issues.

5 participants