-
Notifications
You must be signed in to change notification settings - Fork 27
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
Correct noink
property to no-ink
to actually conform to established property name conventions
#69
base: master
Are you sure you want to change the base?
Conversation
Removing |
@keanulee This change doesn't break the use of Being a minor change & keeping the existing behavior while leaving room for its succession, I thought Having a hunch that it may very well be something that is removed altogether with |
… the use of `noink` with deprecation message
demo/index.html
Outdated
@@ -1,4 +1,4 @@ | |||
<!doctype html> | |||
<!DOCTYPE html> | |||
<!-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Admittedly stylistic since it's valid either way but caught my vim editor off-guard (opinionated or outdated check by original author being the traditional way it's declared before HTML5). I'll revert this as well.
LGTM! :) |
bower.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "paper-behaviors", | |||
"version": "1.0.11", | |||
"version": "1.0.12", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side note: we prefer to do this as a separate commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood, this is reverted.
…rs of these behaviors
@notwaldorf @abdonrd @keanulee Stylistic & ultimately out-of-scope changes of this PR removed; feel free to give me a LGTM (in the case of @abdonrd, perhaps again) when you're next free for a LGTM combo breaker. |
…sion of this component.
@keanulee To confirm, your concerns about |
/cc @cdata since this is a bigger discussion that this PR, imo (other elements have a |
Thanks for raising this point, @lozandier.
A rename amounts to a breaking API change (in turn asking for a major version bump), and regardless should be done in a coordinated fashion across all elements with the |
@cdata Right, I totally get that. Accordingly, I made sure to account for that yet have the element edited to encourage uses of the element moving forward to correctly use The end consumer will see the console warning with their use or end users of the document that uses the behavior via |
I'm totally agree display a warning for now, and make the break change in the v2.0. |
@cdata @notwaldorf @abdonrd @keanulee Any update on this? It seems we're all on the same page to make sure this isn't a breaking change (AFAIK, it isn't; it merely warns them that the component needs to own up from its unfortunate, humbling beginning to use |
This change totally makes sense to me, to build a bridge for breaking changes we know we're going to introduce in a potential 2.0 of the elements. I agree with @cdata though that we should probably make this change across all elements that use Just taking a glance over some of the other repos with |
The problem
While sorta funny & daresay "cute",
noink
seemingly seriously violates the conventions expected for property names that other elements conform to. Seeing no reason that it be a special exception, this PR changes thenoink
boolean property tono-ink
If
noink
is still used—or existing instances using this behavior are still using it— its observer will instead delegate the changes to the correct observers associated withno-ink
while providing a console warning that the use ofnoink
is deprecated.Edit: To clarify, these changes enable
noink
to be used now by existing consumers of the component while communicating that it is on its way out of the API—effectively starting a phase-out period.This enables the current behavior while informing consumers of this component that
noink
should no longer be relied on once1.0
is bumped to1.1
.Side-effects
1.0.12
console.warn
is used to warn consumers that theno-ink
Recommended reviewers
Motivated in a way by @notwaldorf about APIs (always wanted to go ahead and do this change but haven't had moments often that I had to rely on this behavior until now), it'd be awesome she reviewed it along with the other 3 recent reviewers of this repo:
Tests Pass?
Leveraged existing tests given the changes made; I can see an argument that
noInk
method be mocked & ensured to be called whennoink
is still used & so on…Estimated Review Time