Skip to content

Commit ba001d3

Browse files
[Dependencies]: upgrade react to latest v16.12.0 (#51145) (#51868)
1 parent fe7a08c commit ba001d3

File tree

216 files changed

+2676
-2553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+2676
-2553
lines changed

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,16 @@
7777
},
7878
"resolutions": {
7979
"**/@types/node": "10.12.27",
80-
"**/@types/react": "16.8.3",
80+
"**/@types/react": "^16.9.13",
8181
"**/@types/hapi": "^17.0.18",
8282
"**/@types/angular": "^1.6.56",
8383
"**/typescript": "3.7.2",
8484
"**/graphql-toolkit/lodash": "^4.17.13",
8585
"**/isomorphic-git/**/base64-js": "^1.2.1",
8686
"**/image-diff/gm/debug": "^2.6.9",
87-
"**/deepmerge": "^4.2.2",
88-
"**/react": "16.8.6",
89-
"**/react-dom": "16.8.6",
90-
"**/react-test-renderer": "16.8.6"
87+
"**/react-dom": "^16.12.0",
88+
"**/react-test-renderer": "^16.12.0",
89+
"**/deepmerge": "^4.2.2"
9190
},
9291
"workspaces": {
9392
"packages": [
@@ -214,15 +213,13 @@
214213
"pug": "^2.0.3",
215214
"querystring-browser": "1.0.4",
216215
"raw-loader": "3.1.0",
217-
"react": "^16.8.6",
218-
"react-addons-shallow-compare": "15.6.2",
216+
"react": "^16.12.0",
219217
"react-color": "^2.13.8",
220-
"react-dom": "^16.8.6",
218+
"react-dom": "^16.12.0",
221219
"react-grid-layout": "^0.16.2",
222-
"react-hooks-testing-library": "^0.5.0",
223220
"react-input-range": "^1.3.0",
224221
"react-markdown": "^3.4.1",
225-
"react-redux": "^5.1.1",
222+
"react-redux": "^5.1.2",
226223
"react-router-dom": "^4.3.1",
227224
"react-sizeme": "^2.3.6",
228225
"reactcss": "1.2.3",
@@ -283,6 +280,8 @@
283280
"@microsoft/api-documenter": "7.4.3",
284281
"@microsoft/api-extractor": "7.4.2",
285282
"@percy/agent": "^0.11.0",
283+
"@testing-library/react": "^9.3.2",
284+
"@testing-library/react-hooks": "^3.2.1",
286285
"@types/angular": "^1.6.56",
287286
"@types/angular-mocks": "^1.7.0",
288287
"@types/babel__core": "^7.1.2",
@@ -308,7 +307,7 @@
308307
"@types/has-ansi": "^3.0.0",
309308
"@types/history": "^4.7.3",
310309
"@types/hoek": "^4.1.3",
311-
"@types/jest": "^24.0.18",
310+
"@types/jest": "24.0.19",
312311
"@types/joi": "^13.4.2",
313312
"@types/jquery": "^3.3.31",
314313
"@types/js-yaml": "^3.11.1",
@@ -328,8 +327,8 @@
328327
"@types/podium": "^1.0.0",
329328
"@types/prop-types": "^15.5.3",
330329
"@types/reach__router": "^1.2.6",
331-
"@types/react": "^16.8.0",
332-
"@types/react-dom": "^16.8.0",
330+
"@types/react": "^16.9.11",
331+
"@types/react-dom": "^16.9.4",
333332
"@types/react-redux": "^6.0.6",
334333
"@types/react-router-dom": "^4.3.1",
335334
"@types/react-virtualized": "^9.18.7",
@@ -343,6 +342,8 @@
343342
"@types/styled-components": "^4.4.0",
344343
"@types/supertest": "^2.0.5",
345344
"@types/supertest-as-promised": "^2.0.38",
345+
"@types/testing-library__react": "^9.1.2",
346+
"@types/testing-library__react-hooks": "^3.1.0",
346347
"@types/type-detect": "^4.0.1",
347348
"@types/uuid": "^3.4.4",
348349
"@types/vinyl-fs": "^2.4.11",
@@ -405,7 +406,6 @@
405406
"istanbul-instrumenter-loader": "3.0.1",
406407
"jest": "^24.9.0",
407408
"jest-cli": "^24.9.0",
408-
"jest-dom": "^3.5.0",
409409
"jest-raw-loader": "^1.0.1",
410410
"jimp": "0.8.4",
411411
"json5": "^1.0.1",

packages/eslint-config-kibana/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module.exports = {
4141

4242
rules: {
4343
'block-scoped-var': 'error',
44-
camelcase: [ 'error', { properties: 'never' } ],
44+
camelcase: [ 'error', { properties: 'never', allow: ['^UNSAFE_'] } ],
4545
'comma-dangle': 'off',
4646
'comma-spacing': ['error', { before: false, after: true }],
4747
'comma-style': [ 'error', 'last' ],

packages/eslint-config-kibana/jest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
rules: {
1717
'jest/no-focused-tests': 'error',
1818
'jest/no-identical-title': 'error',
19-
'import/order': 'off'
19+
'import/order': 'off',
2020
},
2121
}
2222
]

packages/eslint-config-kibana/typescript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module.exports = {
9595
'@typescript-eslint/camelcase': ['error', {
9696
'properties': 'never',
9797
'ignoreDestructuring': true,
98-
'allow': ['^[A-Z0-9_]+$']
98+
'allow': ['^[A-Z0-9_]+$', '^UNSAFE_']
9999
}],
100100
'@typescript-eslint/class-name-casing': 'error',
101101
'@typescript-eslint/explicit-member-accessibility': ['error',

packages/kbn-i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"intl-messageformat": "^2.2.0",
2929
"intl-relativeformat": "^2.1.0",
3030
"prop-types": "^15.6.2",
31-
"react": "^16.8.6",
31+
"react": "^16.12.0",
3232
"react-intl": "^2.8.0"
3333
}
3434
}

packages/kbn-ui-framework/doc_site/src/components/guide_nav/guide_nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class GuideNav extends Component {
4747
});
4848
}
4949

