Skip to content

v3.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Jul 14:20
· 1727 commits to main since this release

3.0.0 (2021-07-20)

Features

  • functions: all useFunction functions are now async (01c6ffd)

BREAKING CHANGES

  • functions: all functions async due to an issue that came up
    during production builds, where minification would optimize away the
    async/await when the function was a one liner, like:
async () => {
  return await ...
}

the async keyword was a clue to the FunctionRunner to go down a
different code branch (before running the function), but when the above
example function was minified, it became:

() => { return ... }

which then made the FunctionRunner go down the sync path, resulting
in the value being a promise, rather than the resolved value of the
promise.