-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Figure out which version to build prebuilts on #553
Comments
Note: This hasn't been true from the start though, since n-api in node |
@gabrielschulhof @mcollina Could you advise us here? |
n-api has exited experimental status a little later in the Node 8 LTS cycle. I would build it with the latest version of older LTS line that it is supported. Currently, latest Node 8. |
Unfortunately, |
@vweevers Maybe we can patch if (argv.napi && !targets) {
targets = [
abi.supportedTargets.filter(onlyNode).pop(),
abi.supportedTargets.filter(onlyElectron).pop(),
]
if (targets[0].target === '9.0.0') targets[0].target = '9.6.1'
} Then we should be able to do |
I was thinking that too, but from the current code, it seems @mafintosh has different ideas about what the most suitable node version is? BTW, should we also define an explicit
|
Yes.
Yeah, we can do this. This should be set to 3 (which is the version used at v8.x LTS) |
That doesn't cover electron, unless we call prebuildify twice. |
We can do (with the patch)
|
Ah, of course. 👍 |
There's a |
On second thought, I think I prefer using |
Question is what
Yeah. |
This is why I changed my mind again 😄 |
So, action items:
|
@vweevers Should we still build on |
No opinion. We will have to update the matrix as node releases come out anyway, because we have to specify the version number on which to prebuild. I'm fine with either |
@vweevers Closing this. |
From https://nodejs.org/en/docs/guides/abi-stability/
This tells me that if you build on the minimum possible node version (for
leveldown
this meansv8.6.0
) that will cover all future versions. Should we pick this strategy when making prebuilt binaries? At the moment it seems to work well to pick the current node version (v11.4.0
at time of writing) and make it work for earlier versions, but afaikn-api
is not guaranteed to be backwards compatible, right?Input appreciated.
EDIT:
Slightly below above mentioned quote it says:
So it seems we might as well pick the latest version of node.
The text was updated successfully, but these errors were encountered: