---
title: "prompts 2.0.0 Breaking Changes on npm | Since.dev"
description: "What each prompts release removed, renamed or changed: 25 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/prompts
last_updated: 2026-12-04
---

# 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

Latest version `2.4.2`, released October 7, 2021. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## prompts 2.0.0 breaking changes

prompts 2.0.0, released December 6, 2018: 25 breaking changes.

- **Removed** `Choice.disable`  

Choice.disable was removed in prompts 2.0.0 [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Removed** `PromptObject.seperator`  

PromptObject.seperator was removed in prompts 2.0.0 [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `Choice.value`  

Was value: string; now value?: any. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `inject`  

Was function inject(obj: any): void; now function inject(arr: ReadonlyArray\<any>): void. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `Options.onCancel`  

Was onCancel?: (prompt: PromptObject, answers: any) => void; now onCancel?: ((prompt: PromptObject, answers: any) => void) | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **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](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.active`  

Was active?: string; now active?: string | PrevCaller\<T, string | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.choices`  

Was choices?: Choice\[\]; now choices?: Choice\[\] | PrevCaller\<T, Choice\[\] | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.float`  

Was float?: boolean; now float?: boolean | PrevCaller\<T, boolean | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.format`  

Was format?: PrevCaller\<T, void>; now format?: PrevCaller\<T, void> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.hint`  

Was hint?: string; now hint?: string | PrevCaller\<T, string | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.inactive`  

Was inactive?: string; now inactive?: string | PrevCaller\<T, string | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.increment`  

Was increment?: number; now increment?: number | PrevCaller\<T, number | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.initial`  

Was initial?: string | number | boolean; now initial?: InitialReturnValue | PrevCaller\<T, InitialReturnValue | Promise\<InitialReturnValue>> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.limit`  

Was limit?: number; now limit?: number | PrevCaller\<T, number | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.max`  

Was max?: number; now max?: number | PrevCaller\<T, number | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.message`  

Was message?: ValueOrFunc\<string>; now message?: ValueOrFunc\<string> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.min`  

Was min?: number; now min?: number | PrevCaller\<T, number | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.onState`  

Was onState?: PrevCaller\<T, void>; now onState?: PrevCaller\<T, void> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.round`  

Was round?: number; now round?: number | PrevCaller\<T, number | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.style`  

Was style?: string; now style?: string | PrevCaller\<T, string | Falsy> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.suggest`  

Was suggest?: ((prev: any, values: any, prompt: PromptObject) => void); now suggest?: ((input: any, choices: Choice\[\]) => Promise\<any>) | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.type`  

Was type: ValueOrFunc\<PromptType> | Falsy; now type: PromptType | Falsy | PrevCaller\<T, PromptType | Falsy>. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **Signature changed** `PromptObject.validate`  

Was validate?: PrevCaller\<T, void>; now validate?: PrevCaller\<T, boolean | string | Promise\<boolean | string>> | undefined. [npmjs.com](https://www.npmjs.com/package/prompts/v/2.0.0)
- **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](https://www.npmjs.com/package/prompts/v/2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
