Skip to content

Commit

Permalink
chore: upgrade to react 16.8
Browse files Browse the repository at this point in the history
  • Loading branch information
maggieneterval committed Apr 12, 2019
1 parent 478e326 commit d94412c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ export function overridableComponent<P extends IOverridableProps, T extends Reac
}
}

const forwardRef = React.forwardRef((props, ref) => <OverridableComponent {...props} forwardedRef={ref} />) as T;
const forwardRef = (React.forwardRef<T, P>((props, ref) => (
<OverridableComponent {...props} forwardedRef={ref} />
)) as unknown) as T;

// Copy static properties
Object.getOwnPropertyNames(OriginalComponent)
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@
"n3-charts": "^2.0.18",
"ngimport": "^0.6.0",
"prop-types": "15.6.1",
"react": "16.6.0",
"react": "16.8.0",
"react-ace": "^6.1.4",
"react-bootstrap": "^0.32.1",
"react-bootstrap-typeahead": "^3.2.4",
"react-dom": "16.6.0",
"react-dom": "16.8.0",
"react-ga": "^2.4.1",
"react-redux": "^5.0.7",
"react-select": "^1.2.1",
Expand Down Expand Up @@ -113,10 +113,10 @@
"@types/minimist": "^1.2.0",
"@types/node": "7.0.5",
"@types/prop-types": "^15.5.2",
"@types/react": "^16.4.18",
"@types/react": "^16.7.0",
"@types/react-bootstrap": "^0.32.5",
"@types/react-bootstrap-typeahead": "^3.2.1",
"@types/react-dom": "^16.0.5",
"@types/react-dom": "^16.7.0",
"@types/react-select": "^1.2.3",
"@types/react-sortable-hoc": "^0.6.2",
"@types/react-virtualized": "9.7.12",
Expand Down
55 changes: 36 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -567,12 +567,11 @@
dependencies:
"@types/react" "*"

"@types/react-dom@^16.0.5":
version "16.0.5"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.0.5.tgz#a757457662e3819409229e8f86795ff37b371f96"
integrity sha512-ony2hEYlGXCLWNAWWgbsHR7qVvDbeMRFc5b43+7dhj3n+zXzxz81HV9Yjpc3JD8vLCiwYoSLqFCI6bD0+0zG2Q==
"@types/react-dom@^16.7.0":
version "16.8.4"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.8.4.tgz#7fb7ba368857c7aa0f4e4511c4710ca2c5a12a88"
integrity sha512-eIRpEW73DCzPIMaNBDP5pPIpK1KXyZwNgfxiVagb5iGiz6da+9A5hslSX6GAQKdO7SayVCS/Fr2kjqprgAvkfA==
dependencies:
"@types/node" "*"
"@types/react" "*"

"@types/react-select@*", "@types/react-select@^1.2.3":
Expand Down Expand Up @@ -627,10 +626,10 @@
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.0.40.tgz#caabc2296886f40b67f6fc80f0f3464476461df9"
integrity sha512-OZi2OPNI1DGwnC3Fgbr1CcYfOD6V0pbv+aehXdvuFE+L+sipWjividsasuqFW/G0CZrZ81Ao+9IzjvkRDWCE9Q==

"@types/react@^16.4.18":
version "16.4.18"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.4.18.tgz#2e28a2e7f92d3fa7d6a65f2b73275c3e3138a13d"
integrity sha512-eFzJKEg6pdeaukVLVZ8Xb79CTl/ysX+ExmOfAAqcFlCCK5TgFDD9kWR0S18sglQ3EmM8U+80enjUqbfnUyqpdA==
"@types/react@^16.7.0":
version "16.8.13"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.8.13.tgz#a82b15aad9ab91c40edca0d6889b7745ae24f053"
integrity sha512-otJ4ntMuHGrvm67CdDJMAls4WqotmAmW0g3HmWi9LCjSWXrxoXY/nHXrtmMfvPEEmGFNm6NdgMsJmnfH820Qaw==
dependencies:
"@types/prop-types" "*"
csstype "^2.2.0"
Expand Down Expand Up @@ -11762,15 +11761,15 @@ react-dom@16.3.2:
object-assign "^4.1.1"
prop-types "^15.6.0"

react-dom@16.6.0:
version "16.6.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.6.0.tgz#6375b8391e019a632a89a0988bce85f0cc87a92f"
integrity sha512-Stm2D9dXEUUAQdvpvhvFj/DEXwC2PAL/RwEMhoN4dvvD2ikTlJegEXf97xryg88VIAU22ZAP7n842l+9BTz6+w==
react-dom@16.8.0:
version "16.8.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.0.tgz#18f28d4be3571ed206672a267c66dd083145a9c4"
integrity sha512-dBzoAGYZpW9Yggp+CzBPC7q1HmWSeRc93DWrwbskmG1eHJWznZB/p0l/Sm+69leIGUS91AXPB/qB3WcPnKx8Sw==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
scheduler "^0.10.0"
scheduler "^0.13.0"

react-dom@^0.14.8:
version "0.14.9"
Expand Down Expand Up @@ -11958,15 +11957,15 @@ react@16.3.2:
object-assign "^4.1.1"
prop-types "^15.6.0"

react@16.6.0, "react@^15.6.2 || ^16.0":
version "16.6.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.6.0.tgz#b34761cfaf3e30f5508bc732fb4736730b7da246"
integrity sha512-zJPnx/jKtuOEXCbQ9BKaxDMxR0001/hzxXwYxG8septeyYGfsgAei6NgfbVgOhbY1WOP2o3VPs/E9HaN+9hV3Q==
react@16.8.0:
version "16.8.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.8.0.tgz#8533f0e4af818f448a276eae71681d09e8dd970a"
integrity sha512-g+nikW2D48kqgWSPwNo0NH9tIGG3DsQFlrtrQ1kj6W77z5ahyIHG0w8kPpz4Sdj6gyLnz0lEd/xsjOoGge2MYQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
scheduler "^0.10.0"
scheduler "^0.13.0"

react@^0.14.8:
version "0.14.9"
Expand All @@ -11976,6 +11975,16 @@ react@^0.14.8:
envify "^3.0.0"
fbjs "^0.6.1"

"react@^15.6.2 || ^16.0":
version "16.6.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.6.0.tgz#b34761cfaf3e30f5508bc732fb4736730b7da246"
integrity sha512-zJPnx/jKtuOEXCbQ9BKaxDMxR0001/hzxXwYxG8septeyYGfsgAei6NgfbVgOhbY1WOP2o3VPs/E9HaN+9hV3Q==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
scheduler "^0.10.0"

read-package-json@^2.0.2:
version "2.0.13"
resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-2.0.13.tgz#2e82ebd9f613baa6d2ebe3aa72cefe3f68e41f4a"
Expand Down Expand Up @@ -12881,6 +12890,14 @@ scheduler@^0.10.0:
loose-envify "^1.1.0"
object-assign "^4.1.1"

scheduler@^0.13.0:
version "0.13.6"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.6.tgz#466a4ec332467b31a91b9bf74e5347072e4cd889"
integrity sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"

schema-utils@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.3.0.tgz#f5877222ce3e931edae039f17eb3716e7137f8cf"
Expand Down

0 comments on commit d94412c

Please sign in to comment.