Most N-API api in ShadowNode are aligned with definition of Node.js version 10.8. Yet there are some that may not implemented nor not supported. Documents of supported API can be found in Node.js N-API document. Following is a list of api that can not be used in ShadowNode.
Use node-gyp whenever possible, since N-API is designed to be ABI stable.
- napi_create_external_buffer
- napi_create_dataview
- napi_create_bigint_int64
- napi_create_bigint_uint64
- napi_create_bigint_words
- napi_create_string_latin1
- napi_create_string_utf16
- napi_get_dataview_info
- napi_get_value_bigint_int64
- napi_get_value_bigint_uint64
- napi_get_value_bigint_words
- napi_get_value_string_latin1
- napi_get_value_string_utf16
- napi_is_dataview
Though N-API functions for creating/destroying async contexts are available, they do not work as expected as async_hooks
has not been implemented.
- napi_adjust_external_memory
- napi_create_promise
- napi_resolve_deferred
- napi_reject_deferred
- napi_is_promise
- napi_run_script
- napi_add_finalizer