-
Notifications
You must be signed in to change notification settings - Fork 1
/
CHANGELOG
52 lines (42 loc) · 1.88 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
## 0.0.6 - Released Mar 21, 2016
Fixed issues with relation ships when relation ship objects also have relation ship.
When you are mapping one object type from representation, you only get the array of those objects on first hierarchy level. Previously, you'd get every objects mapped in the process.
## 0.0.5 - Released Mar 17, 2016
Fixed support for iOS 9-
## 0.0.4 - Released Mar 17, 2016
- Added `NSProgress` support
You can track progress using
```objc
[mapper.progress addObserver:self
forKeyPath:NSStringFromSelector(@selector(fractionCompleted))
options:NSKeyValueObservingOptionNew
context:NULL];
```
```objc
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSString *,id> *)change context:(void *)context {
if ([keyPath isEqualToString:NSStringFromSelector(@selector(fractionCompleted))] && [object isKindOfClass:[NSProgress class]]) {
NSLog(@"Mapping progress = %f", [change[@"new"] doubleValue]);
} else {
[super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
}
}
```
It also supports cancellation
```objc
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
[mapper mapFromRepresentation:JSON mapping:employeeMapping completion:^(NSArray *mappedObjects, NSError *error) {
NSLog(@"Mapped objects %@ - Error %@", mappedObjects, error);
}];
});
[mapper.progress cancel];
```
- Added a basic sample on view controller
## 0.0.3 - Released Feb 29, 2016
- Added `WANSCodingStore` to the main header
- Added a way to register default mapping block for specific classes.
For example, you can now add a default mapping block to turn `strings` to `NSDate`
## 0.0.2 - Released Feb 26, 2016
- Exposed the store on WAMapper
- Added a new store: `WANSCodingStore`
## 0.0.1 - Released Feb 23, 2016
Initial release