Skip to content

Releases: DenTelezhkin/DTModelStorage

7.2.0

25 Sep 14:10
Compare
Choose a tag to compare

Added

  • Single section storage classes with support for automatic diffing.

    SingleSectionStorage classes are now a recommended way of handling items in single section in more powerful way than MemoryStorage class.

    Read more about it in README.

  • Support for Swift 4.2 and Xcode 10.

  • Convenience methods for conditional mappings and anomalies

    • Method to create MappingCondition from ModelTransfer objects
    • Ability to silence anomalies using enum or closure

7.1.0

09 Jun 12:39
Compare
Choose a tag to compare

Added

Changed

  • Support for Xcode 10 (beta 1) with Swift 4.1 and Swift 4.2.

Fixed

  • Crash that could happen if move operation for MemoryStorage happened from and to the same section with not enough items in section.

7.0.3

02 Apr 14:45
Compare
Choose a tag to compare
  • Updates for Xcode 9.3 and Swift 4.1

7.0.2

01 Feb 12:07
Compare
Choose a tag to compare
  • Properly collect all updates from updateWithoutAnimations block.

7.0.1

01 Feb 11:58
Compare
Choose a tag to compare
  • Fixed a bug, that prevented datasource from being updated when updateWithoutAnimations method on MemoryStorage was used.

7.0.0

19 Jan 15:50
Compare
Choose a tag to compare
Releasing version 7.0.0.

7.0.0-beta.1

04 Dec 12:07
Compare
Choose a tag to compare
  • Implemented mechanism for deferring datasource updates of MemoryStorage. When turned on, updates are no longer applied automatically, but can be applied calling StorageUpdate.applyDeferredDatasourceUpdates() method. Keep in mind, that not only datasource updates are not applied, but object and section changes are also empty until updates are applied. This behaviour is turned on by default, to disable it, call
MemoryStorage.defersDatasourceUpdates = false
  • Ream podspec now requires Realm version 3.x

6.0.0

01 Nov 12:08
Compare
Choose a tag to compare
  • Fixed warnings for Xcode 9.1 / Swift 4.0.2

6.0.0-beta.2

27 Sep 14:48
Compare
Choose a tag to compare
  • Build with Xcode 9.0 release.

6.0.0-beta.1

10 Sep 17:43
Compare
Choose a tag to compare

This is major release, containing breaking API changes, please read DTTableViewManager 6.0 Migration Guide

  • MemoryStorage now has a convenience method for moving item without animations: moveItemWithoutAnimation(from:to:).
  • EventReaction class now has 4 and 5 argument reactions
  • All storage protocols are now class-bound.
  • Implemented mapping conditions. ViewModelMapping was changed to be able to work with mapping blocks.

Breaking

  • RealmStorage is not included in Carthage releases.
  • setItems method, that accepted array of arrays of items to set items for all sections, has been renamed to setItemsForAllSections to provide more clarity and not to clash with setItems(_:forSection:) method.