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 initinquirer 1430 changes
Breaking changes 3
Node.js 20 is no longer supported; the minimum supported version is Node.js 22.
number() treats whitespace-only input as empty.
Inquirer now throws when it encounters a non-registered prompt instead of defaulting to an input prompt, making broken code easier to detect.
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.
Adds the toggleMask option to reveal password input with ctrl+t.
The search prompt adds the initialValue option.
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.
Set this environment variable to enable vim or emacs keybindings; doing so disables the search feature in the select prompt.
Behavior and default changes 1
Validators can use promises or the legacy this.async() callback; string rejections are displayed as validation messages.
Tooling 1
Prompt and theme types are prettified for better IDE display.
Fixes and other changes 20
Localized prompts now respect user theme overrides.
Fixes index-input behavior for select and rawlist prompts.
Setting theme keys to undefined no longer crashes prompts.
Fixes piped-stdin answers being dropped before the first render.
Fixes the cursor overlapping the message when the password prompt is empty.
checkbox() no longer ignores input while validation is pending.
Prompt cleanup cancels a pending initial render when the prompt is cancelled or aborted.
Fixed confirm prompts so they always accept y/n.
Fixed whitespace handling in expand prompts.
Fixed whitespace handling in rawlist prompts.
Fixed stale-choice submission in search prompts.
confirm trims surrounding whitespace from answers before matching yes/no keywords.
Keystrokes batched with the key that settles a prompt no longer reach keypress handlers after the prompt is done, cancelled, or aborted.
Published manifests pin @inquirer/type to an exact version, preventing semver-range changes to leaked type definitions from breaking downstream TypeScript builds.
Confirm prompts parse localized yes/no responses.
The confirm prompt handles an explicitly undefined default.
The editor prompt handles an explicitly undefined default.
The number prompt handles an explicitly undefined default.
Floating-point step handling is fixed for the number prompt.
Fixes cursor mispositioning relative to the input when lines wrap.
inquirer 1332 changes
Breaking changes 8
Checked and disabled elements are always included in the returned array.
TypeScript disallows type: 'list' unless a plugin is installed under that name; use select instead.
The
cancel()method on prompt return custom Promises is removed; use an AbortSignal instead.All packages are ESM-only; CommonJS imports are no longer supported.
The
helpModetheme property is removed; usetheme.style.keysHelpTipinstead.The
instructionsconfig property is removed; usetheme.style.keysHelpTipinstead.The
listprompt alias is removed from theinquirerpackage; useselectinstead.Node.js 20 or later is required; versions below 20 are no longer supported.
New APIs and options 5
A new package is available for internationalization.
New theme options make all prompts content localizable.
Choices can have descriptions, displayed under the list when a choice is highlighted.
The search prompt supports default, allowing developers to specify a default value.
rawlist now supports the default option.
Behavior and default changes 2
A loading message is shown while editor prompt input is being validated.
Type inference is improved for checkbox, search and expand prompts.
Tooling 1
Adds end-to-end testing support for CLI applications.
Fixes and other changes 16
Preserves exact literal types in the choices array for TypeScript.
Allows an input default value to be undefined in TypeScript.
Fixes a rendering bug on Windows.
Fixes some Windows terminals freezing and not reacting to keypresses.
Improves type inference for expand prompts.
The editor prompt now properly handles editor paths on Windows.
The cursor can hover disabled list options, but they still cannot be interacted with, preventing confusing cursor jumps.
Keypresses that happen before a prompt is rendered are ignored.
Handles SWC-style module namespace objects.
Numeric default values are now handled correctly by the input prompt.
Auto-mocking now handles barrel re-exports from the prompts package.
Declares @inquirer/* packages as optional peer dependencies.
Prevents artificial line wrapping in test output.
Previous answers are again provided to validate functions as the second argument.
select now infers the return type properly when choices is an array of string literals.
Fixes TypeScript failing to discover types when moduleResolution is set to commonjs.
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.
New APIs and options 2
Allows passing a Partial type for pre-filled answers.
The @inquirer/input package supports simple RegExp validation with pattern and patternError.
Fixes and other changes 2
Downgraded mute-stream to maintain compatibility with Node 18.
Corrects the typo waitForUseInput to waitForUserInput in @inquirer/editor.
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.
inquirer 103 changes
Breaking changes 1
The
inquirer.ui.BottomBarAPI has been deleted.
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.
Behavior and default changes 1
The package now publishes dual CJS/ESM builds, allowing it to be used with CommonJS.
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.
inquirer 82 changes
Breaking changes 1
Support for Node 10 is dropped through dependencies.
New APIs and options 1
Adds the postfix option to the editor prompt to allow easily turning on proper syntax highlighting.
inquirer 64 changes
New APIs and options 2
A new prompt type, number, is available.
The transformer option receives an isFinal flag, allowing the final answer to be transformed differently.
Behavior and default changes 2
If message isn't provided, name is used as the default message.
Default values are hidden for password prompts.
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.
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.
Support for Node 4 is dropped.
Behavior and default changes 1
The prompt accepts the choice value as its default instead of only accepting the choice index.
Fixes and other changes 2
Invalid default choices no longer break the UI.
Pagination now properly handles multiline choices.
inquirer 33 changes
Breaking changes 1
Support for Node versions below 4 is dropped.
Behavior and default changes 1
Async validation can fail by rejecting the returned Promise.
Fixes and other changes 1
Fixes a bug with the bottom bar.
inquirer 23 changes
Breaking changes 3
Answer names containing dots now expand into nested objects in the answer object.
The expand prompt now defaults to help when no default value is specified.
Support for Node 0.10 and 0.12 was dropped.
inquirer 15 changes
Breaking changes 3
filter now runs before validate.
inquirer.prompt(questions) now returns a promise, providing the base API without a callback.
The callback argument is no longer accepted.
Behavior and default changes 1
Async question functions return a promise instead of requiring this.async().
Fixes and other changes 1
Fixed disabled options not being displayed correctly in lists.