Skip to content

chore(deps): update dependency ink to v5 - autoclosed#280

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/ink-5.x
Closed

chore(deps): update dependency ink to v5 - autoclosed#280
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/ink-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented May 11, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ink 3.2.0 -> 5.2.1 age adoption passing confidence

Release Notes

vadimdemedes/ink (ink)

v5.2.1

Compare Source

  • Fix: Correctly detect Shift key only for uppercase letters (#​712) f6faae1

v5.2.0

Compare Source

  • Use official yoga-layout package instead of yoga-wasm-web (#​703) d46348f

v5.1.1

Compare Source


v5.1.0

Compare Source

  • Support space-evenly value for justifyContent attribute (#​678) 1588397

v5.0.1

Compare Source

v5.0.0

Compare Source

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

Compare Source

Highlights

v4.4.0

Compare Source

Highlights

Credits

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

v4.3.1

Compare Source

This release brings back compatibility with Node.js v14.x. See https://github.com/vadimdemedes/ink/issues/617 for details. Thanks @​newhouse and @​AlCalzone for handling it!

v4.3.0

Compare Source

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

Compare Source

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

Compare Source

Highlights

Support for gap in Box

4a67772

Box supports gap prop now to easily add space between columns and rows without manually assigning margins. Similar to CSS, gap is a shorthand for setting both columnGap and rowGap at the same time.

<Box gap={1}>
	<Text>A</Text>
	<Text>B</Text>
</Box>
// A B
Wrapping of flex items

7bdbde5

@​jodevsa contributed support for wrapping of flex items in via flexWrap prop, similar to flex-wrap CSS property.

<Box width={2} flexWrap="wrap">
	<Text>A</Text>
	<Text>BC</Text>
</Box>
// A
// B C
Customizable overflow behavior in Box

6278b81

Box supports an overflow prop, which controls the visibility of an element's overflow. It can be set to "visible" (default) and "hidden", which hides any content that overflows element's boundaries. Like in CSS, overflow is a shorthand for setting both overflowX and overflowY.

<Box width={6} overflow="hidden">
    <Box width={16} flexShrink={0}>
    	<Text>Hello World</Text>
    </Box>
</Box>
// Hello
WASM build of Yoga

c97a2ee

Thanks to @​amitdahan, Ink now uses a WASM build of Yoga provided by the yoga-wasm-web package. Starting with this release, Ink no longer uses yoga-layout-prebuilt package that is lagging behind Yoga releases.

Faster rendering

e635106

@​AlCalzone contributed an impressive performance boost (~150%) to slice-ansi, which Ink heavily uses for generating output before writing it to the terminal. This release updates Ink to use a newer version of slice-ansi, so this should translate to faster rendering in Ink as well.

Other changes

v4.0.0

Compare Source

Breaking changes

Thank you

Major shoutout goes to @​pepicrft and @​amitdahan for leading the migration of Ink to ESM 💛

Thanks to @​sindresorhus for support and helping reviewing these massive changes 👏


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/ink-5.x branch from b4060f8 to 8fef998 Compare May 31, 2024 16:39
@renovate renovate bot force-pushed the renovate/ink-5.x branch from 8fef998 to eadfc30 Compare November 25, 2024 14:34
@renovate renovate bot changed the title chore(deps): update dependency ink to v5 chore(deps): update dependency ink to v5 - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/ink-5.x branch December 8, 2024 18:52
@renovate renovate bot changed the title chore(deps): update dependency ink to v5 - autoclosed chore(deps): update dependency ink to v5 Dec 9, 2024
@renovate renovate bot reopened this Dec 9, 2024
@renovate renovate bot force-pushed the renovate/ink-5.x branch from 1967700 to eadfc30 Compare December 9, 2024 02:50
@renovate renovate bot force-pushed the renovate/ink-5.x branch from eadfc30 to 1faee41 Compare February 27, 2025 16:24
@renovate renovate bot force-pushed the renovate/ink-5.x branch from 1faee41 to a901d72 Compare March 9, 2025 13:57
@renovate renovate bot force-pushed the renovate/ink-5.x branch from a901d72 to b66b6f2 Compare April 29, 2025 17:03
@renovate renovate bot changed the title chore(deps): update dependency ink to v5 chore(deps): update dependency ink to v5 - autoclosed May 29, 2025
@renovate renovate bot closed this May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants