enisdenjo / graphql-sse

Zero-dependency, HTTP/1 safe, simple, GraphQL over Server-Sent Events Protocol server and client.
https://the-guild.dev/graphql/sse
MIT License
384 stars 19 forks source link

feat: expose full Koa context to options #86

Closed henrinormak closed 9 months ago

henrinormak commented 9 months ago

This will make it possible to leverage Koa's context/state for various options calculations, such as authentication, or GraphQL context generation.

The change should be backwards compatible, as res should also be a valid property on the default Koa context and the new generics in HandlerOption have default values.

henrinormak commented 9 months ago

Thanks! 👍 Any chance for a release with this?

enisdenjo commented 9 months ago

:tada: This PR is included in version 2.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: