Skip to content

Commit a87a303

Browse files
Upgrade: [dependabot] - bump esbuild from 0.27.2 to 0.27.3 (#499)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.27.2 to 0.27.3. <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.3</h2> <ul> <li> <p>Preserve URL fragments in data URLs (<a href="https://redirect.github.com/evanw/esbuild/issues/4370">#4370</a>)</p> <p>Consider the following HTML, CSS, and SVG:</p> <ul> <li> <p><code>index.html</code>:</p> <pre lang="html"><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;icons.css&quot;&gt;&lt;/head&gt; &lt;body&gt;&lt;div class=&quot;triangle&quot;&gt;&lt;/div&gt;&lt;/body&gt; &lt;/html&gt; </code></pre> </li> <li> <p><code>icons.css</code>:</p> <pre lang="css"><code>.triangle { width: 10px; height: 10px; background: currentColor; clip-path: url(./triangle.svg#x); } </code></pre> </li> <li> <p><code>triangle.svg</code>:</p> <pre lang="xml"><code>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt; &lt;defs&gt; &lt;clipPath id=&quot;x&quot;&gt; &lt;path d=&quot;M0 0H10V10Z&quot;/&gt; &lt;/clipPath&gt; &lt;/defs&gt; &lt;/svg&gt; </code></pre> </li> </ul> <p>The CSS uses a URL fragment (the <code>#x</code>) to reference the <code>clipPath</code> element in the SVG file. Previously esbuild's CSS bundler didn't preserve the URL fragment when bundling the SVG using the <code>dataurl</code> loader, which broke the bundled CSS. With this release, esbuild will now preserve the URL fragment in the bundled CSS:</p> <pre lang="css"><code>/* icons.css */ .triangle { width: 10px; height: 10px; background: currentColor; clip-path: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;defs&gt;&lt;clipPath id=&quot;x&quot;&gt;&lt;path d=&quot;M0 0H10V10Z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;/svg&gt;#x'); } </code></pre> </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.3</h2> <ul> <li> <p>Preserve URL fragments in data URLs (<a href="https://redirect.github.com/evanw/esbuild/issues/4370">#4370</a>)</p> <p>Consider the following HTML, CSS, and SVG:</p> <ul> <li> <p><code>index.html</code>:</p> <pre lang="html"><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;icons.css&quot;&gt;&lt;/head&gt; &lt;body&gt;&lt;div class=&quot;triangle&quot;&gt;&lt;/div&gt;&lt;/body&gt; &lt;/html&gt; </code></pre> </li> <li> <p><code>icons.css</code>:</p> <pre lang="css"><code>.triangle { width: 10px; height: 10px; background: currentColor; clip-path: url(./triangle.svg#x); } </code></pre> </li> <li> <p><code>triangle.svg</code>:</p> <pre lang="xml"><code>&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt; &lt;defs&gt; &lt;clipPath id=&quot;x&quot;&gt; &lt;path d=&quot;M0 0H10V10Z&quot;/&gt; &lt;/clipPath&gt; &lt;/defs&gt; &lt;/svg&gt; </code></pre> </li> </ul> <p>The CSS uses a URL fragment (the <code>#x</code>) to reference the <code>clipPath</code> element in the SVG file. Previously esbuild's CSS bundler didn't preserve the URL fragment when bundling the SVG using the <code>dataurl</code> loader, which broke the bundled CSS. With this release, esbuild will now preserve the URL fragment in the bundled CSS:</p> <pre lang="css"><code>/* icons.css */ .triangle { width: 10px; height: 10px; background: currentColor; clip-path: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;defs&gt;&lt;clipPath id=&quot;x&quot;&gt;&lt;path d=&quot;M0 0H10V10Z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;/svg&gt;#x'); } </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/9129e00e6c36a3e374820cb5e3fc2cd319c8ab85"><code>9129e00</code></a> publish 0.27.3 to npm</li> <li><a href="https://github.com/evanw/esbuild/commit/e20e4115acda9c9f052fdd1ec8d7d5c5489e837b"><code>e20e411</code></a> small fix to release notes</li> <li><a href="https://github.com/evanw/esbuild/commit/0dc0f2dee556460bd7b81d5bbbae5a2f86449ab6"><code>0dc0f2d</code></a> fix <a href="https://redirect.github.com/evanw/esbuild/issues/4322">#4322</a>: parse and print CSS <code>@scope</code> rules</li> <li><a href="https://github.com/evanw/esbuild/commit/55fe39164cd3429fcb92c6f358a8dfe2f6e6e559"><code>55fe391</code></a> update firefox css gradient support</li> <li><a href="https://github.com/evanw/esbuild/commit/2c35297c7ad249a51b9cc3974fa91f74dc13f68c"><code>2c35297</code></a> update gradient lowering transform</li> <li><a href="https://github.com/evanw/esbuild/commit/9209e4445abe7610018f0f758fd5d1fa13ec3ea8"><code>9209e44</code></a> Update Go to 1.25.7 (<a href="https://redirect.github.com/evanw/esbuild/issues/4388">#4388</a>)</li> <li><a href="https://github.com/evanw/esbuild/commit/e8d861b68cf8c3c3a4806ec87444ee48b9af1ade"><code>e8d861b</code></a> close <a href="https://redirect.github.com/evanw/esbuild/issues/4374">#4374</a>: compat table for the <code>using</code> feature</li> <li><a href="https://github.com/evanw/esbuild/commit/19b8887368396934957abd75f316cc069d6cc067"><code>19b8887</code></a> no longer need <code>williamkapke/node-compat-table</code></li> <li><a href="https://github.com/evanw/esbuild/commit/7e442189722b54bc6c574ae1148e1014d99e5f32"><code>7e44218</code></a> the <code>kangax/compat-table</code> repo moved to a new url</li> <li><a href="https://github.com/evanw/esbuild/commit/23b9338ed5efbdfa29d59b8b0d8088b1761fdc39"><code>23b9338</code></a> run <code>make update-compat-table</code></li> <li>Additional commits viewable in <a href="https://github.com/evanw/esbuild/compare/v0.27.2...v0.27.3">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.2&new-version=0.27.3)](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 b3bec59 commit a87a303

2 files changed

Lines changed: 110 additions & 125 deletions

File tree

0 commit comments

Comments
 (0)