Releases: 3lvis/Sync
Sync — 1.0.5
This release of Sync improves how many-to-many relationships work.
We added two use cases to our suite of tests:
- Improved uniquing (this is perfect for entities that share a child) => Fixed on #96
- Fixed an issue with recursive entities => Fixed on #97
We also fixed a bug in our DesignerNews demo, the Comment
entity is a recursive entity and didn't had a parentComment
relationship which is needed in this cases => Fixed on #100
We also want to thanks @kostiakoval who pointed out the first two bugs, his input was key to make this release possible, so a big round of applause for him.
Sync — 1.0.4
When we switched to SQLite in our automatic tests we saw a bunch of failures (we were using In-memory before). We fixed those issues in this release.
Sync — 1.0.3
- Updated dependencies, now many to many relationships with custom primary keys should "just work" (#85)
Sync — 1.0.2
- Improved one-to-one mapping (#72)
Thanks a lot to @Tif-tof for his contributions on Sync, he's awesome.
Sync — 1.0.1
- Fixes an issue where Sync wouldn't support Entities that had custom mapping on a custom primary key (#59)
For example:
In Core Data Model:
Map ImageId
in the JSON to imageId
:
imageId => hyper.remoteKey : ImageId
Make imageId
the primary key:
imageId => hyper.isPrimaryKey : YES
JSON:
[
{
"ImageId": 0,
"url": "http://sample.com/sample0.png"
}
]
Thanks to @bmnick for his contributions on this release. Be careful if you find him walking around the streets this week, looks like he's on his kicking all asses week. 🏃
Sync — 1.0.0
- 1.0.0 release, over this point releases will use http://semver.org
🎉 🎉 🎉 🎉
Sync — 0.7.3
- Update dependencies
More from 0.7.0
- Added support for custom primary keys, before it was inferred that the primary key would be
remoteID
, now you can addhyper.isPrimaryKey
to your attribute to mark it as primary key - Added support for
Binary Data
types, in this way you can useNSDictionary
andNSArray
, read more in HYPPropertyMapper 3.0.0 - [BREAKING CHANGE] Improved API, now it should be simpler to use and more consistent
+ (void)changes:(NSArray *)changes
inEntityNamed:(NSString *)entityName
dataStack:(DATAStack *)dataStack
completion:(void (^)(NSError *error))completion;
- [BREAKING CHANGE] Improved Core Data user info keys to be more consistent
static NSString * const SyncCustomPrimaryKey = @"hyper.isPrimaryKey";
static NSString * const SyncCustomRemoteKey = @"hyper.remoteKey";
Thanks a lot to @RamonGilabert for his contributions on this release. Don't even try to get him, we already made him sign for his soul.
😼
Sync — 0.7.2
- Fix a bug when mapping to-one relationships with custom relationship name => #41
Thanks @RamonGilabert!
Sync — 0.7.1
- Update dependencies
More from 0.7.0
- Added support for custom primary keys, before it was inferred that the primary key would be
remoteID
, now you can addhyper.isPrimaryKey
to your attribute to mark it as primary key - Added support for
Binary Data
types, in this way you can useNSDictionary
andNSArray
, read more in HYPPropertyMapper 3.0.0 - [BREAKING CHANGE] Improved API, now it should be simpler to use and more consistent
+ (void)changes:(NSArray *)changes
inEntityNamed:(NSString *)entityName
dataStack:(DATAStack *)dataStack
completion:(void (^)(NSError *error))completion;
- [BREAKING CHANGE] Improved Core Data user info keys to be more consistent
static NSString * const SyncCustomPrimaryKey = @"hyper.isPrimaryKey";
static NSString * const SyncCustomRemoteKey = @"hyper.remoteKey";
Thanks a lot to @RamonGilabert for his contributions on this release. Don't even try to get him, we already made him sign for his soul.
😼
Sync — 0.7.0
- Added support for custom primary keys, before it was inferred that the primary key would be
remoteID
, now you can addhyper.isPrimaryKey
to your attribute to mark it as primary key - Added support for
Binary Data
types, in this way you can useNSDictionary
andNSArray
, read more in HYPPropertyMapper 3.0.0 - [BREAKING CHANGE] Improved API, now it should be simpler to use and more consistent
+ (void)changes:(NSArray *)changes
inEntityNamed:(NSString *)entityName
dataStack:(DATAStack *)dataStack
completion:(void (^)(NSError *error))completion;
- [BREAKING CHANGE] Improved Core Data user info keys to be more consistent
static NSString * const SyncCustomPrimaryKey = @"hyper.isPrimaryKey";
static NSString * const SyncCustomRemoteKey = @"hyper.remoteKey";
Thanks a lot to @RamonGilabert for his contributions on this release. Don't even try to get him, we already made him sign for his soul.
😼