unstale

npm / inquirer

inquirer

What changed in inquirer 1 to 14, from its official release notes, upgrade guides and advisories. Also covers @types/inquirer. Sources checked 2026-11-22.

26 breaking16 new APIs and options9 behavior and defaults2 tooling42 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

inquirer 1430 changes

Breaking changes 3

  • Node.js 20 is no longer supported; the minimum supported version is Node.js 22.

    14.3.0release notes

  • number() treats whitespace-only input as empty.

    14.2.4release notes

  • Inquirer now throws when it encounters a non-registered prompt instead of defaulting to an input prompt, making broken code easier to detect.

    14.0.0release notes

New APIs and options 5

  • Filters can use promises or the legacy this.async() callback, and promise-returning filters are awaited before the answer is stored.

    14.3.0release notes

  • Adds the toggleMask option to reveal password input with ctrl+t.

    14.2.0release notes

  • The search prompt adds the initialValue option.

    14.1.0release notes

  • The useState setter accepts a reducer function that receives the current value and returns the next value; this affects consumers building custom prompts with @inquirer/core.

    14.1.0release notes

  • Set this environment variable to enable vim or emacs keybindings; doing so disables the search feature in the select prompt.

    14.0.0release notes

Behavior and default changes 1

  • Validators can use promises or the legacy this.async() callback; string rejections are displayed as validation messages.

    14.3.0release notes

Tooling 1

  • Prompt and theme types are prettified for better IDE display.

    14.2.0release notes

Fixes and other changes 20

  • Localized prompts now respect user theme overrides.

    14.3.0release notes

  • Fixes index-input behavior for select and rawlist prompts.

    14.3.0release notes

  • Setting theme keys to undefined no longer crashes prompts.

    14.3.0release notes

  • Fixes piped-stdin answers being dropped before the first render.

    14.2.5release notes

  • Fixes the cursor overlapping the message when the password prompt is empty.

    14.2.5release notes

  • checkbox() no longer ignores input while validation is pending.

    14.2.4release notes

  • Prompt cleanup cancels a pending initial render when the prompt is cancelled or aborted.

    14.2.4release notes

  • Fixed confirm prompts so they always accept y/n.

    14.2.3release notes

  • Fixed whitespace handling in expand prompts.

    14.2.3release notes

  • Fixed whitespace handling in rawlist prompts.

    14.2.3release notes

  • Fixed stale-choice submission in search prompts.

    14.2.3release notes

  • confirm trims surrounding whitespace from answers before matching yes/no keywords.

    14.2.2release notes

  • Keystrokes batched with the key that settles a prompt no longer reach keypress handlers after the prompt is done, cancelled, or aborted.

    14.2.2release notes

  • Published manifests pin @inquirer/type to an exact version, preventing semver-range changes to leaked type definitions from breaking downstream TypeScript builds.

    14.2.1release notes

  • Confirm prompts parse localized yes/no responses.

    14.2.0release notes

  • The confirm prompt handles an explicitly undefined default.

    14.1.0release notes

  • The editor prompt handles an explicitly undefined default.

    14.1.0release notes

  • The number prompt handles an explicitly undefined default.

    14.1.0release notes

  • Floating-point step handling is fixed for the number prompt.

    14.1.0release notes

  • Fixes cursor mispositioning relative to the input when lines wrap.

    14.0.0release notes

inquirer 1332 changes

Breaking changes 8

  • Checked and disabled elements are always included in the returned array.

    13.3.0release notes

  • TypeScript disallows type: 'list' unless a plugin is installed under that name; use select instead.

    13.2.2release notes

  • The cancel() method on prompt return custom Promises is removed; use an AbortSignal instead.

    13.0.0release notes

  • All packages are ESM-only; CommonJS imports are no longer supported.

    13.0.0release notes

  • The helpMode theme property is removed; use theme.style.keysHelpTip instead.

    13.0.0release notes

  • The instructions config property is removed; use theme.style.keysHelpTip instead.

    13.0.0release notes

  • The list prompt alias is removed from the inquirer package; use select instead.

    13.0.0release notes

  • Node.js 20 or later is required; versions below 20 are no longer supported.

    13.0.0release notes

New APIs and options 5

  • A new package is available for internationalization.

    13.3.0release notes

  • New theme options make all prompts content localizable.

    13.3.0release notes

  • Choices can have descriptions, displayed under the list when a choice is highlighted.

    13.2.0release notes

  • The search prompt supports default, allowing developers to specify a default value.

    13.2.0release notes

  • rawlist now supports the default option.

    13.1.0release notes

Behavior and default changes 2

  • A loading message is shown while editor prompt input is being validated.

    13.4.0release notes

  • Type inference is improved for checkbox, search and expand prompts.

    13.4.0release notes

Tooling 1

