Closed
Description
As discussed today it seems like rather than having developers declare their version specifically it would make sense to enforce it in the header file.
By default only the first version would be exposed and the developer can explicitly opt in using a preprocessor directive:
#define NAPI_VERSION 2
#include <node_api.h>
I've made the required changes in a private branch to start the discussion. If there are no objections I can go ahead and open a PR in the main repo.
Metadata
Metadata
Assignees
Labels
No labels