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

Fix node-fetch runtime build-time regression #2116

Merged
merged 5 commits into from
Aug 30, 2022

Conversation

clenfest
Copy link
Contributor

@clenfest clenfest commented Aug 30, 2022

#1970 seems to have caused a regression based on @types/node-fetch not being in the gateway's runtime dependencies

Fixes #2113

#1970 seems to have caused a regression based on `@types/node-fetch` not being in the gateway's runtime dependencies
@netlify
Copy link

netlify bot commented Aug 30, 2022

Deploy Preview for apollo-federation-docs canceled.

Name Link
🔨 Latest commit ae2b6ce
🔍 Latest deploy log https://app.netlify.com/sites/apollo-federation-docs/deploys/630e8499ccf11400098c427e

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 30, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

@Grmiade Grmiade left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, just one question 🙂

gateway-js/package.json Outdated Show resolved Hide resolved
Copy link
Member

@trevor-scheer trevor-scheer left a comment

Choose a reason for hiding this comment

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

I'd clarify in the title that this is only a build-time regression (i.e. non-TS users should be unaffected). The types package is needed in dependencies since dev dependencies aren't installed into node_modules but the types must be present for the gateway package to build due to the node-fetch import in the .d.ts file.

edit: compilation is part of the install lifecycle so probably also affecting non-TS users but still not at runtime 😄

@clenfest clenfest changed the title Fix node-fetch runtime regression Fix node-fetch runtime build-time typescript regression Aug 30, 2022
@clenfest clenfest changed the title Fix node-fetch runtime build-time typescript regression Fix node-fetch runtime build-time regression (typescript only) Aug 30, 2022
@clenfest clenfest changed the title Fix node-fetch runtime build-time regression (typescript only) Fix node-fetch runtime build-time regression Aug 30, 2022
@clenfest clenfest merged commit c06d04c into main Aug 30, 2022
@clenfest clenfest deleted the clenfest/node_fetch_missing branch August 30, 2022 22:08
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.

@types/node-fetch is missing in the @apollo/gateway dependencies
3 participants