Fixes and other changes 16

  • Preserves exact literal types in the choices array for TypeScript.

    13.4.3release notes

  • Allows an input default value to be undefined in TypeScript.

    13.4.3release notes

  • Fixes a rendering bug on Windows.

    13.4.3release notes

  • Fixes some Windows terminals freezing and not reacting to keypresses.

    13.4.2release notes

  • Improves type inference for expand prompts.

    13.4.1release notes

  • The editor prompt now properly handles editor paths on Windows.

    13.4.0release notes

  • The cursor can hover disabled list options, but they still cannot be interacted with, preventing confusing cursor jumps.

    13.3.0release notes

  • Keypresses that happen before a prompt is rendered are ignored.

    13.3.0release notes

  • Handles SWC-style module namespace objects.

    13.2.5release notes

  • Numeric default values are now handled correctly by the input prompt.

    13.2.4release notesrelease notes

  • Auto-mocking now handles barrel re-exports from the prompts package.

    13.2.4release notesrelease notes

  • Declares @inquirer/* packages as optional peer dependencies.

    13.2.4release notesrelease notes

  • Prevents artificial line wrapping in test output.

    13.2.4release notesrelease notes

  • Previous answers are again provided to validate functions as the second argument.

    13.2.1release notes

  • select now infers the return type properly when choices is an array of string literals.

    13.1.0release notes

  • Fixes TypeScript failing to discover types when moduleResolution is set to commonjs.

    13.0.2release notes

inquirer 125 changes

Breaking changes 1

  • The package is now only a peer dependency; TypeScript users may need to install it as a dev dependency.

    12.0.0release notes

New APIs and options 2

  • Allows passing a Partial type for pre-filled answers.

    12.11.1release notes

  • The @inquirer/input package supports simple RegExp validation with pattern and patternError.

    12.11.0release notes

Fixes and other changes 2

  • Downgraded mute-stream to maintain compatibility with Node 18.

    12.11.1release notes

  • Corrects the typo waitForUseInput to waitForUserInput in @inquirer/editor.

    12.11.0release notes

inquirer 111 changes

Breaking changes 1

  • After a question is answered, its prefix becomes a tick mark instead of the idle question mark; this can be overridden with theme.prefix.

    11.0.0release notes

inquirer 103 changes

Breaking changes 1

  • The inquirer.ui.BottomBar API has been deleted.

    10.0.0release notes

New APIs and options 1

  • Custom prompts should be implemented with @inquirer/core; custom prompts built on inquirer 9.x continue working but should plan a migration.

    10.0.0release notes

Behavior and default changes 1

  • The package now publishes dual CJS/ESM builds, allowing it to be used with CommonJS.

    10.0.0release notes

inquirer 91 changes

Breaking changes 1

  • Inquirer is now a native Node ECMAScript module, requiring a Node runtime that supports ES modules and an app that is an ES module.

    9.0.0release notes

inquirer 82 changes

Breaking changes 1

  • Support for Node 10 is dropped through dependencies.

    8.0.0release notes

New APIs and options 1

  • Adds the postfix option to the editor prompt to allow easily turning on proper syntax highlighting.

    8.0.0release notes

inquirer 64 changes

New APIs and options 2

  • A new prompt type, number, is available.

    6.0.0release notes

  • The transformer option receives an isFinal flag, allowing the final answer to be transformed differently.

    6.0.0release notes

Behavior and default changes 2

  • If message isn't provided, name is used as the default message.

    6.0.0release notes

  • Default values are hidden for password prompts.

    6.0.0release notes

inquirer 51 changes

Breaking changes 1

  • Upgrading to RxJS v5 updates Reactive interface method names, which may require changes to code that uses the interface directly.

    5.0.0release notes

inquirer 45 changes

Breaking changes 2

  • ES6 classes enforce more restrictions, including that constructor can only be invoked with new; community plugins may need changes.

    4.0.0release notes

  • Support for Node 4 is dropped.

    4.0.0release notes

Behavior and default changes 1

  • The prompt accepts the choice value as its default instead of only accepting the choice index.

    4.0.0release notes

Fixes and other changes 2

  • Invalid default choices no longer break the UI.

    4.0.0release notes

  • Pagination now properly handles multiline choices.

    4.0.0release notes

inquirer 33 changes

Breaking changes 1

Behavior and default changes 1

  • Async validation can fail by rejecting the returned Promise.

    3.0.0release notes

Fixes and other changes 1

inquirer 23 changes

Breaking changes 3

  • Answer names containing dots now expand into nested objects in the answer object.

    2.0.0release notes

  • The expand prompt now defaults to help when no default value is specified.

    2.0.0release notes

  • Support for Node 0.10 and 0.12 was dropped.

    2.0.0release notes

inquirer 15 changes

Breaking changes 3

  • filter now runs before validate.

    1.0.0release notes

  • inquirer.prompt(questions) now returns a promise, providing the base API without a callback.

    1.0.0release notes

  • The callback argument is no longer accepted.

    1.0.0release notes

Behavior and default changes 1

  • Async question functions return a promise instead of requiring this.async().

    1.0.0release notes

Fixes and other changes 1

  • Fixed disabled options not being displayed correctly in lists.

    1.0.0release notes