Bumps the development-dependencies group with 3 updates:
[ava](https://github.com/avajs/ava),
[esbuild](https://github.com/evanw/esbuild) and
[execa](https://github.com/sindresorhus/execa).
Updates `ava` from 6.1.2 to 6.1.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/avajs/ava/releases">ava's
releases</a>.</em></p>
<blockquote>
<h2>v6.1.3</h2>
<h2>What's Changed</h2>
<ul>
<li>Include Node.js 22 in supported engines and test matrix by <a
href="https://github.com/lenovouser"><code>@lenovouser</code></a> in <a
href="https://redirect.github.com/avajs/ava/pull/3328">avajs/ava#3328</a></li>
<li>Add VS Code debugging instructions for Yarn PnP projects by <a
href="https://github.com/bitjson"><code>@bitjson</code></a> in <a
href="https://redirect.github.com/avajs/ava/pull/3317">avajs/ava#3317</a></li>
<li>Document <code>serial</code> configuration option by <a
href="https://github.com/turadg"><code>@turadg</code></a> in <a
href="https://redirect.github.com/avajs/ava/pull/3321">avajs/ava#3321</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/bitjson"><code>@bitjson</code></a> made
their first contribution in <a
href="https://redirect.github.com/avajs/ava/pull/3317">avajs/ava#3317</a></li>
<li><a href="https://github.com/turadg"><code>@turadg</code></a> made
their first contribution in <a
href="https://redirect.github.com/avajs/ava/pull/3321">avajs/ava#3321</a></li>
<li><a
href="https://github.com/lenovouser"><code>@lenovouser</code></a> made
their first contribution in <a
href="https://redirect.github.com/avajs/ava/pull/3328">avajs/ava#3328</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/avajs/ava/compare/v6.1.2...v6.1.3">https://github.com/avajs/ava/compare/v6.1.2...v6.1.3</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="f8bf00cd98"><code>f8bf00c</code></a>
6.1.3</li>
<li><a
href="002b3a0e93"><code>002b3a0</code></a>
Include Node.js 22 in supported engines and test matrix</li>
<li><a
href="ec1a8d2336"><code>ec1a8d2</code></a>
Document <code>serial</code> configuration option</li>
<li><a
href="01ec2804ab"><code>01ec280</code></a>
Add VS Code debugging instructions for Yarn PnP projects</li>
<li>See full diff in <a
href="https://github.com/avajs/ava/compare/v6.1.2...v6.1.3">compare
view</a></li>
</ul>
</details>
<br />
Updates `esbuild` from 0.20.2 to 0.21.4
<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.21.4</h2>
<ul>
<li>
<p>Update support for import assertions and import attributes in node
(<a
href="https://redirect.github.com/evanw/esbuild/issues/3778">#3778</a>)</p>
<p>Import assertions (the <code>assert</code> keyword) have been removed
from node starting in v22.0.0. So esbuild will now strip them and
generate a warning with <code>--target=node22</code> or above:</p>
<pre><code>▲ [WARNING] The "assert" keyword is not supported
in the configured target environment ("node22")
[assert-to-with]
<pre><code>example.mjs:1:40:
1 │ import json from &quot;esbuild/package.json&quot; assert {
type: &quot;json&quot; }
│ ~~~~~~
╵ with
</code></pre>
<p>Did you mean to use "with" instead of "assert"?
</code></pre></p>
<p>Import attributes (the <code>with</code> keyword) have been
backported to node 18 starting in v18.20.0. So esbuild will no longer
strip them with <code>--target=node18.N</code> if <code>N</code> is 20
or greater.</p>
</li>
<li>
<p>Fix <code>for await</code> transform when a label is present</p>
<p>This release fixes a bug where the <code>for await</code> transform,
which wraps the loop in a <code>try</code> statement, previously failed
to also move the loop's label into the <code>try</code> statement. This
bug only affects code that uses both of these features in combination.
Here's an example of some affected code:</p>
<pre lang="js"><code>// Original code
async function test() {
outer: for await (const x of [Promise.resolve([0, 1])]) {
for (const y of x) if (y) break outer
throw 'fail'
}
}
<p>// Old output (with --target=es6)
function test() {
return __async(this, null, function* () {
outer: try {
for (var iter = __forAwait([Promise.resolve([0, 1])]), more, temp,
error; more = !(temp = yield iter.next()).done; more = false) {
const x = temp.value;
for (const y of x) if (y) break outer;
throw "fail";
}
} catch (temp) {
error = [temp];
} finally {
try {
more && (temp = iter.return) && (yield temp.call(iter));
} finally {
if (error)
throw error[0];
}
}
</code></pre></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.21.4</h2>
<ul>
<li>
<p>Update support for import assertions and import attributes in node
(<a
href="https://redirect.github.com/evanw/esbuild/issues/3778">#3778</a>)</p>
<p>Import assertions (the <code>assert</code> keyword) have been removed
from node starting in v22.0.0. So esbuild will now strip them and
generate a warning with <code>--target=node22</code> or above:</p>
<pre><code>▲ [WARNING] The "assert" keyword is not supported
in the configured target environment ("node22")
[assert-to-with]
<pre><code>example.mjs:1:40:
1 │ import json from &quot;esbuild/package.json&quot; assert {
type: &quot;json&quot; }
│ ~~~~~~
╵ with
</code></pre>
<p>Did you mean to use "with" instead of "assert"?
</code></pre></p>
<p>Import attributes (the <code>with</code> keyword) have been
backported to node 18 starting in v18.20.0. So esbuild will no longer
strip them with <code>--target=node18.N</code> if <code>N</code> is 20
or greater.</p>
</li>
<li>
<p>Fix <code>for await</code> transform when a label is present</p>
<p>This release fixes a bug where the <code>for await</code> transform,
which wraps the loop in a <code>try</code> statement, previously failed
to also move the loop's label into the <code>try</code> statement. This
bug only affects code that uses both of these features in combination.
Here's an example of some affected code:</p>
<pre lang="js"><code>// Original code
async function test() {
outer: for await (const x of [Promise.resolve([0, 1])]) {
for (const y of x) if (y) break outer
throw 'fail'
}
}
<p>// Old output (with --target=es6)
function test() {
return __async(this, null, function* () {
outer: try {
for (var iter = __forAwait([Promise.resolve([0, 1])]), more, temp,
error; more = !(temp = yield iter.next()).done; more = false) {
const x = temp.value;
for (const y of x) if (y) break outer;
throw "fail";
}
} catch (temp) {
error = [temp];
} finally {
try {
more && (temp = iter.return) && (yield temp.call(iter));
} finally {
if (error)
throw error[0];
}
</code></pre></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="67cbf87a49"><code>67cbf87</code></a>
publish 0.21.4 to npm</li>
<li><a
href="4ad11c303e"><code>4ad11c3</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3639">#3639</a>,
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3646">#3646</a>:
pass <code>with</code> to <code>onResolve</code></li>
<li><a
href="516ca317a4"><code>516ca31</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3343">#3343</a>:
allow bundle-internal string aliases</li>
<li><a
href="9e2f304cb6"><code>9e2f304</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3416">#3416</a>,
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3425">#3425</a>:
better enum constant folding</li>
<li><a
href="8f1faf7d4a"><code>8f1faf7</code></a>
implement late constant-folding for <code>&& || ??</code></li>
<li><a
href="7d50a50dcc"><code>7d50a50</code></a>
implement late constant-folding of string enums</li>
<li><a
href="1b29ac7d0a"><code>1b29ac7</code></a>
fold equality checks after cross-module inlining</li>
<li><a
href="d7a8bf3270"><code>d7a8bf3</code></a>
formatting support for <code>@position-try</code> (for <a
href="https://redirect.github.com/evanw/esbuild/issues/3773">#3773</a>)</li>
<li><a
href="5069410daf"><code>5069410</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3778">#3778</a>:
import assertions/attributes for node</li>
<li><a
href="11d568c874"><code>11d568c</code></a>
run <code>make update-compat-table</code></li>
<li>Additional commits viewable in <a
href="https://github.com/evanw/esbuild/compare/v0.20.2...v0.21.4">compare
view</a></li>
</ul>
</details>
<br />
Updates `execa` from 8.0.1 to 9.1.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/execa/releases">execa's
releases</a>.</em></p>
<blockquote>
<h2>v9.1.0</h2>
<h2>Features (types)</h2>
<ul>
<li>Export <a
href="https://github.com/sindresorhus/execa/blob/HEAD/docs/typescript.md#available-types"><code>TemplateExpression</code></a>
type. (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1049">#1049</a>)</li>
</ul>
<h2>v9.0.2</h2>
<h2>Bug fixes (types)</h2>
<ul>
<li>Do not require using <code>--lib dom</code> for TypeScript users (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1043">#1043</a>,
<a
href="https://redirect.github.com/sindresorhus/execa/issues/1044">#1044</a>)</li>
<li>Fix type of the <code>reject</code> option (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1046">#1046</a>)</li>
</ul>
<h2>v9.0.1</h2>
<h2>Bug fixes (types)</h2>
<ul>
<li>Fix types not being importable (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1033">#1033</a>)
3bdab60</li>
<li>Fix complexity bug with types (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1037">#1037</a>)
6cc519b</li>
<li>Fix complexity bug with types (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1035">#1035</a>)
fee011d</li>
</ul>
<h2>v9.0.0</h2>
<p>This major release brings many important features including:</p>
<ul>
<li><a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#3a26">Split
the output</a> into lines, or <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#3a26">progressively
iterate</a> over them.</li>
<li><a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#cbd6">Transform
or filter</a> the input/output using <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#399a">simple
functions</a>.</li>
<li>Print the output <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#693f">to
the terminal</a> while still retrieving it programmatically.</li>
<li>Redirect the input/output <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#693f">from/to
a file</a>.</li>
<li><a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#ec17">Advanced
piping</a> between multiple subprocesses.</li>
<li>Improved <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#2913">verbose
mode</a>, for debugging.</li>
<li>More <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#40d7">detailed
errors</a>, including when <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#668c">terminating
subprocesses</a>.</li>
<li>Enhanced <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#725b">template
string syntax</a>.</li>
<li><a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#bcbf">Global/shared
options</a>.</li>
<li><a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#5731">Web
streams</a> and Transform streams support.</li>
<li><a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f#47b9">Convert
the subprocess</a> to a stream.</li>
<li><a
href="https://github.com/sindresorhus/execa/blob/HEAD/readme.md#documentation">New
documentation</a> with many examples.</li>
</ul>
<p>Please check the <a
href="https://medium.com/@ehmicky/execa-9-release-d0d5daaa097f">release
post</a> for a high-level overview! For the full list of breaking
changes, features and bug fixes, please read below.</p>
<p>Thanks <a
href="https://github.com/younggglcy"><code>@younggglcy</code></a>, <a
href="https://github.com/koshic"><code>@koshic</code></a>, <a
href="https://github.com/am0o0"><code>@am0o0</code></a> and <a
href="https://github.com/codesmith-emmy"><code>@codesmith-emmy</code></a>
for your help!</p>
<hr />
<p>One of the maintainers <a
href="https://github.com/ehmicky"><code>@ehmicky</code></a> is looking
for a remote full-time position. Specialized in Node.js back-ends and
CLIs, he led Netlify <a
href="https://www.netlify.com/platform/core/build/">Build</a>, <a
href="https://www.netlify.com/integrations/">Plugins</a> and
Configuration for 2.5 years. Feel free to contact him on <a
href="https://www.mickael-hebert.com">his website</a> or on <a
href="https://www.linkedin.com/in/mickaelhebert/">LinkedIn</a>!</p>
<hr />
<h2>Breaking changes (not types)</h2>
<ul>
<li>
<p>Dropped support for Node.js version <code><18.19.0</code> and
<code>20.0.0 - 20.4.0</code>. (834e3726)</p>
</li>
<li>
<p>When the <a
href="https://github.com/sindresorhus/execa/blob/HEAD/docs/api.md#optionsencoding"><code>encoding</code>
option</a> is <code>'buffer'</code>, the output (<a
href="https://github.com/sindresorhus/execa/blob/HEAD/docs/api.md#resultstdout"><code>result.stdout</code></a>,
<a
href="https://github.com/sindresorhus/execa/blob/HEAD/docs/api.md#resultstderr"><code>result.stderr</code></a>,
<a
href="https://github.com/sindresorhus/execa/blob/HEAD/docs/api.md#resultall"><code>result.all</code></a>)
is now an <a
href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"><code>Uint8Array</code></a>
instead of a <a
href="https://nodejs.org/api/buffer.html#class-buffer"><code>Buffer</code></a>.
For more information, see <a
href="https://sindresorhus.com/blog/goodbye-nodejs-buffer">this blog
post</a>. (by <a
href="https://github.com/younggglcy"><code>@younggglcy</code></a>) (<a
href="https://redirect.github.com/sindresorhus/execa/issues/586">#586</a>)</p>
</li>
</ul>
<pre lang="js"><code></tr></table>
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="62d02af669"><code>62d02af</code></a>
9.1.0</li>
<li><a
href="733d6ff6c2"><code>733d6ff</code></a>
Split CI jobs (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1052">#1052</a>)</li>
<li><a
href="3b11ac87d9"><code>3b11ac8</code></a>
Check types on TypeScript 5.1 + latest (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1051">#1051</a>)</li>
<li><a
href="de8e7daabe"><code>de8e7da</code></a>
Document minimum TypeScript version (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1050">#1050</a>)</li>
<li><a
href="2d8475291b"><code>2d84752</code></a>
Export <code>TemplateExpression</code> type (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1049">#1049</a>)</li>
<li><a
href="b8c131ce8e"><code>b8c131c</code></a>
9.0.2</li>
<li><a
href="e2903e990f"><code>e2903e9</code></a>
Run TypeScript on the types (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1042">#1042</a>)</li>
<li><a
href="ab2a9ed13c"><code>ab2a9ed</code></a>
Fix type of result when using the <code>reject: false</code> option (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1046">#1046</a>)</li>
<li><a
href="11bbd9d641"><code>11bbd9d</code></a>
Fix type of <code>TransformStream</code> (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1044">#1044</a>)</li>
<li><a
href="6f4941e2a1"><code>6f4941e</code></a>
Fix typing of web streams (<a
href="https://redirect.github.com/sindresorhus/execa/issues/1043">#1043</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/sindresorhus/execa/compare/v8.0.1...v9.1.0">compare
view</a></li>
</ul>
</details>
<br />
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the development-dependencies group with 1 update:
[yaml](https://github.com/eemeli/yaml).
Updates `yaml` from 2.4.1 to 2.4.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eemeli/yaml/releases">yaml's
releases</a>.</em></p>
<blockquote>
<h2>v2.4.2</h2>
<ul>
<li>Restrict YAML 1.1 boolean strings to their explicit capitalization
(<a
href="https://redirect.github.com/eemeli/yaml/issues/530">#530</a>)</li>
<li>Add sponsorship by <a href="https://www.scipress.io/">Scipress</a>
(<a
href="https://redirect.github.com/eemeli/yaml/issues/536">#536</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="f792d1b72f"><code>f792d1b</code></a>
2.4.2</li>
<li><a
href="de120d69ab"><code>de120d6</code></a>
docs: Move sponsor section up</li>
<li><a
href="5410c25083"><code>5410c25</code></a>
ci: Drop tests in EOL Node.js versions</li>
<li><a
href="30868a8135"><code>30868a8</code></a>
chore: Add sponsorship by Scipress (<a
href="https://redirect.github.com/eemeli/yaml/issues/536">#536</a>)</li>
<li><a
href="1c6fd6a76a"><code>1c6fd6a</code></a>
fix: Restrict YAML 1.1 boolean strings to their explicit capitalization
(<a
href="https://redirect.github.com/eemeli/yaml/issues/530">#530</a>)</li>
<li>See full diff in <a
href="https://github.com/eemeli/yaml/compare/v2.4.1...v2.4.2">compare
view</a></li>
</ul>
</details>
<br />
[](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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the development-dependencies group with 2 updates:
[esbuild](https://github.com/evanw/esbuild) and
[yaml](https://github.com/eemeli/yaml).
Updates `esbuild` from 0.20.1 to 0.20.2
<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.20.2</h2>
<ul>
<li>
<p>Support TypeScript experimental decorators on <code>abstract</code>
class fields (<a
href="https://redirect.github.com/evanw/esbuild/issues/3684">#3684</a>)</p>
<p>With this release, you can now use TypeScript experimental decorators
on <code>abstract</code> class fields. This was silently compiled
incorrectly in esbuild 0.19.7 and below, and was an error from esbuild
0.19.8 to esbuild 0.20.1. Code such as the following should now work
correctly:</p>
<pre lang="ts"><code>// Original code
const log = (x: any, y: string) => console.log(y)
abstract class Foo { @log abstract foo: string }
new class extends Foo { foo = '' }
<p>// Old output (with --loader=ts
--tsconfig-raw={&quot;compilerOptions&quot;:{&quot;experimentalDecorators&quot;:true}})
const log = (x, y) => console.log(y);
class Foo {
}
new class extends Foo {
foo = "";
}();</p>
<p>// New output (with --loader=ts
--tsconfig-raw={&quot;compilerOptions&quot;:{&quot;experimentalDecorators&quot;:true}})
const log = (x, y) => console.log(y);
class Foo {
}
__decorateClass([
log
], Foo.prototype, "foo", 2);
new class extends Foo {
foo = "";
}();
</code></pre></p>
</li>
<li>
<p>JSON loader now preserves <code>__proto__</code> properties (<a
href="https://redirect.github.com/evanw/esbuild/issues/3700">#3700</a>)</p>
<p>Copying JSON source code into a JavaScript file will change its
meaning if a JSON object contains the <code>__proto__</code> key. A
literal <code>__proto__</code> property in a JavaScript object literal
sets the prototype of the object instead of adding a property named
<code>__proto__</code>, while a literal <code>__proto__</code> property
in a JSON object literal just adds a property named
<code>__proto__</code>. With this release, esbuild will now work around
this problem by converting JSON to JavaScript with a computed property
key in this case:</p>
<pre lang="js"><code>// Original code
import data from
'data:application/json,{"__proto__":{"fail":true}}'
if (Object.getPrototypeOf(data)?.fail) throw 'fail'
<p>// Old output (with --bundle)
(() => {
//
<data:application/json,{"<strong>proto</strong>":{"fail":true}}>
var json_proto_fail_true_default = { <strong>proto</strong>: { fail:
true } };</p>
<p>// entry.js
if (Object.getPrototypeOf(json_proto_fail_true_default)?.fail)
throw "fail";
})();</p>
<p></code></pre></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.20.2</h2>
<ul>
<li>
<p>Support TypeScript experimental decorators on <code>abstract</code>
class fields (<a
href="https://redirect.github.com/evanw/esbuild/issues/3684">#3684</a>)</p>
<p>With this release, you can now use TypeScript experimental decorators
on <code>abstract</code> class fields. This was silently compiled
incorrectly in esbuild 0.19.7 and below, and was an error from esbuild
0.19.8 to esbuild 0.20.1. Code such as the following should now work
correctly:</p>
<pre lang="ts"><code>// Original code
const log = (x: any, y: string) => console.log(y)
abstract class Foo { @log abstract foo: string }
new class extends Foo { foo = '' }
<p>// Old output (with --loader=ts
--tsconfig-raw={&quot;compilerOptions&quot;:{&quot;experimentalDecorators&quot;:true}})
const log = (x, y) => console.log(y);
class Foo {
}
new class extends Foo {
foo = "";
}();</p>
<p>// New output (with --loader=ts
--tsconfig-raw={&quot;compilerOptions&quot;:{&quot;experimentalDecorators&quot;:true}})
const log = (x, y) => console.log(y);
class Foo {
}
__decorateClass([
log
], Foo.prototype, "foo", 2);
new class extends Foo {
foo = "";
}();
</code></pre></p>
</li>
<li>
<p>JSON loader now preserves <code>__proto__</code> properties (<a
href="https://redirect.github.com/evanw/esbuild/issues/3700">#3700</a>)</p>
<p>Copying JSON source code into a JavaScript file will change its
meaning if a JSON object contains the <code>__proto__</code> key. A
literal <code>__proto__</code> property in a JavaScript object literal
sets the prototype of the object instead of adding a property named
<code>__proto__</code>, while a literal <code>__proto__</code> property
in a JSON object literal just adds a property named
<code>__proto__</code>. With this release, esbuild will now work around
this problem by converting JSON to JavaScript with a computed property
key in this case:</p>
<pre lang="js"><code>// Original code
import data from
'data:application/json,{"__proto__":{"fail":true}}'
if (Object.getPrototypeOf(data)?.fail) throw 'fail'
<p>// Old output (with --bundle)
(() => {
//
<data:application/json,{"<strong>proto</strong>":{"fail":true}}>
var json_proto_fail_true_default = { <strong>proto</strong>: { fail:
true } };</p>
<p>// entry.js
if (Object.getPrototypeOf(json_proto_fail_true_default)?.fail)
throw "fail";
})();
</code></pre></p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="617eddaa32"><code>617edda</code></a>
publish 0.20.2 to npm</li>
<li><a
href="4780075ace"><code>4780075</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3700">#3700</a>:
json loader preserves <code>__proto__</code> keys</li>
<li><a
href="30bed2d2d7"><code>30bed2d</code></a>
better errors for invalid js decorator syntax</li>
<li><a
href="300eeb7112"><code>300eeb7</code></a>
ts: allow non-null assertions in js decorators</li>
<li><a
href="4d997d9485"><code>4d997d9</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3698">#3698</a>:
yarn pnp edge case with <code>tsconfig.json</code></li>
<li><a
href="cf42954760"><code>cf42954</code></a>
resolver: improve some debug logging</li>
<li><a
href="b0765ae132"><code>b0765ae</code></a>
fix some lints</li>
<li><a
href="dfa6206919"><code>dfa6206</code></a>
fix some comments (closes <a
href="https://redirect.github.com/evanw/esbuild/issues/3683">#3683</a>)</li>
<li><a
href="ae5cc17516"><code>ae5cc17</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/3684">#3684</a>:
<code>abstract</code> experimental decorators</li>
<li><a
href="c809af050a"><code>c809af0</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/2388">#2388</a>:
allow consuming types without dom types (<a
href="https://redirect.github.com/evanw/esbuild/issues/3679">#3679</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/evanw/esbuild/compare/v0.20.1...v0.20.2">compare
view</a></li>
</ul>
</details>
<br />
Updates `yaml` from 2.4.0 to 2.4.1
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/eemeli/yaml/releases">yaml's
releases</a>.</em></p>
<blockquote>
<h2>v2.4.1</h2>
<ul>
<li>cst: Do not drop trailing newline after line comment in block-map if
followed by unindented block-seq value (<a
href="https://redirect.github.com/eemeli/yaml/issues/525">#525</a>)</li>
<li>Stringify flow collection comments in parent (<a
href="https://redirect.github.com/eemeli/yaml/issues/528">#528</a>)</li>
<li>Do not skip folding lines after the first in indented block scalars
(<a
href="https://redirect.github.com/eemeli/yaml/issues/529">#529</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="4aa56d337d"><code>4aa56d3</code></a>
2.4.1</li>
<li><a
href="e651ce1457"><code>e651ce1</code></a>
chore: Refresh lockfile</li>
<li><a
href="1775f1341f"><code>1775f13</code></a>
test: Drop unused import to satisfy TS</li>
<li><a
href="40903db981"><code>40903db</code></a>
fix(cst): Do not drop trailing newline after line comment in block-map
if fol...</li>
<li><a
href="46a816ecc1"><code>46a816e</code></a>
fix: Do not skip folding lines after the first in indented block scalars
(fix...</li>
<li><a
href="750adbe05d"><code>750adbe</code></a>
fix: Stringify flow collection comments in parent (fixes <a
href="https://redirect.github.com/eemeli/yaml/issues/528">#528</a>)</li>
<li><a
href="e07998c607"><code>e07998c</code></a>
ci: Move update action to yaml-playground, where it has write
access</li>
<li><a
href="5ba73d1706"><code>5ba73d1</code></a>
ci: Update yaml-playground build & BrowserStack tests (<a
href="https://redirect.github.com/eemeli/yaml/issues/524">#524</a>)</li>
<li>See full diff in <a
href="https://github.com/eemeli/yaml/compare/v2.4.0...v2.4.1">compare
view</a></li>
</ul>
</details>
<br />
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.