Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix: revert dependencies to devDependencies #1135

Merged
merged 1 commit into from
Apr 3, 2018
Merged

Conversation

samouss
Copy link
Collaborator

@samouss samouss commented Apr 3, 2018

Summary

In the move to workspaces I accidentally move React as dependencies. It means that when you install React InstantSearch you also install React, React DOM & React Native. This PR revert this change, in a next version we should add those dependencies as peer.

@samouss samouss requested review from Haroenv and vvo and removed request for Haroenv April 3, 2018 09:39
@algobot
Copy link
Contributor

algobot commented Apr 3, 2018

Deploy preview for react-instantsearch ready!

Built with commit 5ce1557

https://deploy-preview-1135--react-instantsearch.netlify.com

@Haroenv
Copy link
Contributor

Haroenv commented Apr 3, 2018

why not move to peer dependency now?

@samouss
Copy link
Collaborator Author

samouss commented Apr 3, 2018

I'm not sure which version to set. I prefer to revert the changes and move on a proper peerDependencies after. When the next package architecture will be ready, we can test on which version the lib works and which version we can support.

@samouss samouss merged commit 6b627bb into master Apr 3, 2018
@samouss samouss deleted the fix/dependencies branch April 3, 2018 09:53
samouss added a commit that referenced this pull request Apr 3, 2018
<a name="5.0.3"></a>

* revert dependencies as devDependencies ([#1135](#1135)) ([6b627bb](6b627bb))
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-native": "^0.54.2"
"prop-types": "^15.5.10"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are prop types used in production builds?

Copy link
Contributor

Choose a reason for hiding this comment

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

we can't strip them out in the library itself, since that way they'd only be useful for ourselves. People would strip them out at their bundling, not our I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In production build they are still present yes. But they are are used only in development. You can strip them with a babel plugin as @Haroenv suggest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants