-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix issue where a bare install had some issues with a @types/node
import in some cases
#11141
Conversation
🦋 Changeset detectedLatest commit: 8fb8e30 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@types/node
import in some cases
size-limit report 📦
|
/release:pr |
A new release has been made for this PR. You can install it with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting a PR up here so quickly @jerelmiller, this LGTM. These utilities were accidentally publicly exported and are causing a bug by virtue of the way some code was reorganized. I'm strongly in favor of removing them quickly in a patch.
As an aside, I remembered using one these utilities (isAsyncIterableIterator
) in a custom BatchHttpLink
I wrote for a user trying to integrate Apollo Client with a HotChocolate server which uses the multipart response format for batched requests, and realized we also removed readJsonBody
in a prerelease via #11040. This was also an inadvertent breaking change, but it's reasonably simple to modify any userland code, likely in custom links, that's using readJsonBody
. With this snapshot I was able to test my changes and opened a PR on the multipart BatchHttpLink
implementation: https://github.com/erwan-joly/BatchPoc/pull/3/files. Sharing here in case it's useful to anyone who finds this PR.
Fixes #11132
Moves the response iterator helpers over to the http link where they are used and removes them from
@apollo/client/utilities
. These helpers were added in an alpha of 3.8 and thus were not exported in versions <= 3.7.x.This is technically a breaking change by removing a public export, but its been 3 days since we released 3.8. The alternative is to make
@types/node
either a dependency or a peer dependency, both of which feel a bit odd given that Apollo Client is used primarily in the browser.Checklist: