-
Notifications
You must be signed in to change notification settings - Fork 143
[DOCS] Add an API and deprecation policy #720
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# API and Deprecation Policy | ||
|
||
## API Policy | ||
|
||
The code in this library is intended to be called by other projects. It is not | ||
intended to be extended. If you want to extend any classes, you're on your own, | ||
and your code might break with any new release of this library. | ||
|
||
Any classes, methods and properties that are `public` and not marked as | ||
`@internal` are considered to be part of the API. Those methods will continue | ||
working in a compatible way over minor and bug-fix releases according | ||
to [Semantic Versioning](https://semver.org/). though we might change the native | ||
type declarations in a way that might could break subclasses, though. | ||
|
||
Any classes, methods and properties that are `protected` or `private` are _not_ | ||
considered part of the API. Please do not rely on them. If you do, you're on | ||
your own. | ||
|
||
Any code that is marked as `@internal` is subject to change or removal without | ||
notice. Please do not call it. There be dragons. | ||
|
||
If a class is marked as `@internal`, all properties and methods of this class | ||
are by definition considered to be internal as well. | ||
|
||
When we change some code from public to `@internal` in a release, the first | ||
release that might change that code in a breaking way will be the next major | ||
release after that. This will allow you to change your code accordingly. | ||
|
||
For example, we might mark some code as `@internal` in version 8.7.0. The first | ||
version that possibly changes this code in a breaking way will then be version | ||
9.0.0. | ||
|
||
Before you upgrade your code to the next major version of this library, please | ||
update to the latest release of the previous major version and make sure that | ||
your code does not reference any code that is marked as `@internal`. | ||
|
||
## Deprecation Policy | ||
|
||
Code that we plan to remove is marked as `@deprecated`. In the corresponding | ||
annotation, we also note in which release the code will be removed. | ||
|
||
When we mark some code as `@deprecated` in a release, we'll usually remove it in | ||
the next major release. | ||
|
||
For example, when we mark some code as `@deprecated` in version 8.7.0, we'll | ||
remove it in version 9.0.0 (or sometimes a later major release). | ||
|
||
Before you upgrade your code to the next major version of this library, please | ||
update to the latest release of the previous major version and make sure that | ||
your code does not reference any code that is marked as `@deprecated`. |
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.
Uh oh!
There was an error while loading. Please reload this page.