- Added support for direct import of the
cjs
submodule. - Added the
close()
,computeDifference()
,isClosed()
,isStarted()
andisStopped()
methods. - Dropped support for
Timer.prototype.difference
andAsyncTimer.prototype.difference
. - Made
AsyncTimer
its own separate class. - Used
Object.defineProperty()
instead ofSymbol
s, for improved ES3 compliance.
- Added support for registering callbacks
(with
registerStartCb()
,registerStopCb()
andregisterCloseCb()
), which will be called when the timer is stopped and closed respectively. - Added support for deleting the aforementioned callbacks
(with
deleteStartCb()
,deleteStopCb()
anddeleteCloseCb()
), which will be called when the timer is stopped and closed respectively. - Added an optional
label
parameter to the constructor, and a correspondinggetLabel()
method. - Added a method to reset the timer, called (of course)
reset()
.
- Fixed some broken chainings of methods.
- Made all properties non-enumerable.
- Refactored and cleaned source code.
- Updated the
promises
submodule and the mainTimer
. - Added JSON-based serialization and deserialization capabilities with
Timer.prototype.toString()
andTimer.fromString()
. - Added
Timer.prototype.getDifferenceSeconds()
.
- 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.