[PR #1242] [CLOSED] Bump svgo from 3.2.0 to 3.3.0 #1284

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

📋 Pull Request Information

Original PR: https://github.com/lipis/flag-icons/pull/1242
Author: @dependabot[bot]
Created: 5/8/2024
Status: Closed

Base: mainHead: dependabot/npm_and_yarn/svgo-3.3.0


📝 Commits (1)

  • 3b0f022 Bump svgo from 3.2.0 to 3.3.0

📊 Changes

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

View changed files

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

📄 Description

Bumps svgo from 3.2.0 to 3.3.0.

Release notes

Sourced from svgo's releases.

v3.3.0

What's Changed

ESM

SVGO is now a dual package, serving for both Common JS and ESM usage. We believe there shouldn't be any problems, especially as SVGO as largely stateless, but feel free to open an issue if you encounter problems with this.

To be explicit, this is not a breaking change, and SVGO should continue to work in Common JS projects!

Thanks to @​jdufresne for doing the bulk of the work.

Default Behavior

  • convertColors, now converts all references to colors excluding references to IDs to lowercase. This can be disabled by setting convertCase to false.

Bug Fixes

SVG Optimization

  • convertColors, introduce parameter to convert colors to common casing (lowercase/uppercase). By @​JayLeininger in svg/svgo#1692
  • removeDeprecatedAttrs, new plugin that is disabled by default to remove SVG attributes that are deprecated. By @​jdufresne in #1869

Metrics

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

SVG Original v3.2.0 v3.3.0 Delta
Arch Linux Logo 9.529 KiB 4.115 KiB 4.097 KiB ⬇️ 0.018 KiB
Blobs 50.45 KiB 42.623 KiB 42.609 KiB ⬇️ 0.014 KiB
Isometric Madness 869.034 KiB 540.582 KiB 540.073 KiB ⬇️ 0.509 KiB
tldr-pages Banner 2.071 KiB 1.07 KiB 1.07 KiB
Wikipedia Logo 161.551 KiB 111.668 KiB 111.668 KiB

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

... (truncated)

Commits
  • a3ac91a chore: Add CodeQL workflow (#1876)
  • 89b0c6c fix(cleanupIds): handle no-uri-encoded references (#1982)
  • 888d078 fix(makeProgram): specify .mjs and .cjs config files are allowed (#1976)
  • 8d6385b fix(convertPathData): preserve vertex for markers only path (#1967)
  • 53aad59 feat(addClassesToSVGElement): allow function as param (#1966)
  • f49b6a7 fix: transformToMatrix() returns incorrect result for scale(n,0) (#1965)
  • a8d2df6 fix: mergePaths should not merge paths with styles that depend on bounding bo...
  • 473c5a6 fix: stringifyPathData needs space before scientific notation (#1961)
  • 573a5c7 chore: Update the README docs to suggest svgo.config.mjs (#1958)
  • e257598 fix: <a> element not parsed as text (#1959)
  • 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/1242 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 5/8/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/npm_and_yarn/svgo-3.3.0` --- ### 📝 Commits (1) - [`3b0f022`](https://github.com/lipis/flag-icons/commit/3b0f0228fa5c418bcecd2bd931a67e03a1e248ac) Bump svgo from 3.2.0 to 3.3.0 ### 📊 Changes **2 files changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `yarn.lock` (+4 -4) </details> ### 📄 Description Bumps [svgo](https://github.com/svg/svgo) from 3.2.0 to 3.3.0. <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.3.0</h2> <h2>What's Changed</h2> <h3>ESM</h3> <p>SVGO is now a dual package, serving for both Common JS and ESM usage. We believe there shouldn't be any problems, especially as SVGO as largely stateless, but feel free to open an issue if you encounter problems with this.</p> <p>To be explicit, this is not a breaking change, and SVGO should continue to work in Common JS projects!</p> <p>Thanks to <a href="https://github.com/jdufresne"><code>@​jdufresne</code></a> for doing the bulk of the work.</p> <h3>Default Behavior</h3> <ul> <li><a href=""><code>convertColors</code></a>, now converts all references to colors excluding references to IDs to lowercase. This can be disabled by setting <code>convertCase</code> to <code>false</code>.</li> </ul> <h3>Bug Fixes</h3> <ul> <li><a href=""><code>cleanupIds</code></a>, treat both URI encoded and non-URI encoded IDs as the same. By <a href="https://github.com/liuweifeng"><code>@​liuweifeng</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1982">#1982</a></li> <li><a href=""><code>collapseGroups</code></a>, check styles as well as attributes. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1952">#1952</a></li> <li><a href=""><code>collapseGroups</code></a>, move attributes atomically. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1930">svg/svgo#1930</a></li> <li><a href=""><code>convertPathData</code></a>, fix q control point when item is removed. By <a href="https://github.com/KTibow"><code>@​KTibow</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1927">svg/svgo#1927</a></li> <li><a href=""><code>convertPathData</code></a>, preserve vertex for markers only paths. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1967">#1967</a></li> <li><a href=""><code>mergePaths</code></a>, don't merge paths if attributes/styles depend depend on the nodes bounding box. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1964">#1964</a></li> <li><a href=""><code>moveElemsAttrsToGroups</code></a>, no longer moves the transforms if group has the <code>filter</code> attribute. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1933">#1933</a></li> <li><a href=""><code>prefixIds</code></a>, fixed issue where some IDs were not prefixed when style tag contained XML comments. By <a href="https://github.com/john-neptune"><code>@​john-neptune</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1942">#1942</a></li> <li><a href=""><code>removeHiddenElems</code></a>, don't remove node if child element has a referenced ID. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1925">svg/svgo#1925</a></li> <li><a href=""><code>removeHiddenElems</code></a>, treat <code>path[opacity=0]</code> as a non-rendering node. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1948">#1948</a></li> <li><a href="https://svgo.dev/docs/plugins/remove-useless-defs/"><code>removeUselessDefs</code></a>, don't remove node if child element has an ID. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1923">svg/svgo#1923</a></li> <li>When stringifying path data, include a space before numbers represented in scientific notation. By <a href="https://github.com/johnkenny54"><code>@​johnkenny54</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1961">#1961</a></li> <li>No longer crashes when the output (<code>-o</code> argument) ends with a trailing slash to a location that didn't exist. By <a href="https://github.com/SethFalco"><code>@​SethFalco</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1954">#1954</a></li> </ul> <h3>SVG Optimization</h3> <ul> <li><a href=""><code>convertColors</code></a>, introduce parameter to convert colors to common casing (lowercase/uppercase). By <a href="https://github.com/JayLeininger"><code>@​JayLeininger</code></a> in <a href="https://redirect.github.com/svg/svgo/pull/1692">svg/svgo#1692</a></li> <li><a href=""><code>removeDeprecatedAttrs</code></a>, new plugin that is disabled by default to remove SVG attributes that are deprecated. By <a href="https://github.com/jdufresne"><code>@​jdufresne</code></a> in <a href="https://redirect.github.com/svg/svgo/issues/1869">#1869</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.2.0</th> <th>v3.3.0</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.115 KiB</td> <td>4.097 KiB</td> <td>⬇️ 0.018 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.623 KiB</td> <td>42.609 KiB</td> <td>⬇️ 0.014 KiB</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>540.582 KiB</td> <td>540.073 KiB</td> <td>⬇️ 0.509 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.551 KiB</td> <td>111.668 KiB</td> <td>111.668 KiB</td> <td></td> </tr> </tbody> </table> <p>Before and after of the browser bundle of each respective version:</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/svg/svgo/commit/a3ac91af71c262660eda90fad893ba83be7fe24f"><code>a3ac91a</code></a> chore: Add CodeQL workflow (<a href="https://redirect.github.com/svg/svgo/issues/1876">#1876</a>)</li> <li><a href="https://github.com/svg/svgo/commit/89b0c6c435f50494b13297fdaa911348e819d890"><code>89b0c6c</code></a> fix(cleanupIds): handle no-uri-encoded references (<a href="https://redirect.github.com/svg/svgo/issues/1982">#1982</a>)</li> <li><a href="https://github.com/svg/svgo/commit/888d078464a3c6e163e875cb65db94722cd98677"><code>888d078</code></a> fix(makeProgram): specify .mjs and .cjs config files are allowed (<a href="https://redirect.github.com/svg/svgo/issues/1976">#1976</a>)</li> <li><a href="https://github.com/svg/svgo/commit/8d6385bd9ab49d1d300a10268930238baa5eb269"><code>8d6385b</code></a> fix(convertPathData): preserve vertex for markers only path (<a href="https://redirect.github.com/svg/svgo/issues/1967">#1967</a>)</li> <li><a href="https://github.com/svg/svgo/commit/53aad59dc968c72df962d13feea4e7c0b1d9b6d7"><code>53aad59</code></a> feat(addClassesToSVGElement): allow function as param (<a href="https://redirect.github.com/svg/svgo/issues/1966">#1966</a>)</li> <li><a href="https://github.com/svg/svgo/commit/f49b6a717d04d7f043acc6edf9d7109f17932adb"><code>f49b6a7</code></a> fix: transformToMatrix() returns incorrect result for scale(n,0) (<a href="https://redirect.github.com/svg/svgo/issues/1965">#1965</a>)</li> <li><a href="https://github.com/svg/svgo/commit/a8d2df6660d1c3581e4d046e2155c64966446d4a"><code>a8d2df6</code></a> fix: mergePaths should not merge paths with styles that depend on bounding bo...</li> <li><a href="https://github.com/svg/svgo/commit/473c5a603e43619d756f2fc91e19278401317085"><code>473c5a6</code></a> fix: stringifyPathData needs space before scientific notation (<a href="https://redirect.github.com/svg/svgo/issues/1961">#1961</a>)</li> <li><a href="https://github.com/svg/svgo/commit/573a5c7e0fb02f13ac1268b8148c151b0c85d421"><code>573a5c7</code></a> chore: Update the README docs to suggest svgo.config.mjs (<a href="https://redirect.github.com/svg/svgo/issues/1958">#1958</a>)</li> <li><a href="https://github.com/svg/svgo/commit/e2575988ccb30810736b616af26c317e374618e3"><code>e257598</code></a> fix: &lt;a&gt; element not parsed as text (<a href="https://redirect.github.com/svg/svgo/issues/1959">#1959</a>)</li> <li>Additional commits viewable in <a href="https://github.com/svg/svgo/compare/v3.2.0...v3.3.0">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.2.0&new-version=3.3.0)](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:58 +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#1284
No description provided.