[PR #1184] [MERGED] Bump svgo from 3.0.3 to 3.0.4 #1253

Closed
opened 2026-03-03 14:42:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/lipis/flag-icons/pull/1184
Author: @dependabot[bot]
Created: 11/20/2023
Status: Merged
Merged: 11/21/2023
Merged by: @lipis

Base: mainHead: dependabot/npm_and_yarn/svgo-3.0.4


📝 Commits (1)

  • 1587556 Bump svgo from 3.0.3 to 3.0.4

📊 Changes

2 files changed (+6 additions, -5 deletions)

View changed files

📝 package.json (+1 -1)
📝 yarn.lock (+5 -4)

📄 Description

Bumps svgo from 3.0.3 to 3.0.4.

Release notes

Sourced from svgo's releases.

v3.0.4

Includes various bug fixes for existing plugins and a new optimization. Also splits removeXMLNS, which removed XLink, into two separate plugins, removeXMLNS and removeXlink.

What's Changed

Default Behavior

Bug Fixes

SVG Optimization

  • Convert Path Commands, convert to z command if going back to initial position, or drop z if redundant. By @​KTibow in svg/svgo#1822
  • Inline Styles, when inlining a CSS property that's already declared in a presentation attribute of the node, drop the attribute. By @​SethFalco in svg/svgo#1829
  • Remove XLink, new plugin that removes the XLink (xmlns:xlink) namespace and migrates from XLink attributes to the SVG 2 equivalent. Disabled by default. By @​TrySound and @​SethFalco in svg/svgo#1535

Metrics

Before and after using vectors from various sources, with the default preset of each respective version:

SVG Original v3.0.3 v3.0.4 Delta
Arch Linux Logo 9.529 KiB 4.738 KiB 4.735 KiB ⬇️ 0.003 KiB
Blobs 50.45 KiB 42.949 KiB 42.949 KiB
Isometric Madness 869.034 KiB 550.699 KiB 550.593 KiB ⬇️ 0.106 KiB
tldr-pages Banner 2.071 KiB 1.07 KiB 1.07 KiB
Wikipedia Logo 161.552 KiB 118.441 KiB 117.152 KiB ⬇️ 1.289 KiB

Before and after of the browser bundle of each respective version:

v3.0.3 v3.0.4 Delta
svgo.browser.js 651.7 kB 656.9 kB ⬆️ 5.2 kB
Commits
  • ee0a0f5 docs(removeXlink): add tip to run plugin last (#1840)
  • bf5cf1f docs: add params section to remove xlink docs (#1839)
  • 9fca7be feat(removeXlink): new plugin to map xlink attrs to svg 2
  • 9a20ad2 chore: add contribution guide (#1837)
  • 9809b67 fix(inlineStyles): dont remove id if traversed in another selector (#1836)
  • 0e5f0f1 chore: revamp readme (#1835)
  • 7d481ac test: enable regression test that now passes (#1833)
  • b740c07 fix(inlineStyles): dont remove wrapper class if traversed (#1832)
  • 7e25b62 fix(inlineStyles): inline styles in order of priority (#1831)
  • 1f766ac fix(convertPathData): skip if transform overridden in styles (#1830)
  • Additional commits viewable in compare view

Dependabot compatibility score

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 commands and options

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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/lipis/flag-icons/pull/1184 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 11/20/2023 **Status:** ✅ Merged **Merged:** 11/21/2023 **Merged by:** [@lipis](https://github.com/lipis) **Base:** `main` ← **Head:** `dependabot/npm_and_yarn/svgo-3.0.4` --- ### 📝 Commits (1) - [`1587556`](https://github.com/lipis/flag-icons/commit/1587556edc134f21bbff8d1b4a30caf9431c4a43) Bump svgo from 3.0.3 to 3.0.4 ### 📊 Changes **2 files changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `yarn.lock` (+5 -4) </details> ### 📄 Description Bumps [svgo](https://github.com/svg/svgo) from 3.0.3 to 3.0.4. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/svg/svgo/releases">svgo's releases</a>.</em></p> <blockquote> <h2>v3.0.4</h2> <p>Includes various bug fixes for existing plugins and a new optimization. Also splits <code>removeXMLNS</code>, which removed XLink, into two separate plugins, <code>removeXMLNS</code> and <code>removeXlink</code>.</p> <h2>What's Changed</h2> <h3>Default Behavior</h3> <ul> <li><strong>Remove XML Namespace</strong>, no longer removes the XLink (<code>xmlns:xlink</code>) namespace. If that is desirable, you should enable the new <a href="https://svgo.dev/docs/plugins/remove-xlink/">Remove XLink</a> (<code>removeXlink</code>) plugin, which does more while being safer. By <a href="https://github.com/TrySound"><code>@​TrySound</code></a> and <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1535">svg/svgo#1535</a></li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>Convert Path Commands</strong>, ignore instances where transform applied via style tag. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1830">svg/svgo#1830</a></li> <li><strong>Inline Styles</strong>, inline properties with the same specificity in the order that they appear in the stylesheet. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1831">svg/svgo#1831</a></li> <li><strong>Inline Styles</strong>, don't remove class or id from node if it's traversed in another CSS selector. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1832">svg/svgo#1832</a> and <a href="https://redirect.github.com/svg/svgo/pull/1836">svg/svgo#1836</a></li> <li>Don't trim <a href="https://developer.mozilla.org/docs/Web/HTML/Element/pre"><code>pre</code></a> elements in <a href="https://developer.mozilla.org/docs/Web/SVG/Element/foreignObject"><code>foreignObject</code></a>. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1796">svg/svgo#1796</a></li> <li>Don't crash when encountering <a href="https://webkit.org/blog/324/css-animation-2/"><code>@-webkit-keyframes</code></a> in <code>&lt;style&gt;</code> node. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1826">svg/svgo#1826</a></li> </ul> <h3>SVG Optimization</h3> <ul> <li><strong>Convert Path Commands</strong>, convert to <code>z</code> command if going back to initial position, or drop <code>z</code> if redundant. By <a href="https://github.com/KTibow"><code>@​KTibow</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1822">svg/svgo#1822</a></li> <li><strong>Inline Styles</strong>, when inlining a CSS property that's already declared in a presentation attribute of the node, drop the attribute. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1829">svg/svgo#1829</a></li> <li><strong>Remove XLink</strong>, new plugin that removes the XLink (<code>xmlns:xlink</code>) namespace and migrates from XLink attributes to the SVG 2 equivalent. Disabled by default. By <a href="https://github.com/TrySound"><code>@​TrySound</code></a> and <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1535">svg/svgo#1535</a></li> </ul> <h2>Metrics</h2> <p>Before and after using vectors from various sources, with the default preset of each respective version:</p> <table> <thead> <tr> <th>SVG</th> <th>Original</th> <th>v3.0.3</th> <th>v3.0.4</th> <th>Delta</th> </tr> </thead> <tbody> <tr> <td><a href="https://archlinux.org/art/">Arch Linux Logo</a></td> <td>9.529 KiB</td> <td>4.738 KiB</td> <td>4.735 KiB</td> <td>⬇️ 0.003 KiB</td> </tr> <tr> <td><a href="https://gitlab.gnome.org/GNOME/gnome-backgrounds/-/blob/main/backgrounds/blobs-d.svg">Blobs</a></td> <td>50.45 KiB</td> <td>42.949 KiB</td> <td>42.949 KiB</td> <td></td> </tr> <tr> <td><a href="https://inkscape.org/~Denis_Kuznetsky/%E2%98%85isometric-madness">Isometric Madness</a></td> <td>869.034 KiB</td> <td>550.699 KiB</td> <td>550.593 KiB</td> <td>⬇️ 0.106 KiB</td> </tr> <tr> <td><a href="https://github.com/tldr-pages/tldr/blob/main/images/banner.svg">tldr-pages Banner</a></td> <td>2.071 KiB</td> <td>1.07 KiB</td> <td>1.07 KiB</td> <td></td> </tr> <tr> <td><a href="https://en.wikipedia.org/wiki/File:Wikipedia-logo-v2.svg">Wikipedia Logo</a></td> <td>161.552 KiB</td> <td>118.441 KiB</td> <td>117.152 KiB</td> <td>⬇️ 1.289 KiB</td> </tr> </tbody> </table> <p>Before and after of the browser bundle of each respective version:</p> <table> <thead> <tr> <th></th> <th>v3.0.3</th> <th>v3.0.4</th> <th>Delta</th> </tr> </thead> <tbody> <tr> <td>svgo.browser.js</td> <td>651.7 kB</td> <td>656.9 kB</td> <td>⬆️ 5.2 kB</td> </tr> </tbody> </table> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/svg/svgo/commit/ee0a0f5130b0c1f1839613269543e7af3eacbeb1"><code>ee0a0f5</code></a> docs(removeXlink): add tip to run plugin last (<a href="https://redirect.github.com/svg/svgo/issues/1840">#1840</a>)</li> <li><a href="https://github.com/svg/svgo/commit/bf5cf1fadd5b30dd11b90c2dc18ac35a2b0d6a17"><code>bf5cf1f</code></a> docs: add params section to remove xlink docs (<a href="https://redirect.github.com/svg/svgo/issues/1839">#1839</a>)</li> <li><a href="https://github.com/svg/svgo/commit/9fca7be55150919110cb9059bc6ebef92d5cb09d"><code>9fca7be</code></a> feat(removeXlink): new plugin to map xlink attrs to svg 2</li> <li><a href="https://github.com/svg/svgo/commit/9a20ad25621abcd72c5e83323142c4593f4062cd"><code>9a20ad2</code></a> chore: add contribution guide (<a href="https://redirect.github.com/svg/svgo/issues/1837">#1837</a>)</li> <li><a href="https://github.com/svg/svgo/commit/9809b67852bbe582ecfb0dd76d25eae465a6b7aa"><code>9809b67</code></a> fix(inlineStyles): dont remove id if traversed in another selector (<a href="https://redirect.github.com/svg/svgo/issues/1836">#1836</a>)</li> <li><a href="https://github.com/svg/svgo/commit/0e5f0f104d742c64acd54235eeb90c5e354c650f"><code>0e5f0f1</code></a> chore: revamp readme (<a href="https://redirect.github.com/svg/svgo/issues/1835">#1835</a>)</li> <li><a href="https://github.com/svg/svgo/commit/7d481acfeacf07febfa9fa97f5e1fe487ad2ebf2"><code>7d481ac</code></a> test: enable regression test that now passes (<a href="https://redirect.github.com/svg/svgo/issues/1833">#1833</a>)</li> <li><a href="https://github.com/svg/svgo/commit/b740c0769500353eb3b8685042c4ffc9804fb804"><code>b740c07</code></a> fix(inlineStyles): dont remove wrapper class if traversed (<a href="https://redirect.github.com/svg/svgo/issues/1832">#1832</a>)</li> <li><a href="https://github.com/svg/svgo/commit/7e25b62fa7b4295f592fb1301392f28fbbb7dcd9"><code>7e25b62</code></a> fix(inlineStyles): inline styles in order of priority (<a href="https://redirect.github.com/svg/svgo/issues/1831">#1831</a>)</li> <li><a href="https://github.com/svg/svgo/commit/1f766ac5093cbd4368a715e894e4d61ab050c53f"><code>1f766ac</code></a> fix(convertPathData): skip if transform overridden in styles (<a href="https://redirect.github.com/svg/svgo/issues/1830">#1830</a>)</li> <li>Additional commits viewable in <a href="https://github.com/svg/svgo/compare/v3.0.3...v3.0.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=svgo&package-manager=npm_and_yarn&previous-version=3.0.3&new-version=3.0.4)](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> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 14:42:50 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#1253
No description provided.