Skip to content

Sync — 1.6.6

Compare
Choose a tag to compare
@3lvis 3lvis released this 06 May 12:56
· 729 commits to master since this release

Updated to DATAStack 5.0.0

Release notes from DATAStack here:

  • Refactored all the things to have better error handling and better code coverage
  • Added a new method to create a background context, super useful when doing saves with NSOperations
public func newBackgroundContext() -> NSManagedObjectContext

BREAKING CHANGE

  • Removed the need to call persistWithCompletion or persist, you just need to save your used context and magic will happen
// Just kill this babies, they are no longer needed
dataStack.persist {error in
}

dataStack.persistWithCompletion {

}
  • Now drop() throws, before it was hiding the error message but now you can deal with that. If you're an Objective-C user this will no work for you, use forceDrop() instead

Before:

dataStack.drop()

After:

try dataStack.drop()