Releases: esiqveland/notify
Releases · esiqveland/notify
v0.13.3
Full Changelog: v0.13.2...v0.13.3
v0.13.2
- removed unused type Hints. this was only present for about a day
- align the int type with the dbus spec as int32 values.
Full Changelog: v0.13.1...v0.13.2
v0.13.1
v0.13.0
v0.12.0
What's Changed
- Renamed Variant to Hint
- Renamed SoundWithName to HintSoundWithName
- New:
Urgency
+n.SetUrgency
- Fix panic on dbus signal channel close by @diamondburned in #16
New Contributors
- @diamondburned made their first contribution in #16
Full Changelog: v0.11.2...v0.12.0
v0.11.1
v0.11.0
Release under BSD license
v0.10.0
Breaking changes:
- Some changes to Notification:
ExpireTimeout
is now of typetime.Duration
Actions
are now a list of typed objects
v0.9.1
- change channel buffer size back to 10 due to a recommendation in dbus, see discussion in:
#2 (comment)
v0.9.0
Fixed:
Notifier.Close()
: Should not close the underlyingdbus.Conn
that is owned by caller.
Breaking changes:
Changes:
- requires go
1.13
forfmt.Errorf(%w)
formatting Notifier.CloseNotification(id int)
is nowCloseNotification(id uint32)
to be in line with theuint32
IDs returned.
Removed:
NotificationClosed() <-chan *NotificationClosedSignal
ActionInvoked() <-chan *ActionInvokedSignal
Removed interface methods producing chan
s because most users found it awkward to use.
Added callback functions instead.
Added:
- Added callback functions instead of methods returning a shared
chan
:NotificationClosedHandler
: called when we receive a NotificationClosed signalActionInvokedHandler
: called when we receive a signal that one of the action_keys was invokedNew(...)
:WithOnAction
andWithOnClose
options that lets you give a custom handler function.
The new callback based handler design fixes a few issues as well. It is now safe to create a instance without draining the output channel and we no longer need to spawn new goroutines just to avoid blocking even if the consumer is not interested in signals.