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

Node-API v9 #436

Closed NickNaso closed 1 year ago

NickNaso commented 2 years ago

Might it be time for a new version of Node-API?

We added the following new features:

mhdawson commented 2 years ago

+1 from me

mhdawson commented 2 years ago

Discussed in the node-api team meeting this week. Lets think about it this week and the decide in the next meeting.

gabrielschulhof commented 1 year ago

I think we should wait for https://github.com/nodejs/node/pull/45715 as well.

mhdawson commented 1 year ago

We did forget this for a while, I think doing a new Node-API version would be good. We missed the lauch of Node.js 20 but I think we can get it in before it goes LTS.

vmoroz commented 1 year ago

Should we also put there the new finalizer behavior? Or they must be part of v10 as it is a quite big behavioral change?

mhdawson commented 1 year ago

We discussed today to do Release 9 with just

along with https://github.com/nodejs/node/pull/45715 and release those along with 45715 but modifying this line to guard with experimental - if (env->module_api_version <= 8) , as well as the documentation that says at what point the new functionality takes place, was well as the tests.

@vmoroz will submit a PR to makes those changes @legendecas will do the the release. As part of that he will add to https://github.com/nodejs/node/issues/47664

gabrielschulhof commented 1 year ago

We have released Node-API version 9. Closing.