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

[v2] Topics/peer dependencies #3671

Merged
merged 10 commits into from
Feb 9, 2018
Merged

[v2] Topics/peer dependencies #3671

merged 10 commits into from
Feb 9, 2018

Conversation

flipactual
Copy link
Contributor

per #1990

@ghost ghost assigned flipactual Jan 23, 2018
@ghost ghost added the review label Jan 23, 2018
@flipactual flipactual changed the title Topics/peer dependencies [v2] Topics/peer dependencies Jan 23, 2018
@@ -10,7 +10,7 @@ package installed locally.

## Install

`npm install --global gatsby-cli`
`npm install --global gatsby-cli react react-dom`
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think that's right. We don't want to install those globally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

womp, thank you

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not expert on dependencies but these propably should be added to starters as dependencies but there are so many of those starters and many of them are unofficial so making react and react-dom peer dependencies will break them I think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just arrived at the same conclusion 👍

This is coming with a major version bump – I'd be surprised if this is the only thing that breaks compatibility with existing starters, but I don't know

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah — we'll upgrade the official starters and perhaps a few others. There'll be an upgrade guide for sites that starters will need to go through. It won't break anything though as a starter with a gatsby@1 dependency will keep working as normal.

@KyleAMathews
Copy link
Contributor

Yeah, we'll have an upgrade guide which will say to install react/react-dom. Starters won't break because they'll have gatsby v1 in their package.json. But once their maintainers upgrade the starter, they'll add react/react-dom as dependencies so things will work fine.

@ghost ghost assigned KyleAMathews Feb 9, 2018
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.

3 participants