Skip to content

Conversation

MarshallOfSound
Copy link
Member

@MarshallOfSound MarshallOfSound commented Dec 9, 2022

node-api: handle no support for external buffers

Refs: #35801
Refs: nodejs/abi-stable-node#441

Electron recently dropped support for external
buffers. Provide a way for addon authors to:

  • hide the methods to create external buffers so they can
    avoid using them if they want the broadest compatibility.
  • call the methods that create external buffers at runtime
    to check if external buffers are supported and either
    use them or not based on the return code.

Signed-off-by: Michael Dawson [email protected]

PR-URL: nodejs/node#45181
Reviewed-By: Chengzhong Wu [email protected]
Reviewed-By: Minwoo Jung [email protected]

Notes: Added node-api: handle no support for external buffers.

@MarshallOfSound MarshallOfSound requested review from a team as code owners December 9, 2022 11:25
@MarshallOfSound MarshallOfSound added 20-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes labels Dec 9, 2022
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Dec 9, 2022
@VerteDinde
Copy link
Member

VerteDinde commented Dec 12, 2022

Looks like the patch failed to apply; I'll take a look this week

@VerteDinde VerteDinde self-requested a review December 12, 2022 04:54
@nornagon nornagon merged commit 56dedcc into 20-x-y Dec 13, 2022
@nornagon nornagon deleted the cherry-pick/20-x-y/node/09ae62b branch December 13, 2022 18:40
@release-clerk
Copy link

release-clerk bot commented Dec 13, 2022

Release Notes Persisted

Added node-api: handle no support for external buffers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
20-x-y backport-check-skip Skip trop's backport validity checking semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants