Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose full Koa context to options #86

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

henrinormak
Copy link
Contributor

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.

Copy link
Owner

@enisdenjo enisdenjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks again!

@enisdenjo enisdenjo merged commit b37a6f9 into enisdenjo:master Dec 13, 2023
6 checks passed
@henrinormak
Copy link
Contributor Author

henrinormak commented Dec 13, 2023

Thanks! 👍 Any chance for a release with this?

enisdenjo pushed a commit that referenced this pull request Dec 13, 2023
# [2.5.0](v2.4.1...v2.5.0) (2023-12-13)

### Features

* **use/koa:** expose full Koa context to options ([#86](#86)) ([b37a6f9](b37a6f9))
@enisdenjo
Copy link
Owner

🎉 This PR is included in version 2.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@enisdenjo enisdenjo added the released Has been released and published label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Has been released and published
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants