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
build: remove unnecessary stability check #23176
build: remove unnecessary stability check #23176
Conversation
c938ffa
to
cffce7f
Compare
@alexeagle can you approve again please :-) |
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.
nit: would be nice to explain the context in the commit description, maybe some other user of ts-api-guardian relied on this?
Right I will update the commit message. |
Previously, it was necessary to attach on of the three "stability" jsdoc tags (`@stable`, `@deprecated` or `@experimental`) to each public API export. To ensure that the public API was correctly tagged, the `ts-api-guardian` would check that one of these tags appeared on every public export. Now the doc-gen is able to compute that a code item is stable if it does not contain the `@experimental` nor `@deprecated` tags. Therefore there is no need to provide the `@stable` tag any more; and this tag has now been marked as deprecated - i.e. it should not be used. The ts-api-guardian has been modified in this commit so that it no longer warns/fails if the `@stable` is missing.
cffce7f
to
5fda66a
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
added/ removed (for bug fixes / features)added/ removed (for bug fixes / features)PR Type
What kind of change does this PR introduce?
What is the current behavior?
The doc-gen now assumes that a code item is stable if
it does not contain neither
@experimental
nor@deprecated
tags.What is the new behavior?
The ts-api-guardian no longer warns if the
@stable
tag is missing.Does this PR introduce a breaking change?
Other information
Discussed with @IgorMinar