-
Notifications
You must be signed in to change notification settings - Fork 13
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
Discussion about the next steps #3
Comments
+1 |
@NickNaso Thank you for creating this! I stumbled upon this by accident, while in the middle of overhauling some of the internals of cmake-js. This is a much nicer method than having to download the headers for some arbitrary version of nodejs. With a bit of work, I even managed to avoid needing to source a copy of This removes all the downloads that cmake-js used to perform during a build targetting node-api. It also makes me happier about the safety of using node-api as the non node-api headers are no longer available to be included accidentally. |
Hi @Julusian, Node-API has some experimental API that are not part of any version because they are not considered stable. We removed from the headers the features e / o functions that are under I don't know if this could be a problem, but I want to discuss at the next Node-API meeting https://github.com/nodejs/abi-stable-node#meeting. If you have time and want to join us it will be a pleasure to discuss about this together. My idea is to use the original Node-API's headers (without removing the experimental feature) and add a new section named EXPERIMENTAL: {
js_native_api_symbols: [
// List of symbols in js_native_api.h considered experimental.
],
node_api_symbols: [
// List of symbols in node_api.h considered experimental.
]
} |
In this issue I reported some correlated issues some of them pushed us to work on this repo:
My idea is to continue to work on documentation and then publish on
npm
.The text was updated successfully, but these errors were encountered: