Releases: apollographql/apollo-server
@apollo/[email protected]
@apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6817
eca003fdc
Thanks @glasser! - Move ApolloServerPluginGraphQLPlayground into its own package. -
Updated dependencies [
eca003fdc
]:- @apollo/[email protected]
- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6814
cf0fcf49a
Thanks @glasser! - Several changes relating to plugins:-
Remove the
server
field onGraphQLRequestContext
andGraphQLServerContext
(ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3. -
Add
logger
andcache
fields toGraphQLRequestContext
andGraphQLServerContext
. Thelogger
fields andGraphQLRequestContext.cache
existed in AS3 and had been previously removed for redundancy with theserver
field. (Unlike in AS3,logger
is readonly.) -
ApolloServerPlugin
is now declared as<in TContext extends BaseContext = BaseContext>
rather than<in out TContext>
. This means that you can declare a plugin that doesn't care aboutcontextValue
to simply implementApolloServerPlugin
and it will work with anyApolloServer<NoMatterWhatContext>
. This should make it easy to write plugins that don't care about context. -
Remove the ability to specify a factory function as an element of the
plugins
list in theApolloServer
constructor. (Reducing the number of ways to specify constructor options helps keep type errors simpler.) As far as we know the main use case for this (referring to theApolloServer
itself when creating the plugin) can be handled with the new-in-AS4ApolloServer.addPlugin
method.
-
@apollo/[email protected]
Patch Changes
-
#6814
cf0fcf49a
Thanks @glasser! - Several changes relating to plugins:-
Remove the
server
field onGraphQLRequestContext
andGraphQLServerContext
(ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3. -
Add
logger
andcache
fields toGraphQLRequestContext
andGraphQLServerContext
. Thelogger
fields andGraphQLRequestContext.cache
existed in AS3 and had been previously removed for redundancy with theserver
field. (Unlike in AS3,logger
is readonly.) -
ApolloServerPlugin
is now declared as<in TContext extends BaseContext = BaseContext>
rather than<in out TContext>
. This means that you can declare a plugin that doesn't care aboutcontextValue
to simply implementApolloServerPlugin
and it will work with anyApolloServer<NoMatterWhatContext>
. This should make it easy to write plugins that don't care about context. -
Remove the ability to specify a factory function as an element of the
plugins
list in theApolloServer
constructor. (Reducing the number of ways to specify constructor options helps keep type errors simpler.) As far as we know the main use case for this (referring to theApolloServer
itself when creating the plugin) can be handled with the new-in-AS4ApolloServer.addPlugin
method.
-
-
Updated dependencies [
cf0fcf49a
]:- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6814
cf0fcf49a
Thanks @glasser! - Several changes relating to plugins:-
Remove the
server
field onGraphQLRequestContext
andGraphQLServerContext
(ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3. -
Add
logger
andcache
fields toGraphQLRequestContext
andGraphQLServerContext
. Thelogger
fields andGraphQLRequestContext.cache
existed in AS3 and had been previously removed for redundancy with theserver
field. (Unlike in AS3,logger
is readonly.) -
ApolloServerPlugin
is now declared as<in TContext extends BaseContext = BaseContext>
rather than<in out TContext>
. This means that you can declare a plugin that doesn't care aboutcontextValue
to simply implementApolloServerPlugin
and it will work with anyApolloServer<NoMatterWhatContext>
. This should make it easy to write plugins that don't care about context. -
Remove the ability to specify a factory function as an element of the
plugins
list in theApolloServer
constructor. (Reducing the number of ways to specify constructor options helps keep type errors simpler.) As far as we know the main use case for this (referring to theApolloServer
itself when creating the plugin) can be handled with the new-in-AS4ApolloServer.addPlugin
method.
-
-
Updated dependencies [
cf0fcf49a
]:- @apollo/[email protected]
@apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6806
bccc230f0
Thanks @glasser! - Rename response.http.statusCode back to status like it was in AS3. -
Updated dependencies [
bccc230f0
]:- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6806
bccc230f0
Thanks @glasser! - Rename response.http.statusCode back to status like it was in AS3. -
Updated dependencies [
bccc230f0
]:- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6788
13f809ca6
Thanks @glasser! -parseOptions
is now only used for parsing operations, not for schemas too. Its TS type now only includes options recognized bygraphql-js
itself. -
#6785
96178c570
Thanks @renovate! - Update internal use of@graphql-tools/schema
from v8 to v9. This should be a no-op; we have already removed the feature that would have been affected by the API change in this upgrade (passingparseOptions
tomakeExecutableSchema
). -
#6792
400f7867b
Thanks @glasser! - Port GHSA-2fvv-qxrq-7jq6 fix from v3 (remove XSS from default landing page HTML) -
#6794
7445d3377
Thanks @glasser! - Usage reporting and inline trace plugins: replacerewriteError
withsendErrorsInTraces
/includeErrors
, and mask all errors by default.