Skip to content

doc: add reference to guide for N-API additions - #22593

Closed
mhdawson wants to merge 3 commits into
nodejs:masterfrom
mhdawson:napiadditions
Closed

doc: add reference to guide for N-API additions#22593
mhdawson wants to merge 3 commits into
nodejs:masterfrom
mhdawson:napiadditions

Conversation

@mhdawson

Copy link
Copy Markdown
Member

Add reference to guide with requirements/principles
for accepting additions to N-API.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Add reference to guide with requirements/principles
for accepting additions to N-API.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the doc Issues and PRs related to the documentations. label Aug 29, 2018

@vsemozhetbytvsemozhetbyt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With nits.

Comment threadCOLLABORATOR_GUIDE.md Outdated
- [When Breaking Changes Actually Break Things](#when-breaking-changes-actually-break-things)
- [Reverting commits](#reverting-commits)
- [Introducing New Modules](#introducing-new-modules)
- [Additions to N-API](#additions-to-N-API)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

#additions-to-N-API -> #additions-to-n-api (otherwise the link does not work).

Comment threadCOLLABORATOR_GUIDE.md Outdated
This
[guide](https://github.com/nodejs/node/blob/master/doc/guides/adding-new-napi-api.md)
outlines the requirements and principals that we should follow when
approving and landing new N-API APIs (any additions to node_api.h and

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

node_api.h -> `node_api.h`

Comment threadCOLLABORATOR_GUIDE.md Outdated
[guide](https://github.com/nodejs/node/blob/master/doc/guides/adding-new-napi-api.md)
outlines the requirements and principals that we should follow when
approving and landing new N-API APIs (any additions to node_api.h and
node_api_types.h).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

node_api_types.h -> `node_api_types.h`

@vsemozhetbytvsemozhetbyt added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 30, 2018
Comment threadCOLLABORATOR_GUIDE.md Outdated

This
[guide](https://github.com/nodejs/node/blob/master/doc/guides/adding-new-napi-api.md)
outlines the requirements and principals that we should follow when

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/principals/principles/

@mhdawson

Copy link
Copy Markdown
MemberAuthor

@nodejs/tsc, @Trott since this imposes additional requirements on PR review, and there was some concern expressed it was not obvious when the PR to land the guide that this was the case.

Comment threadCOLLABORATOR_GUIDE.md Outdated

Two of the key requirements are that additions be landed as
experimental and then only promoted out of experimental with agreement
from the [n-api team](https://github.com/orgs/nodejs/teams/n-api).

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.

I'd prefer this paragraph be removed. Leaving it in means we have to update things in two places if anything changes. More importantly, if this paragraph has a subtle-but-meaningful difference from what's in the linked doc, it may be unclear as to which document carries more authority.

I understand the motivation to summarize, but if someone is adding an N-API addition, they should (and no doubt will, if they see this section) read the linked doc. If they aren't adding an N-API addition, then this paragraph is not useful to them.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Ok, will remove

@vsemozhetbytvsemozhetbyt removed the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 1, 2018
@mhdawson

Copy link
Copy Markdown
MemberAuthor

@Trott@vsemozhetbyt pushed changes to address comments.

@mhdawson

Copy link
Copy Markdown
MemberAuthor

@Trott do you think this is ready to go or should we try to get additional TSC reviewers?

@Trott

Copy link
Copy Markdown
Member

@mhdawson Ship it!

@mhdawson

Copy link
Copy Markdown
MemberAuthor

@mhdawson

Copy link
Copy Markdown
MemberAuthor

Landed as 5cccc55

mhdawson added a commit that referenced this pull request Sep 13, 2018
Add reference to guide with requirements/principles
for accepting additions to N-API.
PR-URL: #22593
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Sep 14, 2018
Add reference to guide with requirements/principles
for accepting additions to N-API.
PR-URL: #22593
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@targostargos mentioned this pull request Sep 18, 2018
targos pushed a commit that referenced this pull request Sep 19, 2018
Add reference to guide with requirements/principles
for accepting additions to N-API.
PR-URL: #22593
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Sep 20, 2018
Add reference to guide with requirements/principles
for accepting additions to N-API.
PR-URL: #22593
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@mhdawson
mhdawson deleted the napiadditions branch September 30, 2019 13:13
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docIssues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@mhdawson@nodejs-github-bot@Trott@digitalinfinity@jasnell@lpinca@vsemozhetbyt