[PR #1047] [CLOSED] Bump svgo from 2.8.0 to 3.0.0 #1178

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

📋 Pull Request Information

Original PR: https://github.com/lipis/flag-icons/pull/1047
Author: @dependabot[bot]
Created: 10/24/2022
Status: Closed

Base: mainHead: dependabot/npm_and_yarn/svgo-3.0.0


📝 Commits (1)

  • 48950e5 Bump svgo from 2.8.0 to 3.0.0

📊 Changes

2 files changed (+72 additions, -73 deletions)

View changed files

📝 package.json (+1 -1)
📝 yarn.lock (+71 -72)

📄 Description

Bumps svgo from 2.8.0 to 3.0.0.

Release notes

Sourced from svgo's releases.

v3.0.0

SVGO v3

Improvements and fixes

  • fixed datauri option when multipass is not enabled
  • improved default preset warnings

Breaking channges

  • Node.js 14+ is required for version
  • stable package is replaced with native stable sort (required node 12+)

Config

Typescript types are exposed out of the box. No longer need to install @types/svgo

// svgo.config.js
/**
 * @type {import('svgo').Config}
 */
export default {
  // svgo configuration
}

Active flag is no longer supported

export default {
  plugins: [
    {
      name: 'removeDoctype',
      active: true
    },
    {
      name: 'removeComments',
      active: false
    }
  ]
}

extendDefaultPlugins is removed, preset-default plugin should be used instead when need to customize plugins defaults

</tr></table> 

... (truncated)

Commits
  • a40fa21 3.0.0
  • cb1569b Update readme
  • 6295c60 Rename cleanupIDs to cleanupIds for consistency with prefixIds
  • bc07c48 Remove prefix param from cleanupIDs plugin
  • 53ed57c Expose typescript types
  • f5d1dd0 Loosly cover with types convertPathData
  • 5857816 Remove result.info.width and result.info.height
  • 420ae9d Throw SvgoParserError
  • dd9cad1 Add sortAttrs to default preset
  • e6bd703 Remove unused active and type fields from plugins
  • 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 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/1047 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 10/24/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `dependabot/npm_and_yarn/svgo-3.0.0` --- ### 📝 Commits (1) - [`48950e5`](https://github.com/lipis/flag-icons/commit/48950e5721704647f2f5c6428acc9eb24d1b164d) Bump svgo from 2.8.0 to 3.0.0 ### 📊 Changes **2 files changed** (+72 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `yarn.lock` (+71 -72) </details> ### 📄 Description Bumps [svgo](https://github.com/svg/svgo) from 2.8.0 to 3.0.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.0.0</h2> <h1>SVGO v3</h1> <h2>Improvements and fixes</h2> <ul> <li>fixed <code>datauri</code> option when <code>multipass</code> is not enabled</li> <li>improved default preset warnings</li> </ul> <h2>Breaking channges</h2> <ul> <li>Node.js 14+ is required for version</li> <li>stable package is replaced with native stable sort (required node 12+)</li> </ul> <h3>Config</h3> <p>Typescript types are exposed out of the box. No longer need to install <code>@types/svgo</code></p> <pre lang="js"><code>// svgo.config.js /** * @type {import('svgo').Config} */ export default { // svgo configuration } </code></pre> <p>Active flag is no longer supported</p> <pre lang="js"><code>export default { plugins: [ { name: 'removeDoctype', active: true }, { name: 'removeComments', active: false } ] } </code></pre> <p><code>extendDefaultPlugins</code> is removed, <code>preset-default</code> plugin should be used instead when need to customize plugins defaults</p> <pre lang="js"><code>&lt;/tr&gt;&lt;/table&gt; </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/svg/svgo/commit/a40fa216b67d297e84ab8017bf4b45b4a0001223"><code>a40fa21</code></a> 3.0.0</li> <li><a href="https://github.com/svg/svgo/commit/cb1569b2215dda19b0d4b046842344218fd31f06"><code>cb1569b</code></a> Update readme</li> <li><a href="https://github.com/svg/svgo/commit/6295c60fbfcc8325bf8c089ecd27cad7e5567f3d"><code>6295c60</code></a> Rename cleanupIDs to cleanupIds for consistency with prefixIds</li> <li><a href="https://github.com/svg/svgo/commit/bc07c483c3b986c66834b5fe019bb75597dd45ab"><code>bc07c48</code></a> Remove prefix param from cleanupIDs plugin</li> <li><a href="https://github.com/svg/svgo/commit/53ed57c7e1e84a4ced57ee972001aeb34d9015a4"><code>53ed57c</code></a> Expose typescript types</li> <li><a href="https://github.com/svg/svgo/commit/f5d1dd06cc88d952b2a458d46c7d084c6c002c47"><code>f5d1dd0</code></a> Loosly cover with types convertPathData</li> <li><a href="https://github.com/svg/svgo/commit/5857816a5aef5d6133f81c8c1e02dab5cfd8b4d3"><code>5857816</code></a> Remove result.info.width and result.info.height</li> <li><a href="https://github.com/svg/svgo/commit/420ae9d8a1ea55c1c1bbf86c404434aabfb0ac62"><code>420ae9d</code></a> Throw SvgoParserError</li> <li><a href="https://github.com/svg/svgo/commit/dd9cad1cf9c128f32368da68371a94af706427ec"><code>dd9cad1</code></a> Add sortAttrs to default preset</li> <li><a href="https://github.com/svg/svgo/commit/e6bd703b0ad6b93ebcdbbb152d53f3ce9a8c1f5d"><code>e6bd703</code></a> Remove unused active and type fields from plugins</li> <li>Additional commits viewable in <a href="https://github.com/svg/svgo/compare/v2.8.0...v3.0.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=2.8.0&new-version=3.0.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 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:29 +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#1178
No description provided.