A swifter Core Data stack
This release closes the 9.0.3 milestone.
This release closes the 9.0.2 milestone.
This release closes the 9.0.0 milestone.
Removed NSManagedObjectContext
extension func save(wait:, completion:)
. Replaced with two new extension methods, func saveAsync(completion:)
and func saveSync(completion:)
.
Removed SaveResult
type in favor of Swift's new generic Result
type.
Removed StackResult
type in favor of Swift's new generic Result
type.
Renamed CoreDataStackFactory
to CoreDataStackProvider
Added typealias SaveResult = Result<NSManagedObjectContext, Error>
(Replaces the former SaveResult
type.)
Added typealias StackResult = Result<CoreDataStack, Error>
(Replaces the former StackResult
type.)
This release closes the 8.0.0 milestone.
PersistentStoreOptions
typealias is now [AnyHashable: Any]
(#119)
Make APIs more "swifty" (#120)
defaultDirectoryURL()
under CoreDataModel
ChildContext
typealias under NSManagedObjectContext
extensionsaveContext()
top-level function to extension method on NSManagedObjectContext
Equatable
auto-synthesis where possibleThis release closes the 6.0.2 milestone.
This release closes the 6.0.1 milestone.
carthage
failing. (#100, #101, #102) Thanks @darkhonor and @tonyarnold!This release closes the 6.0.0 milestone.
Swift 3.0 now required.
entity(name: String, context: NSManagedObjectContext) -> NSEntityDescription
FetchRequest<T: NSManagedObject>
(new Swift overlays now provide generic NSFetchRequest
)delete()
and fetch()
extensions on NSManagedObjectContext
(new Swift overlays now provide these)CoreDataEntityProtocol
, which provides a better API for creating entity descriptions and inserting managed objects (#87). It also provides some helpful extensions. Conform to the new CoreDataEntityProtocol
to take advantage of this. This replaces the (removed) top-level function entity(name:, context:) -> NSEntityDescription