Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 841dfbf

Browse filesBrowse files
legendecasaduh95
authored andcommitted
node-api: update libuv ABI stability note
PR-URL: #62789 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 9c700f3 commit 841dfbf
Copy full SHA for 841dfbf

1 file changed

+7-5Lines changed: 7 additions & 5 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/n-api.md‎

Copy file name to clipboardExpand all lines: doc/api/n-api.md
+7-5Lines changed: 7 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -6555,11 +6555,13 @@ NAPI_EXTERN napi_status napi_get_uv_event_loop(node_api_basic_env env,
65556555
* `[in] env`: The environment that the API is invoked under.
65566556
* `[out] loop`: The current libuv loop instance.
65576557

6558-
Note: While libuv has been relatively stable over time, it does
6559-
not provide an ABI stability guarantee. Use of this function should be avoided.
6560-
Its use may result in an addon that does not work across Node.js versions.
6561-
[asynchronous-thread-safe-function-calls](https://nodejs.org/docs/latest/api/n-api.html#asynchronous-thread-safe-function-calls)
6562-
are an alternative for many use cases.
6558+
Note: While libuv only [guarantees ABI stability](https://github.com/libuv/libuv?tab=readme-ov-file#versioning)
6559+
in a major version, its use may result in an addon that does not work across
6560+
Node.js major versions.
6561+
6562+
[ThreadSafeFunction](#asynchronous-thread-safe-function-calls)
6563+
is an ABI-stable alternative for many use cases to calling into the
6564+
JavaScript thread from another thread.
65636565

65646566
## Asynchronous thread-safe function calls
65656567

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.