fix(deps): update apollo graphql packages #19
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.3.1->0.4.42.5.0->2.9.42.5.6->2.5.8Release Notes
apollographql/apollo-client
v0.4.4Compare Source
v0.4.3Compare Source
v0.4.2Compare Source
v0.4.1Compare Source
v0.4.0Compare Source
apollographql/apollo-server
v2.9.4Compare Source
v2.9.3Compare Source
apollo-server-express: Add direct dependency onexpressto allow for usage ofexpress.RouterforgetMiddlewarefunctionality (from #2435). Previously, unlike other server integration packages,apollo-server-expressdid not directly needexpressas a dependency since it only relied onexpressfor TypeScript typings. Issue #3238 PR #3239apollo-server-lambda: Add@types/aws-lambdaas a direct dependency toapollo-server-expressto allow usage of its typings without needing to separately install it. Issue #2351 PR #3242v2.9.2Compare Source
apollo-server-koa: Drop support for Node.js v6 within the Apollo Server Koa integration in order to updatekoa-bodyparserdependency fromv3.0.0tov4.2.1. PR #TODO Issue #3050 PR #3229apollo-server-express: Use explicit return type for newgetMiddlewaremethod, in an effort to resolve Issue #3222 PR #3230v2.9.1Compare Source
apollo-server-core: MakeformatErroravailable to subscriptions in the same spirit as the existingformatResponse. PR #2942apollo-engine-reporting: The behavior of theengine.maxAttemptsparameter previously did not match its documentation. It is documented as being the max number of attempts including the initial attempt, but until this release it was actually the number of retries excluding the initial attempt. The behavior has been changed to match the documentation (and the literal reading of the option name). PR #3218apollo-engine-reporting: When sending the report fails with a server-side 5xx error, include the full error from the server in the logs. PR #3218apollo-server-core: Fix regression which prevented the resizing of the schema panel in GraphQL Playground. PR #3224 and upstreamv2.9.0Compare Source
apollo-server-express,apollo-server-koa: A newgetMiddlewaremethod has been introduced, which accepts the same parameters asapplyMiddlewarewith the exception of theappproperty. This allows implementors to obtain the middleware directly and "use" it within an existingapp. In the near-term, this should ease some of the pain points with the previous technique. Longer-term, we are exploring what we consider to be a much more natural approach by introducing an "HTTP transport" in Apollo Server 3.x. See this proposal issue for more information. PR #2435@apollo/federation:buildFederatedSchema'stypeDefsparameter now accepts arrays ofDocumentNodes (i.e. type definitions wrapped ingql) andresolversto make the migration from a single service into a federated service easier for teams previously utilizing this pattern. PR #3188v2.8.2Compare Source
apollo-server-koa: Update dependency koa to v2.8.1. PR #3175apollo-server-express: Update types exported by the ASE package. PR #3173 PR #3172v2.8.1Compare Source
apollo-engine-reporting: Fix reporting errors which have non-arraypathfields (eg, non-GraphQLError errors). PR #3112apollo-engine-reporting: Add missingapollo-server-cachingdependency. PR #3054apollo-server-hapi: Revert switch fromacceptandboomwhich took place in v2.8.0. PR #3089@apollo/gateway: Change thesetIntervaltimer, which is used to continuously check for updates to a federated graph from the Apollo Graph Manager, to be anunref'd timer. Without this change, the server wouldn't terminate properly once polling had started since the event-loop would continue to have unprocessed events on it. PR #3105@types/graphql-uploadtypes.apollo-server-fastify: Change the typing of the HTTPresponsefromOutgoingMessagetoServerResponse. Commitapollo-server-hapi: Pass therawrequest and response objects tographql-uploadsprocessRequestmethod to align on the same TypeScript types. Commitv2.8.0Compare Source
@apollo/federation: Add support for "value types", which are type definitions which live on multiple services' types, inputs, unions or interfaces. These common types must be identical by name, kind and field across all services. PR #3063apollo-server-express: Use the Expresssendmethod, rather than callingnet.Socket.prototype.end. PR #2842apollo-server-hapi: Update internal dependencies to use scoped packages@hapi/acceptand@hapi/boom, in place ofacceptandboomrespectively. PR #3089v2.7.2Compare Source
apollo-engine-reporting: Fix reporting errors from backend. (The support for federated metrics introduced in v2.7.0 did not properly handle GraphQL errors from the backend; all users of federated metrics should upgrade to this version.) PR #3056 Issue #3052apollo-engine-reporting: Clean upSIGINTandSIGTERMhandlers whenEngineReportingAgentis stopped; fixes 'Possible EventEmitter memory leak detected' log. PR #3090v2.7.1Compare Source
apollo-engine-reporting: If an error is thrown by a custom variable transform function passed into the reporting optionsendVariableValues: { transform: ... }, all variable values will be replaced with the string[PREDICATE_FUNCTION_ERROR].apollo-server-express: Typing fix for theconnectionproperty, which was missing from theExpressContextinterface. PR #2959@apollo/gateway: Ensure execution of correct document within multi-operation documents by including theoperationNamein the cache key used when caching query plans used in federated execution. PR #3084v2.7.0Compare Source
apollo-engine-reporting: Behavior change: By default, send no GraphQL variable values to Apollo's servers instead of sending all variable values. Adding the new EngineReportingOptionsendVariableValuesto send some or all variable values, possibly after transforming them. This replaces theprivateVariablesoption, which is now deprecated. PR #2931To maintain the previous behavior of transmitting all GraphQL variable values, unfiltered, to Apollo Engine, configure
engine.sendVariableValuesas follows:apollo-engine-reporting: Behavior change: By default, send no GraphQL request headers and values to Apollo's servers instead of sending all. Adding the new EngineReportingOptionsendHeadersto send some or all header values. This replaces theprivateHeadersoption, which is now deprecated. PR #2931To maintain the previous behavior of transmitting all GraphQL request headers and values, configure
engine.sendHeadersas following:apollo-engine-reporting: Behavior change: If the error returned from theengine.rewriteErrorhook has anextensionsproperty, that property will be used instead of the original error's extensions. Document that changes to most otherGraphQLErrorfields byengine.rewriteErrorare ignored. PR #2932apollo-engine-reporting: Behavior change: Theengine.maskErrorDetailsoption, deprecated byengine.rewriteErrorin v2.5.0, now behaves a bit more like the new option: while all error messages will be redacted, they will still show up on the appropriate nodes in a trace. PR #2932apollo-server-core,@apollo/gateway: Introduced managed federation support. For more information on managed federation, see the blog post or jump to the documentation for managed federation.@apollo/gateway@0.7.1: Don't print a warning about an unspecified "graph variant" (previously, and in many ways still, known as "schema tag") every few seconds. We do highly recommend specifying one when using the Apollo Platform features though! PR #3043graphql-playground: Update to resolve incorrect background color on tabs when using thelighttheme. PR #2989 Issue #2979graphql-playground: Fix "Query Planner" and "Tracing" panels which were off the edge of the viewport.apollo-server-plugin-base: FixGraphQLRequestListenertype definitions to allowreturn void. PR #2368v2.6.9Compare Source
v2.6.8Compare Source
v2.6.7Compare Source
apollo-server-core: Guard against undefined property access inisDirectiveDefinedwhich resulted in "Cannot read property 'some' of undefined" error. PR #2924 Issue #2921v2.6.6Compare Source
apollo-server-core: Avoid duplicatecacheControldirectives being added viaisDirectiveDefined, re-landing the implementation reverted in v2.6.1 which first surfaced in v2.6.0. PR #2762 Reversion PR #2754 Original PR #2428apollo-server-testing: Add TypeScript types forapollo-server-testingclient. PR #2871apollo-server-plugin-response-cache: Fix undefined property access attempt which occurred when an incomplete operation was received. PR #2792 Issue #2745v2.6.5Compare Source
apollo-engine-reporting: Simplify the technique for capturingoperationName. PR #2899apollo-server-core: Fix regression in 2.6.0 which causedengine: falsenot to disable Engine when theENGINE_API_KEYenvironment variable was set. PR #2850@apollo/federation: Introduced aREADME.md. PR #2883@apollo/gateway: Introduced aREADME.md. PR #2883v2.6.4Compare Source
@apollo/gateway: Passcontextthrough to thegraphqlcommand inLocalGraphQLDataSource'sprocessmethod. PR #2821@apollo/gateway: Fix gateway not sending needed variables for subqueries not at the root level. PR #2867@apollo/federation: Allow matching enums/scalars in separate services and validate that enums have matching values. PR #2829.@apollo/federation: Strip@externalfields from interface extensions. PR #2848@apollo/federation: Add support for list type keys in federation. PR #2841@apollo/federation: Deduplicate variable definitions for sub-queries. PR #2840v2.6.3Compare Source
apollo-engine-reporting: SetforbiddenOperationandregisteredOperationlater in the request lifecycle. PR #2828apollo-server-core: AddqueryHashtoGraphQLExecutorfor federation. PR #2822@apollo/federation: Preserve descriptions from SDL of federated services. PR #2830v2.6.2Compare Source
apollo-engine-reporting-protobuf: Update protobuf to includeforbiddenOperationsandregisteredOperations. PR #2768apollo-server-core: AddforbiddenOperationandregisteredOperationtoGraphQLRequestMetricstype. PR #2768apollo-engine-reporting: SetforbiddenOperationandregisteredOperationon trace if the field is true onrequestContext.metrics. PR #2768apollo-server-lambda: RemoveObject.fromEntriesusage. PR #2787v2.6.1Compare Source
cacheControldirective if one has already been defined. Presently, although the TypeScript don't suggest it, passing aStringastypeDefstoApolloServeris supported and this would be a breaking change for non-TypeScript users. PR #2428v2.6.0Compare Source
apollo-server-core: Introduce newdidEncounterErrorslife-cycle hook which has access to unformattederrorsproperty on therequestContext, which is the first positional parameter that this new request life-cycle receives. PR #2719apollo-server-core: Allow request pipeline life-cycle hooks (i.e. plugins) to modify the response'shttp.statuscode (an integer) in the event of an error. When combined with the newdidEncounterErrorslife-cycle hook (see above), this will allow modifying the HTTP status code in the event of an error. PR #2714apollo-server-lambda: SetcallbackWaitsForEmptyEventLooptofalseforOPTIONSrequests to return as soon as thecallbackis triggered instead of waiting for the event loop to empty. PR #2638apollo-server: SupportonHealthCheckin theApolloServerconstructor in the same way ascorsis supported. This contrasts with the-express,-hapi, etc. variations which accept this parameter via theirapplyMiddlewaremethods and will remain as-is. PR #2672engine.apiKeyHash. PR #2685 PR #2736apollo-datasource-rest: If anotherContent-typeis already set on the response, don't overwrite it withapplication/json, allowing the user's initialContent-typeto prevail. PR #2520cacheControldirective if one has already been defined. PR #2428apollo-cache-control: Do not respond withCache-controlheaders if the HTTP response containserrors. PR #2715apollo-server-core: Skip loadingutil.promisifypolyfill in Node.js engines >= 8.0 PR #2278apollo-server-core: Lazy loadsubscriptions-transport-wsin core PR #2278apollo-server-cache-redis: BREAKING FOR USERS OFapollo-server-cache-redis(This is a package that must be updated separately but shares the sameCHANGELOG.mdwith Apollo Server itself.) A new major version of this package has been published and updated to support Redis Standalone, Cluster and Sentinel modes. This is a breaking change since it is now based onioredisinstead ofnode_redis. Although this update is compatible with the most common uses ofapollo-server-cache-redis, please check the options supported byiorediswhile updating to this version. The constructor options are passed directly fromRedisCacheto the new Redis adapter. The pre-1.0 versions should continue to work with Apollo Server without modification. PR #1770v2.5.1Compare Source
apollographql/react-apollo
v2.5.8Compare Source
2.5.8 (2019-06-21)
Bug Fixes
apollo-client2.6.3'sObservableQuery.resetQueryStoreErrorsmethod optional, for people who can't update to
react-apollo's newapollo-clientpeer dep of 2.6.3.@hwillson in #3151
v2.5.7Compare Source
Improvements
MockedProvideris using the proper CJS/ESM bundle, whenreferencing
ApolloProvider.@jure in #3029.
ApolloContextdefinition to play a bit more nicely withReact.createContexttypes.@JoviDeCroock in #3018
when using the
graphqlHOC.@andycarrell in #3008
MockLinkto improvedebugging experience used by
MockedProvider.@evans in #3078
Bug Fixes
apollo-client@betapeer dep.@brentertz in #3064
null, when using thegraphqlHOC.@ZhengYuTay in #3056
querybeing mandatory in thefetchMoresignature.@HsuTing in #3065
Querycomponent to get stuck in an alwaysloading state, caused by receiving an error (meaning subsequent valid
responses couldn't be handled). The
Querycomponent can now handle anerror in a response, then continue to handle a valid response afterwards.
@hwillson in #3107
Subscriptioncomponent code to avoid setting state on unmountedcomponent.
@jasonpaulos in #3139
loadingstate fornetwork-onlyfetch policy.@jasonpaulos in #3126
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!".👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot. View repository job log here.