diff --git a/package.json b/package.json index ab40441..58ee781 100644 --- a/package.json +++ b/package.json @@ -46,9 +46,8 @@ "node-sass": "4.7.2", "postcss-cli": "2.5.1", "prop-types": "15.5.8", - "react": "^15.5.0", - "react-addons-test-utils": "15.5.1", - "react-dom": "^15.5.4", + "react": "^16.2.0", + "react-dom": "^16.2.0", "react-templates": "^0.5.4", "style-loader": "0.13.1", "webpack": "^1.12.13" diff --git a/src/test/customScroll.spec.js b/src/test/customScroll.spec.js index 4cdce35..8759d7c 100644 --- a/src/test/customScroll.spec.js +++ b/src/test/customScroll.spec.js @@ -1,7 +1,7 @@ -var React = require('react'); -var TestUtils = require('react-addons-test-utils'); -var reactDOM = require('react-dom'); -var customScrollClass = require('../main/customScroll.js'); +const React = require('react'); +const TestUtils = require('react-dom/test-utils') +const reactDOM = require('react-dom'); +const customScrollClass = require('../main/customScroll.js'); describe('custom scroll', function () { diff --git a/yarn.lock b/yarn.lock index ee50255..39b80b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1200,14 +1200,6 @@ core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" -create-react-class@^15.6.0: - version "15.6.2" - resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.2.tgz#cf1ed15f12aad7f14ef5f2dfe05e6c42f91ef02a" - dependencies: - fbjs "^0.8.9" - loose-envify "^1.3.1" - object-assign "^4.1.1" - create-react-class@^15.6.2: version "15.6.3" resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.6.3.tgz#2d73237fb3f970ae6ebe011a9e66f46dbca80036" @@ -1881,7 +1873,7 @@ fastparse@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.1.tgz#d1e2643b38a94d7583b479060e6c4affc94071f8" -fbjs@^0.8.16, fbjs@^0.8.4, fbjs@^0.8.9: +fbjs@^0.8.16, fbjs@^0.8.9: version "0.8.16" resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.16.tgz#5e67432f550dc41b572bf55847b8aca64e5337db" dependencies: @@ -3786,7 +3778,7 @@ prop-types@15.5.8: dependencies: fbjs "^0.8.9" -prop-types@^15.5.10: +prop-types@^15.6.0: version "15.6.0" resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856" dependencies: @@ -3870,21 +3862,14 @@ rc@^1.1.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-addons-test-utils@15.5.1: - version "15.5.1" - resolved "https://registry.yarnpkg.com/react-addons-test-utils/-/react-addons-test-utils-15.5.1.tgz#e0d258cda2a122ad0dff69f838260d0c3958f5f7" - dependencies: - fbjs "^0.8.4" - object-assign "^4.1.0" - -react-dom@^15.5.4: - version "15.6.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.2.tgz#41cfadf693b757faf2708443a1d1fd5a02bef730" +react-dom@^16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044" dependencies: - fbjs "^0.8.9" + fbjs "^0.8.16" loose-envify "^1.1.0" - object-assign "^4.1.0" - prop-types "^15.5.10" + object-assign "^4.1.1" + prop-types "^15.6.0" react-templates@^0.5.4: version "0.5.4" @@ -3900,15 +3885,14 @@ react-templates@^0.5.4: optionator "^0.8.2" text-table "^0.2.0" -react@^15.5.0: - version "15.6.2" - resolved "https://registry.yarnpkg.com/react/-/react-15.6.2.tgz#dba0434ab439cfe82f108f0f511663908179aa72" +react@^16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba" dependencies: - create-react-class "^15.6.0" - fbjs "^0.8.9" + fbjs "^0.8.16" loose-envify "^1.1.0" - object-assign "^4.1.0" - prop-types "^15.5.10" + object-assign "^4.1.1" + prop-types "^15.6.0" read-file-stdin@^0.2.0: version "0.2.1"