Skip to content

Releases: arjunmehta/heartbeats

v5.0.1 API changes to BeatEvents

19 Nov 02:43
Compare
Choose a tag to compare

Breaking change

Some slight but more useful and clear changes to BeatEvent creation and callbacks.

heart.createEvent now accepts countTo as an option in place of of repeat, and the callbacks are now called with the number of times that event has happened instead of the heart's age.

This makes more sense than before, where the keyword repeat was a bit confusing, and the heartAge as the callback argument was less useful.

Before

heart.createEvent(5, {repeat: 2}, function(heartAge, last){
  console.log('...heart age is', heartAge);
});

Now

heart.createEvent(5, {countTo: 2}, function(count, last){
  console.log('...Has happened', count, 'times');
});

v4.0.1 Keepalive reliability for Node

18 Nov 22:22
Compare
Choose a tag to compare
  • Improves reliability of referencing/unreferencing the interval with or without events in queue

v4.0.0 Keeps app alive as needed

18 Nov 21:39
Compare
Choose a tag to compare

With release 4.0.0 there is a (potentially) breaking change, but for the better.

Now a Heart will keep your Node app alive (if you are using Node) if there are events in queue.
Upon the completion of the very last event, the Heart will be unreferenced and your app will exit, as would be expected.

v3.1.5 Better support for browser use

12 Nov 15:12
Compare
Choose a tag to compare

Addresses an issue with importing on browsers.

v3.1.4 Updates reliability of package

10 Nov 16:38
Compare
Choose a tag to compare

v3.1.2

26 Jul 15:23
Compare
Choose a tag to compare
  • Bug fix for named events.
  • Internal code cleanup.

Published to npm

v3.0.0 Brand New API

12 Nov 15:29
Compare
Choose a tag to compare
revising API, fixing tests, getting ready for new release