Releases: barchart/common-js
Releases · barchart/common-js
v4.9.1
Bug Fixes
- Adjusted the
Scheduler.scheduler
function to address a bug introduced into Node.js between versions 10 and 12. In short, after calling thesetTimeout
function, theclearTimeout
function must be invoked — even if the timer has elapsed normally, and the associated callback was executed. Failing to do so, can prevent memory associated with the callback (via closure) from being garbage collected.
v4.9.0
New Features
- Added the
Tree.getIsInner
function.
v4.7.0
New Features
- Added the
Tree.count
function.
v4.6.0
New Features
- Added the
string.camelCase
function.
v4.5.0
New Features
- Added
Scheduler.backoff
— a static convenience function that delegates its work to an instance function of the same name.
v4.4.1
Bug Fixes
- Adjusted
array.binarySearch
function to process an array with zero items.
v4.4.0
New Features
- Added a utility function to perform binary searches of arrays (see the
array.binarySearch
function).
v4.3.1
Technical Enhancements
- Simplified the implementation of the
promise.timeout
function (to usePromise.race
).
v4.3.0
New Features
- Added a comparator function to the
Timestamp
class — see theTimestamp.compareTimestamps
function. - Added comparison functions to the
Timestamp
class — see theTimestamp.getIsBefore
andTimestamp.getIsAfter
andTimestamp.getIsEqual
functions.
v4.0.0
No Functional Changes
- Bumped major version to maintain parity with
@barchart/common-node-js
library.