You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prettier it seems had a change of some default rules or something. When I update it to the latest version, it marks many files as invalid. When I run npm run format:fix, it makes the needed changes and it affects a bunch of files. The changes seem to revolve around braces or not around a single parameter of an arrow function and whether to use a comma after the last item in an array. I will create a separate issue and PR for updating Prettier, because maybe you don't agree with the defaults changing.
They are only in the development dependencies, so this is mostly a theoretical issue. But it would be great to fix them of course. I found out that they are coming in via mocha and that they are fixed in the latest version of mocha. However as said above I had trouble updating mocha so maybe one of the more seasoned socket.io devs can have a look at that.
C:\ws\socketio>npm audit
=== npm audit security report ===
# Run npm install --save-dev mocha@8.2.1 to resolve 3 vulnerabilities
SEMVER WARNING: Recommended action is a potentially breaking change
Critical Command Injection
Package growl
Dependency of mocha [dev]
Path mocha > growl
More info https://npmjs.com/advisories/146
Low Regular Expression Denial of Service
Package debug
Dependency of mocha [dev]
Path mocha > debug
More info https://npmjs.com/advisories/534
Low Prototype Pollution
Package minimist
Dependency of mocha [dev]
Path mocha > mkdirp > minimist
More info https://npmjs.com/advisories/1179
found 3 vulnerabilities (2 low, 1 critical) in 327 scanned packages
3 vulnerabilities require semver-major dependency updates.
The text was updated successfully, but these errors were encountered:
You want to:
request a featureCurrent behaviour
npm outdated
reports many dependencies as out of date:Also, after each install, npm reports vulnerabilities:
Steps to reproduce (if the current behaviour is a bug)
npm install
(observe reported vulnerabilities)npm outdated
(observe report of many outdated dependencies)Expected behaviour
Dependencies should be up to date and no vulnerabilities should be reported
Setup
Other information (e.g. stacktraces, related issues, suggestions how to fix)
I created a PR that updates all dependencies except for 2:
Mocha, when I update it and then run the tests, gives me test failures. So I left that out and created a separate issue for that:
Tests fail with latest version of Mocha #3710
Prettier it seems had a change of some default rules or something. When I update it to the latest version, it marks many files as invalid. When I run
npm run format:fix
, it makes the needed changes and it affects a bunch of files. The changes seem to revolve around braces or not around a single parameter of an arrow function and whether to use a comma after the last item in an array. I will create a separate issue and PR for updating Prettier, because maybe you don't agree with the defaults changing.Updating Prettier causes many files to become invalid #3712
About the vulnerabilities
They are only in the development dependencies, so this is mostly a theoretical issue. But it would be great to fix them of course. I found out that they are coming in via mocha and that they are fixed in the latest version of mocha. However as said above I had trouble updating mocha so maybe one of the more seasoned socket.io devs can have a look at that.
The text was updated successfully, but these errors were encountered: