Skip to content
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

update to Babel v7 #1048

Merged
merged 7 commits into from Jan 27, 2020
Merged

update to Babel v7 #1048

merged 7 commits into from Jan 27, 2020

Conversation

taymoork2
Copy link
Member

No description provided.

@taymoork2 taymoork2 force-pushed the babel-v7 branch 7 times, most recently from cb991f0 to 3d9e88a Compare January 22, 2020 21:53
package.json Outdated
@@ -112,7 +113,7 @@
"react-mentions": "^1.2.1",
"react-redux": "^5.0.1",
"react-syntax-highlighter": "^6.0.2",
"react-virtualized": "^9.18.5",
"react-virtualized": "^9.21.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason this was upgraded?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was running into failures on jest with react-virtualized's scrollbarSize not being found. I thought updating it to latest would fix it, however the problem persisted.
Looking into it, there was a version mismatch of a dependency (dom-helpers) with react-virtualized and momentum-ui where momentum-ui was still using the older version of dom-helpers.
"Sticking" react-virtualized to 9.21.0 keeps the dom-helpers dependency inline with the same version that momentum-ui uses.

bvaughn/react-virtualized#1458 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retried without bumping, problem isnt showing up anymore, so reverting back 9.18.5

@@ -17,6 +17,8 @@ const propTypes = {
file: PropTypes.shape({
displayName: PropTypes.string,
fileSize: PropTypes.number,
image: PropTypes.shape(),
Copy link
Collaborator

@adamweeks adamweeks Jan 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be object.

Suggested change
image: PropTypes.shape(),
image: PropTypes.object,

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I originally made this a shape since, I believe, there are two properties associated with image, height & width, and added them into the proptype, however wasnt sure if height & width were being passed as strings or numbers

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but a shape prop type indicates that you will provide an actual shape. shape() doesn't tell us anything about the property, so let's just use the ambiguous .object

@@ -17,6 +17,8 @@ const propTypes = {
file: PropTypes.shape({
displayName: PropTypes.string,
fileSize: PropTypes.number,
image: PropTypes.shape(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
image: PropTypes.shape(),
image: PropTypes.object(),

@adamweeks
Copy link
Collaborator

Good first pass, nice to see all the tests passing! Comments are mostly around the react prop changes.

@taymoork2 taymoork2 force-pushed the babel-v7 branch 3 times, most recently from 9e5fc79 to a04703f Compare January 23, 2020 22:10
Squashed commits:
[4328e19d] chore(lint): fix all eslint error
Copy link
Collaborator

@adamweeks adamweeks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@taymoork2 taymoork2 merged commit 09ad508 into webex:master Jan 27, 2020
@taymoork2 taymoork2 deleted the babel-v7 branch January 27, 2020 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants