pidtree icon indicating copy to clipboard operation
pidtree copied to clipboard

build: use node 14 or higher

Open Kikobeats opened this issue 4 years ago • 8 comments

The main point of this PR is

  • Avoid to maintained out of LTS node builds
  • Remove monkey patch code (String.prototype.startsWith) since is not more necessary
  • Reduce code using util.promisify

Kikobeats avatar Jan 11 '21 15:01 Kikobeats

Codecov Report

Merging #12 (7feeed7) into master (61a4c36) will decrease coverage by 1.03%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   86.95%   85.92%   -1.04%     
==========================================
  Files           6        6              
  Lines         138      135       -3     
==========================================
- Hits          120      116       -4     
- Misses         18       19       +1     
Impacted Files Coverage Δ
lib/get.js 81.81% <ø> (-9.10%) :arrow_down:
index.js 100.00% <100.00%> (ø)
lib/bin.js 78.26% <100.00%> (ø)
lib/pidtree.js 89.36% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 138eb22...210b9bd. Read the comment docs.

codecov-io avatar Jan 11 '21 15:01 codecov-io

not sure why windows builds are failing, probably is related to a thing not related to this PR 🤔

Kikobeats avatar Jan 11 '21 16:01 Kikobeats

Thanks for contributing!

At the moment this DLGTM. I think is appropriate to bump the package to a stable before dropping support for node 0.10 (altough we don't have the CI testing it, it is still supported).

Before doing this though, I need to improve the CI and find a way to test on more OS than we currently do (maybe using a mixure of vagrant and docker, suggestions welcome).

simonepri avatar Jan 12 '21 10:01 simonepri

@simonepri I agree, right now CI build is a problem.

What if we delay this to be shipped under 1.0.0 version?

Then both things could be done: If you need to use Node 10 or lower, use 0.x, otherwise 1.x is for you.

Kikobeats avatar Jan 12 '21 10:01 Kikobeats

Yes that's exactly the plan!

The PR per se looks good, it is just that some other work needs to be done before this can be merged.

simonepri avatar Jan 12 '21 10:01 simonepri

@simonepri I have merged the #14 because that improvement will not breaking anything.

However, the Node version 4/6 are removed from the CI testing by that PR.

FYI.

huan avatar Mar 25 '21 02:03 huan

Applied suggestions.

Can you take care about this PR? It's open for more than one year.

Kikobeats avatar Dec 13 '22 08:12 Kikobeats

I prefer to don't bump numbers in a PR; That's a thing can be done after merge the PR.

It looks like nobody has the ability to move this forward, so pinging @simonepri

Kikobeats avatar Dec 14 '22 08:12 Kikobeats