Skip to content
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

deprecation warning when installing: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. #8701

Closed
ChillerDragon opened this issue Dec 17, 2022 · 2 comments · May be fixed by #8802
Labels
Stale Inactive issues

Comments

@ChillerDragon
Copy link

🐛 bug report

$ npm i parcel
⸨#########⠂⠂⠂⠂⠂⠂⠂⠂⠂⸩ ⠙ idealTree:posthtml: sill placeDep node_modules/@parcel/transformer-html [email protected] WARN deprecated [email protected]: 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

🤔 Expected Behavior

Installing parcel should not show any deprecation warnings.

🌍 Your Environment

Software Version(s)
Parcel v2.8.2
Node v16.13.1
npm 8.1.2
Operating System Linux debian 5.10.0-19-amd64 #1 SMP Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
@mischnic
Copy link
Member

This is caused by svgo

parcel/yarn.lock

Lines 12460 to 12471 in da6cbb3

svgo@^2.4.0, svgo@^2.5.0, svgo@^2.7.0:
version "2.8.0"
resolved "https://registry.yarnpkg.com/svgo/-/svgo-2.8.0.tgz#4ff80cce6710dc2795f0c7c74101e6764cfccd24"
integrity sha512-+N/Q9kV1+F+UeWYoSiULYo4xYSDQlTgb+ayMobAXPwMnLvop7oxKMo9OzIrX5x3eS4L4f2UHhc9axXwY8DpChg==
dependencies:
"@trysound/sax" "0.2.0"
commander "^7.2.0"
css-select "^4.1.3"
css-tree "^1.1.3"
csso "^4.2.0"
picocolors "^1.0.0"
stable "^0.1.8"

so upgrading from version 2 to 3 would solve this.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Inactive issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants