| 1 |
# Deprecations and breaking changes |
| 2 |
This page is used to list deprecation notices for ntfy. Deprecated commands and options will be |
| 3 |
**removed after 1-3 months** from the time they were deprecated. How long the feature is deprecated |
| 4 |
before the behavior is changed depends on the severity of the change, and how prominent the feature is. |
| 5 |
|
| 6 |
## Active deprecations |
| 7 |
_No active deprecations_ |
| 8 |
|
| 9 |
## Previous deprecations |
| 10 |
|
| 11 |
### ntfy CLI: `ntfy publish --env-topic` will be removed |
| 12 |
> Active since 2022-06-20, behavior changed with v1.30.1 |
| 13 |
|
| 14 |
The `ntfy publish --env-topic` option will be removed. It'll still be possible to specify a topic via the |
| 15 |
`NTFY_TOPIC` environment variable, but it won't be necessary anymore to specify the `--env-topic` flag. |
| 16 |
|
| 17 |
=== "Before" |
| 18 |
``` |
| 19 |
$ NTFY_TOPIC=mytopic ntfy publish --env-topic "this is the message" |
| 20 |
``` |
| 21 |
|
| 22 |
=== "After" |
| 23 |
``` |
| 24 |
$ NTFY_TOPIC=mytopic ntfy publish "this is the message" |
| 25 |
``` |
| 26 |
|
| 27 |
### <del>Android app: WebSockets will become the default connection protocol</del> |
| 28 |
> Active since 2022-03-13, behavior will not change (deprecation removed 2022-06-20) |
| 29 |
|
| 30 |
Instant delivery connections and connections to self-hosted servers in the Android app were going to switch |
| 31 |
to use the WebSockets protocol by default. It was decided to keep JSON stream as the most compatible default |
| 32 |
and add a notice banner in the Android app instead. |
| 33 |
|
| 34 |
### Android app: Using `since=<timestamp>` instead of `since=<id>` |
| 35 |
> Active since 2022-02-27, behavior changed with v1.14.0 |
| 36 |
|
| 37 |
The Android app started using `since=<id>` instead of `since=<timestamp>`, which means as of Android app v1.14.0, |
| 38 |
it will not work with servers older than v1.16.0 anymore. This is to simplify handling of deduplication in the Android app. |
| 39 |
|
| 40 |
The `since=<timestamp>` endpoint will continue to work. This is merely a notice that the Android app behavior will change. |
| 41 |
|
| 42 |
### Running server via `ntfy` (instead of `ntfy serve`) |
| 43 |
> Deprecated 2021-12-17, behavior changed with v1.10.0 |
| 44 |
|
| 45 |
As more commands are added to the `ntfy` CLI tool, using just `ntfy` to run the server is not practical |
| 46 |
anymore. Please use `ntfy serve` instead. This also applies to Docker images, as they can also execute more than |
| 47 |
just the server. |
| 48 |
|
| 49 |
=== "Before" |
| 50 |
``` |
| 51 |
$ ntfy |
| 52 |
2021/12/17 08:16:01 Listening on :80/http |
| 53 |
``` |
| 54 |
|
| 55 |
=== "After" |
| 56 |
``` |
| 57 |
$ ntfy serve |
| 58 |
2021/12/17 08:16:01 Listening on :80/http |
| 59 |
``` |
| 60 |
|