Commit 2547f0a
authored
build(deps): bump esbuild from 0.25.0 to 0.25.1 (#272)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.25.0 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>
</blockquote>
</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.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>
</blockquote>
</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.25.0...v0.25.1">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 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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent 3705cf6 commit 2547f0a
2 files changed
+105
-105
lines changed
0 commit comments