Async To Gen Versions Save

⌛ Use async functions in your JavaScript today with speed and simplicity.

v1.4.0

6 years ago

New:

  • Supports transforming of .mjs files, which allows use along with @std/esm and esmodule based bundlers (be56e02131b8ae143f2a5e3ced1812d310d2adaa)
  • Uses pirates for async-to-gen/register which allows for interoperation with @std/esm, the latest version of Babel's require hook, and others!

Fixes:

  • Fixed a case where parenthetic expressions were not being transformed correctly (#53)
  • Now always explicitly writes UTF8 files, regardless of platform (special note for Windows users) (#54)

v1.3.3

7 years ago

Fixed:

  • Node and V8 options provided to async-node are now utilized (22767c469aacf71be0e4e62f291d56e670415833)

v1.3.2

7 years ago

New:

  • Pass -q or --quiet to silence information about successful progress.

Fixed:

  • Information about successful progress is emitted on stderr, reserving stdout for output only.

v1.3.1

7 years ago

New:

  • Source maps are now on by default when using the register hook.
  • Register hook includes/excludes can be provided as a simple glob-string in addition to RegExps.
  • Register hook accepts include/exclude as alias for includes/excludes.

Fixes:

  • Fixed typos around includes/include.

v1.3.0

7 years ago

New:

  • Support for --sourcemaps in async-to-gen for outputting sourcemap files alongside transformed files.
  • Support for sourceMaps to the node require hook for tools that consume it (like ava).
  • Support for includes and excludes options to the node require hook.

Fixes:

  • No longer creates syntax error for async arrow functions with no whitespace.
  • Require hook is less aggressive, working with tools like nyc or ava.

v1.2.0

7 years ago

Fixes:

  • Adds proper support for for-await-of loops and AsyncIterables (#33)
  • Better syntax error messages (#32)

v1.1.5

7 years ago

Fixes:

  • No longer causes syntax error in strict-mode when referencing arguments (#28)
  • Allow use of for-await loops in normal async functions (#30)

v1.1.4

7 years ago

Fixes:

  • Removes memory leak for async functions with await within loops (#26)
  • Fix transform bug for nested super assignments (b1976f20c11ccaa7dae14cc6b0e59e6c5e9784dd)

v1.1.3

7 years ago

Fixes:

  • Fixed issue where transformer could break for holey-destructuring (#22)
  • Only relevant files included in npm package

v1.1.1

7 years ago

New:

  • Adds support for Jest testing library

Fixed:

  • Correctly creates missing directories when transforming over a directory (#19)
  • Fix a case where missing whitespace could result in a syntax error after transform (bd19f6e0182a037156f2e4d74f0a12a17f59c830)