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

Move '@material-ui/icons' to 'peerDependencies' #104

Merged
merged 2 commits into from
Mar 10, 2020
Merged

Move '@material-ui/icons' to 'peerDependencies' #104

merged 2 commits into from
Mar 10, 2020

Conversation

panz3r
Copy link
Contributor

@panz3r panz3r commented Feb 27, 2020

This PR moves @material-ui/icons dependency definition to peerDependencies to avoid including an older version (v3.0.2) of @material-ui/icons on projects that are already using @material-ui/icons v4 or later and material-ui-dropzone.

Also indirectly fixes a new deprecation warning thrown by react 16.13.0 because of how the old @material-ui/icons version was bundling icons.

Fix #95 .

@eluchsinger
Copy link

Would be nice to merge this PR ASAP, as material-ui-dropzone is broken with yarn 2.0.

@panz3r
Copy link
Contributor Author

panz3r commented Mar 10, 2020

Hi @eluchsinger ,

If you need to use this module I'd suggest you to use my branch directly (until this PR gets merged).

I made some other improvements not included in this PR about the packaging and dependencies, you can add

  • this PR
yarn add https://github.com/panz3r/material-ui-dropzone#4ca2b3e93b591fb4a7eda70261546c93bfa06907
  • a full revision of the dependencies (hence a slimmer final bundle) - also includes this PR changes
yarn add https://github.com/panz3r/material-ui-dropzone#666e214963e5f9be508b3a4b285945c606289d91

Let me know if this helps you.

P.S. I'd like to become a maintainer for this project but I'm waiting for a response from the owner.

@Yuvaleros Yuvaleros merged commit 6a224b9 into Yuvaleros:master Mar 10, 2020
@panz3r panz3r deleted the fix-mui-icons-dependency branch March 10, 2020 14:38
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.

@material-ui/icons as dependency
3 participants