-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Switch to the more conservative Immutable.js ~3.7.4 version to avoid upstream flow definition errors. #468
Conversation
…upstream flow definition errors.
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
I'll see if I can get immutable-js/immutable-js#881 merged. |
I'm going to go ahead and merge this to get things unblocked. I'd really like to switch it back soon. |
@facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to Phabricator to review. |
…upstream flow definition errors. Summary: The `3.8.x` versions of Immutable.js have changed `#toOrderedMap(): OrderedMap` to `#toOrderedMap(): Map` which breaks Draf 8000 t.js — so I propose we use `~3.7.4` instead of `^3.7.4`. Draft.js's definition of `BlockMap` is `OrderedMap<string, ContentBlock>` which is not compatible with `Map`. In the interim (until Immutable.js makes a decision as to whether `#toOrderedMap(): Map` is correct) using the `3.7.x` range allows Draft.js `master` to pass flow checks. Closes facebookarchive#468 Differential Revision: D3456991 fbshipit-source-id: 0e9a176d800d3216d30b00ae1da1a682ee93273b
…upstream flow definition errors. Summary: The `3.8.x` versions of Immutable.js have changed `#toOrderedMap(): OrderedMap` to `#toOrderedMap(): Map` which breaks Draft.js — so I propose we use `~3.7.4` instead of `^3.7.4`. Draft.js's definition of `BlockMap` is `OrderedMap<string, ContentBlock>` which is not compatible with `Map`. In the interim (until Immutable.js makes a decision as to whether `#toOrderedMap(): Map` is correct) using the `3.7.x` range allows Draft.js `master` to pass flow checks. Closes facebookarchive/draft-js#468 Differential Revision: D3456991 fbshipit-source-id: 0e9a176d800d3216d30b00ae1da1a682ee93273b
…upstream flow definition errors. Summary: The `3.8.x` versions of Immutable.js have changed `#toOrderedMap(): OrderedMap` to `#toOrderedMap(): Map` which breaks Draft.js — so I propose we use `~3.7.4` instead of `^3.7.4`. Draft.js's definition of `BlockMap` is `OrderedMap<string, ContentBlock>` which is not compatible with `Map`. In the interim (until Immutable.js makes a decision as to whether `#toOrderedMap(): Map` is correct) using the `3.7.x` range allows Draft.js `master` to pass flow checks. Closes facebookarchive/draft-js#468 Differential Revision: D3456991 fbshipit-source-id: 0e9a176d800d3216d30b00ae1da1a682ee93273b
…upstream flow definition errors. Summary: The `3.8.x` versions of Immutable.js have changed `#toOrderedMap(): OrderedMap` to `#toOrderedMap(): Map` which breaks Draft.js — so I propose we use `~3.7.4` instead of `^3.7.4`. Draft.js's definition of `BlockMap` is `OrderedMap<string, ContentBlock>` which is not compatible with `Map`. In the interim (until Immutable.js makes a decision as to whether `#toOrderedMap(): Map` is correct) using the `3.7.x` range allows Draft.js `master` to pass flow checks. Closes facebookarchive/draft-js#468 Differential Revision: D3456991 fbshipit-source-id: 0e9a176d800d3216d30b00ae1da1a682ee93273b
The
3.8.x
versions of Immutable.js have changed#toOrderedMap(): OrderedMap
to#toOrderedMap(): Map
which breaks Draft.js — so I propose we use~3.7.4
instead of^3.7.4
.Draft.js's definition of
BlockMap
isOrderedMap<string, ContentBlock>
which is not compatible withMap
.In the interim (until Immutable.js makes a decision as to whether
#toOrderedMap(): Map
is correct) using the3.7.x
range allows Draft.jsmaster
to pass flow checks.