nodejs / abi-stable-node

Repository used by the Node-API team to manage work related to Node-API and node-addon-api
239 stars 47 forks source link

What's new in the Node-API and node-addon-api world? - 2024 version #459

Open legendecas opened 4 months ago

legendecas commented 4 months ago

We use this issue to track/announce what is new on the Node-API front.

We'll discuss at the start of Node-API meetings and capture what's new.

Also feel free to post news that you have so that we can share with the broader community.

legendecas commented 4 months ago

node-addon-api v8.0.0 released this week.

vmoroz commented 2 months ago

Hermes team tentatively decided to add support for Node-API to a future version of Static Hermes JavaScript engine. See the related discussion and the initial PR. NativeScript team considers using it to integrate with React Native.

shirakaba commented 2 months ago

NativeScript team considers using it to integrate with React Native.

I gave several demos of this integration for React Native on iOS, on Twitter:

shirakaba commented 1 month ago

Today I successfully used node-swift to call native macOS APIs via Swift from the Node.js process of an Electron project. It's missing from the node-api-engine-bindings.md documentation, but it seems more recent and more comprehensive than the currently listed swift-napi-bindings.

NickNaso commented 2 weeks ago

SWIG starting from version 4.2.0 introduced generator generator targeting Node.js binary stable ABI Node-API. Here an example of a module that uses it https://github.com/mmomtchev/magickwand.js