Skip to content

Commit 6eae28b

Browse files
deps: bump esbuild from 0.27.4 to 0.27.5 (#804)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.27.4 to 0.27.5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/evanw/esbuild/releases">esbuild's releases</a>.</em></p> <blockquote> <h2>v0.27.5</h2> <ul> <li> <p>Fix for an async generator edge case (<a href="https://redirect.github.com/evanw/esbuild/issues/4401">#4401</a>, <a href="https://redirect.github.com/evanw/esbuild/pull/4417">#4417</a>)</p> <p>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:</p> <pre lang="js"><code>async function* inner() { yield 1; yield 2 } async function* outer() { yield* inner() } let gen = outer() for await (let x of [gen.next(), gen.next()]) console.log(x) </code></pre> <p>Previously esbuild's output of the above code behaved incorrectly when async generators were transformed (such as with <code>--supported:async-generator=false</code>). The transformation should be fixed starting with this release.</p> <p>This fix was contributed by <a href="https://github.com/2767mr"><code>@​2767mr</code></a>.</p> </li> <li> <p>Fix a regression when <code>metafile</code> is enabled (<a href="https://redirect.github.com/evanw/esbuild/issues/4420">#4420</a>, <a href="https://redirect.github.com/evanw/esbuild/pull/4418">#4418</a>)</p> <p>This release fixes a regression introduced by the previous release. When <code>metafile: true</code> 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.</p> </li> <li> <p>Use define semantics for TypeScript parameter properties (<a href="https://redirect.github.com/evanw/esbuild/issues/4421">#4421</a>)</p> <p>Parameter properties are a TypeScript-specific code generation feature that converts constructor parameters into class fields when they are prefixed by certain keywords. When <code>&quot;useDefineForClassFields&quot;: true</code> is present in <code>tsconfig.json</code>, the TypeScript compiler automatically generates class field declarations for parameter properties. Previously esbuild didn't do this, but esbuild will now do this starting with this release:</p> <pre lang="ts"><code>// Original code class Foo { constructor(public x: number) {} } <p>// Old output (with --loader=ts) class Foo { constructor(x) { this.x = x; } }</p> <p>// New output (with --loader=ts) class Foo { constructor(x) { this.x = x; } x; } </code></pre></p> </li> <li> <p>Allow <code>es2025</code> as a target in <code>tsconfig.json</code> (<a href="https://redirect.github.com/evanw/esbuild/issues/4432">#4432</a>)</p> <p>TypeScript recently <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/#es2025-option-for-target-and-lib">added <code>es2025</code></a> as a compilation target, so esbuild now supports this in the <code>target</code> field of <code>tsconfig.json</code> files, such as in the following configuration file:</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/evanw/esbuild/blob/main/CHANGELOG.md">esbuild's changelog</a>.</em></p> <blockquote> <h2>0.27.5</h2> <ul> <li> <p>Fix for an async generator edge case (<a href="https://redirect.github.com/evanw/esbuild/issues/4401">#4401</a>, <a href="https://redirect.github.com/evanw/esbuild/pull/4417">#4417</a>)</p> <p>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:</p> <pre lang="js"><code>async function* inner() { yield 1; yield 2 } async function* outer() { yield* inner() } let gen = outer() for await (let x of [gen.next(), gen.next()]) console.log(x) </code></pre> <p>Previously esbuild's output of the above code behaved incorrectly when async generators were transformed (such as with <code>--supported:async-generator=false</code>). The transformation should be fixed starting with this release.</p> <p>This fix was contributed by <a href="https://github.com/2767mr"><code>@​2767mr</code></a>.</p> </li> <li> <p>Fix a regression when <code>metafile</code> is enabled (<a href="https://redirect.github.com/evanw/esbuild/issues/4420">#4420</a>, <a href="https://redirect.github.com/evanw/esbuild/pull/4418">#4418</a>)</p> <p>This release fixes a regression introduced by the previous release. When <code>metafile: true</code> 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.</p> </li> <li> <p>Use define semantics for TypeScript parameter properties (<a href="https://redirect.github.com/evanw/esbuild/issues/4421">#4421</a>)</p> <p>Parameter properties are a TypeScript-specific code generation feature that converts constructor parameters into class fields when they are prefixed by certain keywords. When <code>&quot;useDefineForClassFields&quot;: true</code> is present in <code>tsconfig.json</code>, the TypeScript compiler automatically generates class field declarations for parameter properties. Previously esbuild didn't do this, but esbuild will now do this starting with this release:</p> <pre lang="ts"><code>// Original code class Foo { constructor(public x: number) {} } <p>// Old output (with --loader=ts) class Foo { constructor(x) { this.x = x; } }</p> <p>// New output (with --loader=ts) class Foo { constructor(x) { this.x = x; } x; } </code></pre></p> </li> <li> <p>Allow <code>es2025</code> as a target in <code>tsconfig.json</code> (<a href="https://redirect.github.com/evanw/esbuild/issues/4432">#4432</a>)</p> <p>TypeScript recently <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-6-0/#es2025-option-for-target-and-lib">added <code>es2025</code></a> as a compilation target, so esbuild now supports this in the <code>target</code> field of <code>tsconfig.json</code> files, such as in the following configuration file:</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/evanw/esbuild/commit/0102ae3306c6c74bdf5074fe6b20112c685f525f"><code>0102ae3</code></a> publish 0.27.5 to npm</li> <li><a href="https://github.com/evanw/esbuild/commit/eb93887582531153522898e847fcaed36abf93b8"><code>eb93887</code></a> split off <code>CHANGELOG-2025.md</code></li> <li><a href="https://github.com/evanw/esbuild/commit/a54a51a1a111089d090225fcb81269bb47f38ef1"><code>a54a51a</code></a> fix <a href="https://redirect.github.com/evanw/esbuild/issues/4421">#4421</a>: use define for ts parameter props</li> <li><a href="https://github.com/evanw/esbuild/commit/31a7c67ef2833189d0800f70f9734eddbd701efc"><code>31a7c67</code></a> remove unused variable in <code>__asyncGenerator</code></li> <li><a href="https://github.com/evanw/esbuild/commit/1ea01a68ae1225f3de1df50c8c511e828bbf3adb"><code>1ea01a6</code></a> update release notes</li> <li><a href="https://github.com/evanw/esbuild/commit/a8f8c0e7e9468ee48f21efbaa18c3df39084cabe"><code>a8f8c0e</code></a> fix: Handle non-awaited async generator (<a href="https://redirect.github.com/evanw/esbuild/issues/4417">#4417</a>)</li> <li><a href="https://github.com/evanw/esbuild/commit/4844d4bb6fade8dbf0bd8cec5d63dc4e42681824"><code>4844d4b</code></a> fix <a href="https://redirect.github.com/evanw/esbuild/issues/4420">#4420</a>, close <a href="https://redirect.github.com/evanw/esbuild/issues/4418">#4418</a>: <code>metafile</code> JSON regression</li> <li><a href="https://github.com/evanw/esbuild/commit/edbdce85979f1ae9e9b60e095f244703e625edc5"><code>edbdce8</code></a> fix <a href="https://redirect.github.com/evanw/esbuild/issues/4432">#4432</a>: add <code>es2025</code> as a valid target</li> <li>See full diff in <a href="https://github.com/evanw/esbuild/compare/v0.27.4...v0.27.5">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=esbuild&package-manager=npm_and_yarn&previous-version=0.27.4&new-version=0.27.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent b54a71f commit 6eae28b

2 files changed

Lines changed: 109 additions & 109 deletions

File tree

0 commit comments

Comments
 (0)