Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update svgo → 3.0.3 (unknown) #1054

Closed
wants to merge 1 commit into from
Closed

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Nov 10, 2023

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ svgo (^2.8.0 → ^3.0.3) · Repo · Changelog

Release Notes

3.0.3

Includes various bug fixes and optimizations for existing plugins.

We're also revamped the documentation for the project. You can find it on svgo.dev!
The frontend for svgo.dev is maintained in svg/svgo.dev, contributions are welcome.

What's Changed

Settings

  • Remove Comments, introduces preservePatterns parameter. Preserves legal comments by default, same as the previous behavior, but can now be overridden. By @SethFalco in #1812
  • Remove Description, set the removeAny parameter to false by default for accessibility. By @SethFalco in #1806

Bug Fixes

  • Remove Raster Images, removes inlined JPEG images. By @abejfehr in #1742
  • Cleanup IDs, correctly handle when 2 IDs have been referenced in a single attribute. By @SethFalco in #1795
  • Cleanup IDS, correctly handle when we've encountered a reference to a node that doesn't exist. By @SethFalco in #1817
  • Inline Styles, treat style prop keys as case-insensitive. By @SethFalco in #1797
  • Inline Styles, remove all classes in multiclass selector. By @SethFalco in #1801
  • Inline Styles, ignore empty CSS blocks instead of adding empty style attribute. By @SethFalco in #1823
  • Minify Styles, removes unused class selectors when the document has no classes. By @SethFalco in #1800
  • Prefix IDs, reuse the same prefix when encountering an ID multiple times. By @SethFalco in #1814
  • Remove Hidden Elements, stops removing non-rendering elements like masks. By @SethFalco in #1793
  • Reuse Paths, creates a new ID if the current one is referenced by another element. By @SethFalco in #1784
  • Reuse Paths, removes redundant defs children after optimization. By @SethFalco in #1785
  • Reuse Paths, stops duplicating attributes into the shared definition. By @SethFalco in #1791
  • Don't crash on a null, undefined, or empty plugin. Instead, log a warning and ignore it. By @SethFalco in #1128

SVG Optimization

Performance

Chores

Metrics

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

SVG Original v3.0.2 v3.0.3 Delta
Arch Linux Logo 8.584 KiB 4.748 KiB 4.747 KiB ⬇️ 0.001 KiB
Blobs 50.45 KiB 42.949 KiB 42.949 KiB
Isometric Madness 869.034 KiB 550.829 KiB 550.699 KiB ⬇️ 0.13 KiB
tldr-pages Banner 2.071 KiB 1.07 KiB 1.07 KiB
Wikipedia Logo 161.552 KiB 118.441 KiB 118.441 KiB

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

v3.0.2 v3.0.3 Delta
svgo.browser.js 643.5 kB 651.7 kB ⬆️ 8.2 kB

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 36 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Nov 10, 2023
@depfu depfu bot mentioned this pull request Nov 10, 2023
Copy link
Contributor Author

depfu bot commented Nov 19, 2023

Closed in favor of #1055.

@depfu depfu bot closed this Nov 19, 2023
@depfu depfu bot deleted the depfu/update/npm/svgo-3.0.3 branch November 19, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants