Closed NickNaso closed 3 years ago
In terms of:
My idea about is to automate the process of copying the file from the main Node.js repo to this repo. Essentially we could check if the header files on the Node.js repo has been changed and in that case copy them to this repo. What do you think about that?
I think we should only update when there is a new version of the NODE-API. Having script to automate that sounds good, but I think we only want new versions when there is a new version of NODE-API, for example adding version 8. This is related to my comment about stripping out the Experimental sections as those will potentially change and I think that adds more complications than we want to try to cope with in providing the headers.
When we've settled on how we want this to work, I'm happy to take a shot at the GitHub Actions to implement it. They can be triggered on number of different events such as a merge to main
.
In terms of:
My idea about is to automate the process of copying the file from the main Node.js repo to this repo. Essentially we could check if the header files on the Node.js repo has been changed and in that case copy them to this repo. What do you think about that?
I think we should only update when there is a new version of the NODE-API. Having script to automate that sounds good, but I think we only want new versions when there is a new version of NODE-API, for example adding version 8. This is related to my comment about stripping out the Experimental sections as those will potentially change and I think that adds more complications than we want to try to cope with in providing the headers.
@mhdawson I agree with you we need to identify the changes on the main Node.js repo and check if those changes have produced a new version for the Node-API, in that case we should copy the files and create a new release for the node-api-headers
.
@NickNaso are there still changes to be made based on the discussion in the issue?
@NickNaso are there still changes to be made based on the discussion in the issue?
Hi @mhdawson, I need to update the PR. I try to finish the work in the next days. Sorry for the delay.
@KevinEady this look good to you?
This PR has the purpose to provide a first implementation for the project. The header files are placed in a folder called
include
. I just copied the files:js_native_api_types.h
js_native_api.h
node_api_types.h
node_api.h
My idea about is to automate the process of copying the file from the main Node.js repo to this repo. Essentially we could check if the header files on the Node.js repo has been changed and in that case copy them to this repo. What do you think about that? The
index.js
files expose the include path for the header files and the list of all symbols exported by Node-API.