diff --git a/package.json b/package.json index 39d4625..d7168ff 100644 --- a/package.json +++ b/package.json @@ -32,10 +32,11 @@ "babel-preset-react": "6.5.0", "css-loader": "0.23.1", "iscroll": "5.2.0", - "react": "15.0.2", - "react-dom": "15.0.2", - "react-hot-api": "0.5.0", - "react-hot-loader": "1.3.0", + "prop-types": "^15.5.8", + "react": "^15.0.2", + "react-dom": "^15.0.2", + "react-hot-api": "^0.5.0", + "react-hot-loader": "^1.3.0", "style-loader": "0.13.1", "webpack": "1.13.0", "webpack-dev-server": "1.14.1" diff --git a/src/prop_types.js b/src/prop_types.js index 1b37c5c..2de0ca0 100644 --- a/src/prop_types.js +++ b/src/prop_types.js @@ -1,4 +1,4 @@ -import { PropTypes } from 'react' +import PropTypes from 'prop-types'; const { bool, number, string, func, shape, object, instanceOf, oneOf, oneOfType, arrayOf } = PropTypes diff --git a/yarn.lock b/yarn.lock index bd9113d..acc6a16 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1088,7 +1088,7 @@ date-now@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" -debug@2.6.1: +debug@2.6.1, debug@^2.2.0: version "2.6.1" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351" dependencies: @@ -1100,7 +1100,7 @@ debug@2.6.3: dependencies: ms "0.7.2" -debug@^2.1.1, debug@^2.2.0, debug@~2.2.0: +debug@^2.1.1, debug@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" dependencies: @@ -1305,7 +1305,7 @@ faye-websocket@~0.11.0: dependencies: websocket-driver ">=0.5.1" -fbjs@^0.8.0: +fbjs@^0.8.0, fbjs@^0.8.9: version "0.8.12" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04" dependencies: @@ -2585,6 +2585,12 @@ promise@^7.1.1: dependencies: asap "~2.0.3" +prop-types@^15.5.8: + version "15.5.8" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.8.tgz#6b7b2e141083be38c8595aa51fc55775c7199394" + dependencies: + fbjs "^0.8.9" + proxy-addr@~1.1.3: version "1.1.4" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.4.tgz#27e545f6960a44a627d9b44467e35c1b6b4ce2f3"