Skip to content

React 15.5 migration - #74

Merged
taion merged 5 commits into
taion:masterfrom
adriantoine:master
Apr 10, 2017
Merged

React 15.5 migration#74
taion merged 5 commits into
taion:masterfrom
adriantoine:master

Conversation

@adriantoine

Copy link
Copy Markdown
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

kshmidt commented Apr 10, 2017

Copy link
Copy Markdown

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

@adriantoine

Copy link
Copy Markdown
Contributor Author

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

Thanks I'll update!

@andrevenancio

Copy link
Copy Markdown

Yes please! This warning is driving me crazy.

@sabarasaba

Copy link
Copy Markdown

Yes, this is bugging me as well!

Comment thread package.json Outdated
"mocha": "^3.1.2",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"prop-types": "~15.5.6",

Copy link
Copy Markdown
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
Copy Markdown
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

adriantoine commented Apr 10, 2017

Copy link
Copy Markdown
Contributor Author

@taion thanks for the review, I've updated the PR.

Comment thread package.json Outdated
"peerDependencies": {
"history": "^2.0.0 || ^3.0.0",
"react": "^0.14.0 || ^15.0.0",
"prop-types": "^15.0.0",

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@taion I've updated the PR.

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

taion commented Apr 10, 2017

Copy link
Copy Markdown
Owner

Thanks!

@adriantoine

Copy link
Copy Markdown
Contributor Author

No problem, thanks for merging!

@andrevenancio

Copy link
Copy Markdown

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