-
Notifications
You must be signed in to change notification settings - Fork 63
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
v4.0.0 #585
Merged
Merged
v4.0.0 #585
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Up until now, there had been an issue where when the history only had one unit in it, the terminal would not correctly reset the input value and would show the same value twice. This has now finally been fixed after having been in the library for over two years
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update brings with it the biggest batch of changes to react-console-emulator since its initial release. Changes include a move to a new location, major restructurations of the repository and the internal logic, a whole bunch of changes, improvements, new features and of course some bug fixes.
Breaking changes
Moved repositories; js-rcon/react-console-emulator is now linuswillner/react-console-emulator!
Renamed
noAutomaticStdout
prop tonoEchoBack
for added clarity.Main changes
Terminal message styling is here! You can now re-style the messages output by the terminal (Including echoes, optionally with the
styleEchoBack
prop) using themessageStyle
andmessageClassName
props (#518).JSX prompt labels! Prompt labels now support elements instead of just plain old strings (#210).
Newline parsing is now possible! The terminal can now parse newline characters in terminal messages - anything with a \n character in it will be rendered as a separate line in the response message. This does of course not apply to command back-echoes. This behaviour can also be disabled, if desired, using the
noNewlineParsing
prop (#519).Case-insensitive command matching! You can now supply the
ignoreCommandCase
prop to allow matching commands even when their casing is not correct. Do note that for security reasons, enabling case-insensitive command matching restricts command names to letters, numbers and dashes/underscores (#415).Other changes
The acceptance of terminal input can now be controlled with a prop. Setting the
disabled
prop will enable/disable character input to the terminal.Fixed an extremely long-running bug where, when the history only had one unit in it, the terminal would not correctly reset the input value and would show the same value twice. This has now finally been fixed after having been in the library for over two years.
Completely reworked demo page - the old one was really drab and plain, so I took the time to make it a lot more pretty and informative.
A full run-down of the prop changes is as follows:
Closes #210
Closes #519
Closes #518
Closes #415