Commit a32d54f
authored
Bump esbuild and tsx in /impls/node (#60)
Bumps [esbuild](https://github.com/evanw/esbuild) to 0.25.1 and updates
ancestor dependency [tsx](https://github.com/privatenumber/tsx). These
dependencies need to be updated together.
Updates `esbuild` from 0.20.2 to 0.25.1
<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.25.1</h2>
<ul>
<li>
<p>Fix incorrect paths in inline source maps (<a
href="https://redirect.github.com/evanw/esbuild/issues/4070">#4070</a>,
<a
href="https://redirect.github.com/evanw/esbuild/issues/4075">#4075</a>,
<a
href="https://redirect.github.com/evanw/esbuild/issues/4105">#4105</a>)</p>
<p>This fixes a regression from version 0.25.0 where esbuild didn't
correctly resolve relative paths contained within source maps in inline
<code>sourceMappingURL</code> data URLs. The paths were incorrectly
being passed through as-is instead of being resolved relative to the
source file containing the <code>sourceMappingURL</code> comment, which
was due to the data URL not being a file URL. This regression has been
fixed, and this case now has test coverage.</p>
</li>
<li>
<p>Fix invalid generated source maps (<a
href="https://redirect.github.com/evanw/esbuild/issues/4080">#4080</a>,
<a
href="https://redirect.github.com/evanw/esbuild/issues/4082">#4082</a>,
<a
href="https://redirect.github.com/evanw/esbuild/issues/4104">#4104</a>,
<a
href="https://redirect.github.com/evanw/esbuild/issues/4107">#4107</a>)</p>
<p>This release fixes a regression from version 0.24.1 that could cause
esbuild to generate invalid source maps. Specifically under certain
conditions, esbuild could generate a mapping with an out-of-bounds
source index. It was introduced by code that attempted to improve
esbuild's handling of "null" entries in source maps (i.e.
mappings with a generated position but no original position). This
regression has been fixed.</p>
<p>This fix was contributed by <a
href="https://github.com/jridgewell"><code>@jridgewell</code></a>.</p>
</li>
<li>
<p>Fix a regression with non-file source map paths (<a
href="https://redirect.github.com/evanw/esbuild/issues/4078">#4078</a>)</p>
<p>The format of paths in source maps that aren't in the
<code>file</code> namespace was unintentionally changed in version
0.25.0. Path namespaces is an esbuild-specific concept that is
optionally available for plugins to use to distinguish paths from
<code>file</code> paths and from paths meant for other plugins.
Previously the namespace was prepended to the path joined with a
<code>:</code> character, but version 0.25.0 unintentionally failed to
prepend the namespace. The previous behavior has been restored.</p>
</li>
<li>
<p>Fix a crash with <code>switch</code> optimization (<a
href="https://redirect.github.com/evanw/esbuild/issues/4088">#4088</a>)</p>
<p>The new code in the previous release to optimize dead code in switch
statements accidentally introduced a crash in the edge case where one or
more switch case values include a function expression. This is because
esbuild now visits the case values first to determine whether any cases
are dead code, and then visits the case bodies once the dead code status
is known. That triggered some internal asserts that guard against
traversing the AST in an unexpected order. This crash has been fixed by
changing esbuild to expect the new traversal ordering. Here's an example
of affected code:</p>
<pre lang="js"><code>switch (x) {
case '':
return y.map(z => z.value)
case y.map(z => z.key).join(','):
return []
}
</code></pre>
</li>
<li>
<p>Update Go from 1.23.5 to 1.23.7 (<a
href="https://redirect.github.com/evanw/esbuild/issues/4076">#4076</a>,
<a
href="https://redirect.github.com/evanw/esbuild/pull/4077">#4077</a>)</p>
<p>This should have no effect on existing code as this version change
does not change Go's operating system support. It may remove certain
reports from vulnerability scanners that detect which version of the Go
compiler esbuild uses.</p>
<p>This PR was contributed by <a
href="https://github.com/MikeWillCook"><code>@MikeWillCook</code></a>.</p>
</li>
</ul>
<h2>v0.25.0</h2>
<p><strong>This release deliberately contains backwards-incompatible
changes.</strong> To avoid automatically picking up releases like this,
you should either be pinning the exact version of <code>esbuild</code>
in your <code>package.json</code> file (recommended) or be using a
version range syntax that only accepts patch upgrades such as
<code>^0.24.0</code> or <code>~0.24.0</code>. See npm's documentation
about <a
href="https://docs.npmjs.com/cli/v6/using-npm/semver/">semver</a> for
more information.</p>
<ul>
<li>
<p>Restrict access to esbuild's development server (<a
href="https://github.com/evanw/esbuild/security/advisories/GHSA-67mh-4wv8-2f99">GHSA-67mh-4wv8-2f99</a>)</p>
<p>This change addresses esbuild's first security vulnerability report.
Previously esbuild set the <code>Access-Control-Allow-Origin</code>
header to <code>*</code> to allow esbuild's development server to be
flexible in how it's used for development. However, this allows the
websites you visit to make HTTP requests to esbuild's local development
server, which gives read-only access to your source code if the website
were to fetch your source code's specific URL. You can read more
information in <a
href="https://github.com/evanw/esbuild/security/advisories/GHSA-67mh-4wv8-2f99">the
report</a>.</p>
<p>Starting with this release, <a
href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">CORS</a>
will now be disabled, and requests will now be denied if the host does
not match the one provided to <code>--serve=</code>. The default host is
<code>0.0.0.0</code>, which refers to all of the IP addresses that
represent the local machine (e.g. both <code>127.0.0.1</code> and
<code>192.168.0.1</code>). If you want to customize anything about
esbuild's development server, you can <a
href="https://esbuild.github.io/api/#serve-proxy">put a proxy in front
of esbuild</a> and modify the incoming and/or outgoing requests.</p>
<p>In addition, the <code>serve()</code> API call has been changed to
return an array of <code>hosts</code> instead of a single
<code>host</code> string. This makes it possible to determine all of the
hosts that esbuild's development server will accept.</p>
<p>Thanks to <a
href="https://github.com/sapphi-red"><code>@sapphi-red</code></a> for
reporting this issue.</p>
</li>
<li>
<p>Delete output files when a build fails in watch mode (<a
href="https://redirect.github.com/evanw/esbuild/issues/3643">#3643</a>)</p>
<p>It has been requested for esbuild to delete files when a build fails
in watch mode. Previously esbuild left the old files in place, which
could cause people to not immediately realize that the most recent build
failed. With this release, esbuild will now delete all output files if a
rebuild fails. Fixing the build error and triggering another rebuild
will restore all output files again.</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-2024.md">esbuild's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog: 2024</h1>
<p>This changelog documents all esbuild versions published in the year
2024 (versions 0.19.12 through 0.24.2).</p>
<h2>0.24.2</h2>
<ul>
<li>
<p>Fix regression with <code>--define</code> and
<code>import.meta</code> (<a
href="https://redirect.github.com/evanw/esbuild/issues/4010">#4010</a>,
<a
href="https://redirect.github.com/evanw/esbuild/issues/4012">#4012</a>,
<a
href="https://redirect.github.com/evanw/esbuild/pull/4013">#4013</a>)</p>
<p>The previous change in version 0.24.1 to use a more expression-like
parser for <code>define</code> values to allow quoted property names
introduced a regression that removed the ability to use
<code>--define:import.meta=...</code>. Even though <code>import</code>
is normally a keyword that can't be used as an identifier, ES modules
special-case the <code>import.meta</code> expression to behave like an
identifier anyway. This change fixes the regression.</p>
<p>This fix was contributed by <a
href="https://github.com/sapphi-red"><code>@sapphi-red</code></a>.</p>
</li>
</ul>
<h2>0.24.1</h2>
<ul>
<li>
<p>Allow <code>es2024</code> as a target in <code>tsconfig.json</code>
(<a
href="https://redirect.github.com/evanw/esbuild/issues/4004">#4004</a>)</p>
<p>TypeScript recently <a
href="https://devblogs.microsoft.com/typescript/announcing-typescript-5-7/#support-for---target-es2024-and---lib-es2024">added
<code>es2024</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>
<pre lang="json"><code>{
"compilerOptions": {
"target": "ES2024"
}
}
</code></pre>
<p>As a reminder, the only thing that esbuild uses this field for is
determining whether or not to use legacy TypeScript behavior for class
fields. You can read more in <a
href="https://esbuild.github.io/content-types/#tsconfig-json">the
documentation</a>.</p>
<p>This fix was contributed by <a
href="https://github.com/billyjanitsch"><code>@billyjanitsch</code></a>.</p>
</li>
<li>
<p>Allow automatic semicolon insertion after
<code>get</code>/<code>set</code></p>
<p>This change fixes a grammar bug in the parser that incorrectly
treated the following code as a syntax error:</p>
<pre lang="ts"><code>class Foo {
get
*x() {}
set
*y() {}
}
</code></pre>
<p>The above code will be considered valid starting with this release.
This change to esbuild follows a <a
href="https://redirect.github.com/microsoft/TypeScript/pull/60225">similar
change to TypeScript</a> which will allow this syntax starting with
TypeScript 5.7.</p>
</li>
<li>
<p>Allow quoted property names in <code>--define</code> and
<code>--pure</code> (<a
href="https://redirect.github.com/evanw/esbuild/issues/4008">#4008</a>)</p>
<p>The <code>define</code> and <code>pure</code> API options now accept
identifier expressions containing quoted property names. Previously all
identifiers in the identifier expression had to be bare identifiers.
This change now makes <code>--define</code> and <code>--pure</code>
consistent with <code>--global-name</code>, which already supported
quoted property names. For example, the following is now possible:</p>
<pre lang="js"><code></code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/evanw/esbuild/commit/6bfc1c13b4d986b86e8bc2035f00c337b0c1d007"><code>6bfc1c1</code></a>
publish 0.25.1 to npm</li>
<li><a
href="https://github.com/evanw/esbuild/commit/f9b39529a328f513cd73b36e8488a4a624df5c36"><code>f9b3952</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/4078">#4078</a>:
prepend namespaces to source map paths</li>
<li><a
href="https://github.com/evanw/esbuild/commit/ccf3dd7889e7765a1d6f1596ada0f22b320d7174"><code>ccf3dd7</code></a>
add "contributed by" in changelog</li>
<li><a
href="https://github.com/evanw/esbuild/commit/48cd7a9e26452f30345eb10a3d471f26de56d1ec"><code>48cd7a9</code></a>
Update Go from 1.23.5 to 1.23.7 (<a
href="https://redirect.github.com/evanw/esbuild/issues/4077">#4077</a>)</li>
<li><a
href="https://github.com/evanw/esbuild/commit/1f04fa4dc85ef4b1fa01e1938fa127a2cc170c35"><code>1f04fa4</code></a>
fix absolute windows paths in source maps</li>
<li><a
href="https://github.com/evanw/esbuild/commit/9ca03f6ea8aa4c418cb66da876139eef4e2abb26"><code>9ca03f6</code></a>
also add test case from <a
href="https://redirect.github.com/evanw/esbuild/issues/4075">#4075</a></li>
<li><a
href="https://github.com/evanw/esbuild/commit/2f244c085a970b873e579ac2a0b1c054cf9c66ea"><code>2f244c0</code></a>
add test case from <a
href="https://redirect.github.com/evanw/esbuild/issues/4104">#4104</a></li>
<li><a
href="https://github.com/evanw/esbuild/commit/1dde994de8858d71fe0e9e128d22142b3c9d7de6"><code>1dde994</code></a>
fix incorrect test names</li>
<li><a
href="https://github.com/evanw/esbuild/commit/9f008c59b628b65c00878d7673ed24317e911666"><code>9f008c5</code></a>
fix <a
href="https://redirect.github.com/evanw/esbuild/issues/4070">#4070</a>:
<code>file</code> namespace for <code>sourceMappingURL</code></li>
<li><a
href="https://github.com/evanw/esbuild/commit/cbd5eb8c82089619f235b96be7b7b18c06fc10c0"><code>cbd5eb8</code></a>
release notes and tests for <a
href="https://redirect.github.com/evanw/esbuild/issues/4082">#4082</a></li>
<li>Additional commits viewable in <a
href="https://github.com/evanw/esbuild/compare/v0.20.2...v0.25.1">compare
view</a></li>
</ul>
</details>
<br />
Updates `tsx` from 4.11.0 to 4.19.3
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/privatenumber/tsx/releases">tsx's
releases</a>.</em></p>
<blockquote>
<h2>v4.19.3</h2>
<h2><a
href="https://github.com/privatenumber/tsx/compare/v4.19.2...v4.19.3">4.19.3</a>
(2025-02-19)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>upgrade <code>esbuild</code> to <code>~0.25.0</code> to address vuln
report (<a
href="https://redirect.github.com/privatenumber/tsx/issues/698">#698</a>)
(<a
href="https://github.com/privatenumber/tsx/commit/e04e6c6ccb56f74db5036c358d6c6b24bebe6319">e04e6c6</a>)</li>
</ul>
<hr />
<p>This release is also available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/tsx/v/4.19.3"><code>npm
package (@latest dist-tag)</code></a></li>
</ul>
<h2>v4.19.2</h2>
<h2><a
href="https://github.com/privatenumber/tsx/compare/v4.19.1...v4.19.2">4.19.2</a>
(2024-10-26)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>generate sourcesContent when Node.js debugger is enabled (<a
href="https://redirect.github.com/privatenumber/tsx/issues/670">#670</a>)
(<a
href="https://github.com/privatenumber/tsx/commit/7c47074652790e8225bb9c0d3123fc92e75d3695">7c47074</a>)</li>
</ul>
<hr />
<p>This release is also available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/tsx/v/4.19.2"><code>npm
package (@latest dist-tag)</code></a></li>
</ul>
<h2>v4.19.1</h2>
<h2><a
href="https://github.com/privatenumber/tsx/compare/v4.19.0...v4.19.1">4.19.1</a>
(2024-09-12)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>cjs:</strong> patch <code>module.path</code> for accurate
cache ID (<a
href="https://github.com/privatenumber/tsx/commit/0329bfc731346d6c8b6055c7f2882e5c3155a7ec">0329bfc</a>),
closes <a
href="https://redirect.github.com/privatenumber/tsx/issues/651">privatenumber/tsx#651</a></li>
<li><strong>cjs:</strong> resolve ts extensions from js when namespaced
(<a
href="https://github.com/privatenumber/tsx/commit/44ed37f19fa576d57aec6a17cdcd43aa17a98fb4">44ed37f</a>)</li>
</ul>
<hr />
<p>This release is also available on:</p>
<ul>
<li><a href="https://www.npmjs.com/package/tsx/v/4.19.1"><code>npm
package (@latest dist-tag)</code></a></li>
</ul>
<h2>v4.19.0</h2>
<h1><a
href="https://github.com/privatenumber/tsx/compare/v4.18.0...v4.19.0">4.19.0</a>
(2024-08-27)</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/privatenumber/tsx/commit/e04e6c6ccb56f74db5036c358d6c6b24bebe6319"><code>e04e6c6</code></a>
fix: upgrade <code>esbuild</code> to <code>~0.25.0</code> to address
vuln report (<a
href="https://redirect.github.com/privatenumber/tsx/issues/698">#698</a>)</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/28a3e7d2b8fd72b683aab8a98dd1fcee4624e4cb"><code>28a3e7d</code></a>
docs: update links to <code>npx</code> (<a
href="https://redirect.github.com/privatenumber/tsx/issues/680">#680</a>)</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/38b7135c0c412cde85a48ec6445085f3df173d2d"><code>38b7135</code></a>
docs: add carbon ads</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/7c47074652790e8225bb9c0d3123fc92e75d3695"><code>7c47074</code></a>
fix: generate sourcesContent when Node.js debugger is enabled (<a
href="https://redirect.github.com/privatenumber/tsx/issues/670">#670</a>)</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/315d5f44f301424de595873f93c102a5c184ab46"><code>315d5f4</code></a>
docs(watch): document <code>--include</code> flag</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/375e39a2a68d61045c1483239cd51b284eaea0ad"><code>375e39a</code></a>
test: refactor enforce-timeout</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/524cb775b0ac5f93ba63f1c5cd6b1c0d0b42784c"><code>524cb77</code></a>
docs(cjs): add compilation caveats</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/7f8a051947ad2af22d8d8f1b99f26ca11ed282d2"><code>7f8a051</code></a>
chore(deps): update dependency node to v20.18.0 (<a
href="https://redirect.github.com/privatenumber/tsx/issues/660">#660</a>)</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/97e8de06255119891a03281f24f13442f922ee50"><code>97e8de0</code></a>
chore: upgrade pnpm</li>
<li><a
href="https://github.com/privatenumber/tsx/commit/95d2b0f74b8f43572aa64188252d172216e3dcf6"><code>95d2b0f</code></a>
chore: remove commit hooks</li>
<li>Additional commits viewable in <a
href="https://github.com/privatenumber/tsx/compare/v4.11.0...v4.19.3">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 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)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/replit/river-babel/network/alerts).
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 6ad2228 commit a32d54f
2 files changed
+186
-125
lines changed
0 commit comments