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

node-gyp@4? #1519

Closed
richardlau opened this issue Jul 31, 2018 · 7 comments
Closed

node-gyp@4? #1519

richardlau opened this issue Jul 31, 2018 · 7 comments

Comments

@richardlau
Copy link
Member

AFAIK we have not published a version 4 of node-gyp even though we bumped the version in package.json in #1212. For the current version (from the v3.x branch) we're still maintaining compatibility with Node.js v0.10, v0.12 and v4 which are all EOL. One of the justifications previously used to pin the version of request was compatibility with those versions (although #1492 looks to be okay on that front).

I propose that we should release a v4 of node-gyp that drops support for EOL versions of Node.js. I also propose we drop support in v4 of node-gyp for Node.js v6, which is in maintenance, as it is extremely unlikely it will get a npm (and hence node-gyp) update before it goes EOL (and if one is required we can do another node-gyp@3 release).

@maclover7
Copy link
Contributor

maclover7 commented Jul 31, 2018

+1, hopefully #1492 and #1518 can be part of a "final" v3.x release.

I've been going through the issue tracker lately to see if there are any large changes/feature requests lurking, but none seem to really pop out. I think a good start for a v4.0.0 checklist would probably be

  • Dropping support for Node.js <=6 as already mentioned
  • Don't run builds for Node.js <=6 as part of nodegyp-test-pull-request if PR is targeted at master branch
  • Switch to using require('os') and remove osenv dependency
  • Create fix for Don't include common.gypi from node source tree #1118
  • Create fix for Stop using tape for tests #1123
  • Remove dead gyp code
  • Discuss removing parts of gyp that aren't used by Node.js or are large maintenance burdens (I believe Ben had talked about doing this at one point)

@richardlau
Copy link
Member Author

Switch to using require('os') and remove osenv dependency

Out of interest, what's the rationale behind this?

@maclover7
Copy link
Contributor

Out of interest, what's the rationale behind this?

Starting in v6, require('os') provides all of what node-gyp currently uses from osenv, so figured may as well drop a dependency and just use what's already built in :)

@joaocgreis
Copy link
Member

It would be good to have #1516 in the final v3 release as well.

How is the v3.x branch being maintained? Can I just land it there as well?

@maclover7
Copy link
Contributor

How is the v3.x branch being maintained? Can I just land it there as well?

For landing in master (same guidelines for v3.x as well I guess?), I've been getting at least one signoff, making sure CI is green, and keeping open for at least 48 hours.

@refack
Copy link
Contributor

refack commented Aug 1, 2018

How is the v3.x branch being maintained? Can I just land it there as well?

The consensus in #1212 (comment) was to land on master and backport. As much as possible.

@Rohithzr
Copy link
Contributor

Rohithzr commented Aug 2, 2018

there is also a #1471 for v4

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

No branches or pull requests

5 participants