chore(deps): update dependency svgo to v4.1.0 - #6663
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe documentation package updates the pinned ChangesDocumentation dependency update
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This is a localized documentation dependency update with no actionable merge-blocking risk remaining after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryUpdates the docs dependency resolution from SVGO 4.0.2 to 4.1.0 and refreshes the Yarn lockfile.
Confidence Score: 5/5The dependency update appears safe to merge, with no concrete changed-code-triggered failure identified in the current documentation build inputs. The lockfile matches the requested SVGO update, current repository SVG assets do not contain the newly rejected character references, and no specific incompatibility introduced by the minor upgrade was established.
|
| Filename | Overview |
|---|---|
| docs/package.json | Updates the explicit SVGO resolution from 4.0.2 to 4.1.0 with no repository-local API or configuration changes. |
| docs/yarn.lock | Consistently refreshes SVGO and its css-select, css-what, and SAX dependency graph for version 4.1.0. |
Reviews (1): Last reviewed commit: "chore(deps): update dependency svgo to v..." | Re-trigger Greptile
This PR contains the following updates:
4.0.2→4.1.0Release Notes
svg/svgo (svgo)
v4.1.0Compare Source
This minor release upgrades the SAX parser and introduces stricter XML validation. It also includes important security hardening for
removeScripts, dependency updates, and improvements to the test and regression infrastructure.Support SVGO
If SVGO is valuable to you or your organization, please consider supporting the project on OpenCollective. Your sponsorship helps fund ongoing maintenance and security work.
Stricter XML validation
SVGO now uses
sax1.6.1, upgraded from 1.5.0 (#2257).The new parser version validates numeric character references against the ranges permitted by XML. Invalid references are now rejected in both text and attributes, including:
&#​1;,, and;�;.Valid boundary values—including
U+0020,U+D7FF,U+E000,U+FFFD, and characters throughU+10FFFF—remain supported.Parser failures are consistently exposed as
SvgoParserErrorerrors with anInvalid character entityreason.This is an intentional behavior change: malformed SVGs that were previously accepted may now produce a parser error, while valid XML documents are unaffected.
Security
The
removeScriptsplugin has been hardened against several script-execution bypasses:data:URLs containing HTML, XHTML, or SVG documents while preserving inert data such as PNG images, and filters legacyvbscript:URLs (#2263).<foreignObject>elements by removing HTML event-handler attributes,srcdoc, and executable URLs fromaction,data,formaction,href, andsrc, while preserving non-executable HTML and visual content (#2264).<a>elements and removes ASCII tabs and newlines before checking URL schemes, preventing values such asjava&#​9;script:from bypassing detection while preserving elements in unrelated custom namespaces (#2268).These changes address:
Dependencies
css-selectto v6 andcss-whatto v7, and updated SVGO's custom selector adapter forcss-selectv6 (#2244).Project maintenance
@TrySound is back as an active SVGO maintainer.
Many thanks to @KTibow, @SethFalco, and @XhmikosR for maintaining and improving SVGO over the past several years.
Full Changelog: svg/svgo@v4.0.2...v4.1.0
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
Summary by CodeRabbit