From 563a401b8159f68ef69dea2a3c3ce15364f51896 Mon Sep 17 00:00:00 2001 From: Paul James Wadsworth Date: Thu, 13 Apr 2017 11:16:38 -0700 Subject: [PATCH 1/2] React.PropTypes is deprecated as of React v15.5 [see](https://facebook.github.io/react/docs/typechecking-with-proptypes.html) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed prop_types.js to use the npm library ‘prop-types’ instead of react’s PropTypes --- package.json | 1 + src/prop_types.js | 2 +- yarn.lock | 12 +++++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 39d4625..d0eb2f0 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "babel-preset-react": "6.5.0", "css-loader": "0.23.1", "iscroll": "5.2.0", + "prop-types": "^15.5.8", "react": "15.0.2", "react-dom": "15.0.2", "react-hot-api": "0.5.0", 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" From dc88e087f634d8a1d281af1c7a345726b639a78f Mon Sep 17 00:00:00 2001 From: Paul James Wadsworth Date: Thu, 13 Apr 2017 11:29:54 -0700 Subject: [PATCH 2/2] Updated version of react related dependencies --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d0eb2f0..d7168ff 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,10 @@ "css-loader": "0.23.1", "iscroll": "5.2.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", + "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"