@inquirer/prompts
8.8.1 · 22 Nov 2026MIT66.5M / weekRepositoryHomepagenpmAtom feed
Upgrading @inquirer/prompts From 1.2.2 to 8.8.1
110 releases in betweennotes for 61
- 11+
- changes to make
- 0
- advisories fixed
- 28+
- new
- 36+
- fixes
Counted from 61 of 110 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking8.8.0
- Breaking8.7.4
- Breaking8.6.0
- Breaking8.0.0
- Breaking8.0.0
- Breaking5.0.0
- Breaking4.0.0
- Breaking3.0.0
- Deprecated8.0.0
- Deprecated8.0.0
Security
- 8.0.0
This makes Inquirer smaller and reduces risks of vulnerabilities coming from transitive dependencies.
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
Dependencies updated:
@inquirer/core@12.1.0(themeundefinedkeys no longer crash prompts),@inquirer/number@4.3.0(validate runs on empty optional answers),@inquirer/select@5.3.0and@inquirer/rawlist@5.4.0(strict digit-index parsing),@inquirer/i18n@1.4.0(user theme overrides locale defaults)
- Breaking
- Breaking
checkbox()no longer accepts edits or submissions while an async validator is pending — the selection is captured at submit time, and repeated Enter presses don't run the validator more than once (@inquirer/checkbox, #2296). - New
Prompt output no longer leaks when a prompt is cancelled or aborted before its first render — the deferred initial render is now cancelled during cleanup, so a settled prompt never writes to an ended output stream or reinstalls keypress listeners (
@inquirer/core, #2318, relates to #1816). - New
number()now treats whitespace-only input as empty, so a space-padded submit resolves to the default/undefined answer instead of a validation error (@inquirer/number, #2307). - New
Packages with only test-file changes are no longer version-bumped at release time (internal tooling; #2319).
- Breaking
- New
search()no longer submits a stale choice when Enter is pressed while an async search is still loading — the prompt waits for the fresh results, the query is preserved, and repeated Enter presses during validation no longer run the async validator more than once (@inquirer/search, #2291, closes #2290). - New
confirm()now always accepts the single keystrokesy/neven with localized keywords, and unrecognized input no longer silently falls back on the default answer (@inquirer/confirm, #2281, closes #2279). - New
expand()andrawlist()now ignore surrounding whitespace in answers (@inquirer/expand,@inquirer/rawlist, #2280). - New
All package READMEs now document the Deno install command (
deno add npm:@inquirer/prompts) alongside the npm/yarn/pnpm/bun ones (#2269).
- New
- 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
All bundled prompts now pin
@inquirer/typeto an exact version in their published manifests. 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
82 other lines we could not sort, mostly version bumps
- 8.7.4
@inquirer/checkbox@^5.2.7 - 8.7.4
@inquirer/confirm@^6.3.4 - 8.7.4
@inquirer/editor@^5.3.5 - 8.7.4
@inquirer/expand@^5.1.7 - 8.7.4
@inquirer/input@^5.1.8 - 8.7.4
@inquirer/number@^4.2.5 - 8.7.4
@inquirer/password@^5.2.4 - 8.7.4
@inquirer/rawlist@^5.3.7 - 8.7.4
@inquirer/search@^4.3.5 - 8.7.4
@inquirer/select@^5.2.7
16 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.