Skip to content

Releases: vadimdemedes/ink

v5.2.0

09 Mar 10:14
Compare
Choose a tag to compare
  • Use official yoga-layout package instead of yoga-wasm-web (#703) d46348f

v5.1.1...v5.2.0

v5.1.1

27 Feb 15:58
Compare
Choose a tag to compare
  • Fix input parsing of control characters (#699) 4dc1a87

v5.1.0...v5.1.1

v5.1.0

25 Nov 09:21
Compare
Choose a tag to compare
  • Support space-evenly value for justifyContent attribute (#678) 1588397

v5.0.1...v5.1.0

v5.0.1

31 May 15:59
Compare
Choose a tag to compare

v5.0.0...v5.0.1

v5.0.0

11 May 17:36
Compare
Choose a tag to compare

Even though this release is major, it doesn't have any breaking changes. The reason it's 5.0.0 is because after #635, Ink requires Node.js 18.

Huge thanks to @sindresorhus for maintaining Ink πŸ’›

Highlights

v4.4.1...v5.0.0

v4.4.1

09 Sep 11:43
Compare
Choose a tag to compare

Highlights

v4.4.0...v4.4.1

v4.4.0

01 Sep 10:17
Compare
Choose a tag to compare

Highlights

  • Add index property to Transform (#619) 0ee8e89
  • Use readable event instead of data to read from stdin (#616) 814f33e

Credits

Thanks to @isaacs and @matteodepalo for contributing to this release!

v4.3.1...v4.4.0

v4.3.1

07 Aug 20:37
Compare
Choose a tag to compare

This release brings back compatibility with Node.js v14.x. See #617 for details. Thanks @newhouse and @AlCalzone for handling it!

v4.3.0...v4.3.1

v4.3.0

17 Jul 06:22
Compare
Choose a tag to compare

Highlights

Thank you

Huge shoutout goes to @AlCalzone for performance improvements in the generation of output, which speeds up rendering and significantly reduces CPU usage πŸ”₯

v4.2.0...v4.3.0

v4.2.0

24 Apr 07:14
Compare
Choose a tag to compare

New features

Custom border style

fb66872

With the addition of borderStyle prop to Box, you can define custom border style for rendering borders.

<Box
	borderStyle={{
		topLeft: 'β†˜',
		top: '↓',
		topRight: '↙',
		left: 'β†’',
		bottomLeft: 'β†—',
		bottom: '↑',
		bottomRight: 'β†–',
		right: '←'
	}}
>
	<Text>Content</Text>
</Box>

Individual colors for each border side

015202c

Box has supported borderColor prop for a while now to change the color of the border. In this release, there are new borderTopColor, borderBottomColor, borderLeftColor and borderRightColor props to change the color for each border side individually.

<Box
	borderStyle="single"
	borderTopColor="magenta"
	borderBottomColor="green"
	borderLeftColor="yellow"
	borderRightColor="cyan"
>
	<Text>So colorful</Text>
</Box>

Toggle visibility of individual border sides

3e0aeab

As you can see, this is a pretty border-themed release. Continuing with the trend, now you toggle visibility of any border side individually via borderTop, borderBottom, borderLeft and borderRight props.

For example, if you wanted to hide top and bottom borders, you'd pass false to borderTop and borderBottom props respectively.

<Box
	borderStyle="single"
	borderTop={false}
	borderBottom={false}
>
	<Text>Content</Text>
</Box>

Other changes

  • Rework parsing keyboard input in useInput (#576) 6f99ca3
  • Detect arrow keys when pressed together with meta key 8180c1c
  • Fix tab key incorrectly having ctrl equal to true 26b8364
  • Fix arrow and page up/down keys detected as meta keys (#573) 09261d5
  • Improve diffing of styles (#566) 690d48c

v4.1.0...v4.2.0