Skip to content

v5.0.0

Compare
Choose a tag to compare
@RAnders00 RAnders00 released this 25 Oct 20:24
20aa872
  • Breaking: A lot of details regarding the metrics collection system have been reworked. (#160)
    • Switched from using the metrics crate to using the promtheus crate.
    • Usage of the new library and new config types now allows you to specify a Registry
      (from the prometheus crate) to register the metrics on, instead of being forced
      to use one global registry like with the metrics crate.
    • The config option metrics_identifier in the config has been replaced by a
      MetricsConfig enum, which now allows complete flexibility regarding what labels
      are added to the metrics. (Previously, only client => a_value_chosen_by_you could be
      added, and adding it was mandatory due to the API design I had chosen previously.)
    • This also means you can now specify any amount of additional key => value label pairs
      to be placed on the exported metrics. I imagine this to be useful to export any kind of
      metadata about your application/use-case.
    • The metrics have been renamed from twitch_irc_* to twitchirc_* to align with
      the prometheus naming conventions
      .
    • twitch_irc_reconnects has been renamed to twitchirc_connections_failed to better
      reflect what it actually counts.
    • Added twitchirc_connections_created as the obvious counterpart to aforementioned metric.
  • Breaking: Handle emote_sets as Strings since not all of them are in fact u64s (#162)
  • Breaking: Removed ChatClient::say_in_response and ChatClient::reply_to_privmsg in favour
    of a new API design (Chatclient::say_in_reply_to) which does the same thing as the previous
    functions, just with a sleeker API design. (#166)
  • Breaking: Removed support for parsing HOSTTARGET messages (Twitch has removed Host mode since 2022-10-03) (#183)
  • Minor: Added me and me_in_reply_to methods to send /me messages. (#170)
  • Minor: Implement Clone for RefreshingLoginCredentials. (#176)
  • Minor: Implement Eq for many structs. (#177)