- #266
173ccd4Thanks @samchungy! - This package is now ESM-only
- #258
e309e7cThanks @samchungy! - Update koa-bodyparser references to @koa/bodyparser
- #245
700bcc8Thanks @renovate! - Drop support for Apollo Server 4, Koa 2, and Node.js < 22. Require Apollo Server 5, Koa 3 and Node.js >= 22.
- #132
01fa9d1Thanks @ryota-ka! - ParameterizeKoaContextFunctionArgumentandKoaMiddlewareOptionsso that thectxparameter in thecontextfunction is correctly typed when this library is used along with a context-parameterized Koa app.
-
#130
c504479Thanks @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
StateandContexttypes as type arguments to thekoaMiddlewarefunction.If you use a
contextfunction (for Apollo Server), theStateandContexttypes 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
contextfunction, theStateandContexttypes are positions 0 and 1 like so:type KoaState = { state: object }; type KoaContext = { context: object }; koaMiddleware<KoaState, KoaContext>( new ApolloServer<GraphQLContext>() //... );
-
#117
4567c98Thanks @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.
- #85
bb28b66Thanks @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 thegraphqlpackage, 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
- #43
997b160Thanks @trevor-scheer! - Remove effectful install
- #19
61106d1Thanks @matthew-gordon! - Update Apollo Server dependencies, add explicit non-support for incremental delivery for now"
- #17
0aef5c3Thanks @matthew-gordon! - Update repository docs/ownership
- #15
a192085Thanks @matthew-gordon! - Update keywords
7b90754Thanks @matthew-gordon! - Update docs
- #10
ab78fd4Thanks @matthew-gordon! - Update deprecated call
- #8
51fcd01Thanks @matthew-gordon! - Update build scripts for better DX
69ac68fThanks @matthew-gordon! - Update LICENSE
-
734f7c7Thanks @matthew-gordon! - small cleanup -
734f7c7Thanks @matthew-gordon! - small cleanup