prompts breaking changes
prompts 2.0.0 (December 6, 2018) is its newest release with breaking changes, 25 of them. The first: Removed Choice.disable. Every breaking API change we have recorded in prompts on npm: 25 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.4.2, released October 7, 2021.
Packages on npm run on Node.js. Node.js end of life dates.
prompts 2.0.0 breaking changes
- Removed
Choice.disable
Choice.disable was removed in prompts 2.0.0 npmjs.com - Removed
PromptObject.seperator
PromptObject.seperator was removed in prompts 2.0.0 npmjs.com - Signature changed
Choice.value
Was value: string; now value?: any. npmjs.com - Signature changed
inject
Was function inject(obj: any): void; now function inject(arr: ReadonlyArray<any>): void. npmjs.com - Signature changed
Options.onCancel
Was onCancel?: (prompt: PromptObject, answers: any) => void; now onCancel?: ((prompt: PromptObject, answers: any) => void) | undefined. npmjs.com - Signature changed
Options.onSubmit
Was onSubmit?: (prompt: PromptObject, answer: any, answers: any[]) => void; now onSubmit?: ((prompt: PromptObject, answer: any, answers: any[]) => void) | undefined. npmjs.com - Signature changed
PromptObject.active
Was active?: string; now active?: string | PrevCaller<T, string | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.choices
Was choices?: Choice[]; now choices?: Choice[] | PrevCaller<T, Choice[] | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.float
Was float?: boolean; now float?: boolean | PrevCaller<T, boolean | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.format
Was format?: PrevCaller<T, void>; now format?: PrevCaller<T, void> | undefined. npmjs.com - Signature changed
PromptObject.hint
Was hint?: string; now hint?: string | PrevCaller<T, string | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.inactive
Was inactive?: string; now inactive?: string | PrevCaller<T, string | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.increment
Was increment?: number; now increment?: number | PrevCaller<T, number | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.initial
Was initial?: string | number | boolean; now initial?: InitialReturnValue | PrevCaller<T, InitialReturnValue | Promise<InitialReturnValue>> | undefined. npmjs.com - Signature changed
PromptObject.limit
Was limit?: number; now limit?: number | PrevCaller<T, number | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.max
Was max?: number; now max?: number | PrevCaller<T, number | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.message
Was message?: ValueOrFunc<string>; now message?: ValueOrFunc<string> | undefined. npmjs.com - Signature changed
PromptObject.min
Was min?: number; now min?: number | PrevCaller<T, number | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.onState
Was onState?: PrevCaller<T, void>; now onState?: PrevCaller<T, void> | undefined. npmjs.com - Signature changed
PromptObject.round
Was round?: number; now round?: number | PrevCaller<T, number | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.style
Was style?: string; now style?: string | PrevCaller<T, string | Falsy> | undefined. npmjs.com - Signature changed
PromptObject.suggest
Was suggest?: ((prev: any, values: any, prompt: PromptObject) => void); now suggest?: ((input: any, choices: Choice[]) => Promise<any>) | undefined. npmjs.com - Signature changed
PromptObject.type
Was type: ValueOrFunc<PromptType> | Falsy; now type: PromptType | Falsy | PrevCaller<T, PromptType | Falsy>. npmjs.com - Signature changed
PromptObject.validate
Was validate?: PrevCaller<T, void>; now validate?: PrevCaller<T, boolean | string | Promise<boolean | string>> | undefined. npmjs.com - Signature changed
PromptType
Was type PromptType = "text" | "password" | "invisible" | "number" | "confirm" | "list" | "toggle" | "select" | "multiselect" | "autocomplete"; now type PromptType = "text" | "password" | "invisible" | "number" | "confirm" | "list" |... npmjs.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.