Version Packages (#680)

pull/683/head @hono/event-emitter@2.0.0
github-actions[bot] 2024-08-06 21:09:33 +09:00 committed by GitHub
parent 0b6d821c11
commit 4706d43da2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 13 deletions

View File

@ -1,12 +0,0 @@
---
'@hono/event-emitter': major
---
### Added:
- New `emitAsync` method to the EventEmitter to enable invoking asynchronous handlers.
- Added prevention for potential memory leak when adding handlers inside of middleware via `on` method.
- Introduced new option of EventEmitter `maxHandlers` that limits number of handlers that can be added to a single event.
- Significantly improved documentation.
### Changed:
- Moved context parameter to the first position in the `emit` method.

View File

@ -1,5 +1,20 @@
# @hono/event-emitter # @hono/event-emitter
## 2.0.0
### Major Changes
- [#649](https://github.com/honojs/middleware/pull/649) [`0b6d821c110ff6ac71846cdd7ffad6e36050b4e7`](https://github.com/honojs/middleware/commit/0b6d821c110ff6ac71846cdd7ffad6e36050b4e7) Thanks [@DavidHavl](https://github.com/DavidHavl)! - ### Added:
- New `emitAsync` method to the EventEmitter to enable invoking asynchronous handlers.
- Added prevention for potential memory leak when adding handlers inside of middleware via `on` method.
- Introduced new option of EventEmitter `maxHandlers` that limits number of handlers that can be added to a single event.
- Significantly improved documentation.
### Changed:
- Moved context parameter to the first position in the `emit` method.
## 1.0.0 ## 1.0.0
### Major Changes ### Major Changes

View File

@ -1,6 +1,6 @@
{ {
"name": "@hono/event-emitter", "name": "@hono/event-emitter",
"version": "1.0.0", "version": "2.0.0",
"description": "Event Emitter middleware for Hono", "description": "Event Emitter middleware for Hono",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.mjs", "module": "dist/index.mjs",