Skip to content

chore: bump ink from 6.2.3 to 7.0.0#1752

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/ink-7.0.0
Open

chore: bump ink from 6.2.3 to 7.0.0#1752
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/ink-7.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Apr 8, 2026

Bumps ink from 6.2.3 to 7.0.0.

Release notes

Sourced from ink's releases.

v7.0.0

Breaking

  • Require Node.js 22 19b5316
  • Require React 19.2+ cfaebbb
    • Ink now uses useEffectEvent internally to avoid re-subscribing input handlers on every render
  • Pressing Backspace now correctly sets key.backspace instead of key.delete (#634) 321a2e8
    • Most terminals send the same byte for Backspace as the Delete key, which caused Ink to misreport it. If you were checking key.delete to handle backspace, switch to key.backspace
  • key.meta is no longer set to true when Escape is pressed e195912
    • Previously a backward-compat shim made plain Escape set both key.escape and key.meta. Now only key.escape is true. key.meta is reserved for actual Alt/Meta modifier combinations

New

  • Add usePaste hook for handling clipboard paste events fbbeb23
    • Automatically enables bracketed paste mode so pasted text arrives as a single string, never misinterpreted as individual key presses by useInput
  • Add useWindowSize hook 7047795
    • Returns {columns, rows} and re-renders automatically on terminal resize
  • Add useBoxMetrics hook for measuring box dimensions at runtime (#433) 88731d1
  • Add useAnimation hook for built-in animation support (#142) ada019c
    • Provides a frame counter that increments at a configurable interval, with pause/resume support and automatic cleanup on unmount
  • Add alternateScreen option to render() (#263) 5a60eb9
    • Renders into the terminal's alternate screen buffer (like vim or less), restoring the previous terminal content on exit
  • Add interactive option to render() (#888) 02490f6
    • Override automatic interactive-mode detection for environments where the built-in heuristic doesn't fit
  • Add activeId to useFocusManager() (#661) eb2f470
    • Returns the ID of the currently focused component, or undefined if nothing is focused
  • Add borderBackgroundColor (and per-side variants) to <Box> (#906) d3c6d14
    • Set a background color on borders independently from the box content background
  • Add wrap="hard" to <Text> (#925) 2b1e3a6
    • Fills each line to the full column width, breaking words mid-word as needed
  • Add maxWidth and maxHeight props to <Box> (#713) 9291794
  • Add aspectRatio, alignContent, position="static", and top/right/bottom/left layout props to <Box> c2f4b86
  • Kitty keyboard protocol: query all terminals in auto mode instead of a hardcoded allowlist (#895) 3e672b5

Fixes

  • Fix incremental rendering for trailing newline (#910) c32da0b
  • Fix useInput crash on unmapped key codes (#902) 969a4f1
  • Fix CJK text truncation exceeding <Box> width b5f3e3a
  • Fix splitting wide characters (emoji, CJK) when overlapping writes occur (#930) 06d53f4
  • Fix dangling staticNode reference (#905) 0dc4dfa

Migration guide

key.backspace vs key.delete

// Before — physical backspace was reported as key.delete
</tr></table> 

... (truncated)

Commits
  • fb14d81 7.0.0
  • 993f693 Update dependencies
  • 2b1e3a6 Add wrap="hard" option to Text component (#925)
  • 7c34548 Fix tests
  • cfaebbb Use useEffectEvent in useInput and usePaste to avoid per-render re-subs...
  • e195912 Stop setting key.meta to true when Escape is pressed
  • d3c6d14 Add border background color support for Box component (#906)
  • 931eba2 Fix build output and add tests (#932)
  • ada019c Add useAnimation hook for built-in animation support
  • 10136e6 Remove option field from keypress parser, merge Alt into meta
  • Additional commits viewable in compare view

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 8, 2026
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ink-7.0.0 branch from 859ba82 to 7bfec0b Compare April 8, 2026 20:28
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ink-7.0.0 branch from 7bfec0b to 2941de4 Compare April 10, 2026 12:57
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ink-7.0.0 branch from 2941de4 to 37a0742 Compare April 10, 2026 13:00
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ink-7.0.0 branch from 37a0742 to 451b3bd Compare April 10, 2026 13:04
Bumps [ink](https://github.com/vadimdemedes/ink) from 6.2.3 to 7.0.0.
- [Release notes](https://github.com/vadimdemedes/ink/releases)
- [Commits](vadimdemedes/ink@v6.2.3...v7.0.0)

---
updated-dependencies:
- dependency-name: ink
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ink-7.0.0 branch from 451b3bd to fc32a91 Compare April 10, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants