Skip to content

Commit 43d24e4

Browse files
committed
Prepare v2.2.0 release
1 parent 8b1219a commit 43d24e4

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## 2.2.0 (2018-09-03)
4+
5+
* Feature / Fix: Accept CR as an alias for LF to support more platforms.
6+
(#79 by @clue)
7+
8+
The <kbd>enter</kbd> key will usually end the line with a `\n` (LF)
9+
character on most Unix platforms. Common terminals also accept the
10+
<kbd>^M</kbd> (CR) key in place of the <kbd>^J</kbd> (LF) key.
11+
12+
By now allowing CR as an alias for LF in this library, we can significantly
13+
improve compatibility with this common usage pattern and improve platform
14+
support. In particular, some platforms use different TTY settings (`icrnl`,
15+
`igncr` and family) and depending on these settings emit different EOL
16+
characters. This fixes issues where <kbd>enter</kbd> was not properly
17+
detected when using `ext-readline` on Mac OS X, Android and others.
18+
19+
* Fix: Fix and simplify restoring TTY mode when `ext-readline` is not in use.
20+
(#74 and #78 by @clue)
21+
22+
* Update project homepage, minor code style improvements and sort dependencies.
23+
(#72 and #81 by @clue and #75 by @localheinz)
24+
325
## 2.1.0 (2018-02-05)
426

527
* Feature: Add support for binding custom functions to any key code

README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,11 @@ ob_start(function ($chunk) use ($stdio) {
588588
The recommended way to install this library is [through Composer](https://getcomposer.org).
589589
[New to Composer?](https://getcomposer.org/doc/00-intro.md)
590590

591-
This project follows [SemVer](http://semver.org/).
591+
This project follows [SemVer](https://semver.org/).
592592
This will install the latest supported version:
593593

594594
```bash
595-
$ composer require clue/stdio-react:^2.1
595+
$ composer require clue/stdio-react:^2.2
596596
```
597597

598598
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
@@ -644,12 +644,16 @@ $ php vendor/bin/phpunit
644644

645645
## License
646646

647-
MIT
647+
This project is released under the permissive [MIT license](LICENSE).
648+
649+
> Did you know that I offer custom development services and issuing invoices for
650+
sponsorships of releases and for contributions? Contact me (@clue) for details.
648651

649652
## More
650653

651654
* If you want to learn more about processing streams of data, refer to the documentation of
652655
the underlying [react/stream](https://github.com/reactphp/stream) component.
656+
653657
* If you build an interactive CLI tool that reads a command line from STDIN, you
654658
may want to use [clue/arguments](https://github.com/clue/php-arguments) in
655659
order to split this string up into its individual arguments and then use

0 commit comments

Comments
 (0)