-
Notifications
You must be signed in to change notification settings - Fork 122
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
refactor(typings): prepare for upgrade TS to 3.7 #402
Conversation
There are currently to main issue that needs to be resolved before upgrading TS to 3.7: a duplicated GeometryStyle type, that I renamed to GeometryStateStyle (the one used on the SharedGeometryStyle), and an issue with the missing layerX and layerY property on the MouseEvent after this PR merged into TS https://github.com/microsoft/TypeScript/pull/32578/files#diff-46fd87925e4552c166ec188712741c3fL10335-L10336
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.
Tested locally, LGTM!
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.
Good change; minor: would prefer the regular for (let i = 0; ...)
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.
This LGTM too
Codecov Report
@@ Coverage Diff @@
## master #402 +/- ##
==========================================
+ Coverage 97.39% 97.39% +<.01%
==========================================
Files 41 41
Lines 2875 2876 +1
Branches 675 675
==========================================
+ Hits 2800 2801 +1
Misses 66 66
Partials 9 9
Continue to review full report at Codecov.
|
Can this be merged? TypeScript 3.7 has now been released and we'd like to get Kibana upgraded. |
# [14.0.0](v13.6.0...v14.0.0) (2019-11-11) ### Code Refactoring * **typings:** prepare for upgrade TS to 3.7 ([#402](#402)) ([e2700de](e2700de)) ### BREAKING CHANGES * **typings:** We have a few exported styles, used in the Theme that are changed: SharedGeometryStyle to SharedGeometryStateStyle and GeometryStyle to GeometryStateStyle
🎉 This PR is included in version 14.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [14.0.0](elastic/elastic-charts@v13.6.0...v14.0.0) (2019-11-11) ### Code Refactoring * **typings:** prepare for upgrade TS to 3.7 ([opensearch-project#402](elastic/elastic-charts#402)) ([039a587](elastic/elastic-charts@039a587)) ### BREAKING CHANGES * **typings:** We have a few exported styles, used in the Theme that are changed: SharedGeometryStyle to SharedGeometryStateStyle and GeometryStyle to GeometryStateStyle
Summary
There are currently to main issue that needs to be resolved before upgrading TS to 3.7:
GeometryStyle
type, that I renamed toGeometryStateStyle
(the one used on theSharedGeometryStyle
renamed toSharedGeometryStateStyle
to align better its name to its function )layerX
andlayerY
property on the MouseEvent after this PR merged into TS https://github.com/microsoft/TypeScript/pull/32578/files#diff-46fd87925e4552c166ec188712741c3fL10335-L10336 I've switched to useoffsetX
andoffsetY
that we are already using on themouseMove
event listener.BREAKING CHANGE:
We have few exported styles, used in the Theme that are changed:
SharedGeometryStyle
toSharedGeometryStateStyle
andGeometryStyle
toGeometryStateStyle
@reviewers please double check locally on your browsers if the behaviour of the mouse and the brush is the same (I've tested it on chrome, safari, firefox and IE11 using various chart configuration in the playground).
ref issue in Kibana: elastic/kibana#47188
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