Skip to content

Commit 1ea01a6

Browse files
committed
update release notes
1 parent a8f8c0e commit 1ea01a6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
## Unreleased
44

5+
* Fix for an async generator edge case ([#4401](https://github.com/evanw/esbuild/issues/4401), [#4417](https://github.com/evanw/esbuild/pull/4417))
6+
7+
Support for transforming async generators into the equivalent state machine was added in version 0.19.0. However, the generated state machine didn't work correctly when polling async generators concurrently, such as in the following code:
8+
9+
```js
10+
async function* inner() { yield 1; yield 2 }
11+
async function* outer() { yield* inner() }
12+
let gen = outer()
13+
for await (let x of [gen.next(), gen.next()]) console.log(x)
14+
```
15+
16+
Previously esbuild's output of the above code behaved incorrectly when async generators were transformed (such as with `--supported:async-generator=false`). The transformation should be fixed starting with this release.
17+
18+
This fix was contributed by [@2767mr](https://github.com/2767mr).
19+
520
* Fix a regression when `metafile` is enabled ([#4420](https://github.com/evanw/esbuild/issues/4420), [#4418](https://github.com/evanw/esbuild/pull/4418))
621
722
This release fixes a regression introduced by the previous release. When `metafile: true` was enabled in esbuild's JavaScript API, builds with build errors were incorrectly throwing an error about an empty JSON string instead of an object containing the build errors.

0 commit comments

Comments
 (0)