CHANGELOG.md 2.8 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

Thanks to:

Changed

  • init() methods now throw
  • ReachabilityError contains the error code returned by SCError() after an error occurs.
  • Renamed error cases to start with lowercase

    Added

  • Allow configuring the notification DispatchQueue, which was previously hardcoded to DispatchQueue.main. It is now an optional, which if set to nil will use the notifier's internal queue to fire notifications. The default is still .main

    Fixed

  • Fixed a crash which could occur if Reachability was deallocated at the same time a system thread was calling back into Reachability

[4.3.1] - 2018-10-18

Fixed

[4.3.0] - 2018-10-01

Changed

  • Updates for Swift 4.2

[4.2.1] - 2018-08-30

Fixed

[4.2.0] - 2018-08-29

Changed

  • Use a single target for all platforms
  • Add ReachabilityTests target
  • Remove logging
  • Notification.Name.reachabilityChanged is public
  • Added optional queueQoS and targetQueue to init(reachabilityRef: SCNetworkReachability, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil)
  • Added optional queueQoS and targetQueue to init?(hostname: String, queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil)
  • Added optional queueQoS and targetQueue to init?(queueQoS: DispatchQoS = .default, targetQueue: DispatchQueue? = nil)
  • Move macOS deployment target to 10.10

[4.1.0] - 2017-10-10

Changed

  • Version update only to fix Cocoapods issue

[4.0.0] - 2017-10-10

Changed

  • NetworkStatus renamed Connection
  • currentReachabilityStatus renamed connection
  • isReachableViaWWAN has been renamed to isReachableViaCellular
  • reachableOnWWAN has been renamed to allowsCellularConnection
  • The notification for reachability changes has been renamed from ReachabilityChangedNotification to Notification.Name.reachabilityChanged
  • All closure callbacks and notification are fired on the main queue (including when startNotifier() is called)

Deprecated

  • reachability.currentReachabilityString has been deprecated. Use "\(reachability.connection)" instead.
  • isReachable has been deprecated. Use connection != .none instead.
  • isReachableViaWWAN has been deprecated. Use connection == .cellular instead.