All Versions
8
Latest Version
Avg Release Cycle
79 days
Latest Release
2424 days ago

Changelog History

  • v0.0.8 Changes

    August 30, 2017
    • โž• added nullability
    • ๐Ÿ›  fixed some documentation
  • v0.0.7 Changes

    April 22, 2016

    โšก๏ธ Updated spec for watchOS support

  • v0.0.6 Changes

    March 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.

  • v0.0.5 Changes

    March 17, 2016

    ๐Ÿ‘ Modified code to support iOS 7 and 8

  • v0.0.4 Changes

    March 17, 2016
    • โž• Added NSProgress support You can track progress using objc [mapper.progress addObserver:self forKeyPath:NSStringFromSelector(@selector(fractionCompleted)) options:NSKeyValueObservingOptionNew context:NULL];
    - (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

    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
  • v0.0.3 Changes

    February 29, 2016
    • โž• Added WANSCodingStore to the main header
    • โž• Added a way to register default mapping block for specific classes.
      0๏ธโƒฃ For example, you can now add a default mapping block to turn strings to NSDate

      id(toDateMappingBlock)(id ) = id(id value) { if ([value isKindOfClass:[NSString class]]) { return [defaultDateFormatter dateFromString:value]; } return value; }; [mapper addDefaultMappingBlock:toDateMappingBlock forDestinationClass:[NSDate class]];

  • v0.0.2 Changes

    February 26, 2016
    • ๐Ÿ”ฆ Exposed the store on WAMapper
    • โž• Added a new store: WANSCodingStore
  • v0.0.1 Changes

    February 23, 2016

    ๐ŸŽ‰ Initial release