What's Changed
Shoutrrr v0.25.1 fixes how config URLs keep default values and how Slack tells icon URLs from emoji. It also makes sends faster across most services.
Config URLs
- A config URL keeps a level-mapped setting that the original URL set to its default value, such as Gotify's
priority=0. A service read back from that URL keeps the value instead of taking it from the send's level. This covers Discord, Gotify, ntfy, PagerDuty, Pushover and Signalgrid.
Slack
- An icon counts as a URL only when it starts with
http://orhttps://, in any letter case. Any other icon is sent as an emoji name.
MQTT
- The MQTT package builds against paho.golang v0.24.0. A program that updates paho.golang to v0.24.0 needs this release, because the MQTT package in v0.25.0 does not compile with it.
Go API
- Reading a Bark or ntfy URL no longer copies the deprecated
schemekey intoConfig.Scheme.DisableTLSstill decides whether the request uses TLS.
Commits
Fixes
- perf(format): report deprecated params without allocating on a typical send by @nicholas-fedor in #2264
- perf(format): reach config fields by index and set defaults from the cache by @nicholas-fedor in #2266
- perf(format): cache the deprecated field pairs per config type by @nicholas-fedor in #2272
- perf(services): apply Join and Rocket.Chat send params through a stored resolver by @nicholas-fedor in #2274
- perf(util): check hostnames without parsing them as IP addresses by @nicholas-fedor in #2276
- perf: check URL hosts in fewer passes by @nicholas-fedor in #2278
- perf(ntfy): check topic names without a regular expression by @nicholas-fedor in #2280
- perf(signal): check group recipients without a regular expression by @nicholas-fedor in #2282
- perf(pushbullet): check email targets without a regular expression by @nicholas-fedor in #2284
- perf(slack): check icon URLs without a regular expression by @nicholas-fedor in #2286
- perf(slack): build payloads and token strings without repeated allocations by @nicholas-fedor in #2288
- fix(slack): read an icon as a URL only when it starts with an http scheme by @nicholas-fedor in #2292
- perf: marshal request payloads through a pointer by @nicholas-fedor in #2296
- perf: send request bodies without copying them first by @nicholas-fedor in #2298
- perf(gotify): describe the message body with struct tags by @nicholas-fedor in #2302
- fix(gotify): keep an explicit zero priority in the config URL by @nicholas-fedor in #2306
- fix(format): keep explicit level-mapped defaults in config URLs by @nicholas-fedor in #2311
- fix(mqtt): adapt to paho.golang v0.24.0 API changes by @nicholas-fedor in #2333
Dependency Updates
- chore(deps): update module golang.org/x/tools to v0.53.0 by @renovate[bot] in #2258
- fix(deps): update module github.com/eclipse/paho.golang to v0.24.0 by @renovate[bot] in #2331
Full Changelog: v0.25.0...v0.25.1