Releases: 3lvis/Sync
Sync — 1.10.0
Update dependencies:
DATAFilter from 0.10.0 to 0.11.0
It was completely rewritten in Swift, biggest change is that DATAFilterOperation
is now DATAFilter.Operation
.
https://github.com/3lvis/DATAFilter/releases/tag/0.11.0
DATAStack from 5.2.1 to 5.3.0
Added more initializers and some naming improvements to make it easier to support NSPersistentContainer in the future.
Sync — 2.0.0 (Beta 1)
Swift 3 support.
Sync — 1.9.0
Add support for operation types
Adds support for selecting different operation types, so far Sync has being inserting items found in JSON but not locally, removing items found locally but not in JSON and updating items found both in JSON and locally. This vesion allows you to change that, so you can choose to just insert, just delete, just update or any combination of those things.
PR: #223
let firstImport = // First import of users
Sync.changes(firstBatch, inEntityNamed: "User", dataStack: dataStack, operations: [.All]) {
// All users have been imported, they are happy
}
// Likely after some changes have happened, here usually Sync would remove the not found items
let secondImport = // Second import of users
Sync.changes(secondImport, inEntityNamed: "User", dataStack: dataStack, operations: [.Insert, .Update]) {
// Here new users have been imported, existing users have been updated, and not found users have been ignored
}
Others
- Improved multithreading safety
Sync — 1.8.1
- Update NSString-HYPNetworking dependency to fix thread safety and memory management issues
Sync — 1.8.0
Cancelling Sync operations
Since now Sync is a subclass of NSOperation
the sky is the limit! 😱
Issues: #216 #93
let operation = Sync(changes: users, inEntityNamed: "User", predicate: nil, dataStack: dataStack)
operation.start()
Better simplified workflows
The handling of syncing relationships by providing only the id instead of the full JSON object has been improved.
Issues: #215 #218 #220
Checkout the simplified sections for more information.
https://github.com/hyperoslo/Sync#one-to-many-simplified
https://github.com/hyperoslo/Sync#one-to-one-simplified
By the way, even though is not documented yet, this also works with many-to-many without problems.
Sync — 1.7.2
- Improved Sync so it checks for changes before saving the context
- Reduced memory footprint in big sync processes dramatically!
- Updated dependencies:
Sync — 1.7.1
- Fix Sync's completion block not being returned on the main thread, this was like that before. 13f8fb3
Sync — 1.7.0
Update internal APIs, dependencies and README's to encourage usage of id
instead of remoteID
for the local primary key.
Sync — 1.6.8
- Updated
NSManagedObject-HYPPropertyMapper
to3.6.2
. Basically just removes those awfulprintf
andNSLogs
https://github.com/hyperoslo/NSManagedObject-HYPPropertyMapper/releases/tag/3.6.2
Sync — 1.6.7
- Update NSManagedObject-HYPPropertyMapper to 3.6.1
Fix bug where miliseconds weren't taken in account (Foreverland/SYNCPropertyMapper#105)