apollo-server-plugin-base
Advanced tools
Comparing version 3.2.0-alpha.0 to 3.2.0
@@ -9,5 +9,5 @@ import { AnyFunctionMap, BaseContext, GraphQLServiceContext, GraphQLRequestContext, GraphQLRequest, GraphQLResponse, WithRequired, GraphQLFieldResolverParams, GraphQLRequestContextDidResolveSource, GraphQLRequestContextParsingDidStart, GraphQLRequestContextValidationDidStart, GraphQLRequestContextDidResolveOperation, GraphQLRequestContextDidEncounterErrors, GraphQLRequestContextResponseForOperation, GraphQLRequestContextExecutionDidStart, GraphQLRequestContextWillSendResponse, GraphQLSchemaContext } from 'apollo-server-types'; | ||
schemaDidLoadOrUpdate?(schemaContext: GraphQLSchemaContext): void; | ||
drainServer?(): Promise<void>; | ||
serverWillStop?(): Promise<void>; | ||
renderLandingPage?(): Promise<LandingPage>; | ||
drainServer?(): Promise<void>; | ||
} | ||
@@ -14,0 +14,0 @@ export interface LandingPage { |
{ | ||
"name": "apollo-server-plugin-base", | ||
"version": "3.2.0-alpha.0", | ||
"version": "3.2.0", | ||
"description": "Apollo Server plugin base classes", | ||
@@ -14,3 +14,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"apollo-server-types": "^3.2.0-alpha.0" | ||
"apollo-server-types": "^3.2.0" | ||
}, | ||
@@ -20,3 +20,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "211cd84ce3d2c9be90248e6a69c8c26bf8d1cc17" | ||
"gitHead": "4dc19131aaea2416b5b2ccab295b06272f94c996" | ||
} |
@@ -63,2 +63,15 @@ import { | ||
// When your server is stopped (by calling `stop()` or via the | ||
// `SIGINT`/`SIGTERM` handlers), Apollo Server first awaits all `drainServer` | ||
// hooks in parallel. GraphQL operations can still execute while `drainServer` | ||
// is in progress. A typical use is to stop listening for new connections and | ||
// wait until all current connections are idle. The built-in | ||
// ApolloServerPluginDrainHttpServer implements this method. | ||
drainServer?(): Promise<void>; | ||
// When your server is stopped (by calling `stop()` or via the | ||
// `SIGINT`/`SIGTERM` handlers) then (after the `drainServer` phase finishes) | ||
// Apollo Server transitions into a state where no new operations will run and | ||
// then awaits all `drainServer` hooks in parallel. A typical use is to flush | ||
// outstanding observability data. | ||
serverWillStop?(): Promise<void>; | ||
@@ -73,5 +86,2 @@ | ||
renderLandingPage?(): Promise<LandingPage>; | ||
// FIXME docs | ||
drainServer?(): Promise<void>; | ||
} | ||
@@ -78,0 +88,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14010
179
1
Updatedapollo-server-types@^3.2.0