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

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

Closed
wants to merge 3 commits into from

Conversation

mhdawson
Copy link
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 nodejs-github-bot added the doc Issues and PRs related to the documentations. label Aug 29, 2018
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt left a comment

Choose a reason for hiding this comment

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

With nits.

@@ -21,6 +21,7 @@
- [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
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).

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
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`

[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
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`

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

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
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
Member Author

@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.


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
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
Member Author

Choose a reason for hiding this comment

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

Ok, will remove

@vsemozhetbyt vsemozhetbyt 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
Member Author

mhdawson commented Sep 6, 2018

@Trott @vsemozhetbyt pushed changes to address comments.

@mhdawson
Copy link
Member Author

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

@Trott
Copy link
Member

Trott commented Sep 11, 2018

@mhdawson Ship it!

@mhdawson
Copy link
Member Author

@mhdawson
Copy link
Member Author

Landed as 5cccc55

@mhdawson mhdawson closed this Sep 13, 2018
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>
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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants