-
Notifications
You must be signed in to change notification settings - Fork 30k
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
POC: src: add addon ABI declaration option #25539
Conversation
Add macro `NODE_MODULE_DECLARE_ABI` to give addon authors the option of providing a list of versions for various parts of the ABI against which to check the addon at load time. Re: nodejs/TSC#651
0905ea7
to
2dfaa45
Compare
576c1af
to
2dfaa45
Compare
b2839ea
to
2f62e74
Compare
what's the semversiness of this change? I think it should be semver-major. |
@mcollina I’m not quite sure about the use cases here/if it is worth the added complexity (because it most likely only changes later-occurring errors into earlier ones), but it seems semver-minor as it is an opt-in feature for addons? |
The addition of the macro seems semver-minor to me as well. But is it possible that the refactoring of |
@refack |
47c4ca9
to
06d96f7
Compare
I'm thinking that, for |
I agree. Considering that, does this change have a benefit before the next major version bump? If not maybe it's worth waiting just to be extra cautious? If it does, consider my comments non-blocking. |
@refack so far in
If we don't start factoring the C++-agnostic things out of Having said this, we might simply wait until the next major version to land this feature. I mean, it'd make sense that the next major version of Node.js now has the new, cool Addon ABI Declarations™ feature. |
I'm cleaning out a few old PRs 🧹. I'm closing this due to inactivity. Please re-open if needed! |
Add macro
NODE_MODULE_DECLARE_ABI
to give addon authors the option ofproviding a list of versions for various parts of the ABI against which
to check the addon at load time.
Re: nodejs/TSC#651
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes