changelogs.md


michaeldiguet/cocon

Repository  -  API  -  Source

4.6.0

July 9, 2015
  • support passing the rest of the arguments to co into the generator

    function *gen(...args) { }
    co(gen, ...args);

4.5.0

March 17, 2015
  • support regular functions (that return promises)

4.4.0

February 14, 2015
  • refactor isGeneratorFunction
    • expose generator function from co.wrap()
    • drop support for node < 0.12

4.3.0

February 5, 2015
  • check for generator functions in a ES5-transpiler-friendly way

4.2.0

January 20, 2015
  • support comparing generator functions with ES6 transpilers

4.1.0

December 26, 2014
  • fix memory leak #180

4.0.2

December 18, 2014
  • always return a global promise implementation

4.0.1

November 30, 2014
  • friendlier ES6 module exports

4.0.0

November 15, 2014
  • co now returns a promise and uses promises underneath
    • co.wrap() for wrapping generator functions

3.1.0

June 30, 2014
  • 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 q with bluebird in benchmarks and tests

3.0.6

May 3, 2014
  • add setImmediate() fallback to process.nextTick
    • remove duplicate code in toThunk
    • update thunkify

3.0.5

March 17, 2014
  • fix object/array test failure which tries to enumerate dates. Closes #98
    • fix final callback error propagation. Closes #92

3.0.4

February 17, 2014
  • fix toThunk object check regression. Closes #89

3.0.3

February 8, 2014
  • refactor: arrayToThunk @AutoSponge #88

3.0.2

January 1, 2014
  • fixed: nil arguments replaced with error fn

3.0.1

December 19, 2013
  • fixed: callback passed as an argument to generators

3.0.0

December 19, 2013
  • fixed: callback passed as an argument to generators
    • change: co(function *(){}) now returns a reusable thunk
    • change: this must now be passed through the returned thunk, ex. co(function *(){}).call(this)
    • fix "generator already finished" errors

2.3.0

November 12, 2013
  • add yield object support

2.2.0

November 5, 2013
  • change: make the isGenerator() function more generic

2.1.0

October 21, 2013
  • add passing of arguments into the generator. closes #33.

2.0.0

October 14, 2013
  • remove callback in favour of thunk-only co(). Closes #30 [breaking change]
    • remove co.wrap() [breaking change]

1.5.2

September 2, 2013
  • fix: preserve receiver with co.wrap()

1.5.1

August 11, 2013
  • remove setImmediate() usage - ~110% perf increase. Closes #14

1.4.1

July 1, 2013
  • fix gen.next(val) for latest v8. Closes #8

1.4.0

June 21, 2013
  • add promise support to joins
    • add yield generatorFunction support
    • add yield generator support
    • add nested join support

1.3.0

June 10, 2013
  • add passing of arguments

1.2.1

June 8, 2013
  • fix join() of zero thunks

1.2.0

June 8, 2013
  • add array yielding support. great suggestion by @domenic

1.1.0

June 6, 2013
  • add promise support
    • change nextTick to setImmediate

0.5.0

August 10, 2013
  • add receiver propagation support
    • examples: update streams.js example to use http.get() and streams2 API