Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.98 KB

MigrationGuide.md

File metadata and controls

45 lines (28 loc) · 1.98 KB

7.x.x MigrationGuide

Deprecations

Item protocols

SelectableItem, DisplayableFlow, MovableGenerator had a similar idea but not unified format. Thats why we introduced pattern {ability}ableItem and renamed all old protocols. We will remove old protocols in version 8.0.0.

Old New
Configurable ConfigurableItem
GravityFoldableItem FoldableItem
DisplayableFlow DisplayableItem
Gravity GravityItem
MovableGenerator MovableItem

Managers

Long-named managers like BaseTableDataDisplayManager or PaginableBaseTableDataDisplayManager marked as deprecated. Make attention to this deprecation warnings, because we will remove this managers in version 8.0.0.

If you have inherite from BaseTableDataDisplayManager or other deprecated managers

  1. Check bult-in plugins. Maybe your BaseTableDataDisplayManager feature already transformed into plugin.
  2. Create plugin replacing your custom BaseTableDataDisplayManager
  3. Replace old manager initialisation with new builder like tableView.rddm.baseBuilder.add(plugin: SomePlugin()).build()

If you were using basic implemetation, just start from step 3.

Keep in mind that support of SelectableItem now was moved to TableSelectablePlugin and you should add this plugin to builder.

Maybe useful tableView.add(plugin: .) or tableView.add(featurePlugin: .) will produce autocomplete hints which can help you to inspect all bult-in plugins.

More about new entities and plugins system in documentation

Updates

Base view reference

Previously we have BaseTableDataDisplayManager.tableView or BaseCollectionDataDisplayManager.collection properties with weak reference to view.

Now we have unified abstract var view: CollectionType! in protocol DataDisplayManager requirements.

  • Rename tableView -> view
  • Rename collection -> view