Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency ink to v4 - autoclosed #424

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 6, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

vadimdemedes/ink (ink)

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 - "before 4am on Monday" (UTC), 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Mar 6, 2023
@renovate renovate bot force-pushed the renovate/ink-4.x branch 3 times, most recently from ca28d09 to 7de785a Compare April 17, 2023 04:58
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 1f52df0 to b6df9c5 Compare April 24, 2023 08:59
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from c717fb7 to a865bde Compare May 8, 2023 04:27
@renovate renovate bot force-pushed the renovate/ink-4.x branch 4 times, most recently from f09b3e9 to ad8705b Compare June 13, 2023 12:12
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 2c8ff84 to 90dd63a Compare July 10, 2023 01:00
@renovate renovate bot force-pushed the renovate/ink-4.x branch 4 times, most recently from 2c46959 to c9916d3 Compare July 24, 2023 05:42
@renovate renovate bot force-pushed the renovate/ink-4.x branch 3 times, most recently from 2fb3c4c to a17baaa Compare August 14, 2023 04:24
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 8e745b8 to 32266d9 Compare August 28, 2023 04:47
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 91ad665 to 03bc69b Compare December 4, 2023 05:32
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from e763692 to f34f637 Compare January 8, 2024 05:51
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from a8a0f8a to 1e2ff66 Compare January 22, 2024 05:27
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from b495f1b to 72092c2 Compare February 5, 2024 05:26
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 214b076 to 948f1cf Compare February 26, 2024 05:04
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from b266ca3 to d6288c9 Compare March 25, 2024 05:33
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 478b265 to e59b878 Compare April 8, 2024 04:41
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from 386a5cd to 7981727 Compare April 29, 2024 04:46
@renovate renovate bot force-pushed the renovate/ink-4.x branch 2 times, most recently from f4eb2f8 to e769a6c Compare May 6, 2024 05:35
@renovate renovate bot changed the title chore(deps): update dependency ink to v4 chore(deps): update dependency ink to v4 - autoclosed May 11, 2024
@renovate renovate bot closed this May 11, 2024
@renovate renovate bot deleted the renovate/ink-4.x branch May 11, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant