@inquirer/prompts
8.8.0 · 10 Nov 2026MIT66.3M / weekRepositoryHomepagenpmAtom feed
Upgrading @inquirer/prompts From 8.5.1 to 8.8.0
9 releases in betweenevery note read
Reading releases, release notes and advisories…
- 3
- changes to make
- 0
- advisories fixed
- 16
- new
- 5
- fixes
Before you upgrade
Tick each one off as you go- Breaking8.8.0
- Breaking8.7.4
- Breaking8.6.0
Release by release
- 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
- Breaking
Note: This release depends on @inquirer/core@^12.0.0, which contains a breaking change to the useState setter type (it now accepts a reducer function).
- New
@inquirer/search— newinitialValue?: stringoption to pre-fill the search input - Fixed
@inquirer/number— avoid floating-point step errors; accept explicitundefinedas default (#2166, #2182) - Fixed
@inquirer/confirm— accept explicitundefinedas default - Fixed
@inquirer/editor— accept explicitundefinedas default
- Breaking
50 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
10 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.