Skip to content

Commit

Permalink
Upgrade EUI to v16.1.0 (#52088)
Browse files Browse the repository at this point in the history
* eui 16.1.0

* snapshot udpates

* more snapshot updates

* enqueueStateChange mock, resulting snapshot updates
  • Loading branch information
thompsongl authored Dec 5, 2019
1 parent b5d1260 commit 58635a2
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"@elastic/charts": "^14.0.0",
"@elastic/datemath": "5.0.2",
"@elastic/ems-client": "1.0.5",
"@elastic/eui": "16.0.0",
"@elastic/eui": "16.1.0",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.3",
Expand Down
9 changes: 9 additions & 0 deletions src/dev/jest/setup/mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,12 @@ jest.mock('moment-timezone', () => {
moment.tz.guess = () => 'America/New_York';
return moment;
});

jest.mock('@elastic/eui/lib/services/react', () => {
// `enqueueStateChange` is an EUI method to batch queued functions that trigger React `setState` calls.
// This is for performance, but when used in certain Jest scernarios it can be nondeterministic.
// Jest tests are never concerned about the state prior to batch completion, so we bypass batching entirely.
return {
enqueueStateChange: fn => fn(),
};
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "16.0.0",
"@elastic/eui": "16.1.0",
"react": "^16.12.0",
"react-dom": "^16.12.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "16.0.0",
"@elastic/eui": "16.1.0",
"react": "^16.12.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "16.0.0",
"@elastic/eui": "16.1.0",
"react": "^16.12.0"
},
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "16.0.0",
"@elastic/eui": "16.1.0",
"react": "^16.12.0"
},
"scripts": {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x-pack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
"@babel/runtime": "^7.5.5",
"@elastic/datemath": "5.0.2",
"@elastic/ems-client": "1.0.5",
"@elastic/eui": "16.0.0",
"@elastic/eui": "16.1.0",
"@elastic/filesaver": "1.1.2",
"@elastic/maki": "6.1.0",
"@elastic/node-crypto": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1226,10 +1226,10 @@
tabbable "^1.1.0"
uuid "^3.1.0"

"@elastic/eui@16.0.0":
version "16.0.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-16.0.0.tgz#511898bfbeba5ffea6ac96c077d1184d657a451d"
integrity sha512-i9t13PzrsfBUolMZ6n2X9aAYJ/wUI2NJduCQlDU4zrXfFrM1LFJ5/KSCcpgzI8VNDakeA3PTml+oqD7J0qGA3g==
"@elastic/eui@16.1.0":
version "16.1.0"
resolved "https://registry.yarnpkg.com/@elastic/eui/-/eui-16.1.0.tgz#b8311a4dd3146da2fcd8cec6ae1ed46e26f90746"
integrity sha512-WbfIc2RGojrUeYyEIjiQ0Cy4xbk6YJ6eQ+ymFHSDGqwkKy5IidSBZIDNLM13LzAhxBFTAMmfVsk4lB2qiFlolQ==
dependencies:
"@types/lodash" "^4.14.116"
"@types/numeral" "^0.0.25"
Expand Down

0 comments on commit 58635a2

Please sign in to comment.