8000 Switch to the more conservative Immutable.js ~3.7.4 version to avoid upstream flow definition errors. by bradleyayers · Pull Request #468 · facebookarchive/draft-js · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Switch to the more conservative Immutable.js ~3.7.4 version to avoid upstream flow definition errors. #468

Closed
wants to merge 1 commit into from

Conversation

bradleyayers
Copy link
Contributor

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.

@ghost
Copy link
ghost commented Jun 15, 2016

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!

@ghost
Copy link
ghost commented Jun 15, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ghost ghost added the CLA Signed label Jun 15, 2016
@mitermayer mitermayer mentioned this pull request Jun 15, 2016
@hellendag
Copy link

I'll see if I can get immutable-js/immutable-js#881 merged.

@hellendag
Copy link

I'm going to go ahead and merge this to get things unblocked. I'd really like to switch it back soon.

@hellendag
Copy link

@facebook-github-bot shipit

@ghost
Copy link
ghost commented Jun 20, 2016

Thanks for importing. If you are an FB employee go to Phabricator to review.

@ghost ghost closed this in 73cd60a Jun 20, 2016
ouchxp pushed a commit to ouchxp/draft-js that referenced this pull request Apr 7, 2017
…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
midas19910709 added a commit to midas19910709/draft-js that referenced this pull request Mar 30, 2022
…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
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
…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
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
…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
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3AF3
Development

Successfully merging this pull request may close these issues.

2 participants
0