-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
Discourage use of certain npm packages #550
Comments
I agree with all of these. Let's leave it open for a while to gather more ideas. We can add them to https://github.com/xojs/eslint-config-xo/blob/1baef9fc745ee649fd1e03219331f22a9f5cc2e3/index.js#L235 |
|
Added object-assign to the list. I just wish to see fewer dependencies and smaller builds/footprint. JS is what makes the web slow - not large images Unfortally not all packages gets deprecated - only discontinued - wish there was something like "Vote to deprecate this package" system in place like how you can vote to delete Q/A on StackOverflow... like why do even this 1000-packages exist? |
Are you really sure Node.js' new option entirely replaces rimraf, including all the crazy hacks it has to make it work on Windows? |
I do not know about all the hacks but at least this exist in NodeJs and if there is some window bugs out there then i would have expect some of them to be fixed in v16 // Added in: v14.14.0
fs.rm(path {recursive: true}, callback)
fsPromises.rm(path {recursive: true}) |
Eventually, I'd also like to discourage |
Agree with you, Stream is going to be a tuff one to get ppl to stop using. for now i just use the async iterator part of node:streams and whatwg stream the same way |
Saw this in a yarn log warning @angular-devkit/build-angular > webpack-dev-server > url > querystring@0.2.0: The querystring is deprecated Should we do something with url? |
There's no way for us to know whether it's the built-in |
A list of discouraged packages should be compiled in a seperate repository than the main xo one so it can move faster and so there is a single centralised place to link to or add explainations and migration guides. |
@Richienb That will just make it more difficult to maintain. Every added package is a breaking change as it causes a new lint error, so it would need an XO version bump anyway. We can consider doing that in the future if the list grows huge. |
hmm, i think the list could change quite a lot. Would be annoying to have to bump major every time it change. Also what about checking sub dependencies also? doing so could encourage developers to send issues/pr upstream in the hope to reduce the number of warning messages |
Warnings don't really work. They are too easily ignored. And the user could have changed it to an error themselves, so we would still need a major bump (minor in XO's case because we're pre-1.0.0).
That could potentially be the next step, but I think we should try out direct dependencies first. |
Object.assign
or spread{ ...obj }
"".padStart()
and"".padEnd()
The text was updated successfully, but these errors were encountered: