Skip to content

More strict check for node version for graphql-upload#2235

Merged
abernix merged 4 commits into
apollographql:masterfrom
mrkurt:node-upload-strict-check
Jan 29, 2019
Merged

More strict check for node version for graphql-upload#2235
abernix merged 4 commits into
apollographql:masterfrom
mrkurt:node-upload-strict-check

Conversation

@mrkurt

@mrkurt mrkurt commented Jan 28, 2019

Copy link
Copy Markdown
Contributor

I'm working on a apollo-server-flyio package to use in fly.io apps. The fly app environment is not node, it's much closer to the browser, which means no access to fs, which means graphql-upload blows up on require.

This PR makes the Node version check more strict — if there are no node process details it avoids requiring the graphql-upload package for non-node runtimes. This is useful for me, obviously, but should also improve the Cloud Flare worker build experience and help with any future Deno efforts.

TODO:

  • Update CHANGELOG.md with your change (include reference to issue & this PR)
  • Make sure all of the significant new logic is covered by tests
  • Rebase your changes on master so that they can be merged easily
  • Make sure all tests and linter rules pass

@apollo-cla

Copy link
Copy Markdown

@mrkurt: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@abernix abernix added this to the Release 2.3.3 milestone Jan 29, 2019
@abernix abernix merged commit cd674aa into apollographql:master Jan 29, 2019
@abernix

abernix commented Jan 29, 2019

Copy link
Copy Markdown
Member

Thank you for this! I made a couple follow-up commits to correct the name of the method and its file (which were no longer intuitive after this change), but this was released in v2.3.3.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants