Skip to content

Releases: JacobFischer/ts-typed-events

v3.0.0

28 Feb 15:59

Choose a tag to compare

Changed

  • Event now inherits from the new BaseEvent class.

Removed

  • events() util function removed.
    • See #8 for discussion and alternates when upgrading.

Added

  • createEmitter() function added that returns an emitter function separate
    from the Event.
  • SealedEvent added as an a type of event that lacks an .emit() function.
    • For SealedEvents, use the emitter returned to emit them.
    • See the README for updated examples on usage.
  • BaseEvent added as a base class for Event and SealedEvent to inherit
    from.
  • createEventEmitter() function added.
    • function signature is identical to creteEmitter(), but returns a normal
      Event instead of a SealedEvent.

Fixed

  • Circular imports are no longer encountered during module loading #12.
  • The any type should be correctly handled for emitter functions #13.
    • Now any generic type T that extends undefined makes the emit(arg: T)
      argument arg optional.

v3.0.0-rc.5

22 Feb 00:11

Choose a tag to compare

v3.0.0-rc.5 Pre-release
Pre-release

Release Candidate 5 for new major release v3.0.0. Full patch notes for final release.

At this point the RC releases probably should have been v3.0-experimental or some tag to better reflect how volatile they are. Sorry.

v3.0.0-rc.4

13 Feb 14:16

Choose a tag to compare

v3.0.0-rc.4 Pre-release
Pre-release

Release Candidate 4 for new major release v3.0.0. Full patch notes for final release.

v3.0.0-rc.3

31 Jan 04:56

Choose a tag to compare

v3.0.0-rc.3 Pre-release
Pre-release

Release Candidate 3 for new major release v3.0.0. Full patch notes for final release.

v3.0.0-rc.2

25 Jan 04:14

Choose a tag to compare

v3.0.0-rc.2 Pre-release
Pre-release

Release Candidate 2 for new major release v3.0.0. Full patch notes for final release.

v2.0.1

25 Jan 00:50

Choose a tag to compare

Changes

  • events helper functions depreciated. See #8.
  • This is a maintenance release to fix the npm versions before v3.0 release.

v3.0.0-rc.1

24 Jan 00:15

Choose a tag to compare

v3.0.0-rc.1 Pre-release
Pre-release

Release Candidate 1 for new major release v3.0.0. Full patch notes for final release.

v2.0.0

20 May 00:03

Choose a tag to compare

Changes

  • Rename TypeScript interfaces IEvents and IEventsFunction to Events and EventsFunction respectively.
  • Signal class removed. Instead you can now use Event without a generic which is now functionally identical to the old Signal.
  • Requires TypeScript >= 3.0 for newer features in the included definition files.

Fixed

  • Source maps no longer point to missing files. Instead source maps are inlined in the source. Thanks [#6].

v1.1.1

06 Jan 05:38

Choose a tag to compare

Changes

  • Update package dependencies to resolve marked v0.3.6 security vunerability
  • Correct the names of some tests with poor grammar/spelling

v1.1.0

01 Jan 02:08

Choose a tag to compare

Added

  • This changelog to track changes easily
  • events.offAll helper function to remove all event listeners from an events object
  • Signal helper class that is a simple Event<undefined> instance and does not require data to be emitted

Changes

  • Removed strict node engine version in package.json
  • Now targets ES5 by default for output js files
  • The IEvents interface now may be undefined to better represent arbitrary indexing of an events object
  • Some README and jsdoc grammar/spelling tweaks