[PR #821] [MERGED] Bump svgo from 2.2.2 to 2.3.0 #1043

Closed
opened 2026-03-03 14:41:53 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/lipis/flag-icons/pull/821
Author: @dependabot-preview[bot]
Created: 3/29/2021
Status: Merged
Merged: 3/29/2021
Merged by: @dependabot-preview[bot]

Base: masterHead: dependabot/npm_and_yarn/svgo-2.3.0


📝 Commits (1)

  • 6385caa Bump svgo from 2.2.2 to 2.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 2.2.2 to 2.3.0.

Release notes

Sourced from svgo's releases.

v2.3.0

Hey, everybody! We have a big release here.

  • The new plugin is added for merging style elements into one. See #1381

Before:

<svg>
  <style media="print">
    .st0{ fill:red; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; }
  </style>
  <style>
    .test { background: red; }
  </style>
</svg>

After:

<svg>
  <style>
    @media print{
      .st0{ fill:red; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; }
    }
    .test { background: red; }
  </style>
</svg>
  • CLI got new --exclude flag which uses regexps to exclude some files from --folder. See #1409
svgo --folder=svgs --exclude "invalid-icon" "bad-.+"
  • Internal AST is migrated to XAST. This spec makes maintaining plugins easier and may be used as interop with other tools like SVGR.

  • The new visitor plugin type combines features of "full", "perItem" and "perItemReverse" plugins without loosing simplicity. Eventually only visitor api will be supported. See #1454

Also small fixes

Thanks to @chambo-e, @strarsis, @XhmikosR, @omgovich and @TrySound

Commits

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.

If all status checks pass Dependabot will automatically merge this pull request.


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 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

🔄 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/821 **Author:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Created:** 3/29/2021 **Status:** ✅ Merged **Merged:** 3/29/2021 **Merged by:** [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview) **Base:** `master` ← **Head:** `dependabot/npm_and_yarn/svgo-2.3.0` --- ### 📝 Commits (1) - [`6385caa`](https://github.com/lipis/flag-icons/commit/6385caac5d4e663fa6b3dc2d56f82ea165f3def6) Bump svgo from 2.2.2 to 2.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 2.2.2 to 2.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>v2.3.0</h2> <p>Hey, everybody! We have a big release here.</p> <ul> <li>The new plugin is added for merging style elements into one. See <a href="https://github-redirect.dependabot.com/svg/svgo/issues/1381">#1381</a></li> </ul> <p>Before:</p> <pre lang="svg"><code>&lt;svg&gt; &lt;style media=&quot;print&quot;&gt; .st0{ fill:red; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; } &lt;/style&gt; &lt;style&gt; .test { background: red; } &lt;/style&gt; &lt;/svg&gt; </code></pre> <p>After:</p> <pre lang="svg"><code>&lt;svg&gt; &lt;style&gt; @media print{ .st0{ fill:red; padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; } } .test { background: red; } &lt;/style&gt; &lt;/svg&gt; </code></pre> <ul> <li>CLI got new <code>--exclude</code> flag which uses regexps to exclude some files from <code>--folder</code>. See <a href="https://github-redirect.dependabot.com/svg/svgo/issues/1409">#1409</a></li> </ul> <pre lang="bash"><code>svgo --folder=svgs --exclude &quot;invalid-icon&quot; &quot;bad-.+&quot; </code></pre> <ul> <li> <p>Internal AST is migrated to <a href="https://github.com/syntax-tree/xast">XAST</a>. This spec makes maintaining plugins easier and may be used as interop with other tools like SVGR.</p> </li> <li> <p>The new visitor plugin type combines features of &quot;full&quot;, &quot;perItem&quot; and &quot;perItemReverse&quot; plugins without loosing simplicity. Eventually only visitor api will be supported. See <a href="https://github-redirect.dependabot.com/svg/svgo/issues/1454">#1454</a></p> </li> </ul> <p>Also small fixes</p> <ul> <li>override default floatPrecision in plugins with globally specified one (<a href="https://github.com/svg/svgo/commit/7389bcddbfadc49de84203b048199b4a397d656a">https://github.com/svg/svgo/commit/7389bcddbfadc49de84203b048199b4a397d656a</a>)</li> <li>fix rendering -0 in path data (<a href="https://github.com/svg/svgo/commit/3d4adb6b044ff1361a970ea049f90d5626ea9888">https://github.com/svg/svgo/commit/3d4adb6b044ff1361a970ea049f90d5626ea9888</a>)</li> <li>make browser bundle 30% smaller (<a href="https://github.com/svg/svgo/commit/279962207e8c99ca8dd9f0ac093071aabafc8721">https://github.com/svg/svgo/commit/279962207e8c99ca8dd9f0ac093071aabafc8721</a>)</li> <li>simplified convertPathData plugin (<a href="https://github.com/svg/svgo/commit/a04b27a1df12b9e6dc019fb8d50733d3d280a5c5">https://github.com/svg/svgo/commit/a04b27a1df12b9e6dc019fb8d50733d3d280a5c5</a> and <a href="https://github.com/svg/svgo/commit/61657433e161b6e5de61d470ac34e302b3aa297b">https://github.com/svg/svgo/commit/61657433e161b6e5de61d470ac34e302b3aa297b</a>)</li> <li>prepared for more regression tests (<a href="https://github.com/svg/svgo/commit/d89d36eacec7bd52002ef55ec6e2bd698352123e">https://github.com/svg/svgo/commit/d89d36eacec7bd52002ef55ec6e2bd698352123e</a>)</li> </ul> <p>Thanks to <a href="https://github.com/chambo-e"><code>@chambo-e</code></a>, <a href="https://github.com/strarsis"><code>@strarsis</code></a>, <a href="https://github.com/XhmikosR"><code>@XhmikosR</code></a>, <a href="https://github.com/omgovich"><code>@omgovich</code></a> and <a href="https://github.com/TrySound"><code>@TrySound</code></a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/svg/svgo/commit/e381ccc13213a7c4c066caca6efa541726d5f999"><code>e381ccc</code></a> 2.3.0</li> <li><a href="https://github.com/svg/svgo/commit/09aec376c6edd955086bf8443aec894ae5bb730c"><code>09aec37</code></a> Implement exclude pattern cli option (<a href="https://github-redirect.dependabot.com/svg/svgo/issues/1409">#1409</a>)</li> <li><a href="https://github.com/svg/svgo/commit/e3f37ec4e65c00ec993b6c7e1584770ea69c45fe"><code>e3f37ec</code></a> Add mergeStyles to readme</li> <li><a href="https://github.com/svg/svgo/commit/27bef1a954d7a709e2d54d8d926d36aed8a79f5e"><code>27bef1a</code></a> Add &quot;visitor&quot; plugins support (<a href="https://github-redirect.dependabot.com/svg/svgo/issues/1454">#1454</a>)</li> <li><a href="https://github.com/svg/svgo/commit/19c77d23989739ee94d8bfa051646ad501f59278"><code>19c77d2</code></a> Add mergeStyles plugin (<a href="https://github-redirect.dependabot.com/svg/svgo/issues/1381">#1381</a>)</li> <li><a href="https://github.com/svg/svgo/commit/d89d36eacec7bd52002ef55ec6e2bd698352123e"><code>d89d36e</code></a> Split regression extracter and runner (<a href="https://github-redirect.dependabot.com/svg/svgo/issues/1451">#1451</a>)</li> <li><a href="https://github.com/svg/svgo/commit/eb934b40f63acf31ed46d1a24fd149aed04ae0c0"><code>eb934b4</code></a> Serve svg for regressions and cache w3c test suite</li> <li><a href="https://github.com/svg/svgo/commit/7389bcddbfadc49de84203b048199b4a397d656a"><code>7389bcd</code></a> Override default floatPrecision with global</li> <li><a href="https://github.com/svg/svgo/commit/d08815c1cd3ad087c536c24868fcd9299cb4da31"><code>d08815c</code></a> Implement simple node clone (<a href="https://github-redirect.dependabot.com/svg/svgo/issues/1450">#1450</a>)</li> <li><a href="https://github.com/svg/svgo/commit/3d4adb6b044ff1361a970ea049f90d5626ea9888"><code>3d4adb6</code></a> Simplify number rendering and fix -0 in path</li> <li>Additional commits viewable in <a href="https://github.com/svg/svgo/compare/v2.2.2...v2.3.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://api.dependabot.com/badges/compatibility_score?dependency-name=svgo&package-manager=npm_and_yarn&previous-version=2.2.2&new-version=2.3.0)](https://dependabot.com/compatibility-score/?dependency-name=svgo&package-manager=npm_and_yarn&previous-version=2.2.2&new-version=2.3.0) 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) If all status checks pass Dependabot will automatically merge this pull request. [//]: # (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 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) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) </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:41:53 +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#1043
No description provided.