Skip to content

Releases: esiqveland/notify

v0.13.3

09 Jun 13:53
Compare
Choose a tag to compare

v0.13.2

26 May 10:43
Compare
Choose a tag to compare
  • 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

26 May 09:35
Compare
Choose a tag to compare

BUGFIX

  • Fixed example build for go < 1.19

Full Changelog: v0.13.0...v0.13.1

v0.13.0

26 May 09:34
Compare
Choose a tag to compare

NEW

  • Added Hint helpers for passing image data in notification

Full Changelog: v0.12.0...v0.13.0

v0.12.0

25 May 19:46
Compare
Choose a tag to compare

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

Full Changelog: v0.11.2...v0.12.0

v0.11.1

07 Oct 17:34
Compare
Choose a tag to compare
  • #11: Fixed a race during Close(). Thank you to Merovius.

v0.11.0

08 Aug 15:34
Compare
Choose a tag to compare

Release under BSD license

v0.10.0

08 Aug 11:40
Compare
Choose a tag to compare

Breaking changes:

  • Some changes to Notification:
    • ExpireTimeout is now of type time.Duration
    • Actions are now a list of typed objects

v0.9.1

13 Feb 23:09
Compare
Choose a tag to compare
  • change channel buffer size back to 10 due to a recommendation in dbus, see discussion in:
    #2 (comment)

v0.9.0

11 Feb 22:41
76c80de
Compare
Choose a tag to compare

Fixed:

  • Notifier.Close(): Should not close the underlying dbus.Conn that is owned by caller.

Breaking changes:

Changes:

  • requires go 1.13 for fmt.Errorf(%w) formatting
  • Notifier.CloseNotification(id int) is now CloseNotification(id uint32) to be in line with the uint32 IDs returned.

Removed:

  • NotificationClosed() <-chan *NotificationClosedSignal
  • ActionInvoked() <-chan *ActionInvokedSignal

Removed interface methods producing chans 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 signal
    • ActionInvokedHandler: called when we receive a signal that one of the action_keys was invoked
    • New(...): WithOnAction and WithOnClose 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.