-
-
Notifications
You must be signed in to change notification settings - Fork 828
Add support for graphql-js v17 #8313
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
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
ccbcce9
Add support for graphql-js v17
egoodwinx 0dc35c3
add override for in-memory-live-query-store
egoodwinx 9bb35f7
Merge branch 'master' into feat/graphql-17-support
egoodwinx d91b2f5
fix some issues surfaced by ai
egoodwinx 76942be
add more information for changeset and update CI tests
egoodwinx f768b60
Merge branch 'master' into feat/graphql-17-support
egoodwinx ce9cd5e
disable leak test for url-loader
egoodwinx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| --- | ||
| '@graphql-tools/executor-urql-exchange': minor | ||
| '@graphql-tools/executor-apollo-link': minor | ||
| '@graphql-tools/git-loader': minor | ||
| '@graphql-tools/executor': minor | ||
| '@graphql-tools/optimize': minor | ||
| '@graphql-tools/schema': minor | ||
| '@graphql-tools/utils': minor | ||
| --- | ||
|
|
||
| Add support for graphql-js v17 | ||
|
|
||
| Core fixes (graphql-js v17 compatibility) | ||
|
|
||
| @graphql-tools/executor: buildResolveInfo implements v17's new required getAbortSignal()/getAsyncHelpers() on GraphQLResolveInfo, and wraps info.variableValues in v17's structured {coerced, sources} shape (previously leaked a flat map); variable coercion adapted to v17's coerceInputValue/validateInputValue split, including default-value coercion for both variables and arguments. | ||
| @graphql-tools/utils: getArgumentValues migrated to coerceInputLiteral (v17 stopped rejecting AST literals of the wrong kind via valueFromAST); new graphqlJSCompat.ts module centralizes version-detection (getOptionalGraphQLJSExport) and the flat-map ↔ {coerced, sources} conversion (toGraphQLJSVariableValues) shared across the package; fixed a bug where non-null arguments with schema-defined (SDL) defaults, referenced via an unprovided variable, incorrectly threw instead of applying the default. | ||
| @graphql-tools/schema: addResolversToSchema updates coerceOutputValue/coerceInputValue (what v17 actually calls at runtime) whenever a scalar resolver overrides serialize/parseValue, including a fix for a stale-closure bug when rebuilding scalar types. | ||
| Compatibility widening | ||
|
|
||
| graphql peer range widened to include ^17.0.0 for @graphql-tools/executor-apollo-link and @graphql-tools/executor-urql-exchange. | ||
| Two new patch-package patches fixing incorrect/outdated .d.ts files in @types/relay-compiler and subscriptions-transport-ws that referenced graphql-js exports removed/renamed in v17. | ||
| Tests | ||
|
|
||
| Executor, schema, loader, and optimize test suites made version-aware (versionInfo.major >= 17 branches) where v17 output differs from v15/v16. | ||
| New getArgumentValues.spec.ts covering the coerceInputLiteral-nested-variable and SDL-default-value fixes. | ||
| Tooling | ||
|
|
||
| Root graphql devDependency/override pinned to 17.0.2. | ||
| CI (tests.yml, uncommitted): merged the temporary v17-only test job into the main matrix (now tests full suite against v15/v16/v17, excluding Node 18 × v17 since v17 requires Node ≥22), removed the old temp job, and re-labeled the "Full Check" job to reflect it now runs on v17. | ||
| Changeset: minor bump for 7 affected packages. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this PR is not only about bumping the version, it would be great to summarise what you did in order to get the v17 working. nothing too fancy, a summary of which issues were addressed