Skip to content

Releases: facebook/regenerator

v0.3.7

30 Jan 00:59
Compare
Choose a tag to compare

Now more precisely matching the behavior of V8 when non-undefined values are sent to non-newborn generators via yield* (i.e., ignore those values).

v0.3.6

22 Jan 01:11
Compare
Choose a tag to compare

Made it a TypeError to send a value to a newborn generator, fixing #76. Note that this restriction is suspended for delegate generators invoked via yield*, since there no agreement yet between V8 and SpiderMonkey on how to handle that case (V8 allows it but ignores the sent value, whereas SpiderMonkey throws a TypeError because the outer generator appears to be newborn).

v0.3.5

21 Jan 16:46
Compare
Choose a tag to compare

A bug with generators nested inside catch blocks was diagnosed and fixed by @amasad (#70, #71).

When using Regenerator in Node, you can now more easily include the runtime by calling require("regenerator").runtime(), thanks to a pull request from @jonathanong (#77, #78).

v0.3.4

27 Dec 01:03
Compare
Choose a tag to compare

Implemented some performance improvements that decrease memory usage by conserving NodePath objects and collectively reduce the time taken by

time bin/regenerator test/tests.es6.js > test/tests.es5.js

from 2.7s to 2.2s on my machine, an improvement of 18%.

v0.3.3

24 Dec 00:47
Compare
Choose a tag to compare

Thanks to an optimization I recently made to the require("ast-types").traverse function, transformation of test/tests.es6.js is now 25% faster than before.

v0.3.2

19 Dec 23:08
Compare
Choose a tag to compare

Modified the license header language to refer to https://github.com/facebook/regenerator/blob/master/LICENSE by URI instead of referring to the root directory of the source tree, so that files containing the license header will be easier to copy elsewhere (#69).

Upgraded dependencies. In particular, the new minor version of https://github.com/benjamn/recast now supports automatic source map generation.

v0.3.1

03 Dec 21:16
Compare
Choose a tag to compare

Thanks to @scttnlsn, who fixed a problem in the handling of options that prevented --include-runtime from working as expected (#68).

v0.3.0

03 Dec 17:07
Compare
Choose a tag to compare

As of #65 and #67, regenerator now supports rewriting let/const declarations as var declarations, thanks to the work of @termi and @olov's https://github.com/olov/defs library.

This contribution demonstrates the feasibility of mixing and matching regenerator with other single-purpose ES6 transforms.

v0.2.11

19 Nov 21:08
Compare
Choose a tag to compare

Thanks to @termi who identified and fixed a bug where wrapGenerator.isGeneratorFunction would fail after minification of runtime/dev.js, because most minifiers would have shortened the name of the GeneratorFunction constructor.

v0.2.10

08 Nov 20:06
Compare
Choose a tag to compare

Now handling NewExpression nodes containing yield sub-expressions. For example:

new (yield 0)(yield 1, yield 2)