Skip to content

Commit 6954a01

Browse files
committed
Fix deprecation warnings for react >= 15.5.0
1 parent 747c649 commit 6954a01

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@
100100
"invariant": "^2.0.0",
101101
"lodash": "^4.2.0",
102102
"lodash-es": "^4.2.0",
103-
"loose-envify": "^1.1.0"
103+
"loose-envify": "^1.1.0",
104+
"prop-types": "^15.0.0"
104105
},
105106
"peerDependencies": {
106107
"react": "^0.14.0 || ^15.0.0-0 || ^16.0.0-0",

src/components/Provider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Component, PropTypes, Children } from 'react'
1+
import { Component, Children } from 'react';
2+
import PropTypes from 'prop-types';
23
import { storeShape, subscriptionShape } from '../utils/PropTypes'
34
import warning from '../utils/warning'
45

src/utils/PropTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropTypes } from 'react'
1+
import PropTypes from 'prop-types';
22

33
export const subscriptionShape = PropTypes.shape({
44
trySubscribe: PropTypes.func.isRequired,

yarn.lock

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ fast-levenshtein@~2.0.4:
13891389
version "2.0.6"
13901390
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
13911391

1392-
fbjs@^0.8.1, fbjs@^0.8.4:
1392+
fbjs@^0.8.1, fbjs@^0.8.4, fbjs@^0.8.9:
13931393
version "0.8.9"
13941394
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.9.tgz#180247fbd347dcc9004517b904f865400a0c8f14"
13951395
dependencies:
@@ -2765,6 +2765,12 @@ promise@^7.1.1:
27652765
dependencies:
27662766
asap "~2.0.3"
27672767

2768+
prop-types@^15.0.0:
2769+
version "15.5.4"
2770+
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.4.tgz#2ed3692716a5060f8cc020946d8238e7419d92c0"
2771+
dependencies:
2772+
fbjs "^0.8.9"
2773+
27682774
prr@~0.0.0:
27692775
version "0.0.0"
27702776
resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a"

0 commit comments

Comments
 (0)