Skip to content

Commit

Permalink
Upgraded EUI 13.0.0 -> 13.1.1 (#42298) (#42604)
Browse files Browse the repository at this point in the history
* Upgraded EUI 13.0.0 -> 13.1.0

* Bump to 13.1.1

* Reset MutationObserver polyfill to original operation

* Reset x-pack's MutationObserver polyfill to original operation
  • Loading branch information
chandlerprall authored Aug 5, 2019
1 parent a70145e commit 4295fe2
Show file tree
Hide file tree
Showing 25 changed files with 87 additions and 147 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"@babel/register": "7.4.4",
"@elastic/charts": "^7.0.1",
"@elastic/datemath": "5.0.2",
"@elastic/eui": "13.0.0",
"@elastic/eui": "13.1.1",
"@elastic/filesaver": "1.1.2",
"@elastic/good": "8.1.1-kibana2",
"@elastic/numeral": "2.3.3",
Expand Down
11 changes: 0 additions & 11 deletions src/dev/jest/setup/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ const bluebird = require('bluebird');
bluebird.Promise.setScheduler(function (fn) { global.setImmediate.call(global, fn); });

const MutationObserver = require('mutation-observer');
// There's a bug in mutation-observer around the `attributes` option
// https://dom.spec.whatwg.org/#mutationobserver
// If either options's attributeOldValue or attributeFilter is present and options's attributes is omitted, then set options's attributes to true.
const _observe = MutationObserver.prototype.observe;
MutationObserver.prototype.observe = function observe(target, options) {
const needsAttributes = options.hasOwnProperty('attributeOldValue') || options.hasOwnProperty('attributeFilter');
if (needsAttributes && !options.hasOwnProperty('attributes')) {
options.attributes = true;
}
Function.prototype.call(_observe, this, target, options);
};
Object.defineProperty(window, 'MutationObserver', { value: MutationObserver });

require('whatwg-fetch');

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.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "13.0.0",
"@elastic/eui": "13.1.1",
"react": "^16.8.0",
"react-dom": "^16.8.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": "13.0.0",
"@elastic/eui": "13.1.1",
"react": "^16.8.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@elastic/eui": "13.0.0",
"@elastic/eui": "13.1.1",
"react": "^16.8.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": "13.0.0",
"@elastic/eui": "13.1.1",
"react": "^16.8.0"
},
"scripts": {
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": "13.0.0",
"@elastic/eui": "13.1.1",
"react": "^16.8.0",
"react-dom": "^16.8.0"
}
Expand Down
11 changes: 0 additions & 11 deletions x-pack/dev-tools/jest/setup/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,4 @@ const bluebird = require('bluebird');
bluebird.Promise.setScheduler(function (fn) { global.setImmediate.call(global, fn); });

const MutationObserver = require('mutation-observer');
// There's a bug in mutation-observer around the `attributes` option
// https://dom.spec.whatwg.org/#mutationobserver
// If either options's attributeOldValue or attributeFilter is present and options's attributes is omitted, then set options's attributes to true.
const _observe = MutationObserver.prototype.observe;
MutationObserver.prototype.observe = function observe(target, options) {
const needsAttributes = options.hasOwnProperty('attributeOldValue') || options.hasOwnProperty('attributeFilter');
if (needsAttributes && !options.hasOwnProperty('attributes')) {
options.attributes = true;
}
Function.prototype.call(_observe, this, target, options);
};
Object.defineProperty(window, 'MutationObserver', { value: MutationObserver });

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.

Loading

0 comments on commit 4295fe2

Please sign in to comment.