Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup] Remove deprecated APIs #529

Merged
merged 27 commits into from
Sep 7, 2017

Conversation

nguyenhuy
Copy link
Member

@nguyenhuy nguyenhuy commented Aug 23, 2017

Remove APIs that have been deprecated since 2.0 and/or for at least 6 months:

  • -ASDisplayNode.preferredFrameSize.
  • -[ASDisplayNode measure:] and -[ASDisplayNode measureWithSizeRange:].
  • ASLayoutable.
  • -ASDisplayNode.name.
  • spacingBefore, spacingAfter, flexGrow, flexShrink, flexBasis, alignSelf, ascender, descender, sizeRange and layoutPosition of ASDisplayNode and ASLayoutSpec.
  • +ASDisplayNode.usesImplicitHierarchyManagement.
  • Range update callbacks of ASDisplayNode: -visibilityDidChange:, -visibleStateDidChange:, -displayStateDidChange:, -loadStateDidChange:.
  • -clearFetchedData of ASDisplayNode and ASTableView.
  • -[ASDisplayNode cancelLayoutTransitionsInProgress].
  • ASLayoutRangeTypeRender and ASLayoutRangeTypeFetchData.
  • -[ASTableView clearContents].
  • -reloadDataImmediately of table and collection views and nodes.
  • ASStaticLayoutSpec and ASDimensionDeprecated.
  • Optional -pagerNode:constrainedSizeForNodeAtIndex: delegate method of ASPagerDelegate.
  • +ASDisplayNode.suppressesInvalidCollectionUpdateExceptions.
  • -[ASCollectionViewLayoutInspector initWithCollectionView:].
  • -ASVideoPlayerNode.loadAssetWhenNodeBecomesVisible.
  • ASEnvironmentTraitCollection.

The next release should be a major release (2.5). Sorry for the huge PR, but I couldn't stop digging down the rabbit hole. It feels so good!

@ghost
Copy link

ghost commented Aug 23, 2017

🚫 CI failed with log

Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, agree with @nguyenhuy, feels good to see that code going away. We should do a bigger release, 2.5 sounds fine for me.

@nguyenhuy We should also run it against P to see if we run into any issues we can prevent before merging / releasing a new version.

@nguyenhuy
Copy link
Member Author

@maicki Yes, I have a pending branch that fixes issues in P. Gonna leave this PR for another day or two before merging, in case someone else wants to chime in.

@TextureGroup TextureGroup deleted a comment Sep 7, 2017
@ghost
Copy link

ghost commented Sep 7, 2017

1 Warning
⚠️ This is a big PR, please consider splitting it up to ease code review.

Generated by 🚫 Danger

@nguyenhuy nguyenhuy merged commit 4ba6f45 into TextureGroup:master Sep 7, 2017
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
* Remove preferredFrameSize

* Remove -measure:

* Remove -measureWithSizeRange:

* Remove ASLayoutable

* Remove .name

* Remove deprecated style forwardings

That includes following properties that are declared on ASDisplayNode and ASLayoutSpec: spacingBefore, spacingAfter, flexGrow, flexShrink, flexBasis, alignSelf, ascender, descender, sizeRange and layoutPosition.

* Remove usesImplicitHierarchyManagement

* Remove deprecated range update callbacks:
-visibilityDidChange:
-visibleStateDidChange:
-displayStateDidChange:
-loadStateDidChange:

* Remove -clearFetchedData

* Remove -cancelLayoutTransitionsInProgress

* Remve ASDisplayNode+Deprecated.h

* Remove ASLayoutRangeTypeRender and ASLayoutRangeTypeFetchData

* Remove -[ASTableView clearContents]

* Remove reloadDataImmediately

* Remove ASStaticLayoutSpec

* Remove ASDimensionDeprecated

* Remove optional -pagerNode:constrainedSizeForNodeAtIndex: delegate method in ASPagerDelegate

* Remove suppressesInvalidCollectionUpdateExceptions

* Remove -[ASCollectionViewLayoutInspector initWithCollectionView]

* Remove ASVideoPlayerNode.loadAssetWhenNodeBecomesVisible

* Update CHANGELOG

* Update license of ASLayoutSpecTests.m

* Update examples/PagerNode

* Remove ASEnvironmentTraitCollection

* Remove -ASViewController.nodeConstrainedSize

* More on removing ASLayoutable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants