[Snyk] Upgrade svgo from 3.0.2 to 3.2.0 - #262
Open
X-oss-byte wants to merge 1 commit into
Open
Conversation
Snyk has created this PR to upgrade svgo from 3.0.2 to 3.2.0. See this package in npm: svgo See this project in Snyk: https://app.snyk.io/org/sammyfilly/project/cc19e96e-4083-4d24-ae8b-ddbc58138043?utm_source=github&utm_medium=referral&page=upgrade-pr
|
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.2.0.
ℹ️ 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 5 versions ahead of your current version.
The recommended version was released on 5 months ago.
Release notes
Package name: svgo
-
3.2.0 - 2024-01-02
- convertPathData, fix instances were
- convertTransform, fix for some transforms that weren't being converted correctly. By @ SethFalco in #1916
- convertPathData, improves closing paths and how we determine if to use absolute or relative commands. By @ KTibow in #1867
- convertPathData, round arc or convert to lines based on the sagitta, can be disabled by setting
- convertPathData, convert cubic Bézier curves to quadratic Bézier curves where possible, can be disabled by setting
- mergePaths, refactor for performance with large files. By @ mozzie in #1764 and #1904
- convertPathData, refactor
- Use
SVG
Original
v3.1.0
v3.2.0
Delta
Arch Linux Logo
9.529 KiB
4.162 KiB
4.115 KiB
⬇️ 0.047 KiB
Blobs
50.45 KiB
42.949 KiB
42.623 KiB
⬇️ 0.326 KiB
Isometric Madness
869.034 KiB
550.153 KiB
540.582 KiB
⬇️ 9.571 KiB
tldr-pages Banner
2.071 KiB
1.07 KiB
1.07 KiB
Wikipedia Logo
161.551 KiB
116 KiB
111.668 KiB
⬇️ 4.332 KiB
v3.1.0
v3.2.0
Delta
svgo.browser.js
660.9 kB
910.9 kB
⬆️ 250 kB
-
3.1.0 - 2023-12-11
- prefixIds, correctly prefix IDs when
- removeHiddenElems, improve handling of definitions (
- cleanupEnableBackground, clean up inline-styles too. By @ SethFalco in #1866
- cleanupIds, handle URI encoded references properly. By @ SethFalco in #1880
- inlineStyles, no longer crashes on non-inlined selectors with a pseudo-class. By @ SethFalco in #1865
- Improve handling of URL references in reference attributes (
- removeUnknownsAndDefaults, now removes defaults in XML declarations too, enabled by default and can be toggled with
SVG
Original
v3.0.5
v3.1.0
Delta
Arch Linux Logo
9.529 KiB
4.608 KiB
4.162 KiB
⬇️ 0.446 KiB
Blobs
50.45 KiB
42.949 KiB
42.949 KiB
Isometric Madness
869.034 KiB
550.153 KiB
550.153 KiB
tldr-pages Banner
2.071 KiB
1.07 KiB
1.07 KiB
Wikipedia Logo
161.551 KiB
117.146 KiB
116 KiB
⬇️ 1.146 KiB
v3.0.5
v3.1.0
Delta
svgo.browser.js
657.5 kB
660.9 kB
⬆️ 3.4 kB
-
3.0.5 - 2023-11-30
- cleanupIds, correctly handle references to other nodes in animations. By @ KTibow in #1862
- convertPathData, fix issue when removing redundant
- convertPathData, adhere to error/precision in
- removeEmptyContainers, skip if parent node is
- removeHiddenElems, when removing a hidden definition, also remove nodes that reference it. By @ SethFalco in #1852
- Output the optimization stats (profit) in red if the file size increased. By @ gimler in #1162
- Type definition files now correctly use the
- Improved exported types for the
SVG
Original
v3.0.4
v3.0.5
Delta
Arch Linux Logo
9.529 KiB
4.735 KiB
4.608 KiB
⬇️ 0.127 KiB
Blobs
50.45 KiB
42.949 KiB
42.949 KiB
Isometric Madness
869.034 KiB
550.593 KiB
550.153 KiB
⬇️ 0.44 KiB
tldr-pages Banner
2.071 KiB
1.07 KiB
1.07 KiB
Wikipedia Logo
161.551 KiB
117.152 KiB
117.146 KiB
⬇️ 0.006 KiB
v3.0.4
v3.0.5
Delta
svgo.browser.js
656.9 kB
657.5 kB
⬆️ 0.6 kB
-
3.0.4 - 2023-11-18
- removeXMLNS, no longer removes the XLink (
- convertPathData, ignore instances where transform applied via style tag. By @ SethFalco in #1830
- inlineStyles, inline properties with the same specificity in the order that they appear in the stylesheet. By @ SethFalco in #1831
- inlineStyles, don't remove class or id from node if it's traversed in another CSS selector. By @ SethFalco in #1832 and #1836
- Don't trim
- Don't crash when encountering
- convertPathData, convert to
- inlineStyles, when inlining a CSS property that's already declared in a presentation attribute of the node, drop the attribute. By @ SethFalco in #1829
- removeXlink, new plugin that removes the XLink (
SVG
Original
v3.0.3
v3.0.4
Delta
Arch Linux Logo
9.529 KiB
4.738 KiB
4.735 KiB
⬇️ 0.003 KiB
Blobs
50.45 KiB
42.949 KiB
42.949 KiB
Isometric Madness
869.034 KiB
550.699 KiB
550.593 KiB
⬇️ 0.106 KiB
tldr-pages Banner
2.071 KiB
1.07 KiB
1.07 KiB
Wikipedia Logo
161.552 KiB
118.441 KiB
117.152 KiB
⬇️ 1.289 KiB
v3.0.3
v3.0.4
Delta
svgo.browser.js
651.7 kB
656.9 kB
⬆️ 5.2 kB
-
3.0.3 - 2023-11-08
- removeComments, introduces
- removeDesc, set the
- removeRasterImages, removes inline JPEG images. By @ abejfehr in #1742
- cleanupIds, correctly handle when 2 IDs have been referenced in a single attribute. By @ SethFalco in #1795
- cleanupIds, correctly handle when we've encountered a reference to a node that doesn't exist. By @ SethFalco in #1817
- inlineStyles, treat style prop keys as case-insensitive. By @ SethFalco in #1797
- inlineStyles, remove all classes in multiclass selector. By @ SethFalco in #1801
- inlineStyles, ignore empty CSS blocks instead of adding empty style attribute. By @ SethFalco in #1823
- minifyStyles, removes unused class selectors when the document has no classes. By @ SethFalco in #1800
- prefixIds, reuse the same prefix when encountering an ID multiple times. By @ SethFalco in #1814
- removeHiddenElems, stops removing non-rendering elements like masks. By @ SethFalco in #1793
- reusePaths, creates a new ID if the current one is referenced by another element. By @ SethFalco in #1784
- reusePaths, removes redundant
- reusePaths, stops duplicating attributes into the shared definition. By @ SethFalco in #1791
- Don't crash on a
- convertTransform, omit spaces between functions. By @ SethFalco in #1802
- removeScriptElement, removes callbacks (
- convertOneStopGradients, new plugin to convert gradients with one stop to a solid color, disabled by default. By @ SethFalco in #1790
- Various optimizations for path handling. By @ marvinhagemeister in #1716 and #1717
- Revise the README. By @ ADTC in #1731
- Fix dead link to postcss-svgo in README. By @ Lehoczky in #1770
- Replace webpack loader library in README as previous was deprecated. By @ tanyabouman in #1771
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
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
from svgo GitHub release notesWhat's Changed
Bug Fixes
qwas incorrectly converted tot. By @ KTibow in #1889SVG Optimization
smartArcRoundingtofalse. By @ KTibow in #1873convertToQtofalse. By @ KTibow in #1889Performance
#stringifyPathDatafor performance. By @ SethFalco in #1900Setinstead ofArrayfor faster lookups. By @ SethFalco in #1899Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
Before and after of the browser bundle of each respective version:
What's Changed
Bug Fixes
<style>tag contains XML comments. By @ john-neptune in #1736<defs>), namely when<defs>are defined at the end of the document. By @ KTibow in #1879url('#a')) across various plugins. By @ SethFalco in #1881SVG Optimization
defaultMarkupDeclarations. By @ SethFalco in #1872Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
Before and after of the browser bundle of each respective version:
What's Changed
Bug Fixes
Zbetween mergableM/mcommands. By @ KTibow in #1856zconversions. By @ KTibow in #1842<switch>, as empty containers can be used for attributes likerequiredFeatures. By @ vincentbernat in #1747.d.tsfile extension instead of.ts. By @ Exotelis in #1780Chores
#loadConfigmethod. By @ nuintun in #1844Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
Before and after of the browser bundle of each respective version:
Includes various bug fixes for existing plugins and a new optimization. Also splits
removeXMLNS, which removed XLink, into two separate plugins,removeXMLNSandremoveXlink.What's Changed
Default Behavior
xmlns:xlink) namespace. If that is desirable, you should enable the new removeXlink plugin, which does more while being safer. By @ TrySound and @ SethFalco in #1535Bug Fixes
preelements inforeignObject. By @ SethFalco in #1796@-webkit-keyframesin<style>node. By @ SethFalco in #1826SVG Optimization
zcommand if going back to initial position, or dropzif redundant. By @ KTibow in #1822xmlns:xlink) namespace and migrates from XLink attributes to the SVG 2 equivalent. Disabled by default. By @ TrySound and @ SethFalco in #1535Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
Before and after of the browser bundle of each respective version:
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
Default Behavior
preservePatternsparameter. Preserves legal comments by default, same as the previous behavior, but can now be overridden. By @ SethFalco in #1812removeAnyparameter tofalseby default for accessibility. By @ SethFalco in #1806Bug Fixes
defschildren after optimization. By @ SethFalco in #1785null,undefined, or empty plugin. Instead, log a warning and ignore it. By @ SethFalco in #1128SVG Optimization
on*) andhrefattributes withjavascript:URIs. By @ cakeinpanic and @ SethFalco in #1807, #1818, #1819, #1820Performance
Chores
Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
Before and after of the browser bundle of each respective version:
Installing
@ types/cssono longer requiredImportant
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: