From 4799957d082e13dc8a771d7041fc97c21c4e0af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 12 May 2016 07:48:36 +0200 Subject: [PATCH] CHANGELOG.md --- CHANGELOG.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc345eb1a..0e6b88d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,45 @@ Release Notes ============= +## Next Release + +**Breaking Changes** + +- FetchedRecordsController has been refactored ([documentation](https://github.com/groue/GRDB.swift#fetchedrecordscontroller)): + - delegate has been replaced by callbacks + - features that target UITableView are now iOS only. + + ```diff + final class FetchedRecordsController { + - weak var delegate: FetchedRecordsControllerDelegate? + - func recordAtIndexPath(indexPath: NSIndexPath) -> Record + - func indexPathForRecord(record: Record) -> NSIndexPath? + - var sections: [FetchedRecordsSectionInfo] + + #if os(iOS) + + typealias WillChangeCallback = FetchedRecordsController -> () + + typealias DidChangeCallback = FetchedRecordsController -> () + + typealias TableViewEventCallback = (controller: FetchedRecordsController, record: Record, event: TableViewEvent) -> () + + func trackChanges(recordsWillChange willChangeCallback: WillChangeCallback? = nil, recordEventInTableView tableViewEventCallback: TableViewEventCallback? = nil, recordsDidChange didChangeCallback: DidChangeCallback? = nil) + + func recordAtIndexPath(indexPath: NSIndexPath) -> Record + + func indexPathForRecord(record: Record) -> NSIndexPath? + + var sections: [FetchedRecordsSectionInfo] + + #else + + typealias WillChangeCallback = FetchedRecordsController -> () + + typealias DidChangeCallback = FetchedRecordsController -> () + + func trackChanges(recordsWillChange willChangeCallback: WillChangeCallback? = nil, recordsDidChange didChangeCallback: DidChangeCallback? = nil) + + #endif + } + -public protocol FetchedRecordsControllerDelegate : class { } + ``` + + ## 0.61.0 Released May 10, 2016 **New** -- `FetchedRecordsController` is now exposed in OSX CocoaPods framework ([documentation](https://github.com/groue/GRDB.swift#fetchedrecordscontroller) +- `FetchedRecordsController` is now exposed in OSX CocoaPods framework ([documentation](https://github.com/groue/GRDB.swift#fetchedrecordscontroller)) **Fixed**