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: experimental flag for global accessible APIs #54330

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

legendecas
Copy link
Member

@legendecas legendecas commented Aug 12, 2024

Explicitly document that adding an API to the global scope requires
semver-major label. Waiving the semver-major requires a regular
TSC consensus process.

Refs: #54329

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Aug 12, 2024
@legendecas
Copy link
Member Author

Updated per nodejs/TSC#1608.

@legendecas
Copy link
Member Author

@nodejs/tsc please take a look, thanks :)

Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

It might be good to add an explainer on why adding a global is considered semver-major (IIRC it's in case user code is using if(typeof newGlobalVar === 'undefined') /* Node.js specific code here */). IMO we should also better define what we mean by "the global scope", because I think you mean more than just the global object, but anything that's available without an import/require, right?

Explicitly document that adding an API to the global scope requires
`semver-major` label. Waiving the `semver-major` requires a regular
TSC consensus process.
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@legendecas
Copy link
Member Author

Thanks for suggestion, updated!

@legendecas legendecas added the tsc-agenda Issues and PRs to discuss during the meetings of the TSC. label Sep 3, 2024
@legendecas
Copy link
Member Author

Adding tsc-agenda Issues and PRs to discuss during the meetings of the TSC. for awareness.

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@legendecas legendecas removed the tsc-agenda Issues and PRs to discuss during the meetings of the TSC. label Sep 5, 2024
@legendecas legendecas added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 9, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 9, 2024
@nodejs-github-bot nodejs-github-bot merged commit 23f8ed0 into nodejs:main Sep 9, 2024
20 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 23f8ed0

@legendecas legendecas deleted the doc/global-experimental branch September 9, 2024 14:01
aduh95 pushed a commit that referenced this pull request Sep 12, 2024
Explicitly document that adding an API to the global scope requires
`semver-major` label. Waiving the `semver-major` requires a regular
TSC consensus process.

PR-URL: #54330
Refs: #54329
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
@RafaelGSS RafaelGSS mentioned this pull request Sep 16, 2024
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