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

Replace optimist with minimist #614

Closed
tiye opened this issue Mar 18, 2020 · 6 comments · Fixed by #622
Closed

Replace optimist with minimist #614

tiye opened this issue Mar 18, 2020 · 6 comments · Fixed by #622

Comments

@tiye
Copy link

tiye commented Mar 18, 2020

For known reasons we want to get rid of old versions of minimist from our projects. And I looked into dependency then found http-server is relying on optimist, which is a deprecated package, and optimist relies on very old version of minimist. https://github.com/substack/node-optimist/blob/master/package.json#L8

I'm a yarn user and I received lots of warnings since I used http-server in my projects, a lot... A viable solution might be reinstalling http-server and for some reason newer version of minimist can be installed and the warn will be gone.

Is there anytime to do on http-server side?

@thornjad
Copy link
Member

I completely sympathize with the headache of old packages in dependency trees! I'll take a look into fixing that on our side if I can!

@besenwagen
Copy link

besenwagen commented Mar 20, 2020

we want to get rid of old versions of minimist

Just a note, packages that depend on the current version of minimist (1.2.5) do not pass the audit either although the report claims it does:

Patched in >=0.2.1 <1.0.0 || >=1.2.3

OK, scrap that. npm ls minimist omits some deduped dependencies for me. 🙄 Analyzing Path in the audit report per reported vulnerability is cumbersome but apparently necessary.

@dmarczydlo

This comment has been minimized.

@thornjad
Copy link
Member

So I've been able to upgrade several instances of minimist in the dependency tree. Many of them won't make a difference, they'll need you (the user) to re-install http-server to pick up the dependency changes. One upgrade did actually make a change I can control though and I'll add that to the next release.

However, the initial findings are right that the stubborn one is depended on by optimist. That will take a little more work to swap out, though I have actually done the switch from optimist to minimist before, so I know where to start.

@karlhorky
Copy link

I guess #131 or #464 would replace optimist, maybe one of those can be cleaned up and merged?

@yetzt
Copy link

yetzt commented Apr 6, 2020

@substack just has to press the merge-button here https://github.com/substack/node-optimist/issues/152

Kocal added a commit to Yproximite/webpack-encore-pack that referenced this issue Apr 12, 2020
Kocal added a commit to Yproximite/webpack-encore-pack that referenced this issue Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants