Skip to content

Releases: andywer/typed-emitter

v2.1.0

22 Jan 21:20
9a139b6
Compare
Choose a tag to compare

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

16 Jan 09:37
2f837c3
Compare
Choose a tag to compare

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

14 Oct 08:47
d74555b
Compare
Choose a tag to compare

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

23 Sep 19:36
1c10b7f
Compare
Choose a tag to compare

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

16 Aug 10:10
b6a1cd7
Compare
Choose a tag to compare

Small release, exporting the Arguments type.

Features

  • Export Arguments generic type (#11)

v1.2.0

27 May 07:45
5637e20
Compare
Choose a tag to compare

Small release that introduces the rawListeners() method.

Features

v1.1.0

27 May 07:42
fba2cc2
Compare
Choose a tag to compare

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

29 Mar 16:59
2942782
Compare
Choose a tag to compare

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

21 Oct 19:34
1f9fda9
Compare
Choose a tag to compare

New features

  • Added .off() method to interface (#1)