Skip to content

Commit

Permalink
n-api: restrict exports by version
Browse files Browse the repository at this point in the history
* Move `napi_get_uv_event_loop` into the `NAPI_VERSION >= 2` section
* Move `napi_open_callback_scope`, `napi_close_callback_scope`,
  `napi_fatal_exception`, `napi_add_env_cleanup_hook`, and
  `napi_remove_env_cleanup_hook` into the `NAPI_VERSION >= 3` section
* Added a missing `added` property to `napi_get_uv_event_loop` in the
  docs
* Added a `napiVersion` property to the docs and updated the parser and
  generator to use it.
* Added usage documentation

PR-URL: nodejs#19962
Backport-PR-URL: nodejs#25648
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information
kfarnung authored and Gabriel Schulhof committed Mar 4, 2019
1 parent d4b6643 commit 80fa044
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 17 deletions.
Loading

0 comments on commit 80fa044

Please sign in to comment.