- Bump
[email protected]
- Moved modules out of
src
directory so that they can be required likecontra/emitter
- Split the monolithic source code into individual modules
- Fixed a use case where the consumer turned the emitter
.off
from within the event listener
- Updated
λ.emitter
to match functionality incontra.emitter
package
- Fixed a bug where
done
callbacks weren't optional
- Fixed the context passed to event listeners
λ.emitter
methods return the emitter object for chaining
- New options to turn off event listeners on
λ.emitter
objects
λ.emitter
takes athrows
option that can turn off error-throwing
λ.emitter
properly setsthis
to the event emitter object
λ.emitter
takes an optionaloptions
object
Changes
λ.emitter
runs synchronously by default
- Some more code reduction
- Reduced source code footprint
Fixes
- Fixed a bug where
done
was mandatory
λ.each
,λ.filter
, andλ.map
support an optionalkey
argument in the iterator function.
λ.emitter
can create emitters without passing it any object
- Distribution file headers
- Source code readability
- Added optional concurrency cap argument to remaining concurrent methods:
filter
,map
,each
- Concurrent methods now use a queue internally
λ.concurrent
has an optional concurrency cap argument- Series now use a concurrent queue internally, with
concurrency = 1
Fixes
- Fixed a bug where queues weren't working concurrently
- Fixed an issue where queues would emit
drain
while processing jobs
- Polyfill for
Array.prototype.indexOf
added tocontra.shim.js
- Switched
window
forroot
- Added
.off
and.once
support to event emitter API
- Removed unnecessary context from event listeners
- Queue is an emitter
- Queue emits
drain
events
BREAKING
- Rename
λ.apply
toλ.curry
- Ignore dotfiles in Bower distribution
- Initial Public Release