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

Make bs-fetch a peerDependency. #104

Merged
merged 2 commits into from
Sep 26, 2019

Conversation

parkerziegler
Copy link
Contributor

This PR attempts to make bs-fetch a peerDependency for reason-urql. bs-fetch is solely used to type a few fields on the Client and the combinedError, but otherwise isn't actually used. It needs to be there to support the compiler in these modules, but in order to prevent our dep from conflicting with a user's own version of bs-fetch, we don't want to actually ship our dependency on bs-fetch.

cc/ @gugahoa I haven't yet ported this over to the examples, but let me know if you're able to apply this patch to see if it can help fix your issues! I think it'd be a win for the lib overall if we could remove this dependency. Will follow up on the examples tomorrow, just a bit late here in London!

Copy link
Contributor

@gugahoa gugahoa left a comment

Choose a reason for hiding this comment

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

It's working as intended 👌

@parkerziegler parkerziegler marked this pull request as ready for review September 26, 2019 23:43
@parkerziegler
Copy link
Contributor Author

Sweet, glad it worked @gugahoa! Looks like the build just passed. I'll get this merged and publish v1.0.1 with this change. Thanks!

@parkerziegler parkerziegler merged commit 42125f5 into master Sep 26, 2019
@parkerziegler parkerziegler deleted the task/remove-bs-fetch-dependency branch September 26, 2019 23:43
@parkerziegler
Copy link
Contributor Author

Released in v1.0.1.

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.

2 participants