Skip to content

chore(deps): Update graphql and related dependencies - #1200

Merged
pcmanus merged 3 commits into
mainfrom
trevor/update-v2-deps
Nov 19, 2021
Merged

chore(deps): Update graphql and related dependencies#1200
pcmanus merged 3 commits into
mainfrom
trevor/update-v2-deps

Conversation

@trevor-scheer

Copy link
Copy Markdown
Contributor

No description provided.

@trevor-scheer

Copy link
Copy Markdown
Contributor Author

Is there any reason we'd want to continue supporting graphql@14.x or really anything besides more cutting edge versions for Fed 2? Can we get to 16+ before launch?

I'd like to get gateway supporting v16 asap, this seems like a good first step. Unfortunately there's a minor version bump in graphql-js which breaks @apollo/core-schema@0.1.0. The fix requires getting peer deps up to ^15.7.x.
Ref: apollographql/core-schema-js#20

Updates on the TypeScript query planner changed the PlanningError structure, that will now always have an `extensions` field.
No extensions are now expressed by having the extensions field value being null, or an empty Object.

This PR allows us to express these requirements by:
- Adding a new deserialize directive `none_only_if_value_is_null_or_empty_object`.
- Applying the directive to the `PlanningError::extensions` field.
- Adding comments and tests that make the new requirement more explicit.
@trevor-scheer trevor-scheer self-assigned this Nov 12, 2021
@clenfest

Copy link
Copy Markdown
Contributor

I'm not qualified to judge the Rust stuff, but if it compiles, it's probably fine, right? Otherwise LGTM.

@trevor-scheer

Copy link
Copy Markdown
Contributor Author

@clenfest fortunately the Rust stuff is just cherry-picked from the version-0.x branch PR which addresses this same issue #1149

@clenfest clenfest left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving since Rust changes are approved already in #1149

@trevor-scheer

Copy link
Copy Markdown
Contributor Author

Leaving this for @pcmanus or @martijnwalraven to merge

@pcmanus pcmanus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lgtm as well.

@pcmanus
pcmanus merged commit 8e28673 into main Nov 19, 2021
@pcmanus
pcmanus deleted the trevor/update-v2-deps branch November 19, 2021 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants