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

node-fetch in peerDependencies but we don't use it #377

Closed
edmorley opened this issue Oct 2, 2018 · 3 comments
Closed

node-fetch in peerDependencies but we don't use it #377

edmorley opened this issue Oct 2, 2018 · 3 comments

Comments

@edmorley
Copy link
Contributor

edmorley commented Oct 2, 2018

Hi!

After updating to fetch-mock from v6 to v7, we now get a missing peer dependency warning when installing:

warning " > [email protected]" has unmet peer dependency "node-fetch@*".

However we only use fetch-mock to mock native browser usage, so have no need to install the node-fetch package other than to silence the warning.

Would it be possible to:

  • consider removing the peer dep, to prevent the warning for the browser mocking use-case
  • or if that's not desired, then add a mention about it in the upgrading guide? (technically adding a peer dep is a breaking change, since it can make certain package managers exit non-zero when they didn't before)

Many thanks :-)

@wheresrhys
Copy link
Owner

Please add a note to the upgrade guide if you feel it's important. I don't have time to work on this project for a few weeks

@edmorley
Copy link
Contributor Author

edmorley commented Oct 3, 2018

Would you be open to removing the peer dep instead (I'm happy to open a PR for it)?

@wheresrhys
Copy link
Owner

Have thought about this, and will accept a PR to remove it

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

No branches or pull requests

2 participants