add deprecation log (#12674)

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #12674
| License       | MIT
| Doc PR        | 

Could you please use the template:

XXX was deprecated in version 2.X and will be removed in version 3.0. Please use XXX instead.