inquirer
14.2.5 · 27 Oct 2026MIT59.6M / weekRepositoryHomepagenpmAtom feed
245 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 12.x
12.4.1
2 Feb 2025Mark
@types/nodeas an optional peer dependency across all packages.
12.4.0
2 Feb 2025Added new
shortcutconfig to thecheckboxprompt. Allows to customize or disable shortcut keys for select all and invert selection.
12.3.3
28 Jan 2025Replace 3rd party dependency
strip-ansiin favour of Node built-instripVTControlCharactersutil.
12.3.0
20 Dec 2024- breaking
Checkbox prompt: re-added support for an array of
defaultto be provided listing pre-checked checkboxes. This is a legacy interface brought back given this feature removal was an involuntary breaking change during thev12release. The preferred interface is to provide thecheckedproperty to choices{ value: 'bar', checked: true }.
12.0.0
6 Oct 2024@types/nodeis now only apeerDependencies. This reduces the install size of inquirer dramatically for folks not using Typescript. It's unlikely to break your builds if you used TS already, if it does runnpm install --dev @types/node/yarn add --dev @types/node.
- 11.x
11.1.0
27 Sep 2024Now exports base utility Typescript types:
import type { Question, DistinctQuestion, Answers } from 'inquirer';
Now exports base utility Typescript types:
import type { Question, DistinctQuestion, Answers } from 'inquirer';
You should use as follow to keep the inference working properly:
const questions = [ { ... } ] as const satisfies Question[]; // If you're not using inquirer plugins, `Question` could alternatively be replaced by `DistinctQuestion` for stricter checks.11.0.1
16 Sep 202411.0.0
15 Sep 2024No technical breaking changes; but we changed the style of the question
prefixonce the answer is provided. Once a question is answer, the prefix becomes a tick mark (previously it was the same?as when the prompt is idle.)No technical breaking changes; but we changed the style of the question
prefixonce the answer is provided. Once a question is answer, the prefix becomes a tick mark (previously it was the same?as when the prompt is idle.)This is theme-able, and so can be overwritten to with
theme.prefix.- 10.x
10.2.2
7 Sep 2024Fix the
filteroption not working.The
signal: AbortSignaldidn't work with class based prompts (OSS plugins.) Now it should work consistently with legacy style prompts.
10.2.1
6 Sep 2024Fix
expandprompt being broken if a Separator was in thechoicesarray.
10.2.0
2 Sep 2024Includes various fixes & new features to the different built-in prompts
Major rework of the Typescript types. Hoping to reduce the amount of finicky type errors (or wrong types) you might've ran into.
10.1.2
22 Jul 2024- breaking
Fix broken backward compatibility issues with v9.
Choiceobjects withoutvalueshould default to usenameas the value. Note: Please don't rely on this weird behaviour, but we fixed it since it was an unintended breaking change.
10.1.1
22 Jul 202410.1.0
21 Jul 2024Adds the new
{ type: 'search' }prompt.
10.0.4
19 Jul 202410.0.3
17 Jul 2024- removed
Remove type requiring a
closemethod on prompt class instances (it wasn't required.) Re-added missing
shorton select and checkbox prompt.
10.0.0
7 Jul 2024Re-implemented with Typescript.
Adding CJS support (now
inquireris publishes a dual-build CJS/ESM.)All core prompts are now coming from
@inquirer/prompt.
Re-implemented with Typescript.
Adding CJS support (now
inquireris publishes a dual-build CJS/ESM.)All core prompts are now coming from
@inquirer/prompt.Custom prompts now should be implemented with
@inquirer/core. Custom prompts built oninquirer@9.x.xwill keep working, but should plan a migration.inquirer.ui.BottomBaris deleted.
My expectation is that this release should be a drop-in replacement for people using
inquirer.prompt()and built-ins 🤞🏻. Please open an issue on Github if you run into issues migrating; it's a large rewrite and there might be a few sharp edges to cut! Hope you'll like this new release.- 9.x
9.3.5
7 Jul 2024Fix issue with plugins relying on internal
inquirerpackages file structure.
9.3.1
27 Jun 2024Fix risk of prototype injection.
9.3.0
26 Jun 2024Replace
chalkwith(in 9.3.2 went topicolorsyoctocolorsto stay with Sindre's packages and reduce amount of provenance.)Drop many dependencies in favour of native functions when possible.
Replace
chalkwith(in 9.3.2 went topicolorsyoctocolorsto stay with Sindre's packages and reduce amount of provenance.)Drop many dependencies in favour of native functions when possible.
No impact expected, but it's a large changes in dependencies. Let us know if you run into any issues upgrading!
9.2.23
31 May 20249.2.18
12 Apr 2024On windows, we will now use unicode characters whenever possible