Create documentation for deprecations and breaking changes and add URLs messages
See original GitHub issueMy understanding is that in v6 and v7 there are going to be API deprecations. TSDoc decprecations have been already been added for some of these and they are causing some confusion.
For example, in this issue users of the package gained the mistaken impression that of was deprecated and in this issue, the user was unsure of what was deprecated with startWith(null). In both of these situations, the deprecation messages were due to subtleties with TypeScript’s signature matching mechanism.
For contributors, it might be obvious what is and what is not deprecated, but it’s understandable that users of the package might be confused by deprecation messages that are reported after a patch upgrade - particular when the deprecation message seems to related to ‘normal’ use.
We could make this somewhat clearer by creating a simple markdown document for each deprecation that lists what is deprecated and why and could add a link to that document in the deprecation message itself. Doing so should not require too much effort and should go some way to curtailing the opening of deprecation-related issues.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:8
- Comments:17 (11 by maintainers)

Top Related StackOverflow Question
I created a first draft of the deprecation page. I would need some feedback about the content and the linking. Sometimes it is pretty repetitive content, especially in the remove sections.
Also the namings: Removed, Old usage, New usage etc are not really good.
I’m happy for every input. 😃
In the following my first try:
…
Deprecations introduced prior to 2018-03-29 (6.0.0-beta.4 )
Static method
neverdeprecated in favor of constantNEVERneverneverwithNEVERUsage <= 6.0.0-beta.3
Usage >= 6.0.0-beta.4
Static method
emptydeprecated in favor of constantEMPTYemptyemptywithEMPTYUsage >= 6.0.0-beta.3
Usage >= 6.0.0-beta.4
…
Breaking-changes introduced prior to 2018-03-29 (6.0.0-beta.5)
…
…
Breaking-changes introduced prior to [unknown] (7.x)
Static method
neverremovedDeprecated in version 6.0.0.beta-4 see refactoring suggestions there
Static method
emptyremovedDeprecated in version 6.0.0.beta-4 see refactoring suggestions there
…
…
I had a look at your answer and a discussion with @JWO719 about the docs part.
I would do the following things:
Create a list of all deprecations to track the progress
I will remove api/deprecations
In the docs guide section under to menu entry V6 I will create a new page named
DeprecationsThe content has the following structure:
Deprecations introduced prior to <Version_Number> <Date>The content fields should be in
JSONformat fitting the following structure:The created list gets checked by the team
I use the create list and update manually every deprecation message. The message has the following sections:
And follows the pattern:
<GenericDeprecationError> <HumanReadebleShortMessage> - see <LinkToDeprecationPage>Where
<HumanReadebleShortMessage>is the section “Reason for depreciation” in the docs/