Releases: clue/reactphp-stdio
v2.6.0
- Feature: Full support for PHP 8.1 release.
(#101 by @cdosoftei)
v2.5.0
-
Feature: Simplify usage by supporting new default loop.
(#99 by @clue)// old (still supported) $stdio = new Clue\React\Stdio\Stdio($loop); // new (using default loop) $stdio = new Clue\React\Stdio\Stdio();
-
Improve code examples and documentation.
(#100 by @clue and #98 by @PaulRotmann) -
Use GitHub actions for continuous integration (CI).
(#97 by @SimonFrings)
v2.4.0
v2.3.0
-
Feature: Emit audible/visible BELL signal when using a disabled function.
(#86 and #87 by @clue)By default, this project will emit an audible/visible BELL signal when the user
tries to execute an otherwise disabled function, such as using the
left or backspace keys when already at the beginning of the line. -
Deprecated: Deprecate
Readline
class and move all methods toStdio
.
(#84 by @clue)// deprecated: $stdio->getReadline()->setPrompt('> '); // recommended alternative: $stdio->setPrompt('> ');
-
Fix: Fix closing to emit final
close
event and clean up all listeners.
(#88 by @clue) -
Improve test suite to test against legacy PHP 5.3 through PHP 7.3 and support PHPUnit 7.
(#85 by @clue)
v2.2.0
-
Feature / Fix: Accept CR as an alias for LF to support more platforms.
(#79 by @clue)The enter key will usually end the line with a
\n
(LF)
character on most Unix platforms. Common terminals also accept the
^M (CR) key in place of the ^J (LF) key.By now allowing CR as an alias for LF in this library, we can significantly
improve compatibility with this common usage pattern and improve platform
support. In particular, some platforms use different TTY settings (icrnl
,
igncr
and family) and depending on these settings emit different EOL
characters. This fixes issues where enter was not properly
detected when usingext-readline
on Mac OS X, Android and others. -
Fix: Fix and simplify restoring TTY mode when
ext-readline
is not in use.
(#74 and #78 by @clue) -
Update project homepage, minor code style improvements and sort dependencies.
(#72 and #81 by @clue and #75 by @localheinz)
v2.1.0
v2.0.0
A major compatibility release to update this package to support all latest
ReactPHP components!
This update involves a minor BC break due to dropped support for legacy
versions. We've tried hard to avoid BC breaks where possible and minimize impact
otherwise. We expect that most consumers of this package will actually not be
affected by any BC breaks, see below for more details.
-
BC break: Remove all deprecated APIs (individual
Stdin
,Stdout
,line
etc.)
(#64 and #68 by @clue)All of this affects only what is considered "advanced usage".
If you're affected by this BC break, then it's recommended to first
update to the intermediary v1.2.0 release, which provides alternatives
to all deprecated APIs and then update to this version without causing a
BC break. -
Feature / BC break: Consistently emit incoming "data" event with trailing newline
unless stream ends without trailing newline (such as when piping).
(#65 by @clue) -
Feature: Forward compatibility with upcoming Stream v1.0 and EventLoop v1.0
and avoid blocking whenSTDOUT
buffer is full.
(#68 by @clue)
v1.2.0
-
Feature: Optionally use
ext-readline
to enable raw input mode if available.
This extension is entirely optional, but it is more efficient and reliable
than spawning the externalstty
command.
(#63 by @clue) -
Feature: Consistently return boolean success from
write()
and
avoid sending unneeded control codes between writes
(#60 by @clue) -
Deprecated: Deprecate input helpers and output helpers and
recommend usingStdio
as a normalDuplexStreamInterface
instead.
(#59 and #62 by @clue)// deprecated $stdio->on('line', function ($line) use ($stdio) { $stdio->writeln("input: $line"); }); // recommended alternative $stdio->on('data', function ($line) use ($stdio) { $stdio->write("input: $line"); });
-
Improve test suite by adding forward compatibility with PHPUnit 6
(#61 by @carusogabriel)
v1.1.0
-
Feature: Explicitly end stream on CTRL+D and emit final data on EOF without EOL.
(#56 by @clue) -
Feature: Support running on non-TTY and closing STDIN and STDOUT streams.
(#57 by @clue) -
Feature / Fix: Restore blocking mode before closing and restore TTY mode on unclean shutdown.
(#58 by @clue) -
Improve documentation to detail why async console I/O is not supported on Microsoft Windows.
(#54 by @clue) -
Improve test suite by adding PHPUnit to require-dev,
fix HHVM build for now again and ignore future HHVM build errors and
lock Travis distro so future defaults will not break the build.
(#46, #48 and #52 by @clue)