Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.7.1
->5.1.0
Release Notes
vadimdemedes/ink (ink)
v5.1.0
Compare Source
space-evenly
value forjustifyContent
attribute (#678)1588397
v5.0.1
Compare Source
d8bcff8
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
fd0698b
d73468a
v4.4.1
Compare Source
Highlights
3d02a16
45dcc1e
adc2c0c
v4.4.0
Compare Source
Highlights
index
property toTransform
(#619)0ee8e89
readable
event instead ofdata
to read from stdin (#616)814f33e
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
9ff4d20
8a04760
useInput
callback (#581)eed2a11
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 toBox
, you can define custom border style for rendering borders.Individual colors for each border side
015202c
Box
has supportedborderColor
prop for a while now to change the color of the border. In this release, there are newborderTopColor
,borderBottomColor
,borderLeftColor
andborderRightColor
props to change the color for each border side individually.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
andborderRight
props.For example, if you wanted to hide top and bottom borders, you'd pass
false
toborderTop
andborderBottom
props respectively.Other changes
useInput
(#576)6f99ca3
8180c1c
ctrl
equal totrue
26b8364
09261d5
690d48c
v4.1.0
Compare Source
Highlights
Support for
gap
inBox
4a67772
Box
supportsgap
prop now to easily add space between columns and rows without manually assigning margins. Similar to CSS,gap
is a shorthand for setting bothcolumnGap
androwGap
at the same time.Wrapping of flex items
7bdbde5
@jodevsa contributed support for wrapping of flex items in via
flexWrap
prop, similar toflex-wrap
CSS property.Customizable overflow behavior in
Box
6278b81
Box
supports anoverflow
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 bothoverflowX
andoverflowY
.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 usesyoga-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 ofslice-ansi
, so this should translate to faster rendering in Ink as well.Other changes
5f09368
v4.0.0
Compare Source
Breaking changes
aaf45a1
aaf45a1
hsl
,hsv
,hwb
andansi
color formats inText
'scolor
prop.react-devtools-core
to optional peer dependency (#498)8c2378a
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 👏
v3.2.0
Compare Source
Highlights
5b10413
ws
dependency to fix a security alert7fac58a
v3.1.0
Compare Source
Highlights
5809621
v3.0.9
Compare Source
Highlights
a8f563c
undefined
errors for focusing unmounted elements (#404)deb9d96
backgroundColor
prop of the<Box>
component (#451)7a3b32d
v3.0.8
Compare Source
Highlights
3.0.7
release) (#390)1396566
v3.0.7
Compare Source
Highlights
import type
statements8389496
e8f2b34
borderColor
type (#379)ac28ae4
v3.0.6
Compare Source
Highlights
useInput
(#364)96568dd
v3.0.5
Compare Source
Highlights
447078b
v3.0.4
Compare Source
Highlights
Static
rendering stale items on unmount (#361)6ae66e6
v3.0.3
Compare Source
Highlights
useInput
handle Ctrl+C ifexitOnCtrlC
is disabled (#353)7de558e
inverse
prop toText
component (#347)8e8c1ba
v3.0.2
Compare Source
Highlights
DOMElement
type (#351)950b1d2
v3.0.1
Compare Source
Highlights
<Box>
is nested inside<Text>
component (#346)377adbb
7077188
useInput
for Page Up and Page Down keys (#336)4a94374
color
andbackgroundColor
props for<Text>
(#338)66cb353
v3.0.0
Compare Source
This day is finally here - Ink 3 is out! Read the full announcement at https://vadimdemedes.com/posts/ink-3.
Highlights
measureElement()
API (#307)d0c4417
7c17e85
155e1a0
2bcb4c0
2b5dbad
<Box>
component (#300)96625bf
ab0f986
706fdb2
align-self
property to<Box>
(#296)125148a
<Spacer>
componente8ae2af
5739a75
<Newline>
component9f4c6f8
console.*
logs above main outputacb6ed2
clear()
method to clear outputfec1c4d
1a44aac
useStderr
hook to access and write to stderr stream (#286)360d2da
write()
function to write any string to stdout (#285)27e313e
<Transform>
component (#277)9ed46a5
false
a056565
isActive
option to useInput hookf419028
<Box display="none">
b51476c
89425d5
9b99c5a
c9631c2
Configuration
📅 Schedule: Branch creation - "on monday before 6:00am" in timezone 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.
This PR was generated by Mend Renovate. View the repository job log.