-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove dependency on util.promisify
#5478
Comments
@abernix Thoughts? @alfaproject is correct that this shim isn't needed on any version of Node we currently support in AS3. On the other hand, I think we vaguely attempt to support non-Node environments for some of our code? On the other other hand, it looks like |
Yes, I don't think it should be in core because that shim imports a few other dependencies. |
@glasser I'm quite supportive of removing it in lieu of either some treatment within Overall, I'd be somewhat surprised if non-Node.js + Memcached was a popularized cohort. I'd vote for removing it and I think we should get this into a 3.x bugfix ASAP. |
This was required for compatibility with Node 6, but we now only support Node 12+. It appears to only be used by apollo-server-cache-memcached. Fixes #5478.
Node 6 support meant we needed to polyfill util.promisify, Object.values, and Object.entries. But we now only support Node 12+. Fixes #5478.
Given that we only support newer versions of node, I don't believe this is still needed?
apollo-server/packages/apollo-server-env/src/index.ts
Line 7 in 1de9af0
The text was updated successfully, but these errors were encountered: