-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: trim deprecation level definition text #21241
Closed
Closed
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -419,25 +419,20 @@ the future." | |
|
||
Node.js uses three Deprecation levels: | ||
|
||
* *Documentation-Only Deprecation* refers to elements of the Public API that | ||
should be avoided by developers and that might be staged for a runtime | ||
deprecation in a future Node.js major release. An explicit notice indicating | ||
the deprecation status is added to the API documentation but no functional | ||
changes are implemented in the code. By default there will be no deprecation | ||
warnings emitted for such deprecations at runtime. Documentation-only | ||
deprecations may trigger a runtime warning when Node.js is started with the | ||
[`--pending-deprecation`][] flag or the `NODE_PENDING_DEPRECATION=1` | ||
environment variable is set. | ||
|
||
* *Runtime Deprecation* refers to the use of process warnings emitted at | ||
runtime the first time that a deprecated API is used. A command-line | ||
switch can be used to escalate such warnings into runtime errors that will | ||
cause the Node.js process to exit. As with Documentation-Only Deprecation, | ||
the documentation for the API must be updated to clearly indicate the | ||
deprecated status. | ||
|
||
* *End-of-life* refers to APIs that have gone through Runtime Deprecation and | ||
are no longer subject to the semantic versioning rules used by the project. | ||
* *Documentation-Only Deprecation*: A deprecation notice is added to the API | ||
API documentation but no functional changes are implemented in the code. By | ||
default there will be no deprecation warnings emitted for such deprecations at | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is being trimmed, maybe drop the first occurrence |
||
runtime. Documentation-only deprecations may trigger a runtime warning when | ||
Node.js is started with the [`--pending-deprecation`][] flag or the | ||
`NODE_PENDING_DEPRECATION=1` environment variable is set. | ||
|
||
* *Runtime Deprecation*: A warning is emitted at runtime the first time that a | ||
deprecated API is used. A command-line switch can be used to escalate such | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we link to/specify the switch? |
||
warnings into runtime errors that will cause the Node.js process to exit. As | ||
with Documentation-Only Deprecation, the documentation for the API must be | ||
updated to clearly indicate the deprecated status. | ||
|
||
* *End-of-life*: The API is no longer subject to the semantic versioning rules. | ||
Backward-incompatible changes including complete removal of such APIs may | ||
occur at any time. | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API API