Skip to content

0.9.0

Compare
Choose a tag to compare
@Tyriar Tyriar released this 22 Oct 17:59
beac2b8

๐Ÿš€ Features / API

  • New events API that is easier to use and plays nicer with TypeScript (#283) via @Tyriar
    pty.onData(d => console.log(d));
    pty.onExit(e => console.log(e.exitCode, e.signal));
  • cols and rows are now exposed on IPty (#290) via @Tyriar
    console.log(pty.cols, pty.rows)
  • Experimental flow control APIs are available (#304, #364) via @jerch. Note that they may be removed in the future, see node-pty.d.ts for details and xtermjs/xterm.js#2077 for discussion
  • Promoted conpty support to stable and removed experimental from name (#365) via @Tyriar
    // before
    const pty = spawn(file, args, { experimentalUseConpty: true });
    
    // after
    const pty = spawn(file, args, { useConpty: true });
  • Allow specifying the PSEUDOCONSOLE_INHERIT_CURSOR conpty flag with IWindowsPtyForkOptions.conptyInheritCursor (#309) via @Tyriar

โฌ†๏ธ Dependencies

๐Ÿž Bug fixes

  • Fix passing null as encoding to use raw buffers (#273, #362) via @anszom, @Tyriar
  • Provide better error message when ioctl fails (#285) via @Tyriar
  • Restore default ctrl+c handler in conpty support (#287) via @Tyriar
  • Mark several APIs as readonly (#308) via @Tyriar
  • Fix crash when using conpty on 32-bit Windows (#314) via @ZoeyR
  • Fix handle inheritance for shells (#334) via @ZoeyR
  • Re-throw release binary require exception when debug require fails (#340) via @Tyriar
  • Avoid specifying /usr/*/lib under libraries (#343) via @deepak1556
  • Fix compilation when VWERASE/VDISCARD are named differently (#358) via @ThePrez
  • Protect calling resize with invalid values from crashing winpty (#363) via @Tyriar

๐Ÿ“ Documentation and internal improvements

โš ๏ธ Deprecations

  • The on event format is now deprecated and will be removed in v1 (#283) via @Tyriar
    // deprecated
    pty.on('data', d => console.log(d));
    
    // recommended
    pty.onData(d => console.log(d));

๐ŸŽ‰ New real-world use cases