Skip to content

Latest commit

History

History
65 lines (36 loc) 路 4.67 KB

File metadata and controls

65 lines (36 loc) 路 4.67 KB

@apollo/server-plugin-response-cache

4.0.0-alpha.5

Patch Changes

  • #6827 0c2909aa1 Thanks @glasser! - Experimental support for incremental delivery (@defer/@stream) when combined with a prerelease of graphql-js.

  • Updated dependencies [0c2909aa1, 0c2909aa1]:

    • @apollo/server@4.0.0-alpha.12

4.0.0-alpha.4

Patch Changes

  • #6814 cf0fcf49a Thanks @glasser! - Several changes relating to plugins:

    • Remove the server field on GraphQLRequestContext and GraphQLServerContext (ie, the arguments to most plugin hook methods). This was added during AS4 development and did not exist in AS3.

    • Add logger and cache fields to GraphQLRequestContext and GraphQLServerContext. The logger fields and GraphQLRequestContext.cache existed in AS3 and had been previously removed for redundancy with the server 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 about contextValue to simply implement ApolloServerPlugin and it will work with any ApolloServer<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 the ApolloServer 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 the ApolloServer itself when creating the plugin) can be handled with the new-in-AS4 ApolloServer.addPlugin method.

  • Updated dependencies [cf0fcf49a]:

    • @apollo/server@4.0.0-alpha.6

4.0.0-alpha.3

Patch Changes

  • #6806 bccc230f0 Thanks @glasser! - Rename response.http.statusCode back to status like it was in AS3.

  • Updated dependencies [bccc230f0]:

    • @apollo/server@4.0.0-alpha.5

4.0.0-alpha.2

Patch Changes

4.0.0-alpha.1

Patch Changes

  • #6357 7c3c825d8 Thanks @trevor-scheer! - Export ApolloServerErrorCode enum instead of error classes. HTTPGraphQLRequest takes search params as raw string.

  • Updated dependencies [7c3c825d8]:

    • @apollo/server@4.0.0-alpha.1

4.0.0-alpha.0

Major Changes

Patch Changes

  • Updated dependencies [f39d9eec7]:
    • @apollo/server@4.0.0-alpha.0