nodejs / node-api-headers Goto Github PK
View Code? Open in Web Editor NEWRepository used to make the N-API headers more accessible
License: MIT License
Repository used to make the N-API headers more accessible
License: MIT License
Create release v1.0.1 to bring the last update.
In microsoft/vcpkg#29743 we are confused as to what version we should use when listing the contents of this repo.
Let's take an example:
0.0.5
8
19.8.1
See also: nodejs/node#46641 (comment)
NodeJS folks there seem to be suggesting "8" but if it would ever be distinguishable to a user for any reason to use a different upstream tag, that means the upstream tag needs to be in the version somehow...
Seems like after a PR to update is reviewed/landed we could automate publishing a new version.
New release to bring the last updates.
We should create a new release to bring the last update from the Node.js core repo. Node-API v9 has been shipped but for this repo and accordingly with https://github.com/nodejs/node-api-headers#versions the next versione will be v1.1.0
.
Is it right @nodejs/node-api ?
according to nodejs/node#46641 (comment), the headers are a bit out of date. please let me know if this issue isn't valid.
We may need automation setups to help us reduce the labor works on synchronizing source files in this project that shared with the Node.js core repo.
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
.
Hey! Could you please trigger headers sync? This would trigger .def files generation which is required for microsoft/vcpkg#29743 @NickNaso
I used mingw64 to compile the node-api addon, and there was no problem executing it in nodejs, but there was an error prompt in Electron, I don't know how to solve it.
[5876:0518/221657.727:ERROR:crashpad_client_win.cc(844)] not connected
We should publish a new version as it been a while since that happened.
v6.node_api_symbols
should probably extend v5.node_api_symbols
instead of v5.js_native_api_symbols
.
Line 189 in d68505e
required for microsoft/vcpkg#29743
this can be done during sync-headers processing
https://github.com/nodejs/node-api-headers/blob/main/.github/workflows/sync-headers.yml
the following code may be used to generate .def file
// https://github.com/cmake-js/cmake-js/blob/e2452ee226490bc666d286ab0860aeb35fbbb035/lib/cMake.js#L293
const headers = require('.');
// Compile a Set of all the symbols that could be exported
const allSymbols = new Set()
for (const ver of Object.values(headers.symbols)) {
for (const sym of ver.node_api_symbols) {
allSymbols.add(sym)
}
for (const sym of ver.js_native_api_symbols) {
allSymbols.add(sym)
}
}
// Write a 'def' file for NODE.EXE
const allSymbolsArr = Array.from(allSymbols)
require('fs').writeFileSync("./node.def", 'NAME NODE.EXE\nEXPORTS\n' + allSymbolsArr.join('\n'))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.