50-
componentWillReceiveProps(nextProps) {
50+
UNSAFE_componentWillReceiveProps(nextProps) {
5151
const currentRoute = nextProps.routes[1];
5252
const nextRoute = this.props.getNextRoute(currentRoute.name);
5353
const previousRoute = this.props.getPreviousRoute(currentRoute.name);

packages/kbn-ui-framework/doc_site/src/components/guide_sandbox/guide_sandbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function mapDispatchToProps(dispatch) {
4949
}
5050

5151
class GuideSandboxComponent extends Component {
52-
componentWillMount() {
52+
UNSAFE_componentWillMount() {
5353
this.props.openSandbox();
5454
}
5555

packages/kbn-ui-framework/doc_site/src/components/guide_section/guide_section.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class GuideSection extends Component {
3636
this.props.openCodeViewer(this.props.source, this.props.title);
3737
}
3838

39-
componentWillMount() {
39+
UNSAFE_componentWillMount() {
4040
this.props.registerSection(this.getId(), this.props.title);
4141
}
4242

packages/kbn-ui-framework/doc_site/src/views/app_view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class AppView extends Component {
8181
});
8282
}
8383

84-
componentWillReceiveProps(nextProps) {
84+
UNSAFE_componentWillReceiveProps(nextProps) {
8585
// Only force the chrome to be hidden if we're navigating from a non-sandbox to a sandbox.
8686
if (!this.props.isSandbox && nextProps.isSandbox) {
8787
this.setState({

packages/kbn-ui-framework/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"focus-trap-react": "^3.1.1",
2020
"lodash": "npm:@elastic/[email protected]",
2121
"prop-types": "15.6.0",
22-
"react": "^16.8.6",
22+
"react": "^16.12.0",
2323
"react-ace": "^5.9.0",
2424
"react-color": "^2.13.8",
2525
"tabbable": "1.1.3",
@@ -57,8 +57,8 @@
5757
"postcss": "^7.0.5",
5858
"postcss-loader": "^3.0.0",
5959
"raw-loader": "^3.1.0",
60-
"react-dom": "^16.8.6",
61-
"react-redux": "^5.0.6",
60+
"react-dom": "^16.12.0",
61+
"react-redux": "^5.1.2",
6262
"react-router": "^3.2.0",
6363
"react-router-redux": "^4.0.8",
6464
"redux": "3.7.2",

0 commit comments

Comments
 (0)