airbnb / airbnb/babel-plugin-inline-react-svg

Update svgo to v3.x.x

Open
#118 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
474
Forks
90
PR merge metrics
No merged PRs in 30d

Description

Currently when this package is installed you get a warning sth like this:
```
warning babel-plugin-inline-react-svg > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
```

The issue in svgo has been solved (https://github.com/svg/svgo/issues/1689), and the fix is included in [v3.0.0](https://github.com/svg/svgo/issues/1689#issuecomment-1288122399).

I don't know what breaking-changes v3 causes and how much work is needed here, but it would be nice if svgo could be updated to version >=3.0.0 to get rid of that warning (and make use of new features).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the package dependency declaration for svgo and review the v3 release notes and migration guidance linked by the issue. Check the plugin's existing build or test entry points for compatibility, then confirm installation no longer emits the stable@0.1.8 warning and that SVG optimization still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.