Sync

JSON to Core Data and back. Swift Core Data Sync.

OTHER License

Stars
2.6K
Committers
33

Bot releases are hidden (Show)

Sync - Sync — 6.5.0 Latest Release

Published by 3lvis about 4 years ago

  • Updated to Xcode 12
Sync - Sync — 6.0.3

Published by 3lvis over 4 years ago

  • Rename Result type to avoid conflicts with Swift 5's Result type #578
Sync - Sync — 6.0.2

Published by 3lvis over 4 years ago

  • Update to Xcode 11.5
Sync - Sync — 6.0.0

Published by 3lvis over 5 years ago

  • Support for Swift 5 & Xcode 10.2
Sync - Sync — 5.2.1

Published by 3lvis over 5 years ago

  • Support for Swift 4.2 and Xcode 10 (@philip-zhan)
  • Improved the way nested relationships work (@joeboyscout04)
  • Improved support for parsing dates (@Kemmey)
  • Added an extra parameter to public class func changes... (@petkrein)
Sync - 5.1.0 (Xcode 10 and Swift 4.2)

Published by 3lvis about 6 years ago

  • Support for Xcode 10 and Swift 4.2
  • API stays the same
Sync - Sync — 5.0.1

Published by 3lvis about 6 years ago

Sync - Sync — 5.0.0

Published by 3lvis about 6 years ago

  • Added support for extended operation options #433

Before you could set insert, update and delete operations and that worked for both parents and children, now you have more control and can also decide if children follow these rules using insertRelationships, updateRelationships and deleteRelationships.

⚠️ Breaking change ⚠️

If you were using the .insert, .update, or .delete options now you'll also need to set .insertRelationships, .updateRelationships or . deleteRelationships based on what are your needs.

If you weren't using OperationOptions then you won't need to do anything since it will default to .all

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)
Sync - Sync — 4.3.0

Published by 3lvis about 6 years ago

  • Rollback extended sync operations

Extended operations was a breaking change, it didn't break the compilation but it broke functionality, this release aims for fix that, I'll reintroduce the feature in a separate major release: https://github.com/3lvis/Sync/issues/497

Sync - Sync — 4.2.1

Published by 3lvis about 6 years ago

FileManager.sqliteDirectoryURL
Sync - Sync — 4.2.0

Published by 3lvis about 6 years ago

Sync - Sync — 4.1.3

Published by 3lvis over 6 years ago

  • Update to Xcode 9.3
Sync - 4.1.2

Published by 3lvis over 6 years ago

Sync - Sync — 4.1.1

Published by 3lvis over 6 years ago

Sync - Sync — 4.1.0

Published by 3lvis over 6 years ago

  • Fixes a crash in to-many relationships #467

  • Fixes an issue with duplicated primary keys #471 (@batjo)

Before the following JSON would create 6 body entries, now is only 3.

[{
    "id":0,
    "title":"story 1",
    "comments":[{
        "body":"comment 1"
      },{
        "body":"comment 2"
      },{
        "body":"comment 3"
      }]
  },
  {
    "id":1,
    "title":"story 2",
    "comments":[{
        "body":"comment 1"
      },{
        "body":"comment 2"
      },{
        "body":"comment 3"
      }]
  }]
  • Fixes an issue where sending empty or null wouldn't remove the element #459

  • Added a code of conduct #468

  • Added support for extended operation options #433

Before you could set insert, update and delete operations and that worked for both parents and children, now you have more control and can also decide if children follow these rules using insertRelationships, updateRelationships and deleteRelationships.

Sync - Sync — 4.0.3

Published by 3lvis almost 7 years ago

  • Fixes an issue where if you had several stores the completion block would be triggered when every store was dropped.

https://github.com/3lvis/Sync/pull/439

Sync - Sync — 4.0.2

Published by 3lvis almost 7 years ago

  • #366: Fix operation is never marked as finished (#435)
Sync - Sync — 4.0.1

Published by 3lvis about 7 years ago

  • Improved Objective-C support thanks to @alejouribesanchez

giphy 2

Sync - Sync — 4.0.0

Published by 3lvis about 7 years ago

Xcode 9 and Swift 4 support.

Sync - Sync — 3.3.1

Published by 3lvis about 7 years ago

Package Rankings
Top 16.93% on Carthage
Top 1.36% on Cocoapods.org