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

[Snyk] Upgrade svgo from 3.0.2 to 3.0.3 #56

Merged
merged 1 commit into from
May 10, 2024

Conversation

zillding
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade svgo from 3.0.2 to 3.0.3.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 2 days ago, on 2023-11-08.
Release notes
Package name: svgo
  • 3.0.3 - 2023-11-08

    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
  • 3.0.2 - 2022-11-18

    Installing @ types/csso no longer required

from svgo GitHub release notes
Commit messages
Package name: svgo
  • 96fedb4 chore: change link to homepage in package.json (#1824)
  • 43df633 docs: add documentation for all commands (#1808)
  • 5aad38b fix(inlineStyles): empty css block created empty attribute (#1823)
  • 07c0919 fix: remove hrefs for unconventional namespaces (#1820)
  • e21e560 feat(removeScriptElement): add all known event types (#1819)
  • e73ee2d fix(removeScriptElement): collapse a tag propertly (#1818)
  • 1df2e0f fix(cleanupIds): skip generated ids for malformed references (#1817)
  • a880505 fix(removeScriptElement): remove link anchors with scripts (#1807)
  • 7de793c fix(removeComments): make preserving comments a param (#1812)
  • bf45a02 fix(prefixIds): dynamic functions should produce same prefix for given id (#1814)
  • d4f0de0 README: image-webpack-loader -> image-minimizer-webpack-plugin (#1771)
  • 999b2a1 chore: update postcss-svgo link (#1770)
  • e56a338 deps: update @ babel/traverse (#1813)
  • c51dcfa fix: warn and do not crash on null plugin (#1803)
  • 6eac770 feat: convert one stop gradients plugin (#1790)
  • 3966c10 refactor: create hasScripts util (#1809)
  • e529c66 fix(removeDesc): removeAny should be disabled by default (#1806)
  • 027e110 chore: increment patch version (#1804)
  • 02c7a78 fix(convertTransform): do not add redundant space between functions (#1802)
  • 2539b9f fix(inlineStyles): remove all classes in multiclass selector (#1801)
  • b15da27 fix(minifyStyles): pass empty arrays for usage (#1800)
  • 197be56 deps: update deps based on dependabot alerts (#1799)
  • 9a83ed4 GitHub Workflows security hardening (#1724)
  • 7e99c0b fix(inlineStyles): case insensitive style props (#1797)

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@zillding zillding merged commit 686b98b into master May 10, 2024
1 check passed
@zillding zillding deleted the snyk-upgrade-9ed96c511e0eaf536b6b6f1673ff59b0 branch May 10, 2024 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants