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

Renaming componentParent to parentComponent #56

Closed
mitar opened this issue May 25, 2015 · 9 comments
Closed

Renaming componentParent to parentComponent #56

mitar opened this issue May 25, 2015 · 9 comments

Comments

@mitar
Copy link
Member

mitar commented May 25, 2015

I am thinking of making one backwards incompatible change, but I think it is still early enough to be able to pull it off. I would rename componentParent to parentComponent. What are thoughts on this by others?

@rclai
Copy link

rclai commented May 25, 2015

Haha, I'm guessing you got bitten again. I was just starting to get used to it. I am okay with renaming.

@mitar
Copy link
Member Author

mitar commented May 25, 2015

No, I was waiting for somebody else to open a ticket. ;-)

@mquandalle
Copy link

I also support the renaming, parentComponent is much more consistent with DOM names such as parentElement or parentNode.

I’m not sure how you want to handle this kind of breaking changes. One way to do it would be to deprecate componentParent by proxing it to parentComponent and adding a console.warn message.

@mitar
Copy link
Member Author

mitar commented May 25, 2015

Yea. Or just hope that we are early enough in the project (no 1.0 release yet) that I can pull this off just by breaking it. :-) Sadly Meteor does not handle versions before 1.0 specially, as it should, and upgrades things automatically. Semver allows breaking changes before 1.0 version. But Meteor just upgrades them. See here.

Maybe I should introduce history file in the project repository.

@bensmeets
Copy link

Renaming sounds fine (simple find and replace should fix it), although a small console.warn would be nice.

@mitar
Copy link
Member Author

mitar commented Jun 24, 2015

@mitar
Copy link
Member Author

mitar commented Oct 7, 2015

Hm, I am still not sure if it would be really good to rename it. So parentComponent, but keeping componentChildren?

@mitar
Copy link
Member Author

mitar commented Oct 7, 2015

Especially if we introduce more methods to traverse component tree: #81.

@mitar mitar closed this as completed in ca6ec13 Oct 13, 2015
@mitar
Copy link
Member Author

mitar commented Oct 13, 2015

Renamed methods:

  • componentChildren to childrenComponents
  • componentChildrenWith to childrenComponentsWith
  • addComponentChild to addChildComponent
  • removeComponentChild to removeChildComponent
  • componentParent to parentComponent

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

No branches or pull requests

4 participants