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

allow for React 16 as peerDependency #1385

Closed
wants to merge 2 commits into from

Conversation

nikgraf
Copy link
Contributor

@nikgraf nikgraf commented Sep 13, 2017

Summary

As Sophie suggested adding React 16 RC helps to avoid peerDep warnings. see https://twitter.com/sophiebits/status/906661088472813568

@ArnaudRinquin
Copy link

Appart from the peerDependency warning, have you spotted any issue with React 16?

@flarnie flarnie self-requested a review September 21, 2017 14:32
@flarnie
Copy link
Contributor

flarnie commented Sep 21, 2017

Thanks for adding this! 🎉🎊🍰

The tests ran successfully for me locally, so hopefully that failed CI test run was just a fluke. Restarted the tests, and assuming we can get those passing then I'll be happy to merge this.

Copy link
Contributor

@flarnie flarnie left a comment

Choose a reason for hiding this comment

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

pusheen_thank_you

@nikgraf
Copy link
Contributor Author

nikgraf commented Sep 22, 2017

yay 🎉

@flarnie
Copy link
Contributor

flarnie commented Sep 22, 2017

Hmm - I still don't get those test failures. It looks like you rebased, but I might try rebasing again because those failures are almost certainly not related to the React dependency bump.

@flarnie
Copy link
Contributor

flarnie commented Sep 22, 2017

Tests continue to pass for me locally, even after git checkout master && git rebase upstream/master && yarn install && yarn upgrade && yarn build. 🤷‍♀️

@flarnie flarnie added this to the v0.10.3 milestone Sep 22, 2017
@nikgraf
Copy link
Contributor Author

nikgraf commented Sep 22, 2017

@flarnie weird, especially since it complains SyntaxError: Unexpected token ) while I didn't change anything: https://travis-ci.org/facebook/draft-js/jobs/278594841

also the same changes with master merged into the branch went flawlessly, see: https://travis-ci.org/facebook/draft-js/builds/278655176

@facebook-github-bot
Copy link

@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

2 similar comments
@facebook-github-bot
Copy link

@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link

@flarnie has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@flarnie
Copy link
Contributor

flarnie commented Sep 24, 2017

Internally I keep getting the message "This seems to be a transient issue. Retry your job, and it will likely pass ." but retrying does not help... Maybe it will be fixed on Monday.

@JLarky
Copy link

JLarky commented Sep 28, 2017

I still get warning

npm WARN [email protected] requires a peer of [email protected] || 0.14.x || ^15.0.0-0 || 15.x but none was installed.

I think it means that you need to update package.json from

    "enzyme": "^2.9.1",

to

    "enzyme": "^3.0.0",

@flarnie
Copy link
Contributor

flarnie commented Sep 28, 2017

I think even better would be to move enzyme from dependencies to devDependencies, because I'm certain we don't need it for anything Draft does in Production. Sorry about that!

Would you like to submit a PR? Or I can do it sometime tomorrow.

@JLarky
Copy link

JLarky commented Sep 28, 2017

@flarnie I'm ok with someone else doing this :) it seems like this is just a warning and it still work for now :)

flarnie added a commit to flarnie/draft-js that referenced this pull request Sep 29, 2017
**what is the change?:**
see title

**why make this change?:**
This was mistakenly added to regular dependencies, when we only use it
for testing.

**test plan:**
`rm -rf node_modules && yarn install && yarn build && yarn test`

**issue:**
None open yet, but thanks for @JLarky whose comment on
facebookarchive#1385 (comment)
prompted this.
@nikgraf nikgraf deleted the patch-1 branch October 1, 2017 09:44
facebook-github-bot pushed a commit that referenced this pull request Oct 3, 2017
Summary:
**what is the change?:**
see title

**why make this change?:**
This was mistakenly added to regular dependencies, when we only use it
for testing.

**test plan:**
`rm -rf node_modules && yarn install && yarn build && yarn test`

**issue:**
None open yet, but thanks for JLarky whose comment on
#1385 (comment)
prompted this.
Closes #1415

Differential Revision: D5961436

fbshipit-source-id: bb9c22bf9f29a7cfaea70d2b869b2fb17f31db8c
midas19910709 added a commit to midas19910709/draft-js that referenced this pull request Mar 30, 2022
Summary:
**Summary**

As Sophie suggested adding React 16 RC helps to avoid peerDep warnings. see https://twitter.com/sophiebits/status/906661088472813568
Closes facebookarchive/draft-js#1385

Differential Revision: D5898819

fbshipit-source-id: 56dc61046d9fc5af1074af8eda7c45b57923573d
midas19910709 added a commit to midas19910709/draft-js that referenced this pull request Mar 30, 2022
Summary:
**what is the change?:**
see title

**why make this change?:**
This was mistakenly added to regular dependencies, when we only use it
for testing.

**test plan:**
`rm -rf node_modules && yarn install && yarn build && yarn test`

**issue:**
None open yet, but thanks for JLarky whose comment on
facebookarchive/draft-js#1385 (comment)
prompted this.
Closes facebookarchive/draft-js#1415

Differential Revision: D5961436

fbshipit-source-id: bb9c22bf9f29a7cfaea70d2b869b2fb17f31db8c
alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
**Summary**

As Sophie suggested adding React 16 RC helps to avoid peerDep warnings. see https://twitter.com/sophiebits/status/906661088472813568
Closes facebookarchive/draft-js#1385

Differential Revision: D5898819

fbshipit-source-id: 56dc61046d9fc5af1074af8eda7c45b57923573d
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
Summary:
**Summary**

As Sophie suggested adding React 16 RC helps to avoid peerDep warnings. see https://twitter.com/sophiebits/status/906661088472813568
Closes facebookarchive/draft-js#1385

Differential Revision: D5898819

fbshipit-source-id: 56dc61046d9fc5af1074af8eda7c45b57923573d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants