Notice
While fixing `cluster_has_replica`, the definition of a healthy replica was
changed. It's more restrictive now, hence the jump from v1 to v2.
Changed
* In `cluster_node_count`, a healthy standby, sync replica or standby leaders cannot be "in
archive recovery" because this service doesn't check for lag and timelines.
Added
* Add the timeline in the `cluster_has_replica` perfstats. (50)
* Add a mention about shell completion support and shell versions in the doc. (53)
* Add the leader type and whether it's archiving to the `cluster_has_leader` perfstats. (58)
Fixed
* Add compatibility with [requests](https://requests.readthedocs.io)
version 2.25 and higher.
* Fix what `cluster_has_replica` deems a healthy replica. (50, reported by mbanck)
* Fix `cluster_has_replica` to display perfstats for replicas whenever it's possible (healthy or not). (50)
* Fix `cluster_has_leader` to correctly check for standby leaders. (58, reported by mbanck)
* Fix `cluster_node_count` to correctly manage replication states. (50, reported by mbanck)
Misc
* Improve the documentation for `node_is_replica`.
* Improve test coverage by running an HTTP server to fake the Patroni API (55
by dlax).
* Work around old pytest versions in type annotations in the test suite.
* Declare compatibility with click version 7.1 (or higher).
* In tests, work around nagiosplugin 1.3.2 not properly handling stdout
redirection.