-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ie11): replace fast-deep-equal with an internal copy IE11 safe #542
fix(ie11): replace fast-deep-equal with an internal copy IE11 safe #542
Conversation
Codecov Report
@@ Coverage Diff @@
## master #542 +/- ##
==========================================
+ Coverage 75.57% 75.88% +0.30%
==========================================
Files 181 194 +13
Lines 5691 5879 +188
Branches 1104 1143 +39
==========================================
+ Hits 4301 4461 +160
- Misses 1374 1401 +27
- Partials 16 17 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #542 +/- ##
=========================================
+ Coverage 75.57% 75.88% +0.3%
=========================================
Files 181 194 +13
Lines 5691 5879 +188
Branches 1104 1143 +39
=========================================
+ Hits 4301 4461 +160
- Misses 1374 1401 +27
- Partials 16 17 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Tested playground locally in IE11 with no console errors.
## [17.0.3](v17.0.2...v17.0.3) (2020-02-10) ### Bug Fixes * **ie11:** replace fast-deep-equal with an internal copy IE11 safe ([#542](#542)) ([2a02d7d](2a02d7d))
🎉 This PR is included in version 17.0.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [17.0.3](elastic/elastic-charts@v17.0.2...v17.0.3) (2020-02-10) ### Bug Fixes * **ie11:** replace fast-deep-equal with an internal copy IE11 safe ([opensearch-project#542](elastic/elastic-charts#542)) ([d202d7b](elastic/elastic-charts@d202d7b))
Summary
This previous PR #534 introduced the
fast_deep_equal
library to avoid multiple rendering on charts.Unfortunately, I didn't check if IE11 compatibility of the library during the PR review.
As described here: epoberezkin/fast-deep-equal#52 the library is not fully IE11 compatible if you just polyfill Maps/Sets. Some
for...of
loops are still there and can cause IE11 to fail if you don't transpile also the node modules.I've copied the code + license inside the library as a first quick workaround.
We will definitely remove the function/library when fixing the double rendering internally on our reselector chain.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.src/index.ts
(and stories only import from../src
except for test data & storybook)[ ] Proper documentation or storybook story was added for features that require explanation or tutorials[ ] Unit tests were updated or added to match the most common scenarios