Update Apollo GraphQL packages (major) - abandoned #161
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.29.0->^2.0.0^2.25.3->^3.0.0^2.6.3->^3.0.0Release Notes
apollographql/federation
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.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,eb5a8bc0]:This CHANGELOG pertains only to Apollo Federation packages in the 2.x range. The Federation v0.x equivalent for this package can be found here on the
version-0.xbranch of this repo.v2.3.0Compare Source
@shareablefield when@externalis on a type in a fed1 schema (one without@link) PR #2343.@interfaceObjectqueries due to missing "input rewrites" PR #2346.v2.2.3Compare Source
v2.2.2Compare Source
v2.2.1Compare Source
v2.2.0Compare Source
default), but users that have custom code making use of
GraphQLDataSourceProcessOptions.documentwill now need to explicitly set
GatewayConfig.queryPlannerConfig.exposeDocumentNodeInFetchNode.@shareableon interface fields. The@shareabledirective is aboutcontrolling if multiple subgraphs can resolve a particular field, and as interface field are never directly resolved
(it's their implementation that are), having
@shareableon interface fields is not completely meaningful andwas never meant to be supported. If an existing subgraph does have a
@shareableon an interface field, thiswill now be rejected, but the
@shareablecan simply and safely be removed since it previously was ignored.@shareableto be repeatable so it can be allowed on both a type definition and its extensions PR #2175.__PR #2237.v2.1.4Compare Source
@defer/@streamdefinitions of supergraph are not included in the API schema PR #2212.@overridePR #2181.v2.1.3Compare Source
v2.1.2Compare Source
@requiresPR #2120.__typenamePR #2137.v2.1.1Compare Source
v2.1.0Compare Source
RemoteGraphQLDataSource.errorFromResponsenow returns aGraphQLError(as defined bygraphql) rather than anApolloError(as defined byapollo-server-errors). PR #2028RemoteGraphQLDataSource.errorFromResponsemanually and expect its return value to be a particular subclass ofGraphQLError, or if you expect the error received bydidEncounterErrorto be a particular subclass ofGraphQLError, then this change may affect you. We recommend checkingerror.extensions.codeinstead.LocalGraphQLDataSourceclass no longer supports the undocumented__resolveObjectApollo Server feature. PR #2007__resolveObjectfeature withLocalGraphQLDataSource, it will no longer work. If this affects you, file an issue and we can help you find a workaround.@require#1873.executeQueryPlanmethod, which is technicallyexported by the gateway. Most users of the gateway should not call this method directly (which is exported mainly
for testing purposes in the first place) and will thus be unaffected, but if you do call this method directly, you
will have to pass the new argument when upgrading. See the method documentation for details.
fieldsof@key,@providesand@requiresPR #1975.@key,@providesor@requireswere parsed butnot honored in any way. As this change reject such applications (at composition time), it could theoretically
require to remove some existing (ignored) directive applications within a
@key,@providesor@requires.@defer) PR #2093.@requirefetch were not previously fetched PR #2075.graphqlto^16.5.0to useGraphQLErrorOptionsPR #2060@apollo/utils.fetcherto support aborting a request. This is a type-only change, and will not impact the underlying runtime. PR #2017.GraphQLDataSource.process, are defined using types from the@apollo/server-gateway-interfacepackage instead of fromapollo-server-typesandapollo-server-core. This is intended to be fully backwards-compatible; please file an issue if this leads to TypeScript compilation issues. PR #2044@linkwhen using@composeDirectivePR #2046@composeDirectivedirective to specify directives that should be merged to the supergraph during composition PR #1996.fetchers should now accept aRequestobject which has asignal: AbortSignalproperty https://fetch.spec.whatwg.org/#requestinit for request timeout purposes. PR #2017DEFAULT_UPLINK_ENDPOINTSto static member ofUplinkSupergraphManagerPR #1977.node-fetchas a runtime dependency PR #1970.v2.0.5Compare Source
v2.0.4Compare Source
extend schemaPR #1875.v2.0.3Compare Source
printSubgraphSchemamethod, ensuring it can be read back by composition andbuildSubgraphSchemaPR #1831.@requiresand conditional queries (@include/@skip) 1835.v2.0.2Compare Source
getDefaultFetcherfunction. This function returned the defaultfetchimplementation used to talk to Uplink (which is distinct from the defaultfetchimplementation used byRemoteGraphQLDataSourceto talk to subgraphs). It was the fetcher frommake-fetch-happenv8 with some preset configuration relating to caching and request headers. However, the caching configuration was not actually being used when talking to Uplink (as we talk to Uplink over POST requests, and the Uplink protocol has an application-level mechanism for avoiding unnecessary large responses), and the request headers were already being provided explicitly by the Uplink client code. Since this release is also upgradingmake-fetch-happen, it is impossible to promise that there would be no behavior change at all to the fetcher returned frommake-fetch-happen, and as none of the preset configuration is actually relevant to the internal use ofgetDefaultFetcher(which now just usesmake-fetch-happenswithout extra configuration), we have removed the function. If you were using this function, you can replaceconst fetcher = getDefaultFetcher()withimport fetcher from 'make-fetch-happen'. PR #1805fetchimplementation used by default byUplinkFetcherandRemoteGraphQLDataSourceis now imported frommake-fetch-happenv10 instead of v8. The fetcher used byRemoteGraphQLDataSourceno longer limits the number of simultaneous requests per subgraph (or specifically, per host/port pair) to 15 by default; instead, there is no limit. (If you want to restore the previous behavior, installmake-fetch-happen, importfetcherfrom it, and passnew RemoteGraphQLDataSource({ fetcher: fetcher.defaults(maxSockets: 15)}))in yourbuildServiceoption.) Note that if you invoke thefetcheryourself in aRemoteGraphQLDataSourcesubclass, you should ensure that you pass "plain" objects rather thanHeadersorRequestobjects, as the newer version has slightly different logic about how to recognizeHeadersandRequestobjects. We have adjusted the TypeScript types forfetcherso that only these "plain" objects (which result in consistent behavior across all fetcher implementations) are permitted. PR #1805Schema.clonewhen directive application happens before definition PR #1785@requireimpacts the plans of followup queries PR #1783.@requirehandling in query planning PR #1732__resolveReferenceresolvers on toextensionsPR #1746@apollo/utilspackages forcreateSHAandisNodeLikePR #1765v2.0.1Compare Source
for: SECURITYin the core/link directive application in the supergraph for@inaccessiblePR #1715v2.0.0Compare Source
v0.54.1Compare Source
v0.52.1Compare Source
v0.52.0Compare Source
v0.51.0Compare Source
v0.50.2Compare Source
v0.50.1Compare Source
v0.50.0Compare Source
v0.49.0Compare Source
v0.48.3Compare Source
v0.48.1Compare Source
v0.48.0Compare Source
v0.47.0Compare Source
v0.46.0Compare Source
v0.45.1Compare Source
v0.45.0Compare Source
v0.44.1Compare Source
v0.44.0Compare Source
v0.43.1Compare Source
v0.43.0Compare Source
v0.42.3Compare Source
v0.42.2Compare Source
v0.42.1Compare Source
v0.42.0Compare Source
v0.41.0Compare Source
v0.40.0Compare Source
v0.39.0Compare Source
v0.38.2Compare Source
v0.38.1Compare Source
v0.38.0Compare Source
v0.37.0Compare Source
v0.36.0Compare Source
v0.35.1Compare Source
v0.35.0Compare Source
v0.34.0Compare Source
v0.33.0Compare Source
v0.32.0Compare Source
v0.31.1Compare Source
v0.31.0Compare Source
v0.30.0Compare Source
v0.29.1Compare Source
apollographql/apollo-server
v3.12.0Compare Source
v3.11.1Compare Source
v3.11.0Compare Source
v3.10.4Compare Source
v3.10.3Compare Source
v3.10.2Compare Source
v3.10.1Compare Source
v3.10.0Compare Source
v3.9.0Compare Source
v3.8.2Compare Source
v3.8.1Compare Source
v3.8.0Compare Source
v3.7.0Compare Source
v3.6.8Compare Source
v3.6.7Compare Source
v3.6.6Compare Source
v3.6.5Compare Source
v3.6.4Compare Source
v3.6.3Compare Source
v3.6.2Compare Source
v3.6.1Compare Source
v3.6.0Compare Source
v3.5.0Compare Source
v3.4.1Compare Source
v3.4.0Compare Source
v3.3.0Compare Source
v3.2.0Compare Source
v3.1.2Compare Source
v3.1.1Compare Source
v3.1.0Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
v3.0.0Compare Source
v2.26.1Compare Source
v2.26.0Compare Source
v2.25.4Compare Source
Configuration
📅 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.