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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
graphql-yoga@5.17.0
Minor Changes
#4288
66c370cThanks @EmrysMyrddin! - Add experimental support for
coordinateerror attribute proposal.The
coordinateattribute indicates the coordinate in the schema of the resolver whichexperienced the errors. It allows for an easier error source identification than with the
pathwhich can be difficult to walk, or even lead to unsolvable ambiguities when using Union or
Interface types.
Usage
Since this is experimental, it has to be explicitly enabled by adding the appropriate plugin to
the Yoga instance:
Once enabled, located errors will gain the
coordinateattribute:Security concerns
Adding a schema coordinate to errors exposes information about the schema, which can be an attack
vector if you rely on the fact your schema is private and secret.
This is why the
coordinateattribute is not serialized by default, and will not be exposed toclients.
If you want to send this information to client, override either each
toJSONerror's method, oradd a dedicated extension.
Patch Changes
66c370cThanks @EmrysMyrddin! - dependencies updates:
@graphql-tools/executor@^1.5.0↗︎(from
^1.4.0, independencies)@graphql-tools/utils@^10.11.0↗︎(from
^10.6.2, independencies)@graphql-yoga/nestjs@3.18.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/nestjs-federation@3.18.0
Patch Changes
@graphql-yoga/plugin-apollo-inline-trace@3.17.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/apollo-managed-federation@0.16.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-apollo-usage-report@0.12.0
Patch Changes
66c370cThanks @EmrysMyrddin! - dependencies updates:
@graphql-tools/utils@^10.11.0↗︎(from
^10.9.1, independencies)[
66c370c,66c370c]:@graphql-yoga/plugin-apq@3.17.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-csrf-prevention@3.17.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-defer-stream@3.17.0
Patch Changes
66c370cThanks @EmrysMyrddin! - dependencies updates:
@graphql-tools/utils@^10.11.0↗︎(from
^10.6.1, independencies)[
66c370c,66c370c]:@graphql-yoga/plugin-disable-introspection@2.18.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-graphql-sse@3.17.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-jwt@3.11.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-persisted-operations@3.17.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-prometheus@6.12.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-response-cache@3.19.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/plugin-sofa@3.17.0
Patch Changes
66c370cThanks @EmrysMyrddin! - dependencies updates:
@graphql-tools/utils@^10.11.0↗︎(from
^10.3.2, independencies)[
66c370c,66c370c]:@graphql-yoga/render-apollo-sandbox@0.2.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/render-graphiql@5.17.0
Patch Changes
[
66c370c,66c370c]:@graphql-yoga/apollo-link@5.2.0
@graphql-yoga/urql-exchange@5.2.0
hello-world-benchmark@3.19.0
Patch Changes
[
66c370c,66c370c]:apollo-federation-gateway-with-yoga@3.17.0
Patch Changes
[
66c370c,66c370c]:apollo-subgraph-with-yoga@3.17.0
Patch Changes
[
66c370c,66c370c]:graphql-lambda@3.17.0
Patch Changes
[
66c370c,66c370c]:@examples/bun-pothos@0.4.0
Patch Changes
[
66c370c,66c370c]:cloudflare-advanced@3.17.0
Patch Changes
[
66c370c,66c370c]:cloudflare@3.17.0
Patch Changes
[
66c370c,66c370c]:nextjs-app@2.17.0
Patch Changes
[
66c370c,66c370c]: