Skip to content

v1.2.0

Compare
Choose a tag to compare
@clue clue released this 18 Dec 10:09
· 86 commits to 2.x since this release
  • 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 external stty 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 using Stdio as a normal DuplexStreamInterface 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)