Releases: apollo-server-integrations/apollo-server-integration-koa
Releases · apollo-server-integrations/apollo-server-integration-koa
v1.1.1
v1.1.0
Minor Changes
-
#130
c504479
Thanks @ryota-ka! - Parameterize the returned Middleware type so that this library can be used along with a context-parameterized Koa app.In order to utilize this feature, provide your Koa app's
State
andContext
types as type arguments to thekoaMiddleware
function.If you use a
context
function (for Apollo Server), theState
andContext
types are positions 1 and 2 like so:type KoaState = { state: object }; type KoaContext = { context: object }; koaMiddleware<GraphQLContext, KoaState, KoaContext>( new ApolloServer<GraphQLContext>(), //... { context: async ({ ctx }) => ({ graphqlContext: {} }), }, );
If you don't use a
context
function, theState
andContext
types are positions 0 and 1 like so:type KoaState = { state: object }; type KoaContext = { context: object }; koaMiddleware<KoaState, KoaContext>( new ApolloServer<GraphQLContext>(), //... );
v1.0.0
Major Changes
-
#117
4567c98
Thanks @trevor-scheer! - Drop support for Node.js 14, require v16+The only change required for users to take this update is to upgrade their Node.js version to v16+. No other breaking changes.
v0.3.0
Minor Changes
- #85
bb28b66
Thanks @laverdet! - Implement support for the @defer directive. In order to use this feature, you must be using an appropriate version ofgraphql
. At the time of writing this, @defer is only available in v17 alpha versions of thegraphql
package, which is currently not officially supported. Due to peer dependencies, you must install graphql like so in order to force v17:
npm i graphql@alpha --legacy-peer-deps
v0.2.1
Patch Changes
- #43
997b160
Thanks @trevor-scheer! - Remove effectful install
v0.2.0
v0.1.0
Minor Changes
- #19
61106d1
Thanks @matthew-gordon! - Update Apollo Server dependencies, add explicit non-support for incremental delivery for now"
v0.0.12
Patch Changes
- #17
0aef5c3
Thanks @matthew-gordon! - Update repository docs/ownership
v0.0.11
Patch Changes
- #15
a192085
Thanks @matthew-gordon! - Update keywords
v0.0.10
Patch Changes
7b90754
Thanks @matthew-gordon! - Update docs