You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+50-9
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,59 @@
1
+
# 4.0.0
2
+
3
+
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.
4
+
5
+
### Breaking changes
6
+
7
+
Moved repositories; js-rcon/react-console-emulator is now linuswillner/react-console-emulator!
8
+
9
+
Renamed `noAutomaticStdout` prop to `noEchoBack` for added clarity.
10
+
11
+
### Main changes
12
+
13
+
Terminal message styling is here! You can now re-style the messages output by the terminal (Including echoes, optionally with the `styleEchoBack` prop) using the `messageStyle` and `messageClassName` props ([#518](https://github.com/linuswillner/react-console-emulator/issues/518)).
14
+
15
+
JSX prompt labels! Prompt labels now support elements instead of just plain old strings ([#210](https://github.com/linuswillner/react-console-emulator/issues/210)).
16
+
17
+
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](https://github.com/linuswillner/react-console-emulator/issues/519)).
18
+
19
+
20
+
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](https://github.com/linuswillner/react-console-emulator/issues/415)).
21
+
22
+
### Other changes
23
+
24
+
The acceptance of terminal input can now be controlled with a prop. Setting the `disabled` prop will enable/disable character input to the terminal.
25
+
26
+
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.
27
+
28
+
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.
29
+
30
+
A full run-down of the prop changes is as follows:
31
+
```diff
32
+
- noAutomaticStdout
33
+
+ noEchoBack
34
+
+ noNewlineParsing
35
+
+ ignoreCommandCase
36
+
+ styleEchoBack
37
+
+ messageStyle
38
+
+ messageClassName
39
+
+ disabled
40
+
```
41
+
1
42
# 3.0.4
2
43
3
-
Fixed a bug preventing users from selecting text in the terminal output ([#414](https://github.com/js-rcon/react-console-emulator/issues/414)).
44
+
Fixed a bug preventing users from selecting text in the terminal output ([#414](https://github.com/linuswillner/react-console-emulator/issues/414)).
4
45
5
46
# 3.0.3
6
47
7
-
Removed redundant `stringify-object` dependency to properly enable command re-validation based on raw objects alone. This was supposed to have been fixed in 3.0.2, but due to a mishap the old validation was left dangling. This has now been fixed ([#411](https://github.com/js-rcon/react-console-emulator/issues/411)).
48
+
Removed redundant `stringify-object` dependency to properly enable command re-validation based on raw objects alone. This was supposed to have been fixed in 3.0.2, but due to a mishap the old validation was left dangling. This has now been fixed ([#411](https://github.com/linuswillner/react-console-emulator/issues/411)).
8
49
9
50
# 3.0.2
10
51
11
-
Fixed command re-validation reliability issues relating to source-identical commands ([#35](https://github.com/js-rcon/react-console-emulator/issues/35)).
52
+
Fixed command re-validation reliability issues relating to source-identical commands ([#35](https://github.com/linuswillner/react-console-emulator/issues/35)).
12
53
13
54
# 3.0.1
14
55
15
-
Fixed input outline showing on Safari ([#258](https://github.com/js-rcon/react-console-emulator/pull/258)) ([Herve07h22](https://github.com/Herve07h22)).
56
+
Fixed input outline showing on Safari ([#258](https://github.com/linuswillner/react-console-emulator/pull/258)) ([Herve07h22](https://github.com/Herve07h22)).
16
57
17
58
# 3.0.0
18
59
@@ -36,7 +77,7 @@ The following style-related props have been removed and replaced:
36
77
+ inputStyle
37
78
```
38
79
39
-
Instead of having a unique prop for styling only some parts of the terminal elements, every style aspect is now overridable. Any styles defines in [lib/defs/styles/Terminal.js](lib/defs/styles/Terminal.js) can be overridden via the new props. See [the guide](docs/CONFIG.md#re-styling) for more details.
80
+
Instead of having a unique prop for styling only some parts of the terminal elements, every style aspect is now overridable. Any styles defines in [src/defs/styles/Terminal.js](src/defs/styles/Terminal.js) can be overridden via the new props. See [the guide](docs/CONFIG.md#re-styling) for more details.
40
81
41
82
### Other changes
42
83
@@ -72,19 +113,19 @@ Enabled module transpilation to widen the support amongst Node versions for dist
72
113
73
114
# 1.7.2
74
115
75
-
Re-added Babel into build flow in a different format to improve compatibility ([#39, comment](https://github.com/js-rcon/react-console-emulator/issues/39#issuecomment-440973765)).
116
+
Re-added Babel into build flow in a different format to improve compatibility ([#39, comment](https://github.com/linuswillner/react-console-emulator/issues/39#issuecomment-440973765)).
76
117
77
118
# 1.7.1
78
119
79
-
Removed Babel from the build flow in order to allow the inclusion of the helper files ([#39](https://github.com/js-rcon/react-console-emulator/issues/39)).
120
+
Removed Babel from the build flow in order to allow the inclusion of the helper files ([#39](https://github.com/linuswillner/react-console-emulator/issues/39)).
80
121
81
122
# 1.7.0
82
123
83
124
Internal refactoring for better maintainability.
84
125
85
-
Added default-enabled automatic scrolling to the bottom of the terminal when a command is run ([#36](https://github.com/js-rcon/react-console-emulator/issues/36)).
126
+
Added default-enabled automatic scrolling to the bottom of the terminal when a command is run ([#36](https://github.com/linuswillner/react-console-emulator/issues/36)).
86
127
87
-
Added command callback support to run a function each time a command is executed ([#36](https://github.com/js-rcon/react-console-emulator/issues/36)).
128
+
Added command callback support to run a function each time a command is executed ([#36](https://github.com/linuswillner/react-console-emulator/issues/36)).
0 commit comments