Correct noink property to no-ink to actually conform to established property name conventions#69
Correct noink property to no-ink to actually conform to established property name conventions#69lozandier wants to merge 9 commits into
noink property to no-ink to actually conform to established property name conventions#69Conversation
|
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
| @@ -1,4 +1,4 @@ | |||
| <!doctype html> | |||
| <!DOCTYPE html> | |||
| <!-- | |||
There was a problem hiding this comment.
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! :) |
| { | ||
| "name": "paper-behaviors", | ||
| "version": "1.0.11", | ||
| "version": "1.0.12", |
There was a problem hiding this comment.
Side note: we prefer to do this as a separate commit
There was a problem hiding this comment.
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",
noinkseemingly 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 thenoinkboolean property tono-inkIf
noinkis 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-inkwhile providing a console warning that the use ofnoinkis deprecated.Edit: To clarify, these changes enable
noinkto 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
noinkshould no longer be relied on once1.0is bumped to1.1.Side-effects
1.0.12console.warnis used to warn consumers that theno-inkRecommended 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
noInkmethod be mocked & ensured to be called whennoinkis still used & so on…Estimated Review Time