Skip to content

Releases: 3lvis/Sync

Sync — 1.10.0

26 Jul 16:47
Compare
Choose a tag to compare

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.

https://github.com/3lvis/DATAStack/releases/tag/5.3.0

Sync — 2.0.0 (Beta 1)

30 Jun 10:41
Compare
Choose a tag to compare
Pre-release

Swift 3 support.

Sync — 1.9.0

28 May 10:55
Compare
Choose a tag to compare

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

24 May 18:42
Compare
Choose a tag to compare

Sync — 1.8.0

17 May 20:39
Compare
Choose a tag to compare

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

16 May 06:03
Compare
Choose a tag to compare

Sync — 1.7.1

14 May 07:54
Compare
Choose a tag to compare
  • Fix Sync's completion block not being returned on the main thread, this was like that before. 13f8fb3

Sync — 1.7.0

11 May 21:19
Compare
Choose a tag to compare

Update internal APIs, dependencies and README's to encourage usage of id instead of remoteID for the local primary key.

Sync — 1.6.8

09 May 11:44
Compare
Choose a tag to compare
  • Updated NSManagedObject-HYPPropertyMapper to 3.6.2. Basically just removes those awful printf and NSLogs

https://github.com/hyperoslo/NSManagedObject-HYPPropertyMapper/releases/tag/3.6.2

Sync — 1.6.7

07 May 18:18
Compare
Choose a tag to compare
  • Update NSManagedObject-HYPPropertyMapper to 3.6.1

Fix bug where miliseconds weren't taken in account (Foreverland/SYNCPropertyMapper#105)