Releases: andywer/typed-emitter
Releases · andywer/typed-emitter
v2.1.0
Minor release. Carries a breaking change for rxjs users and a bug fix for everyone.
RxJS interface
- New
TypedEmitter
interface exported from typed-emitter/rxjs
(part of #31)
Bug fixes
- Fix
__events
property just added in v2.0.0 (#29)
v2.0.0
Another release! Not huge, but a mildly breaking one.
Breaking changes
- TypedEmitter's type parameter is now constrained (#23, by @ehaynes99)
type EventMap = {
[key: string]: (...args: any[]) => void
}
interface TypedEventEmitter<Events extends EventMap> {
// …
}
New features
- Added compatibility interface
FromEvent
for rxjs under separate entry point (#19, by @huan)
import { fromEvent as rxFromEvent } from "rxjs"
import { FromEvent } from "typed-emitter/rxjs"
// The `Observable` typing can be correctly inferenced
const fromEvent = rxFromEvent as FromEvent
v1.4.0
Minor release shipping a bug fix that might have minor side effects.
What's Changed
- fix: stop exporting a TS file as
"main"
field in package.json
by @u9g in #16
New Contributors
- @u9g made their first contribution in #16
Full Changelog: v1.3.1...v1.4.0
v1.3.1
A tiny release shipping one lonely fix. Enjoy, nevertheless!
Bug fixes
- Set package.json
main
field to prevent errors with eslint (#12, by @thatmarvin)
v1.3.0
Small release, exporting the Arguments
type.
Features
- Export
Arguments
generic type (#11)
v1.2.0
Small release that introduces the rawListeners()
method.
Features
v1.1.0
Made event names type checking a little less strict in order to make the interface fully compatible with the interface of the built-in node.js EventEmitter
.
Features
- Make interface compatible with built-in node.js
EventEmitter
(#3)
v1.0.0
Bumping the version to v1.0.0 as it feels stable 🎉
This update ships one small fix, too, that hadn't been published yet.
Bug fixes
- Make
removeAllListeners()
argument optional (#2)
v0.2.0
New features
- Added
.off()
method to interface (#1)