-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): update apollo graphql packages (major) #13
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
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/major-apollo-graphql-packages
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
ff874d9 to
b89fe74
Compare
b89fe74 to
b535a80
Compare
b535a80 to
8c7c7cc
Compare
8c7c7cc to
06d5c7c
Compare
06d5c7c to
911b0cc
Compare
911b0cc to
023ca11
Compare
023ca11 to
523d518
Compare
523d518 to
7272f71
Compare
7272f71 to
5faad82
Compare
5faad82 to
b71f22d
Compare
643106c to
d0ef020
Compare
d0ef020 to
a2c4637
Compare
a2c4637 to
a92dbd5
Compare
a861152 to
bb1c921
Compare
ee269a7 to
3f7671a
Compare
3693df1 to
1d54260
Compare
6be7a61 to
83d80a7
Compare
83d80a7 to
8b1ff07
Compare
8b1ff07 to
839d0da
Compare
ead42b7 to
7520222
Compare
7520222 to
3064bd5
Compare
3064bd5 to
2cd55cf
Compare
2cd55cf to
0ede760
Compare
b0069c0 to
11299f9
Compare
11299f9 to
f89acc0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 contains the following updates:
0.23.0->2.7.22.21.0->3.13.0Release Notes
apollographql/federation (@apollo/gateway)
v2.7.2Compare Source
Patch Changes
Remove out-of-band reporting in the gateway and provide a warning for users who have the endpoint configured. (#2946)
Updated dependencies [
33b937b18d3c7ca6af14b904696b536399e597d1,09cd3e55e810ee513127b7440f5b11af7540c9b0,d7189a86c27891af408d3d0184db6133d3342967,33506bef6d755c58400081824167711c1747ee40,1f72f2a361a83ebaaf15ae052f5ca9a93fc18bfc]:v2.7.1Compare Source
Patch Changes
493f5acd16ad92adf99c963659cd40dc5eac1219]:v2.7.0Compare Source
Minor Changes
Implement progressive
@overridefunctionality (#2911)The progressive
@overridefeature brings a new argument to the@overridedirective:label: String. When a label is added to an@overrideapplication, the override becomes conditional, depending on parameters provided to the query planner (a set of which labels should be overridden). Note that this feature will be supported in router for enterprise users only.Out-of-the-box, the router will support a percentage-based use case for progressive
@override. For example:The above example will override the root
hellofield from the "original" subgraph 5% of the time.More complex use cases will be supported by the router via the use of coprocessors/rhai to resolve arbitrary labels to true/false values (i.e. via a feature flag service).
Patch Changes
6ae42942b13dccd246ccc994faa2cb36cd62cb3c,66833fb8d04c9376f6ed476fed6b1ca237f477b7,931f87c6766c7439936df706727cbdc0cd6bcfd8]:v2.6.3Compare Source
Patch Changes
038cf0dbbfb0e2978b69f0a14bfd2c38b0cd1326,69495b4810f3268c45a31f9d12e4f9cde2c447b5]:v2.6.2Compare Source
Patch Changes
7b5b836d15247c997712a47847f603aa5887312e,74ca7dd617927a20d79b824851f7651ef3c40a4e,ffe67dfbdb77d15dde2ab6dee66dba05c7b5c037]:v2.6.1Compare Source
Patch Changes
0d5ab01a]:v2.6.0Compare Source
Minor Changes
Add more information to OpenTelemetry spans. (#2700)
Rename
operationNametographql.operation.nameand add agraphql.operation.typeattribute, in conformance with the OpenTelemetrySemantic Conventions for GraphQL. The
operationNameattribute is nowdeprecated, but it is still emitted alongside
graphql.operation.name.Add a
graphql.documentspan attribute to thegateway.requestspan,containing the entire GraphQL source sent in the request. This feature
is disable by default.
When one or more GraphQL or internal errors occur, report them in the
OpenTelemetry span in which they took place, as an exception event. This
feature is disabled by default.
To enable the
graphql.documentspan attribute and the exception eventreporting, add the following entries to your
ApolloGatewayinstanceconfiguration:
Update
licensefield inpackage.jsonto useElastic-2.0SPDX identifier (#2741)Introduce the new
@policyscope for composition (#2818)Users may now compose
@policyapplications from their subgraphs into a supergraph.The directive is defined as follows:
The
Policyscalar is effectively aString, similar to theFieldSettype.In order to compose your
@policyusages, you must update your subgraph's federation spec version to v2.6 and add the@policyimport to your existing imports like so:@​link(url: "https://specs.apollo.dev/federation/v2.6", import: [..., "@​policy"])Add graphql.operation.name attribute on gateway.plan span (#2807)
Patch Changes
b18841be,e325b499]:v2.5.7Compare Source
Patch Changes
a0bdd7cb]:v2.5.6Compare Source
Patch Changes
c719214a]:v2.5.5Compare Source
Patch Changes
Fix specific case for requesting __typename on interface entity type (#2775)
In certain cases, when resolving a __typename on an interface entity (due to it actual being requested in the operation), that fetch group could previously be trimmed / treated as useless. At a glance, it appears to be a redundant step, i.e.:
It's actually necessary to preserve this in the case that we're coming from an interface object to an (entity) interface so that we can resolve the concrete __typename correctly.
Don't preserve useless fetches which downgrade __typename from a concrete type back to its interface type. (#2778)
In certain cases, the query planner was preserving some fetches which were "useless" that would rewrite __typename from its already-resolved concrete type back to its interface type. This could result in (at least) requested fields being "filtered" from the final result due to the interface's __typename in the data where the concrete type's __typename was expected.
Specifically, the solution was compute the path between newly created groups and their parents when we know that it's trivial (
[]). Further along in the planning process, this allows to actually remove the known-useless group.Propagate type information when renaming entity fields (#2776)
Aliased entity fields might have been incorrectly overwritten if multiple fields/aliases shared the same name. Query planner automatically renames conflicting fields to ensure we can always generate a valid GraphQL query. The underlying issue was that this key rewriting logic was assuming the same type of an object. In case of entity queries asking for those aliased fields, we ended up always attempting to apply field renaming logic regardless, whether or not a given entity was of the correct type. This fix ensures that the query planner logic correctly accounts for the object type when applying field renaming logic.
Updated dependencies [
66d7e4ce,a37bbbf6]:v2.5.4Compare Source
Patch Changes
Adds header to change the format of exposed query plans, and allows formatting it as json. (#2724)
When the gateway is configured to allow it, adding the
Apollo-Query-Plan-Experimentalheader to a request already allowed a "prettified" text version of the query plan used for the query is returned in the response extension. This changes adds support for a new (optional) accompanying header,Apollo-Query-Plan-Experimental-Format, which can be set to the value "internal" to have the query plan returned as a json object (that correspond to the internal representation of that query plan) instead of the text version otherwise sent. Note that if that new header is not provided, then the query plan continues to be send in the previous prettified text version.Fix some potentially incorrect query plans with
@requireswhen some dependencies are involved. (#2726)In some rare case of
@requires, an over-eager optimisation was incorrectly considering thata dependency between 2 subgraph fetches was unnecessary, leading to doing 2 subgraphs queries
in parallel when those should be done sequentially (because the 2nd query rely on results
from the 1st one). This effectively resulted in the required fields not being provided (the
consequence of which depends a bit on the resolver detail, but if the resolver expected
the required fields to be populated (as they should), then this could typically result
in a message of the form
GraphQLError: Cannot read properties of null).Updated dependencies [
203b0a44]:v2.5.3Compare Source
Patch Changes
Fix execution error in some cases where aliases are used and some values are
null. (#2716)The error would manifest itself as an
INTERNAL_SERVER_ERRORwith a message of the formCannot read properties of null.Updated dependencies [
4b9a512b,c6e0e76d,1add932c,6f1fddb2]:v2.5.2Compare Source
Patch Changes
Remove extraneous call to
span.setStatus()on a span which has already ended. (#2697)In cases where a subgraph responded with an error, we would sometimes try to set
the status of a span which had already ended. This resulted in a warning log to
the console (but no effect otherwise). This warning should no longer happen.
Fix
fallbackPollIntervalInMsbehavior. (#2709)The
fallbackPollIntervalInMsserves 2 purposes:The second bullet is how the configuration option is documented, but not how it was previously implemented. This change corrects the behavior to respect this configuration if it's provided AND is longer than the Uplink interval.
Updated dependencies [
35179f08]:v2.5.1Compare Source
Patch Changes
Reapply #2639: (#2687)
Try reusing named fragments in subgraph fetches even if those fragment only apply partially to the subgraph. Before this change, only named fragments that were applying entirely to a subgraph were tried, leading to less reuse that expected. Concretely, this change can sometimes allow the generation of smaller subgraph fetches.
Additionally, resolve a bug which surfaced in the fragment optimization logic which could result in invalid/incorrect optimizations / fragment reuse.
Updated dependencies [
b9052fdd]:v2.5.0Compare Source
Minor Changes
Do not run the full suite of graphQL validations on supergraphs and their extracted subgraphs by default in production environment. (#2657)
Running those validations on every updates of the schema takes a non-negligible amount of time (especially on large
schema) and mainly only serves in catching bugs early in the supergraph handling code, and in some limited cases,
provide slightly better messages when a corrupted supergraph is received, neither of which is worth the cost in
production environment.
A new
validateSupergraphoption is also introduced in the gateway configuration to force this behaviour.Support responses from subgraphs which use the
application/graphql-response+jsoncontent-type header. (#2162)See graphql-over-http spec for more details:
https://graphql.github.io/graphql-over-http/draft/#sec-application-graphql-response-json
Introduce the new
@authenticateddirective for composition (#2644)Users may now compose
@authenticatedapplications from their subgraphs into a supergraph. This addition will support a future version of Apollo Router that enables authenticated access to specific types and fields via directive applications.The directive is defined as follows:
In order to compose your
@authenticatedusages, you must update your subgraph's federation spec version to v2.5 and add the@authenticatedimport to your existing imports like so:@​link(url: "https://specs.apollo.dev/federation/v2.5", import: [..., "@​authenticated"])Introduce the new
@requiresScopesdirective for composition (#2649)Users may now compose
@requiresScopesapplications from their subgraphs into a supergraph. This addition will support a future version of Apollo Router that enables scoped access to specific types and fields via directive applications.The directive is defined as follows:
The
Scopescalar is effectively aString, similar to theFieldSettype.In order to compose your
@requiresScopesusages, you must update your subgraph's federation spec version to v2.5 and add the@requiresScopesimport to your existing imports like so:@​link(url: "https://specs.apollo.dev/federation/v2.5", import: [..., "@​requiresScopes"])Patch Changes
fe1e3d7b,aac2893a,6b18af50,9396c0d6,2b5796a9,4f3c3b9e]:v2.4.13Compare Source
Patch Changes
f2264cf6]:v2.4.12Compare Source
Patch Changes
Remove extraneous call to
span.setStatus()on a span which has already ended. (#2717)In cases where a subgraph responded with an error, we would sometimes try to set
the status of a span which had already ended. This resulted in a warning log to
the console (but no effect otherwise). This warning should no longer happen.
Fix
fallbackPollIntervalInMsbehavior. (#2717)The
fallbackPollIntervalInMsserves 2 purposes:The second bullet is how the configuration option is documented, but not how it was previously implemented. This change corrects the behavior to respect this configuration if it's provided AND is longer than the Uplink interval.
Updated dependencies [
693c2433]:v2.4.11Compare Source
Patch Changes
Reapply #2639: (#2684)
Try reusing named fragments in subgraph fetches even if those fragment only apply partially to the subgraph. Before this change, only named fragments that were applying entirely to a subgraph were tried, leading to less reuse that expected. Concretely, this change can sometimes allow the generation of smaller subgraph fetches.
Additionally, resolve a bug which surfaced in the fragment optimization logic which could result in invalid/incorrect optimizations / fragment reuse.
Updated dependencies [
a740e071]:v2.4.10Compare Source
Patch Changes
Revert #2639 from v2.4.9 (#2681)
PR #2639 attempts to resolve issues with query fragment reuse, but we've since turned up multiple issues (at least 1 of which is a regression - see #2680. For now, this reverts it until we resolve the regression for a future patch release.
Updated dependencies [
b6be9f96]:v2.4.9Compare Source
Patch Changes
Try reusing named fragments in subgraph fetches even if those fragment only apply partially to the subgraph. Before this change, only named fragments that were applying entirely to a subgraph were tried, leading to less reuse that expected. Concretely, this change can sometimes allow the generation of smaller subgraph fetches. (#2639)
Updated dependencies [
7ac83456,d60349b3,1bb7c512,02eab3ac,fd4545c2]:v2.4.8Compare Source
Patch Changes
62e0d254,1293034c,7f1ef73e,2a97f372]:v2.4.7Compare Source
Patch Changes
planning performance), to fix a possibly raised assertion error (with a message of form like
Cannot add selection of field X to selection set of parent type Y), and to fix a rare issue where an interface or union field was not beingqueried for all the types it should be.
2d44f346]:v2.4.6Compare Source
Patch Changes
5cd17e69,8ca107ac,e136ad87]:v2.4.5Compare Source
Patch Changes
Supersedes v2.4.4 due to a publishing error with no dist/ folder (#2583)
Updated dependencies [
c96e24c4]:v2.4.4Compare Source
Patch Changes
assertfunction in theDataRewrite.ts. The incorrect method was imported (due to a bad (#2581)import auto-completion) and went unnoticed, leading to potential build issue.
cb7f414d]:v2.4.3Compare Source
Patch Changes
f6a8c1ce]:v2.4.2Compare Source
Patch Changes
@interfaceObjecttype has a@requires. When an@interfaceObjecttype has a field with a (#2524)@requiresand the query requests that field only for some specific implementations of the corresponding interface,then the generated query plan was sometimes invalid and could result in an invalid query to a subgraph (against a
subgraph that rely on
@apollo/subgraph, this lead the subgraph to produce an error message looking like"The _entities resolver tried to load an entity for type X, but no object or interface type of that name was found in the schema").2c370508,179b4602]:v2.4.1Compare Source
Patch Changes
Revert #2639 from v2.4.9 (#2681)
PR #2639 attempts to resolve issues with query fragment reuse, but we've since turned up multiple issues (at least 1 of which is a regression - see #2680. For now, this reverts it until we resolve the regression for a future patch release.
Updated dependencies [
b6be9f96]:v2.4.0Compare Source
Minor Changes
This change introduces a configurable query plan cache. This option allows (#2385)
developers to provide their own query plan cache like so:
The current default implementation is effectively as follows:
TypeScript users should implement the
QueryPlanCachetype which is nowexported by
@apollo/query-planner:Adds debug/testing query planner options (
debug.bypassPlannerForSingleSubgraph) to bypass the query planning (#2441)process for federated supergraph having only a single subgraph. The option is disabled by default, is not recommended
for production, and is not supported (it may be removed later). It is meant for debugging/testing purposes.
Patch Changes
Refactor the internal implementation of selection sets used by the query planner to decrease the code complexity and (#2387)
improve query plan generation performance in many cases.
Optimises query plan generation for parts of queries that can statically be known to not cross across subgraphs (#2449)
Updated dependencies [
260c357c,7bc0f8e8,d4426ff9,a9385bdb,1a555d98,ade7ceb8,09382e74,cab383b2]:v2.3.6Compare Source
Patch Changes
Handle defaulted variables correctly during post-processing. (
98844fd5)Users who tried to use built-in conditional directives (skip/include) with defaulted variables and no variable provided would encounter an error thrown by operation post-processing saying that the variables weren't provided. The defaulted values went unaccounted for, so the operation would validate but then fail an assertion while resolving the conditional.
With this change, defaulted variable values are now collected and provided to post-processing (with defaults being overwritten by variables that are actually provided).
Fix issues (incorrectly rejected composition and/or subgraph errors) with
@interfaceObject. Those issues may occur (11f2d7c0)either due to some use of
@requiresin an@interfaceObjecttype, or when some subgraphSdefines a type that is animplementation of an interface
Iin the supergraph, and there is an@interfaceObjectforIin another subgraph,but
Sdoes not itself definesI.Fix handling of aliases and variables in introspection queries. (
ef5c8170)Fix potential bug when an
@interfaceObjecttype has a@requires. When an@interfaceObjecttype has a field with a (2894a1ea)@requiresand the query requests that field only for some specific implementations of the corresponding interface,then the generated query plan was sometimes invalid and could result in an invalid query to a subgraph (against a
subgraph that rely on
@apollo/subgraph, this lead the subgraph to produce an error message looking like"The _entities resolver tried to load an entity for type X, but no object or interface type of that name was found in the schema").Updated dependencies [
98844fd5,11f2d7c0,c0412fd9,2894a1ea,ce0459a6]:v2.3.5Compare Source
Patch Changes
09382e74]:v2.3.4Compare Source
Patch Changes
Handle defaulted variables correctly during post-processing. (#2443)
Users who tried to use built-in conditional directives (skip/include) with defaulted variables and no variable provided would encounter an error thrown by operation post-processing saying that the variables weren't provided. The defaulted values went unaccounted for, so the operation would validate but then fail an assertion while resolving the conditional.
With this change, defaulted variable values are now collected and provided to post-processing (with defaults being overwritten by variables that are actually provided).
Updated dependencies [
6e2d24b5]:v2.3.3Compare Source
Patch Changes
Update @apollo/utils.logger typings dependency (#2269)
Exposes, for each subgraph request, the path in the overall gateway operation at which that subgraph request gets inserted. This path is now available as the pathInIncomingRequest field in the arguments of RemoteGraphQLDataSource.willSendRequest and RemoteGraphQLDataSource.didReceiveResponse. (#2384)
Previously the
queryPlanStoreKeywas a hash of the query concatenated with an unhashedoperationNameif it was present. This resulted in variable length cache keys that could become unnecessarily long, occupying additional space in the query plan cache. (#2310)This change incorporates the
operationNameinto the hash itself (ifoperationNameis present).Update @apollo/utils.createhash package, which drops support for node 12 (#2266)
Update @apollo/utils.isnodelike package, which dropped support for node 12 (#2268)
Update @apollo/utils.fetcher package, which drops support for node 12 (#2267)
Updated dependencies [
71a07f30]:v2.3.2Compare Source
Patch Changes
Move gateway post-processing errors from
errorsintoextensions.valueCompletionof the response (#2380)[https://github.com/apollographql/federation/pull/2335](https://togithub.com/apollographql/federation/pull/2335)5]\(PR #2335) introduced a breaking change that broke existing usages with respect to nullability and gateway error handling. In response to [https://github.com/apollographql/federation/issues/2374](https://togithub.com/apollographql/federation/issues/2374)4]\(Issue #2374), we are reverting the breaking portion of this change by continuing to swallow post processing errors as the gateway did prior to v2.3.0. Instead, those errors will now be included on the
extensions.valueCompletionobject in the response object.Gateway v2.3.0 and v2.3.1 are both affected by this change in behavior.
Updated dependencies []:
v2.3.1Compare Source
Patch Changes
Capture non-ftv1 error information in metrics data. This (#2242)
error information allows the inline trace plugin to correctly
aggregate stats about errors (where no federated trace data
is available) and stop reporting incomplete traces which
are missing unavailable error information.
This PR is a precursor to apollographql/apollo-server#7136
Fix issue where the query planner was incorrectly not querying
__typenamein a subgraph fetch when@interfaceObjectis involved (#2366)Updated dependencies [[
7e2ca46f](https://togithub.com/apollographql/federatiConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.