-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
readline: rename input field and remove excess params #31991
Conversation
Removed excess parameters from the createInterface method, renamed input field to options, in accordance with the docs, and made corresponding changes in tests. Refs: nodejs#31603 (comment)
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.
If I'm reading this correctly is completely removes the ability to pass in the multiple arguments and changes the API. We can't do it like this. While the createInterface(input, output, completer, terminal)
signature does not appear to be documented, it works and has not been deprecated. It would need to go through a proper runtime deprecation cycle before we can remove it.
How can I initiate a "runtime deprecation cycle"?
IMO, I don't see any reason to not incorporate this just because the older
one "works". If anything I think it makes sense to try and adhere the code
to the docs as much as possible and this should be acceptable on those
terms.
We could pass warnings for multiple param usage of readline in a patch version and implement this change in a major, maybe?
…On Wed, 11 Mar 2020, 03:01 James M Snell, ***@***.***> wrote:
***@***.**** requested changes on this pull request.
If I'm reading this correctly is completely removes the ability to pass in
the multiple arguments and changes the API. We can't do it like this. While
the createInterface(input, output, completer, terminal) signature does
not appear to be documented, it works and has not been deprecated. It would
need to go through a proper runtime deprecation cycle before we can remove
it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#31991?email_source=notifications&email_token=AIAAUZ3O6GXWSPVGC44BSZDRG2WURA5CNFSM4K5E5HPKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCYYWQWQ#pullrequestreview-372336730>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIAAUZ53YHH44R5LHIOG7O3RG2WURANCNFSM4K5E5HPA>
.
|
@rexagod For runtime-deprecating something, you can look at usages of
Runtime-deprecating/introducing warnings and removal are all semver-major changes. And, while I understand that this is frustrating, I would also be -1 on introducing such a warning without a good reason – I don’t consider it being undocumented a good reason, personally. |
Thank you for the explanation @addaleax! There is however a deprecation (DEP0094) with similar cause to this one, where multiple params were reduced to one, but I guess that was under a different scenario. Please feel free to close this, or let me know if you have any other plans regarding this issue. |
This PR cannot land in it's current state. It should either be changed to a deprecation or closed with a separate PR deprecating first. If you'd like to do that, please do :-) |
@jasnell The Is there a way I can pass a |
ping @jasnell |
Not currently |
8ae28ff
to
2935f72
Compare
Closing this for now. I'm focusing on getting my other not-stalled PRs merged at the moment. Will come back to this later if need be. |
Removed excess parameters from the createInterface method,
renamed input field to options, in accordance with the docs,
and made corresponding changes in tests.
Refs: #31603 (comment)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes