Releases: fent/timequeue.js
Releases · fent/timequeue.js
v4.0.0
4.0.0 (2022-04-03)
Code Refactoring
- refactor
Store
to more friendly types (51f0279)
- use es6 exports (30feaf6)
BREAKING CHANGES
- rename
Store#getQueued()
-> Store#getQueueLen()
- remove
Store#isEmpty()
- fix return type of
Store#pushTask()
to Promise<void>
v3.0.1
3.0.1 (2022-01-17)
Bug Fixes
- fix infinite loop when overwriting
push
function from child class (e256df4)
v3.0.0
Features
- able to add custom stores for queue (3f0183e), closes #21
BREAKING CHANGES:
TimeQueue#queued
moved to async TimeQueued#store.getQueued()
- Since managing the queue is now async, some properties such as
active
and intransit
may not update in the same event loop
even when using the default memory store.
v2.0.2
Bug Fixes
- avoid stack overflow on child classes that overwrite
TimeQueue#push
(5595d24)
v2.0.0
Features
- allow worker to be an async function (0eaa534)
- let
TimeQueue#push()
return a promise when no callback is given (50c3f17)
BREAKING CHANGES
error
event no longer emitted when a callback isn't
given to push()
. Instead, push()
will return a promise that can
reject.
v1.2.0
Code Refactoring
- use es6 arrow functions,
const
, let
(dd173f1)
Features
BREAKING CHANGES
const
and let
not supported on node < 6