Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: cherry-pick 09ae62b from node #36626

Merged
merged 2 commits into from Dec 13, 2022
Merged

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 mdawson@devrus.com

PR-URL: nodejs/node#45181
Reviewed-By: Chengzhong Wu legendecas@gmail.com
Reviewed-By: Minwoo Jung nodecorelab@gmail.com

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 in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours 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.

None yet

3 participants