http-party / node-portfinder

A simple tool to find an open port or domain socket on the current machine
https://github.com/http-party/node-portfinder
Other
887 stars 95 forks source link

Modernize2 #137

Closed eriktrom closed 2 years ago

eriktrom commented 2 years ago

supersedes #134 closes #134

This PR contains a few simple commits meant to modernize the dependencies that had security vulnerabilities in them.

It also contains some code from @MasterOdin that attempts to fix the test setup. Note that I have left (but upgraded) mkdirp for now. We can revisit that a week from now. I will not be in town next week, so this release needs to be minimal as to not interrupt my vacation :).

With only dependency updates included in the main code, things should not change behavior wise in any shape or form. This should be completely safe and non breaking to merge. I will do so now, and make a release.

cc @MasterOdin fyi

ps tests all pass :) - we probably don't need the recursive fs.rmdir code but let me know your thoughts - it's only for the tests and I need to get these security updates out - I'll be around next weekend(a week from tomorrow) - I'll look deeper then, thanks for all your support and help lately ;)

eriktrom commented 2 years ago

Released to npm as v1.0.29

MasterOdin commented 2 years ago

In my opinion, you'd ideally have some code to clean up the folders that are made during the test, be it if you're making them in a known spot or using mktempdir function. However, if you're willing to make minimum support to 12.x (which is the oldest currently supported LTS), could use the recursive option to fs.rmdir.