ink breaking changes
Updated December 4, 2026
On this page
Latest version 8.0.0, released October 3, 2026. Source repository
Its 7.0.0 release requires Node.js 22 or later. Node.js end of life dates.
- From 7.1.1 to 8.0.0: 25 breaking changes in 1 version.
- From 6.0.0 to 8.0.0: 62 breaking changes in 14 versions.
ink 8.0.0 breaking changes
- Removed
stdout.columns
Properties like stdout.columns and rows are no longer part of the types. Use useWindowSize() instead. github.com - Removed
ws
The ws dependency was removed in favor of the native WebSocket. Apps relying on ws being installed transitively should add it themselves. github.com - Behavior changed
reportAssociatedText
Setting reportAssociatedText now also turns on reportAllKeysAsEscapeCodes automatically. github.com - Behavior changed
useInput
Mouse reports, focus events and other terminal replies are dropped instead of arriving in input. Code that parsed them from input must change. github.com - Configuration changed
minWidth
Percentage strings are no longer accepted for minWidth and maxWidth on Box. Pass a number instead, computed from useWindowSize() or useBoxMetrics() if needed. github.com - Signature changed
Box
Was const Box: React.ForwardRefExoticComponent<{readonly position?: "absolute" | "relative" | "static" | undefined; readonly top?: number | string | undefined; readonly right?: number | string | undefined; readonly bottom?: number | string... npmjs.com - Signature changed
BoxMetrics
Was type BoxMetrics = {readonly width: number; readonly height: number; readonly left: number; readonly top: number;}; now type BoxMetrics = {readonly width: number; readonly height: number; readonly left: number; readonly top: number... npmjs.com - Signature changed
DOMElement
Was type DOMElement = {nodeName: ElementNames; attributes: Record<string, DOMNodeAttribute>; childNodes: DOMNode[]; internal_transform?: OutputTransformer; internal_accessibility?: {role?: 'button' | 'checkbox' | 'combobox' | 'list' |... npmjs.com - Signature changed
ElementMetrics
Was type Output = {x: number; y: number; width: number; height: number;}; now type Output = {x: number; y: number; width: number; height: number; clientWidth: number; clientHeight: number;}. npmjs.com - Signature changed
render
Was const render: (node: ReactNode, options?: NodeJS.WriteStream | RenderOptions) => Instance; now const render: (node: ReactNode, options?: Writable | RenderOptions) => Instance. npmjs.com - Signature changed
RenderOptions
Was type RenderOptions = {stdout?: NodeJS.WriteStream; stdin?: NodeJS.ReadStream; stderr?: NodeJS.WriteStream; debug?: boolean; exitOnCtrlC?: boolean; patchConsole?: boolean; onRender?: (metrics: RenderMetrics) => void... npmjs.com - Signature changed
RenderOptions.stderr
Was stderr?: NodeJS.WriteStream; now stderr?: NodeJS.WritableStream. npmjs.com - Signature changed
RenderOptions.stdin
Was stdin?: NodeJS.ReadStream; now stdin?: NodeJS.ReadableStream. npmjs.com - Signature changed
RenderOptions.stdout
Was stdout?: NodeJS.WriteStream; now stdout?: NodeJS.WritableStream. npmjs.com - Signature changed
StderrProps
Was type Props = {readonly stderr: NodeJS.WriteStream; readonly write: (data: string) => void;}; now type Props = {readonly stderr: NodeJS.WritableStream; readonly write: (data: string) => void;}. npmjs.com - Signature changed
StderrProps.stderr
Was readonly stderr: NodeJS.WriteStream; now readonly stderr: NodeJS.WritableStream. npmjs.com - Signature changed
StdinProps
Was type PublicProps = {readonly stdin: NodeJS.ReadStream; readonly setRawMode: (value: boolean) => void; readonly isRawModeSupported: boolean;}; now type PublicProps = {readonly stdin: NodeJS.ReadableStream; readonly setRawMode... npmjs.com - Signature changed
StdinProps.setRawMode
Was readonly setRawMode: (value: boolean) => void; now readonly setRawMode: (isEnabled: boolean) => void. npmjs.com - Signature changed
StdinProps.stdin
Was readonly stdin: NodeJS.ReadStream; now readonly stdin: NodeJS.ReadableStream. npmjs.com - Signature changed
stdout
TTY-only properties such as stdout.columns are no longer in the types. Use useWindowSize() for terminal dimensions. github.com - Signature changed
StdoutProps
Was type Props = {readonly stdout: NodeJS.WriteStream; readonly write: (data: string) => void;}; now type Props = {readonly stdout: NodeJS.WritableStream; readonly write: (data: string) => void;}. npmjs.com - Signature changed
StdoutProps.stdout
Was readonly stdout: NodeJS.WriteStream; now readonly stdout: NodeJS.WritableStream. npmjs.com - Signature changed
useApp
Was const useApp: () => import("../components/AppContext.js").Props; now function useApp(): import("../components/AppContext.js").Props. npmjs.com - Signature changed
useStderr
Was const useStderr: () => import("../components/StderrContext.js").Props; now function useStderr(): import("../components/StderrContext.js").Props. npmjs.com - Signature changed
useStdout
Was const useStdout: () => import("../components/StdoutContext.js").Props; now function useStdout(): import("../components/StdoutContext.js").Props. npmjs.com
ink 7.1.1 breaking changes
- Behavior changed
measureElement
measureElement() returns extra position coordinates alongside width and height. Code that destructures or inspects its return value may see new fields. github.com
ink 7.1.0 breaking changes
- Signature changed
AppProps
Was type Props = {readonly exit: (errorOrResult?: Error | unknown) => void; readonly waitUntilRenderFlush: () => Promise<void>;}; now type Props = {readonly exit: (errorOrResult?: Error | unknown) => void; readonly waitUntilRenderFlush: ()... npmjs.com
ink 7.0.3 breaking changes
- Signature changed
DOMElement
Was type DOMElement = {nodeName: ElementNames; attributes: Record<string, DOMNodeAttribute>; childNodes: DOMNode[]; internal_transform?: OutputTransformer; internal_accessibility?: {role?: 'button' | 'checkbox' | 'combobox' | 'list' |... npmjs.com - Signature changed
useBoxMetrics
Was const useBoxMetrics: (ref: RefObject<DOMElement>) => UseBoxMetricsResult; now const useBoxMetrics: (ref: RefObject<DOMElement | null>) => UseBoxMetricsResult. npmjs.com
ink 7.0.1 breaking changes
- Signature changed
useApp
Was const useApp: () => {exit(): void; waitUntilRenderFlush(): Promise<void>;}; now const useApp: () => import("../components/AppContext.js").Props. npmjs.com
ink 7.0.0 breaking changes
- Removed
The package now requires Node.js 22. Upgrade Node.js before installing this version. github.com - Removed
StdinProps.internal_eventEmitter
StdinProps.internal_eventEmitter was removed in ink 7.0.0 npmjs.com - Removed
StdinProps.internal_exitOnCtrlC
StdinProps.internal_exitOnCtrlC was removed in ink 7.0.0 npmjs.com - Behavior changed
Auto mode now queries every terminal for Kitty keyboard protocol support instead of using a fixed allowlist, which can change key input on some terminals. github.com - Behavior changed
key.delete
Pressing Backspace no longer sets key.delete. Code that checks key.delete for backspace must check key.backspace instead. github.com - Behavior changed
key.meta
Plain Escape now sets only key.escape. Code that checks key.meta for Escape must check key.escape instead; key.meta remains for Alt/Meta combinations. github.com - Configuration changed
Ink now needs React 19.2 or newer. Upgrade React in projects that use this version. github.com - Signature changed
AppProps
Was type Props = {readonly exit: (errorOrResult?: Error | unknown) => void;}; now type Props = {readonly exit: (errorOrResult?: Error | unknown) => void; readonly waitUntilRenderFlush: () => Promise<void>;}. npmjs.com - Signature changed
Box
Was const Box: React.ForwardRefExoticComponent<{readonly position?: "absolute" | "relative" | undefined; readonly columnGap?: number | undefined; readonly rowGap?: number | undefined; readonly gap?: number | undefined; readonly margin?... npmjs.com - Signature changed
DOMElement
Was type DOMElement = {nodeName: ElementNames; attributes: Record<string, DOMNodeAttribute>; childNodes: DOMNode[]; internal_transform?: OutputTransformer; internal_accessibility?: {role?: 'button' | 'checkbox' | 'combobox' | 'list' |... npmjs.com
And 5 more in this version. Sign up to see every change
Older versions
9 older versions, each with its first changes. Sign up to see every change
Show 9 older versions
ink 6.8.0 breaking changes
- Signature changed
AppProps
Was type Props = {readonly exit: (error?: Error) => void;}; now type Props = {readonly exit: (errorOrResult?: Error | unknown) => void;}. npmjs.com - Signature changed
AppProps.exit
Was readonly exit: (error?: Error) => void; now readonly exit: (errorOrResult?: Error | unknown) => void. npmjs.com
ink 6.7.0 breaking changes
- Signature changed
Key
Was type Key = {upArrow: boolean; downArrow: boolean; leftArrow: boolean; rightArrow: boolean; pageDown: boolean; pageUp: boolean; home: boolean; end: boolean; return: boolean; escape: boolean; ctrl: boolean; shift: boolean; tab: boolean... npmjs.com - Signature changed
RenderOptions
Was type RenderOptions = {stdout?: NodeJS.WriteStream; stdin?: NodeJS.ReadStream; stderr?: NodeJS.WriteStream; debug?: boolean; exitOnCtrlC?: boolean; patchConsole?: boolean; onRender?: (metrics: RenderMetrics) => void... npmjs.com
ink 6.6.0 breaking changes
- Signature changed
Key
Was type Key = {upArrow: boolean; downArrow: boolean; leftArrow: boolean; rightArrow: boolean; pageDown: boolean; pageUp: boolean; return: boolean; escape: boolean; ctrl: boolean; shift: boolean; tab: boolean; backspace: boolean; delete... npmjs.com
ink 6.5.0 breaking changes
- Signature changed
RenderOptions
Was type RenderOptions = {stdout?: NodeJS.WriteStream; stdin?: NodeJS.ReadStream; stderr?: NodeJS.WriteStream; debug?: boolean; exitOnCtrlC?: boolean; patchConsole?: boolean; onRender?: (metrics: RenderMetrics) => void... npmjs.com
ink 6.4.0 breaking changes
- Signature changed
RenderOptions
Was type RenderOptions = {stdout?: NodeJS.WriteStream; stdin?: NodeJS.ReadStream; stderr?: NodeJS.WriteStream; debug?: boolean; exitOnCtrlC?: boolean; patchConsole?: boolean; isScreenReaderEnabled?: boolean; maxFps?: number;}; now type... npmjs.com
ink 6.3.0 breaking changes
- Signature changed
RenderOptions
Was type RenderOptions = {stdout?: NodeJS.WriteStream; stdin?: NodeJS.ReadStream; stderr?: NodeJS.WriteStream; debug?: boolean; exitOnCtrlC?: boolean; patchConsole?: boolean; isScreenReaderEnabled?: boolean;}; now type RenderOptions =... npmjs.com
ink 6.2.0 breaking changes
- Signature changed
Box
Was const Box: React.ForwardRefExoticComponent<{readonly position?: "absolute" | "relative" | undefined; readonly columnGap?: number | undefined; readonly rowGap?: number | undefined; readonly gap?: number | undefined; readonly margin?... npmjs.com - Signature changed
BoxProps
Was type Props = Except<Styles, 'textWrap'>; now type Props = Except<Styles, 'textWrap'> & {readonly 'aria-label'?: string; readonly 'aria-hidden'?: boolean; readonly 'aria-role'?: 'button' | 'checkbox' | 'combobox' | 'list' | 'listbox' |... npmjs.com
And 6 more in this version.
ink 6.1.0 breaking changes
- Signature changed
Box
Was const Box: React.ForwardRefExoticComponent<{readonly position?: "absolute" | "relative" | undefined; readonly columnGap?: number | undefined; readonly rowGap?: number | undefined; readonly gap?: number | undefined; readonly margin?... npmjs.com
ink 6.0.0 breaking changes
- Removed
The package now requires React 19; projects on older React versions must upgrade React before updating ink. github.com - Removed
The package now requires Node.js 20; users on older Node.js must upgrade their runtime before updating. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.