-
BREAKING: The
EventIterator
constructor now has an arity of 2 instead of 3. The secondRemoveHandler
argument has been removed. Consumers should update their code such that theRemoveHandler
should be passed as a return value of theListenHandler
, as opposed to the second argument of theEventIterator
constructor. TheRemoveHandler
will be called asynchronously. (@keithamus) -
BREAKING: The
ListenHandler
is now called with one argument, as opposed to 3. The single argument is anEventQueue
object which contains thepush
,stop
andfail
functions. Consumers should update their code such that theListenHandler
is only given one argument, which could be a destructured object of{push, stop, fail}
. (@keithamus) -
Added support for pausing/resuming streams when the internal queue fills or drains by listening to the
highWater
andlowWater
events. (@KamalAman) -
Bugfix to continue yielding pending items after
stop()
has been called. (@KamalAman) -
Bugfix to ensure correct behaviour when using
next()
instead of afor await
loop. (@KamalAman) -
Bugfixes to follow the iterator spec more closely. (@keithamus)
-
Refactor internals.
- Add options argument to constructor, allowing configuration of
highWaterMark
. (@alanshaw)
- First stable version.