-
-
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
Remove stable
package in favor of native stable sort
#1681
Conversation
@TrySound can we have this merged. NPM Warn is not good. |
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.
I applied this PR to an existing project without any issues.
LGTM! 🚀
+1 on merge, please :) |
我支持这门婚事 |
@boidolr Do you want to release this fork? I can use it using pnpm overrides in the meantime. |
@aminya sorry I do not plan to maintain a package. You are more than welcome to use these changes :) |
@TrySound can we have this merged. NPM Warn is annoying. |
I used the patch file below to apply this PR using patch-package, and manually edited
|
This does appear to be a breaking change, as SVGO also supports Node 10, which doesn't include stable sorting. |
@RDIL One could say that this breaking change is acceptable due to the age (and lack of support) of Node 10. |
@andyjy I got an error when applying the patch using your copy-pasted file content via pnpm. Not sure why. I recommend others to create the patch directly from GitHub (replace |
For people who can't endure the warning. I publish this fork in npm https://www.npmjs.com/package/@kingyue/svgo. pnpm users can override the original // package.json
"pnpm": {
"overrides": {
"svgo": "npm:@kingyue/svgo@^2.9.0",
}
} |
That's kind but less than ideal. Is it possible this package has been abandoned? |
@deepsweet sorry for bothering you, I know you're not that active in this repo, but you are listed as an administrator of svgo, maybe you can review and hopefully merge this. yours |
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.
Tested locally and all working correctly. I can't do more than just approve here.
@TrySound ping |
Pong |
Thanks @boidolr |
Currently when installing
svgo
the following warning is displayed:This PR removes that warning by removing
stable
. As thestable
package notice saysArray.sort(..)
guarantees a stable sort for reasonable recent versions of JavaScript already. See caniuse data to decide whether to accept this PR.