| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This commit adds a description of `process.versions.modules`, based on the comment in `src/node_version.h` lines 47-50.
| The `process.versions` property returns an object listing the version strings of | ||
| Node.js and its dependencies. | ||
| Node.js and its dependencies. `process.versions.modules` indicates the current | ||
| ABI version, which is increased whenever a C++ API changes. Node.js will refuse |
There was a problem hiding this comment.
Thanks for the contribution. I'm not sure if we have something in the docs that explains ABI, but if we do, making ABI a link to that explanation would be great.
Sorry, something went wrong.
There was a problem hiding this comment.
I think this should be more of a "In addition, the modules property indicates ...", because this version contradicts the earlier sentence, the modules property is not a version of Node.js or its dependencies.
Perhaps it would be even better by enumerating each individual property, and describing it?
Sorry, something went wrong.
There was a problem hiding this comment.
There's nothing in the docs that explains ABI currently. Could be a good addition to https://nodejs.org/dist/latest-v7.x/docs/api/addons.html at some point (/cc @nodejs/documentation). I wouldn't make it a condition for landing this PR tho
Sorry, something went wrong.
|
@kzurawel are you still working on this? |
Sorry, something went wrong.
|
I'm still "working" on this, but I'm not sure what needs to be done at this point. |
Sorry, something went wrong.
|
You need to read all comments, and if they suggest a change, implement it or explain why not. If they ask a question, answer it as a comment, or answer implicitly by pushing to the PR. Specifically, in #9901 (comment) I said:
You should do this, or something similar, or comment on why you don't think it should be done.
This is phrased as a question, so you can answer it, or just do what I suggeest and change the doc format, or not change the doc format if you don't have the time or don't think its a good idea. |
Sorry, something went wrong.
|
@kzurawel Are you still working on this? (If not, does anyone else want to take it over and get it across the finish line?) |
Sorry, something went wrong.
|
I think that's all, I'll leave describing the other properties for future work. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with a nit, thanks for this!
Sorry, something went wrong.
| Node.js and its dependencies. | ||
| Node.js and its dependencies. In addition, `process.versions.modules` indicates | ||
| the current ABI version, which is increased whenever a C++ API changes. Node.js | ||
| will refuse to load native modules built for an older `modules` value. |
There was a problem hiding this comment.
nit: This sounds like Node will load native modules built for newer modules values, which isn’t the case… maybe something like for a different fits better?
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
@sam-github No, I didn’t say the current text is wrong. It’s just incomplete and might therefore be misleading.
If so, this PR should change both the comment and the docs.
No objections to that, but, like, this isn’t worth holding up the PR or anything imho.
Sorry, something went wrong.
There was a problem hiding this comment.
Right, so text should be something like "Node.js will refuse to load modules that weren't compiled against its own
module ABI number."
Sorry, something went wrong.
|
Landed in f368eee. I'll update the text further (based on the back-and-forth between @addaleax and @sam-github) in a subsequent PR. |
Sorry, something went wrong.
This commit adds a description of `process.versions.modules`, based on the comment in `src/node_version.h` lines 47-50. PR-URL: nodejs#9901 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit adds a description of `process.versions.modules`, based on the comment in `src/node_version.h` lines 47-50. PR-URL: #9901 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: nodejs#10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: nodejs#9901 (comment)
This commit adds a description of `process.versions.modules`, based on the comment in `src/node_version.h` lines 47-50. PR-URL: #9901 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit adds a description of `process.versions.modules`, based on the comment in `src/node_version.h` lines 47-50. PR-URL: #9901 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: nodejs#10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: nodejs#9901 (comment)
PR-URL: nodejs#10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: nodejs#9901 (comment)
PR-URL: nodejs#10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: nodejs#9901 (comment)
PR-URL: nodejs#10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: nodejs#9901 (comment)
PR-URL: #10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: #9901 (comment)
PR-URL: #10419 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Refs: #9901 (comment)
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
doc process
Description of change
This commit adds a description of process.versions.modules,
based on the comment in src/node_version.h lines 47-50.