v3.0.0
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.