Bot releases are visible (Hide)
This is a patch release, that brings back <Text>
for backwards compatibility https://github.com/vadimdemedes/ink/commit/0e29caccffcaca9a55e6383da6de513b05b96e9d.
This is a breaking release, along with a few new features.
<Text>
in favor of <Color>
https://github.com/vadimdemedes/ink/pull/69
❤️ Huge thanks to @karaggeorge for helping out with this release!
This release brings important core improvements, a bug fix and new docs.
<Text>
component https://github.com/vadimdemedes/ink/commit/6ae7acc4d658e1ce86aaaddf401c6db7a6ac0bfa
❤️ Huge thanks to @TheSuperFly, @talon and @shakyink for helping out with this release!
This is mainly a bug fix release with an additional update to make Ink's API consistent with React's.
setState()
callback https://github.com/vadimdemedes/ink/commit/9c33272e55c69c3488bad2c018b231f959337381
log-update
, fixes https://github.com/vadimdemedes/ink/issues/28 https://github.com/vadimdemedes/ink/commit/61cd653f39a2fbafadbd7c1449c6e3d4f1c9f9b0
❤️ Thanks to @ForbesLindesay and @zgreen for helping out with this release!
This release brings minor breaking changes as well as nice improvements.
<div>
now renders a newline (\n
) after children. Use <span>
if you need to group elements, but don't want a newline https://github.com/vadimdemedes/ink/commit/376dc3a0ea3a910e12b3467c3e02619c6ea667c1
❤️ Huge thanks to @xdave for suggesting to add newline after <div>
, which makes UI building more pleasant and less verbose.
Despite the patch version increase, this release brings a few nifty features and an important bug fix.
defaultProps
to specify default props for every render https://github.com/vadimdemedes/ink/commit/72fb25245f673e7c3b08bd56149b77b8ee76cd9e
propTypes
via the official prop-types module https://github.com/vadimdemedes/ink/commit/034707de9c23ce6cdcc36544136da72c61f2fa50
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 https://github.com/vadimdemedes/ink/commit/b0e451c9785ceb8a7f31d041dfc4a40d19f73397
❤️ Huge thanks to @sindresorhus for convincing to add the native support for prop types.
This is a breaking release, which contains API changes and a few important improvements.
mount()
to render()
to provide more familiar API to React users https://github.com/vadimdemedes/ink/commit/a5bb2877b9e96306c4f6d1e19cf453f2f9964bb7
keypress
events on process.stdin
(enable raw mode) when render()
is used https://github.com/vadimdemedes/ink/commit/696d0fbad0a6f40da67580a9e636294e2961a9c6
❤️ Huge thanks to @sindresorhus and @brigand for helping with this release!