- support passing the rest of the arguments to co into the generator
function *gen(...args) { }
co(gen, ...args);- support regular functions (that return promises)
- refactor
isGeneratorFunction - expose generator function from
co.wrap() - drop support for node < 0.12
- check for generator functions in a ES5-transpiler-friendly way
- support comparing generator functions with ES6 transpilers
- fix memory leak #180
- always return a global promise implementation
- friendlier ES6 module exports
- co now returns a promise and uses promises underneath
co.wrap()for wrapping generator functions
- remove
setImmediate()shim for node 0.8. semi-backwards breaking. Users are expected to shim themselves. Also returns CommonJS browser support. - added key order preservation for objects. thanks @greim
- replace
qwithbluebirdin benchmarks and tests
- add
setImmediate()fallback toprocess.nextTick - remove duplicate code in toThunk
- update thunkify
- fix object/array test failure which tries to enumerate dates. Closes #98
- fix final callback error propagation. Closes #92
- fix toThunk object check regression. Closes #89
- refactor: arrayToThunk @AutoSponge #88
- fixed: nil arguments replaced with error fn
- fixed: callback passed as an argument to generators
- fixed: callback passed as an argument to generators
- change:
co(function *(){})now returns a reusable thunk - change:
thismust now be passed through the returned thunk, ex.co(function *(){}).call(this) - fix "generator already finished" errors
- add
yield objectsupport
- change: make the
isGenerator()function more generic
- add passing of arguments into the generator. closes #33.
- remove callback in favour of thunk-only co(). Closes #30 [breaking change]
- remove
co.wrap()[breaking change]
- fix: preserve receiver with co.wrap()
- remove setImmediate() usage - ~110% perf increase. Closes #14
- add receiver propagation support
- examples: update streams.js example to use
http.get()and streams2 API
- fix gen.next(val) for latest v8. Closes #8
- add promise support to joins
- add
yield generatorFunctionsupport - add
yield generatorsupport - add nested join support
- add passing of arguments
- fix join() of zero thunks
- add array yielding support. great suggestion by @domenic
- add promise support
- change nextTick to setImmediate