Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
readline: deprecate undocumented exports#3862
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
jasnell commented Nov 16, 2015
LGTM |
ChALkeR commented Nov 16, 2015
Looks like |
cjihrig commented Nov 16, 2015
Yes, semver-major for sure |
ChALkeR commented Nov 16, 2015
Are four functions mentioned in #3836 the only exports removed in this commit? |
cjihrig commented Nov 16, 2015
The four functions from #3836, plus |
ChALkeR commented Nov 16, 2015
Hm… I am not sure if those are unused. Will post greps later, probably tomorrow. |
cjihrig commented Nov 16, 2015
There are deprecation messages in place for all of them. |
ChALkeR commented Nov 17, 2015
@cjihrig Ah, sorry, I missed that =), was too sleepy yesterday. |
tejasmanohar commented Nov 17, 2015
👍 |
cjihrig commented Nov 17, 2015
jasnell commented Nov 17, 2015
CI is red but failures look unrelated. Do we want to go ahead and land or give it a bit? |
ChALkeR commented Nov 17, 2015
@jasnell Give me some time, I will take a quick look at the usage of those methods. |
jasnell commented Nov 17, 2015
@ChALkeR : +1 |
jasnell commented Nov 18, 2015
@nodejs/ctc ... a quick sanity check review on this would be appreciated |
lib/readline.js Outdated
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.
I think we should at least keep the style consistent here, preferably with each argument on a separate line (for better readability).
mscdex commented Nov 18, 2015
One minor nit, otherwise LGTM. |
ChALkeR commented Nov 18, 2015
https://gist.github.com/ChALkeR/9cd0a398093bc6161d36 — |
ChALkeR commented Nov 18, 2015
Out of those, |
jasnell commented Nov 18, 2015
@ChALkeR ... I'm sorry, is there a reason why it should what? |
cjihrig commented Nov 18, 2015
Would there be value to leaving |
jasnell commented Nov 18, 2015
@cjihrig ... that's definitely a good possibility. I'd be ok with that. |
ChALkeR commented Nov 18, 2015
@jasnell Sorry, English is not my native language. I wanted to ask if there are any specific reasons why several modules have to call Note: I'm not familiar with |
jasnell commented Nov 18, 2015
@ChALkeR ... no worries :-) There may or may not be good reasons for modules calling it but given that they are and we made the mistake of not explicitly marking those as private using the |
ChALkeR commented Nov 18, 2015
@jasnell It's directly used by only 7 modules (plus the false negatives), so deprecating it shouldn't be such a problem. The question is — is that method a valuable addition the the API that we could want to keep? |
cjihrig commented Nov 18, 2015
The ability to emit keypress events seems useful to me. |
cjihrig commented Nov 19, 2015
Undid changes regarding |
This commit moves several of readline's undocumented functions into an internal module. Specifically, isFullWidthCodePoint, stripVTControlCharacters, getStringWidth, and emitKeys are moved to the internal module. The existing public exports of the first three functions are given a deprecation notice. Refs: #3847Fixes: #3836 PR-URL: #3862 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
This commit removes the deprecated exports getStringWidth(), stripVTControlCharacters(), and isFullWidthCodePoint(). It also removes codePointAt() in its entirety, as it was deprecated and not being used by core. Refs: nodejs#3862 PR-URL: nodejs#6423 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
This commit removes the deprecated exports getStringWidth(), stripVTControlCharacters(), and isFullWidthCodePoint(). It also removes codePointAt() in its entirety, as it was deprecated and not being used by core. Refs: nodejs#3862 PR-URL: nodejs#6423 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]>
This commit moves the readline's undocumented exports into an internal module. The existing public exports are given a deprecation notice.
Refs: #3847
Fixes: #3836
R= @jasnell