-
Notifications
You must be signed in to change notification settings - Fork 29.1k
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: add readline.promises #28407
Commits on Jul 10, 2019
-
lib: rename lib/internal/readline.js
This commit moves lib/internal/readline.js to lib/internal/readline/utils.js. This is in preparation of adding a readline.promises implementation.
Configuration menu - View commit details
-
Copy full SHA for 166483a - Browse repository at this point
Copy the full SHA 166483aView commit details -
readline: move Interface to separate file
This commit moves the readline Interface class to its own file. All other readline logic is moved into the internal readline utils file.
Configuration menu - View commit details
-
Copy full SHA for f763ff0 - Browse repository at this point
Copy the full SHA f763ff0View commit details -
readline: use named constant for surrogate checks
This commit defines a named constant instead of using a mix of 2 ** 16 and 0X10000 throughout the code.
Configuration menu - View commit details
-
Copy full SHA for 9ff7ccb - Browse repository at this point
Copy the full SHA 9ff7ccbView commit details -
readline: replace last uses var
This changes the last two `var` uses in the readline code to `let`.
Configuration menu - View commit details
-
Copy full SHA for 9639082 - Browse repository at this point
Copy the full SHA 9639082View commit details -
readline: refactor _tabComplete()
This commit refactors _tabComplete() to only pause the interface, call the completer() function, and then call another function to handle the results. This will make it simpler to support a promises based completer() function without duplicating much code.
Configuration menu - View commit details
-
Copy full SHA for 74da761 - Browse repository at this point
Copy the full SHA 74da761View commit details -
readline: centralize Interface argument parsing
This commit moves all Interface() constructor argument parsing into a helper function.
Configuration menu - View commit details
-
Copy full SHA for 93d3cf8 - Browse repository at this point
Copy the full SHA 93d3cf8View commit details -
readline: add readline.promises
This commit exposes a Promise based version of the readline API.
Configuration menu - View commit details
-
Copy full SHA for 11c8737 - Browse repository at this point
Copy the full SHA 11c8737View commit details -
fixup! readline: add readline.promises
Remove the readline.promises experimental warning per PR review comment.
Configuration menu - View commit details
-
Copy full SHA for edcdf05 - Browse repository at this point
Copy the full SHA edcdf05View commit details