inquirer
14.3.1 · 22 Nov 2026MIT57.9M / weekRepositoryHomepagenpmAtom feed
Upgrading inquirer From 13.4.3 to 14.3.1
12 releases in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 16
- new
- 15
- fixes
Before you upgrade
Tick each one off as you go- Breaking14.3.0
Release by release
- New
- Fixed
input: keys typed while a validation is pending no longer leak into the answer;
patternvalidation is repeatable (ag-flagged regex no longer fails the second submission); keys typed during a pending validation are discarded - Fixed
number: input left empty on an optional prompt now calls
validatewithundefined; pending keystrokes no longer leak into the retry; only plain decimal input is accepted (0x10/0b11/0o7are rejected) - Fixed
password: pending keystrokes during validation no longer leak into the retry
- Breaking
Node.js 20 is no longer supported; the minimum is now Node 22 (
^22.22.2 || ^24.15.0 || >=26.0.0) - New
filternow supports asynchronous filters and the legacythis.async()callback — a promise-returning filter is awaited before the answer is stored - New
validatesupports the legacythis.async()callback and promise-returning validators; a string rejection (done('msg')orPromise.reject('msg')) is shown as the validation message - New
- Breaking
- New
confirm()now trims surrounding whitespace from answers before matching yes/no keywords (@inquirer/confirm, #2254). - Fixed
Fixed a race where keystrokes batched in the same tick as the key that settled a prompt could still reach keypress handlers after the prompt was done, cancelled, or aborted (
@inquirer/core, #2255, closes #1816).
- New
- New
Published manifests now pin
@inquirer/typeto an exact version. Since these type definitions leak into consumers'tscruns, a semver range on the types-only dependency could break downstream TypeScript builds without any change to Inquirer.js itself (#2247, fixes #2244).
- New
- New
Updated to
@inquirer/prompts@^8.7.0and@inquirer/core@^12.0.1. - New
Includes the new
toggleMaskoption forpassword(ctrl+t to reveal), localized yes/no parsing forconfirm, and prettified prompt/theme types for better IDE display.
- New
14 other lines we could not sort, mostly version bumps
- 14.2.2
@inquirer/core@^12.0.3 - 14.2.2
@inquirer/prompts@^8.7.2 - 14.2.1
@inquirer/core@^12.0.2 - 14.2.1
@inquirer/prompts@^8.7.1 - 14.2.1
@inquirer/type@4.1.1(pinned exactly) - 14.2.1
@inquirer/ansi@^2.0.8 - 14.2.0
@inquirer/core@^12.0.1 - 14.2.0
@inquirer/prompts@^8.7.0 - 14.2.0
@inquirer/type@^4.1.0 - 14.2.0
@inquirer/ansi@^2.0.7
6 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.