- ⚡️ Updated to Xcode 12
- ⚡️ Update to Xcode 11.5
- 👌 Support for Swift 5 & Xcode 10.2
- 👌 Support for Xcode 10 and Swift 4.2
- API stays the same
- ➕ Added support for extended operation options #433
⚡️ Before you could set
deleteoperations and that worked for both parents and children, now you have more control and can also decide if children follow these rules using
🍱 ⚠️ Breaking change ⚠️
⚡️ If you were using the
.deleteoptions now you'll also need to set
. deleteRelationshipsbased on what are your needs.
0️⃣ If you weren't using OperationOptions then you won't need to do anything since it will default to
What's operation options?
⚡️ It's a feature that allows you to have more control over what happens when using Sync, you can then tell sync to only do inserts and updates, or only do inserts and deletes and so on.
Looks like this:
dataStack.sync(updated, inEntityNamed: "User", operations: [.insert, .update, .delete, .deleteRelationships], completion: nil)
🛠 Fixes an issue with forcing all requests to work in "isTesting" mode, meaning synchronously. #522
🔀 Introduced an extension to
FileManagerto get the directory URL where the sqlite file is stored. Since it can be different when running on device or in unit tests (because of sandboxing reasons we switch between caches folder and directory when needed). d970043