Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.59 KB

CHANGELOG.md

File metadata and controls

41 lines (31 loc) · 1.59 KB

Changelog

Version 1.0.6

  • Added support for direct import of the cjs submodule.
  • Added the close(), computeDifference(), isClosed(), isStarted() and isStopped() methods.
  • Dropped support for Timer.prototype.difference and AsyncTimer.prototype.difference.
  • Made AsyncTimer its own separate class.
  • Used Object.defineProperty() instead of Symbols, for improved ES3 compliance.

Version 1.0.7

  • Added support for registering callbacks (with registerStartCb(), registerStopCb() and registerCloseCb()), which will be called when the timer is stopped and closed respectively.
  • Added support for deleting the aforementioned callbacks (with deleteStartCb(), deleteStopCb() and deleteCloseCb()), which will be called when the timer is stopped and closed respectively.
  • Added an optional label parameter to the constructor, and a corresponding getLabel() method.
  • Added a method to reset the timer, called (of course) reset().

Version 1.0.8

  • Fixed some broken chainings of methods.
  • Made all properties non-enumerable.
  • Refactored and cleaned source code.

Version 1.0.9

  • Updated the promises submodule and the main Timer.
  • Added JSON-based serialization and deserialization capabilities with Timer.prototype.toString() and Timer.fromString().
  • Added Timer.prototype.getDifferenceSeconds().

Version 1.0.10

  • Implemented code splitting.
  • Fixed a type error with callback registration methods.
  • Deprecated callback registration methods in favor of better-named alternatives.
  • Updated module and CI infrastructure.
  • Added funding link.