Skip to content

Commit

Permalink
Upgrade React to 15.5.4 (#435)
Browse files Browse the repository at this point in the history
- This change is relatively straightforward with the
  current codebase as nearly all of the major changes
  are already preemptively addressed, namely not using
  React.createClass, react-test-utils, and accessing
  PropTypes from the main React object.
- Enzyme was updated to the latest patch version along
  with installation of react-test-renderer.  The
  react-addons-test-utils package is being deprecated
  with React >=15.5.  More information regarding enzyme
  installation instructions with React >=15.5:
https://github.com/airbnb/enzyme\#installation

- react-redux was updated to the latest patch version
  which was updated to reflect usage of PropTypes from
  the 'prop-types' package instead of the main React
  package.
- react-router was updated to the latest patch version
  under v3.X to reflect the usage of PropTypes from the
  'prop-types' package instead of the main React package.
- Removal of wildcard flags from certain packages in
  the package manifest.
- Removal of react-addons-test-utils from the list of
  dependencies as it is no longer used.

More information in regards to the release notes of
React v15:
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html
  • Loading branch information
oshalygin authored and nickytonline committed May 19, 2017
1 parent f4bee48 commit c4b0cf7
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 45 deletions.
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ Unfortunately, scripts in package.json can't be commented inline because the JSO
|open|Open the app in your default browser|
|postcss-loader| Adds PostCSS support to Webpack |
|react|React library |
|react-addons-test-utils| React Testing Utilities |
|redux-immutable-state-invariant|Alert if Redux state is mutated (helps catch bugs, since Redux state is immutable)|
|react-dom|React library for DOM rendering |
|react-redux|Redux library for connecting React components to Redux |
|react-router|React library for routing |
|react-test-renderer|Renders React components to pure JavaScript objects without depending on the DOM or a native mobile environment|
|redux|Library for unidirectional data flows |
|redux-thunk|Middleware for redux that allows actions to be declared as functions |
|replace|Renaming files, cross-platform|
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"license": "MIT",
"dependencies": {
"object-assign": "4.1.0",
"react": "15.4.1",
"react-dom": "15.4.1",
"react-redux": "5.0.1",
"react-router": "3.0.0",
"react-router-redux": "4.0.7",
"react": "15.5.4",
"react-dom": "15.5.4",
"react-redux": "5.0.5",
"react-router": "3.0.5",
"react-router-redux": "4.0.8",
"redux": "3.6.0",
"redux-thunk": "2.1.0"
},
Expand All @@ -59,26 +59,26 @@
"connect-history-api-fallback": "1.3.0",
"coveralls": "2.11.15",
"css-loader": "0.26.1",
"enzyme": "2.6.0",
"enzyme": "2.8.2",
"eslint": "3.12.2",
"eslint-plugin-import": "2.2.0",
"eslint-plugin-react": "6.8.0",
"eslint-watch": "2.1.14",
"extract-text-webpack-plugin": "^2.1.0",
"extract-text-webpack-plugin": "2.1.0",
"file-loader": "0.9.0",
"html-webpack-plugin": "2.24.1",
"identity-obj-proxy": "3.0.0",
"jest": "18.1.0",
"json-loader": "0.5.4",
"mockdate": "2.0.1",
"node-sass": "^4.5.2",
"node-sass": "4.5.2",
"npm-run-all": "3.1.2",
"opn-cli": "^3.1.0",
"opn-cli": "3.1.0",
"postcss-loader": "1.2.1",
"prompt": "1.0.0",
"prop-types": "^15.5.6",
"react-addons-test-utils": "15.4.1",
"prop-types": "15.5.10",
"react-hot-loader": "3.0.0-beta.6",
"react-test-renderer": "15.5.4",
"redux-immutable-state-invariant": "1.2.4",
"replace": "0.3.0",
"rimraf": "2.5.4",
Expand Down
87 changes: 54 additions & 33 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,14 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
safe-buffer "^5.0.1"
sha.js "^2.4.8"

create-react-class@^15.5.1, create-react-class@^15.5.3:
version "15.5.3"
resolved "https://registry.yarnpkg.com/create-react-class/-/create-react-class-15.5.3.tgz#fb0f7cae79339e9a179e194ef466efa3923820fe"
dependencies:
fbjs "^0.8.9"
loose-envify "^1.3.1"
object-assign "^4.1.1"

cross-spawn@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982"
Expand Down Expand Up @@ -2226,19 +2234,19 @@ entities@^1.1.1, entities@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.1.tgz#6e5c2d0a5621b5dadaecef80b90edfb5cd7772f0"

enzyme@2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-2.6.0.tgz#148d742b25e2565f7e80870a0c92aea9be1b90ea"
enzyme@2.8.2:
version "2.8.2"
resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-2.8.2.tgz#6c8bcb05012abc4aa4bc3213fb23780b9b5b1714"
dependencies:
cheerio "^0.22.0"
function.prototype.name "^1.0.0"
in-publish "^2.0.0"
is-subset "^0.1.1"
lodash "^4.16.4"
lodash "^4.17.2"
object-is "^1.0.1"
object.assign "^4.0.4"
object.entries "^1.0.3"
object.values "^1.0.3"
prop-types "^15.5.4"
uuid "^2.0.3"

"errno@>=0.1.1 <0.2.0-0", errno@^0.1.3:
Expand Down Expand Up @@ -2601,7 +2609,7 @@ extglob@^0.3.1:
dependencies:
is-extglob "^1.0.0"

extract-text-webpack-plugin@^2.1.0:
[email protected]:
version "2.1.0"
resolved "https://registry.yarnpkg.com/extract-text-webpack-plugin/-/extract-text-webpack-plugin-2.1.0.tgz#69315b885f876dbf96d3819f6a9f1cca7aebf159"
dependencies:
Expand Down Expand Up @@ -2632,7 +2640,7 @@ fb-watchman@^1.8.0, fb-watchman@^1.9.0:
dependencies:
bser "1.0.2"

fbjs@^0.8.1, fbjs@^0.8.4, fbjs@^0.8.9:
fbjs@^0.8.9:
version "0.8.12"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
dependencies:
Expand Down Expand Up @@ -3790,14 +3798,14 @@ js-tokens@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7"

[email protected]:
[email protected], js-yaml@^3.5.1:
version "3.6.1"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
dependencies:
argparse "^1.0.7"
esprima "^2.6.0"

js-yaml@^3.4.3, js-yaml@^3.5.1, js-yaml@^3.7.0:
js-yaml@^3.4.3, js-yaml@^3.7.0:
version "3.8.4"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.4.tgz#520b4564f86573ba96662af85a8cafa7b4b5a6f6"
dependencies:
Expand Down Expand Up @@ -4528,7 +4536,7 @@ node-pre-gyp@^0.6.29:
tar "^2.2.1"
tar-pack "^3.4.0"

node-sass@^4.5.2:
[email protected]:
version "4.5.2"
resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.5.2.tgz#4012fa2bd129b1d6365117e88d9da0500d99da64"
dependencies:
Expand Down Expand Up @@ -4653,6 +4661,10 @@ [email protected], object-assign@^4.0.1, object-assign@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0"

object-assign@^4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863"

[email protected]:
version "0.0.3"
resolved "https://registry.yarnpkg.com/object-component/-/object-component-0.0.3.tgz#f0c69aa50efc95b866c186f400a33769cb2f1291"
Expand Down Expand Up @@ -4726,7 +4738,7 @@ [email protected]:
version "1.1.0"
resolved "https://registry.yarnpkg.com/openurl/-/openurl-1.1.0.tgz#e2f2189d999c04823201f083f0f1a7cd8903187a"

opn-cli@^3.1.0:
[email protected]:
version "3.1.0"
resolved "https://registry.yarnpkg.com/opn-cli/-/opn-cli-3.1.0.tgz#f819ae6cae0b411bd0149b8560fe6c88adad20f8"
dependencies:
Expand Down Expand Up @@ -5290,7 +5302,7 @@ [email protected]:
utile "0.3.x"
winston "2.1.x"

prop-types@^15.5.4, prop-types@^15.5.6:
prop-types@15.5.10, prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.6, prop-types@^15.5.7, prop-types@~15.5.7:
version "15.5.10"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.10.tgz#2797dfc3126182e3a95e3dfbb2e893ddd7456154"
dependencies:
Expand Down Expand Up @@ -5395,10 +5407,6 @@ rc@^1.1.7:
minimist "^1.2.0"
strip-json-comments "~2.0.1"

[email protected]:
version "15.4.1"
resolved "https://registry.yarnpkg.com/react-addons-test-utils/-/react-addons-test-utils-15.4.1.tgz#1e4caab151bf27cce26df5f9cb714f4fd8359ae1"

react-deep-force-update@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-1.0.1.tgz#f911b5be1d2a6fe387507dd6e9a767aa2924b4c7"
Expand All @@ -5407,13 +5415,14 @@ react-deep-force-update@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.0.1.tgz#4f7f6c12c3e7de42f345992a3c518236fa1ecad3"

react-dom@15.4.1:
version "15.4.1"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.4.1.tgz#d54c913261aaedb17adc20410d029dcc18a1344a"
react-dom@15.5.4:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.5.4.tgz#ba0c28786fd52ed7e4f2135fe0288d462aef93da"
dependencies:
fbjs "^0.8.1"
fbjs "^0.8.9"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "~15.5.7"

[email protected]:
version "3.0.0-beta.6"
Expand All @@ -5439,30 +5448,41 @@ react-proxy@^3.0.0-alpha.0:
dependencies:
lodash "^4.6.1"

[email protected].1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-5.0.1.tgz#84a41bd4cdd180452bb6922bc79ad25bd5abb7c4"
[email protected].5:
version "5.0.5"
resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-5.0.5.tgz#f8e8c7b239422576e52d6b7db06439469be9846a"
dependencies:
create-react-class "^15.5.3"
hoist-non-react-statics "^1.0.3"
invariant "^2.0.0"
lodash "^4.2.0"
lodash-es "^4.2.0"
loose-envify "^1.1.0"
prop-types "^15.5.10"

[email protected].7:
version "4.0.7"
resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-4.0.7.tgz#9b1fde4e70106c50f47214e12bdd888cfb96e2a6"
[email protected].8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/react-router-redux/-/react-router-redux-4.0.8.tgz#227403596b5151e182377dab835b5d45f0f8054e"

[email protected].0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-3.0.0.tgz#3f313e4dbaf57048c48dd0a8c3cac24d93667dff"
[email protected].5:
version "3.0.5"
resolved "https://registry.yarnpkg.com/react-router/-/react-router-3.0.5.tgz#c3b7873758045a8bbc9562aef4ff4bc8cce7c136"
dependencies:
create-react-class "^15.5.1"
history "^3.0.0"
hoist-non-react-statics "^1.2.0"
invariant "^2.2.1"
loose-envify "^1.2.0"
prop-types "^15.5.6"
warning "^3.0.0"

[email protected]:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-15.5.4.tgz#d4ebb23f613d685ea8f5390109c2d20fbf7c83bc"
dependencies:
fbjs "^0.8.9"
object-assign "^4.1.0"

react-transform-catch-errors@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/react-transform-catch-errors/-/react-transform-catch-errors-1.0.2.tgz#1b4d4a76e97271896fc16fe3086c793ec88a9eeb"
Expand All @@ -5474,13 +5494,14 @@ react-transform-hmr@^1.0.3:
global "^4.3.0"
react-proxy "^1.1.7"

react@15.4.1:
version "15.4.1"
resolved "https://registry.yarnpkg.com/react/-/react-15.4.1.tgz#498e918602677a3983cd0fd206dfe700389a0dd6"
react@15.5.4:
version "15.5.4"
resolved "https://registry.yarnpkg.com/react/-/react-15.5.4.tgz#fa83eb01506ab237cdc1c8c3b1cea8de012bf047"
dependencies:
fbjs "^0.8.4"
fbjs "^0.8.9"
loose-envify "^1.1.0"
object-assign "^4.1.0"
prop-types "^15.5.7"

read-pkg-up@^1.0.1:
version "1.0.1"
Expand Down

0 comments on commit c4b0cf7

Please sign in to comment.