Skip to content

Releases: vadimdemedes/ink

v0.2.1

15 Jul 14:58
Compare
Choose a tag to compare

Despite the patch version increase, this release brings a few nifty features and an important bug fix.

  • Support defaultProps to specify default props for every render 72fb252
  • Support propTypes via the official prop-types module 034707d
  • Handle the output written via console.log() and others by clearing the terminal screen, writing it, then restoring the output from Ink components afterwards, so that console.log()'s output is always above live Ink output b0e451c
  • Let the process exit gracefully on unmount 2840fbb

Thanks

鉂わ笍 Huge thanks to @sindresorhus for convincing to add the native support for prop types.

v0.2.0

14 Jul 17:21
Compare
Choose a tag to compare

This is a breaking release, which contains API changes and a few important improvements.

  • Rename mount() to render() to provide more familiar API to React users a5bb287
  • Auto-enable keypress events on process.stdin (enable raw mode) when render() is used 696d0fb
  • Handle exiting with Esc and Ctrl+C. Since Ink enables raw mode, this has unfortunate consequences, such as deactivating default behavior like exiting with Ctrl+C. To provide a better experience for developers, Ink brings back that functionality automatically f1a653d
  • Throw error when component is missing 34ff78e

Thanks

鉂わ笍 Huge thanks to @sindresorhus and @brigand for helping with this release!