Releases: apollographql/apollo-server
@apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6841
3320fee92Thanks @glasser! - Upgrade @apollo/server-gateway-interface to have laxer definition of overallCachePolicy. -
#6731
9fc23f799Thanks @trevor-scheer! - Use extensions for all imports to accommodate TS users using moduleResolution: "nodenext" -
#6846
2cab8f785Thanks @trevor-scheer! - Ensure executionDidEnd hooks are only called once (when they throw)
@apollo/[email protected]
Patch Changes
- Updated dependencies [
3320fee92,9fc23f799,2cab8f785]:- @apollo/[email protected]
@apollo/[email protected]
@apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6817
eca003fdcThanks @glasser! - Move ApolloServerPluginGraphQLPlayground into its own package. -
Updated dependencies [
eca003fdc]:- @apollo/[email protected]
- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6814
cf0fcf49aThanks @glasser! - Several changes relating to plugins:-
Remove the
serverfield onGraphQLRequestContextandGraphQLServerContext(ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3. -
Add
loggerandcachefields toGraphQLRequestContextandGraphQLServerContext. Theloggerfields andGraphQLRequestContext.cacheexisted in AS3 and had been previously removed for redundancy with theserverfield. (Unlike in AS3,loggeris readonly.) -
ApolloServerPluginis 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 aboutcontextValueto simply implementApolloServerPluginand 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
pluginslist in theApolloServerconstructor. (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 theApolloServeritself when creating the plugin) can be handled with the new-in-AS4ApolloServer.addPluginmethod.
-
@apollo/[email protected]
Patch Changes
-
#6814
cf0fcf49aThanks @glasser! - Several changes relating to plugins:-
Remove the
serverfield onGraphQLRequestContextandGraphQLServerContext(ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3. -
Add
loggerandcachefields toGraphQLRequestContextandGraphQLServerContext. Theloggerfields andGraphQLRequestContext.cacheexisted in AS3 and had been previously removed for redundancy with theserverfield. (Unlike in AS3,loggeris readonly.) -
ApolloServerPluginis 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 aboutcontextValueto simply implementApolloServerPluginand 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
pluginslist in theApolloServerconstructor. (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 theApolloServeritself when creating the plugin) can be handled with the new-in-AS4ApolloServer.addPluginmethod.
-
-
Updated dependencies [
cf0fcf49a]:- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#6814
cf0fcf49aThanks @glasser! - Several changes relating to plugins:-
Remove the
serverfield onGraphQLRequestContextandGraphQLServerContext(ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3. -
Add
loggerandcachefields toGraphQLRequestContextandGraphQLServerContext. Theloggerfields andGraphQLRequestContext.cacheexisted in AS3 and had been previously removed for redundancy with theserverfield. (Unlike in AS3,loggeris readonly.) -
ApolloServerPluginis 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 aboutcontextValueto simply implementApolloServerPluginand 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
pluginslist in theApolloServerconstructor. (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 theApolloServeritself when creating the plugin) can be handled with the new-in-AS4ApolloServer.addPluginmethod.
-
-
Updated dependencies [
cf0fcf49a]:- @apollo/[email protected]