-
Notifications
You must be signed in to change notification settings - Fork 164
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
Event Emitter middleware #615
Conversation
🦋 Changeset detectedLatest commit: a4400cd The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hi @DavidHavl Thank you for the PR. Almost all look good! I've left some comments. |
Thank you @yusukebe, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks! I'll merge this now. I'm glad you contributed to Hono! |
I have created event-emitter middleware for Hono and as discussed here I am opening a pull request in this repo instead of the main @hono/hono one as it is a better fit for it.
Thank you @yusukebe
This middleware enables event-driven logic flow in hono applications (essential in larger projects or projects with a lot of interactions between features).
Inspired by event emitter concept in other frameworks such
as Adonis.js, Nest.js, Hapi.js, Laravel, Sails.js, Meteor and others.
For usage examples, see the README file of the package.