Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Releases: hazae41/mutevents.ts

5.4.1

17 Mar 16:51
Compare
Choose a tag to compare
fix reemit and tests

5.4

17 Mar 16:41
Compare
Choose a tag to compare
5.4

Event data is now mutable!

New syntax:

const [data, cancelled] = await emitter.emit("example", data)
if (cancelled) console.log("cancelled", cancelled.reason)

const [data, cancelled] = emitter.emitSync("example", data)
if (cancelled) console.log("cancelled", cancelled.reason)

emitSync will now throw an error when an async listener is used

5.3.2

08 Dec 20:04
Compare
Choose a tag to compare
update deps

5.3.1

31 Oct 16:35
Compare
Choose a tag to compare
  • Added isCancelled

5.3

30 Oct 16:54
Compare
Choose a tag to compare
5.3
  • Abortable is now in deps
  • No more filters with wait() and error()

5.2.2

14 Oct 17:44
Compare
Choose a tag to compare
fix bad index

5.2.1

05 Oct 16:39
Compare
Choose a tag to compare
  • Fix readme typo

5.2

05 Oct 16:37
Compare
Choose a tag to compare
5.2
  • You can now call multiple listeners at once

5.1.1

03 Oct 14:55
Compare
Choose a tag to compare
  • Fix TypeError when emitting after having removed a listener

5.1

03 Oct 12:12
Compare
Choose a tag to compare
5.1
  • Added reemit() and reemitSync()
  • Added filters on wait() and error()
  • Added tests