Skip to content

Commit 56e6e3d

Browse files
committed
Prepare v2.0.0 release
1 parent 1298dba commit 56e6e3d

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

CHANGELOG.md

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

3+
## 2.0.0 (2017-09-20)
4+
5+
A major compatibility release to update this package to support all latest
6+
ReactPHP components!
7+
8+
This update involves a minor BC break due to dropped support for legacy
9+
versions. We've tried hard to avoid BC breaks where possible and minimize impact
10+
otherwise. We expect that most consumers of this package will actually not be
11+
affected by any BC breaks, see below for more details.
12+
13+
* BC break: Remove all deprecated APIs (individual `Stdin`, `Stdout`, `line` etc.)
14+
(#64 and #68 by @clue)
15+
16+
> All of this affects only what is considered "advanced usage".
17+
If you're affected by this BC break, then it's recommended to first
18+
update to the intermediary v1.2.0 release, which provides alternatives
19+
to all deprecated APIs and then update to this version without causing a
20+
BC break.
21+
22+
* Feature / BC break: Consistently emit incoming "data" event with trailing newline
23+
unless stream ends without trailing newline (such as when piping).
24+
(#65 by @clue)
25+
26+
* Feature: Forward compatibility with upcoming Stream v1.0 and EventLoop v1.0
27+
and avoid blocking when `STDOUT` buffer is full.
28+
(#68 by @clue)
29+
330
## 1.2.0 (2017-12-18)
431

532
* Feature: Optionally use `ext-readline` to enable raw input mode if available.

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
Async, event-driven and UTF-8 aware console input & output (STDIN, STDOUT),
44
built on top of for [ReactPHP](https://reactphp.org).
55

6+
You can use this library to build truly interactive and responsive command
7+
line (CLI) applications, that immediately react when the user types in
8+
a line. Inspired by `readline`, but supports UTF-8 and interleaved I/O
9+
(typing while output is being printed), history and autocomplete support
10+
and takes care of proper TTY settings under the hood without requiring
11+
any extensions or special installation.
12+
613
**Table of contents**
714

815
* [Quickstart example](#quickstart-example)
@@ -407,8 +414,8 @@ $readline->setAutocomplete(function () {
407414
});
408415
```
409416

410-
If the user types `he [TAB]`, the first match will be skipped as it does not
411-
match the current word prefix and the second one will be picked automatically,
417+
If the user types `he [TAB]`, the first two matches will be skipped as they do
418+
not match the current word prefix and the last one will be picked automatically,
412419
so that the resulting input buffer is `hello `.
413420

414421
If the user types `e [TAB]`, then this will match multiple entries and the user
@@ -427,7 +434,7 @@ This means that if the user types `hello [SPACE] ex [TAB]`, then the resulting
427434
input buffer is `hello exit `, which may or may not be what you need depending
428435
on your particular use case.
429436

430-
In order to give your more control over this behavior, the autocomplete function
437+
In order to give you more control over this behavior, the autocomplete function
431438
actually receives three arguments (similar to `ext-readline`'s
432439
[`readline_completion_function()`](http://php.net/manual/en/function.readline-completion-function.php)):
433440
The first argument will be the current incomplete word according to current
@@ -518,7 +525,7 @@ This project follows [SemVer](http://semver.org/).
518525
This will install the latest supported version:
519526

520527
```bash
521-
$ composer require clue/stdio-react:^1.2
528+
$ composer require clue/stdio-react:^2.0
522529
```
523530

524531
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "clue/stdio-react",
33
"description": "Async, event-driven console input & output (STDIN, STDOUT), built on top of ReactPHP",
4-
"keywords": ["stdio", "stdin", "stdout", "readline", "autocomplete", "autocompletion", "history", "ReactPHP", "async"],
4+
"keywords": ["stdio", "stdin", "stdout", "interactive", "CLI", "readline", "autocomplete", "autocompletion", "history", "ReactPHP", "async"],
55
"homepage": "https://github.com/clue/php-stdio-react",
66
"license": "MIT",
77
"authors": [

0 commit comments

Comments
 (0)