File tree 2 files changed +31
-1
lines changed
2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.2.0 (2017-12-18)
4
+
5
+ * Feature: Optionally use ` ext-readline ` to enable raw input mode if available.
6
+ This extension is entirely optional, but it is more efficient and reliable
7
+ than spawning the external ` stty ` command.
8
+ (#63 by @clue )
9
+
10
+ * Feature: Consistently return boolean success from ` write() ` and
11
+ avoid sending unneeded control codes between writes
12
+ (#60 by @clue )
13
+
14
+ * Deprecated: Deprecate input helpers and output helpers and
15
+ recommend using ` Stdio ` as a normal ` DuplexStreamInterface ` instead.
16
+ (#59 and #62 by @clue )
17
+
18
+ ``` php
19
+ // deprecated
20
+ $stdio->on('line', function ($line) use ($stdio) {
21
+ $stdio->writeln("input: $line");
22
+ });
23
+
24
+ // recommended alternative
25
+ $stdio->on('data', function ($line) use ($stdio) {
26
+ $stdio->write("input: $line");
27
+ });
28
+ ```
29
+
30
+ * Improve test suite by adding forward compatibility with PHPUnit 6
31
+ (#61 by @carusogabriel)
32
+
3
33
## 1.1.0 (2017-11-01)
4
34
5
35
* Feature: Explicitly end stream on CTRL+D and emit final data on EOF without EOL
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ This project follows [SemVer](http://semver.org/).
568
568
This will install the latest supported version:
569
569
570
570
``` bash
571
- $ composer require clue/stdio-react:^1.1
571
+ $ composer require clue/stdio-react:^1.2
572
572
```
573
573
574
574
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
You can’t perform that action at this time.
0 commit comments