-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix(cleanupIds): properly handle begin regex to fix #1775 #1862
Merged
Conversation
This file contains 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
SethFalco
reviewed
Nov 30, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good to me, thanks for taking this on!
I've left a remark regarding the new test, just hoping we can make it a bit more concise before merging.
nono
referenced
this pull request
in cozy/cozy-stack
Dec 4, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [svgo](https://svgo.dev) ([source](https://github.com/svg/svgo)) | [`3.0.4` -> `3.0.5`](https://renovatebot.com/diffs/npm/svgo/3.0.4/3.0.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/svgo/3.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/svgo/3.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/svgo/3.0.4/3.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/svgo/3.0.4/3.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>svg/svgo (svgo)</summary> ### [`v3.0.5`](https://github.com/svg/svgo/releases/tag/v3.0.5) [Compare Source](https://github.com/svg/svgo/compare/v3.0.4...v3.0.5) #### What's Changed ##### Bug Fixes - **[Cleanup IDs](https://svgo.dev/docs/plugins/cleanup-ids/)**, correctly handle references to other nodes in animations. By [@​KTibow](https://github.com/KTibow) in [https://github.com/svg/svgo/pull/1862](https://github.com/svg/svgo/pull/1862) - **[Convert Path Commands](https://svgo.dev/docs/plugins/convert-path-data/)**, fix issue when removing redundant `Z` between mergable `M`/`m` commands. By [@​KTibow](https://github.com/KTibow) in [https://github.com/svg/svgo/pull/1856](https://github.com/svg/svgo/pull/1856) - **[Convert Path Commands](https://svgo.dev/docs/plugins/convert-path-data/)**, adhere to error/precision in `z` conversions. By [@​KTibow](https://github.com/KTibow) in [https://github.com/svg/svgo/pull/1842](https://github.com/svg/svgo/pull/1842) - **[Remove Empty Containers](https://svgo.dev/docs/plugins/remove-empty-containers/)**, skip if parent node is `<switch>`, as empty containers can be used for attributes like `requiredFeatures`. By [@​vincentbernat](https://github.com/vincentbernat) in [https://github.com/svg/svgo/pull/1747](https://github.com/svg/svgo/pull/1747) - **[Remove Hidden Elements](https://svgo.dev/docs/plugins/remove-hidden-elems/)**, when removing a hidden definition, also remove nodes that reference it. By [@​SethFalco](https://github.com/SethFalco) in [https://github.com/svg/svgo/pull/1852](https://github.com/svg/svgo/pull/1852) - Output the optimization stats (profit) in red if the file size increased. By [@​gimler](https://github.com/gimler) in [https://github.com/svg/svgo/pull/1162](https://github.com/svg/svgo/pull/1162) - Type definition files now correctly use the `.d.ts` file extension instead of `.ts`. By [@​Exotelis](https://github.com/Exotelis) in [https://github.com/svg/svgo/pull/1780](https://github.com/svg/svgo/pull/1780) ##### Chores - Improved exported types for the `#loadConfig` method. By [@​nuintun](https://github.com/nuintun) in [https://github.com/svg/svgo/pull/1844](https://github.com/svg/svgo/pull/1844) #### Metrics Before and after using vectors from various sources, with the default preset of each respective version: | SVG | Original | v3.0.4 | v3.0.5 | Delta | |---|---|---|---|---| | [Arch Linux Logo](https://archlinux.org/art/) | 9.529 KiB | 4.735 KiB | 4.608 KiB | ⬇️ 0.127 KiB | | [Blobs](https://gitlab.gnome.org/GNOME/gnome-backgrounds/-/blob/main/backgrounds/blobs-d.svg) | 50.45 KiB | 42.949 KiB | 42.949 KiB | | | [Isometric Madness](https://inkscape.org/~Denis_Kuznetsky/%E2%98%85isometric-madness) | 869.034 KiB | 550.593 KiB | 550.153 KiB | ⬇️ 0.44 KiB | | [tldr-pages Banner](https://github.com/tldr-pages/tldr/blob/main/images/banner.svg) | 2.071 KiB | 1.07 KiB | 1.07 KiB | | | [Wikipedia Logo](https://en.wikipedia.org/wiki/File:Wikipedia-logo-v2.svg) | 161.551 KiB | 117.152 KiB | 117.146 KiB | ⬇️ 0.006 KiB | Before and after of the browser bundle of each respective version: | | v3.0.4 | v3.0.5 | Delta | |---|---|---|---| | svgo.browser.js | 656.9 kB | 657.5 kB | ⬆️ 0.6 kB | </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 6am on Monday" in timezone Europe/Paris, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/cozy/cozy-stack). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
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.
fixes #1775