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

XTNSNS-391 Bump graphql-upload to v13.0.0 #534

Merged
merged 2 commits into from
Jul 12, 2023
Merged

Conversation

mairatma
Copy link
Contributor

@mairatma mairatma commented Jul 7, 2023

What is the purpose of this pull request?

Upgrade the version of graphql-upload.

What problem is this solving?

We're using a very outdated version of graphql-upload (v8) which isn't compatible with node 16. This causes graphql apps such as pages-graphql to fail for any mutation that uses uploads.

Version v13 works correctly in node 16, unlocking us to upgrade node on pages-graphql and other graphql apps that use upload features.

How should this be manually tested?

I managed to manually test by running pages-graphql locally on no 16, with this version of @vtex/api linked to it.

For a final test within IO's environment we need to publish a new version of @vtex/api so that we can use it to test a link of pages-graphql using the 7.x node builder. Once we have the published version I'll do that final test.

Screenshots or example usage

Before
Screenshot 2023-07-07 at 10 54 34

After
Screenshot 2023-07-07 at 10 55 16

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

@mairatma mairatma self-assigned this Jul 7, 2023
@mairatma mairatma marked this pull request as ready for review July 7, 2023 14:02
@mairatma mairatma changed the title Bump graphql-upload to v13.0.0 XTNSNS-391 Bump graphql-upload to v13.0.0 Jul 7, 2023
Copy link
Contributor

@filafb filafb left a comment

Choose a reason for hiding this comment

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

Is it backward compatible with node 12? Currently we are keeping the same node SDK for both version.

@mairatma
Copy link
Contributor Author

Is it backward compatible with node 12? Currently we are keeping the same node SDK for both version.

Yes, it is! 🙏

@mairatma
Copy link
Contributor Author

mairatma commented Jul 10, 2023

Is it backward compatible with node 12? Currently we are keeping the same node SDK for both version.

I've just triple checked to be sure and it's confirmed: this version works correctly in both node 12 and node 16.

Regardless of that it would be great to test this within IO's environment when we publish a version of this package to NPM, before applying to service-runtime-node. My tests so far were all 100% localhost.

Can I merge this and publish a new patch version now to test? Once I confirm it's working I'll let you guys know so we can move forward with the service-runtime-node change as well.

@mairatma mairatma merged commit 1b3c549 into master Jul 12, 2023
@mairatma mairatma deleted the graphqlUploadBump branch July 12, 2023 13:27
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.

3 participants