Skip to content

src: allow N-API addon in AddLinkedBinding() - #35301

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:linked-binding-n-api
Closed

src: allow N-API addon in AddLinkedBinding()#35301
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:linked-binding-n-api

Conversation

@addaleax

Copy link
Copy Markdown
Member

AddLinkedBinding() can be used to load old-style Node.js addons, but
currently not N-API addons. There’s no good reason not to support
N-API addons as well, so add that.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

`AddLinkedBinding()` can be used to load old-style Node.js addons, but
currently not N-API addons. There’s no good reason not to support
N-API addons as well, so add that.
@addaleaxaddaleax added c++ Issues and PRs that require attention from people who are familiar with C++. semver-minor PRs that contain new features and should be released in the next minor version. node-api Issues and PRs related to the Node-API. embedding Issues and PRs related to embedding Node.js in another project. labels Sep 22, 2020
@nodejs-github-bot

nodejs-github-bot commented Sep 22, 2020

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/n-api

@nodejs-github-botnodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Sep 22, 2020
@addaleaxaddaleax added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 22, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 22, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

nodejs-github-bot commented Sep 22, 2020

Copy link
Copy Markdown
Collaborator

@NickNasoNickNaso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@addaleaxaddaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. review wanted PRs that need reviews. labels Sep 25, 2020

@mhdawsonmhdawson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhdawsonmhdawson added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 25, 2020
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 25, 2020
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/33243/

@addaleaxaddaleax added commit-queue Add this label to land a pull request using GitHub Actions. and removed review wanted PRs that need reviews. labels Sep 25, 2020
@github-actionsgithub-actionsBot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 26, 2020
@github-actions

Copy link
Copy Markdown
Contributor

Landed in ff38165

nodejs-github-bot pushed a commit that referenced this pull request Sep 26, 2020
`AddLinkedBinding()` can be used to load old-style Node.js addons, but
currently not N-API addons. There’s no good reason not to support
N-API addons as well, so add that.
PR-URL: #35301
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
MylesBorins pushed a commit that referenced this pull request Sep 29, 2020
`AddLinkedBinding()` can be used to load old-style Node.js addons, but
currently not N-API addons. There’s no good reason not to support
N-API addons as well, so add that.
PR-URL: #35301
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
@MylesBorinsMylesBorins mentioned this pull request Sep 29, 2020
MylesBorins added a commit that referenced this pull request Sep 29, 2020
Notable changes:
deps:
* (SEMVER-MINOR) upgrade to libuv 1.40.0 (Colin Ihrig) #35333
module:
* (SEMVER-MINOR) named exports for CJS via static analysis (Guy Bedford) #35249
* (SEMVER-MINOR) exports pattern support (Guy Bedford) #34718
src:
* (SEMVER-MINOR) allow N-API addon in `AddLinkedBinding()` (Anna Henningsen) #35301
PR-URL: #35419
MylesBorins added a commit that referenced this pull request Sep 29, 2020
Notable changes:
deps:
* (SEMVER-MINOR) upgrade to libuv 1.40.0 (Colin Ihrig) #35333
module:
* (SEMVER-MINOR) named exports for CJS via static analysis (Guy Bedford) #35249
* (SEMVER-MINOR) exports pattern support (Guy Bedford) #34718
src:
* (SEMVER-MINOR) allow N-API addon in `AddLinkedBinding()` (Anna Henningsen) #35301
PR-URL: #35419
@addaleax
addaleax deleted the linked-binding-n-api branch October 6, 2020 09:36
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
`AddLinkedBinding()` can be used to load old-style Node.js addons, but
currently not N-API addons. There’s no good reason not to support
N-API addons as well, so add that.
PR-URL: nodejs#35301
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
joesepi pushed a commit to joesepi/node that referenced this pull request Jan 8, 2021
Notable changes:
deps:
* (SEMVER-MINOR) upgrade to libuv 1.40.0 (Colin Ihrig) nodejs#35333
module:
* (SEMVER-MINOR) named exports for CJS via static analysis (Guy Bedford) nodejs#35249
* (SEMVER-MINOR) exports pattern support (Guy Bedford) nodejs#34718
src:
* (SEMVER-MINOR) allow N-API addon in `AddLinkedBinding()` (Anna Henningsen) nodejs#35301
PR-URL: nodejs#35419
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.embeddingIssues and PRs related to embedding Node.js in another project.lib / srcIssues and PRs related to general changes in the lib or src directory.node-apiIssues and PRs related to the Node-API.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@addaleax@nodejs-github-bot@NickNaso@cjihrig@mhdawson@himself65