Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Releases: jessesquires/JSQNotificationObserverKit

5.0.1

04 Jul 00:05
Compare
Choose a tag to compare

⚠️ Deprecated ⚠️

As Swift 3.0 and proposal SE-0069, this library is no longer necessary.

5.0.0

05 Apr 16:05
Compare
Choose a tag to compare

This release closes the 5.0.0 milestone.

Breaking changes ⚠️

  • Updated to Swift 2.2 (#35). Swift 2.2 and above is now required.
  • The notification: parameter name has been removed from NotificationObserver initializers to reduce verbosity (#31). Example:
// OLD
let observer = NotificationObserver(notification: note) { (value, sender) in
}

// NEW
let observer = NotificationObserver(note) { (value, sender) in
}
  • Renamed ValueSenderHandler to ValueSenderClosure
  • Renamed NotificationHandler to NotificationClosure

New

  • New convenience typealiases for Cocoa notifications: CocoaNotification, CocoaObserver, CocoaClosure (#28, #33). Thanks @grosch ! See the docs for details.

4.0.0

21 Jan 03:55
Compare
Choose a tag to compare

This release closes the 4.0.0 milestone. 🎉

  • The previously added withSender() function on Notification has changed from mutating to non-mutating and now returns a new Notification instance. See discussion at #26. See the docs for details.

This is a minor, but breaking, change.

3.1.0

06 Jan 01:39
Compare
Choose a tag to compare

This release closes the 3.1.0 milestone. 🎉

New

This is valuable if you want to declare global notifications where the specific sender instance isn't available in the global scope. This function can be chained with post().

Example usage:

// in a view controller, for example

notification.withSender(self).post(value)

See the docs for details.

3.0.0

02 Jan 12:05
Compare
Choose a tag to compare

This release closes the 3.0.0 milestone.

New

Official support for OS X, tvOS, watchOS via CocoaPods. 🎉

Changes

The postNotification() global function has moved to be a function on Notification. Thanks @grosch!
See the updated docs for details.

2.0.0

20 Sep 19:31
Compare
Choose a tag to compare

This release closes the 2.0.0 milestone.

  • Swift 2.0 🎉
  • A few refinements
  • More unit tests
  • Updated docs

1.0.0

24 Mar 07:30
Compare
Choose a tag to compare

It's here! 🎉

Checkout the README and documentation.