-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
This would be 🎉 in order to dedupe our |
Thanks for updating this! The only issue is the failing flow/lint checks in CI, which don't seem related to your change. If they fail again I'll try rebasing this branch and see if that helps. |
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.
Hi again - I just pulled down your branch, rebased it, and ran lint and flow. Flow errors look legit - probably due to changes with the flow typing in Immutable.js v3.8.1.
Please fix the flow errors that come up when you run npm flow
or yarn flow
on this branch, and then I'll be happy to merge. Thanks!
I'm going to take a shot at fixing the flow issues - either today or tomorrow hopefully will get this ready to go. |
I'll fill in more details tomorrow. There is still one stubborn flow error that I haven't been able to silence or fix, which is pretty frustrating.
There is still one flow error showing up for my locally that I wasn't able to find a fix for or silence. Would love help finding a solution - going to post more details about the problem and open an issue in the morning. |
So there were quite a few flow errors, and I'll start with a summary of the fixes that seem uncontroversial:
|
New changes were introduced - needs further review
I'm going to get someone else internal to review this once we get Flow passing, since it's got more significant changes than just the dependency version bump.
I don't want to loosen the type definition for I have tried reformatting the I'm going to file an issue with Immutable.js and see if anyone there has advice about how to mitigate this error. |
@@ -62,7 +62,7 @@ function removeRangeFromContentState( | |||
.toSeq() | |||
.skipUntil((_, k) => k === startKey) | |||
.takeUntil((_, k) => k === endKey) | |||
.concat(Immutable.Map([[endKey, null]])) | |||
.filter((v, k) => k !== endKey) |
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.
Unfortunately this doesn't provide the same functionality as the previous version. Going to silence the error and open an issue to fix some of these 'flowfixme' comments.
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.
@flarnie is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There are two new Flow errors internally. I am guessing our Flow version/configs are slightly out of sync with external, and our version of Immutable.js may also differ internally. ☔️ I'll try to resolve them tomorrow. |
Just waiting on the PR within Facebook's codebase to be approved and landed which will fix flow errors resulting from this change, then we can land this. 🤞 |
Hate to go back on this after so much work to get Flow passing, but we realized this:
I am hoping we can work on updating to support Immutable.js 4.* - see immutable-js/immutable-js#1388 (comment) and #1425 |
Summary
Updates the version of
immutable
thatdraft-js
is using to3.8.1
in order to remove unnecessary console logs (resolves #607). Note that a previous PR was closed because immutable-js/immutable-js#850 wasn't ready yet, but that PR is now finished.Test Plan
Ran all tests to verify they still worked.