unstale

npm / @inquirer/prompts

@inquirer/prompts

What changed in @inquirer/prompts 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

8 breaking1 security10 new APIs and options5 behavior and defaults2 tooling19 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.0 on npm

@inquirer/prompts 842 changes

Breaking changes 8

  • The prompt accepts single-key y and n responses even with localized keywords, and unrecognized input no longer silently selects the default answer.

    8.7.3release notes

  • Adjusted the explicit engine limits to match the higher minimum already enforced, affecting which runtime versions are supported.

    8.5.1release notes

  • Checked and disabled elements are always included in the returned array.

    8.3.0release notes

  • The cancel() method on prompt return custom Promise was removed; use AbortSignal instead.

    8.0.0release notes

  • All packages are ESM-only; CommonJS imports are no longer supported.

    8.0.0release notes

  • The instructions config property was removed from checkbox, search, and select prompts; use theme.style.keysHelpTip instead.

    8.0.0release notes

  • Node.js 20 or later is now required; versions below 20 are no longer supported.

    8.0.0release notes

  • The helpMode theme property was removed from checkbox, search, and select prompts; use theme.style.keysHelpTip instead.

    8.0.0release notes

Security 1

  • Security warnings in external-editor are fixed.

    8.5.2release notes

New APIs and options 8

  • The password prompt gains the toggleMask option, allowing users to reveal the typed value with ctrl+t.

    8.7.0release notes

  • A new initialValue option pre-fills the search input.

    8.6.0release notes

  • Set INQUIRER_KEYBINDINGS to vim or emacs to enable those keybindings as a user preference; this disables search in the select prompt.

    8.5.0release notes

  • A new package is available for internationalization.

    8.3.0release notes

  • Various new theme options make all prompts content localizable.

    8.3.0release notes

  • Choices can have a description, displayed under the list when the choice is highlighted.

    8.2.0release notes

  • The search prompt supports default.

    8.2.0release notes

  • The rawlist prompt now supports the default option.

    8.1.0release notes

Behavior and default changes 5

  • Answers may include surrounding whitespace, which the prompt now ignores.

    8.7.3release notes

  • The confirm prompt now matches localized yes/no answers per locale.

    8.7.0release notes

  • The useState setter now accepts a reducer/updater function, changing its type.

    8.6.0release notes

  • A loading message is shown while editor prompt input is being validated.

    8.4.0release notes

  • The cursor can hover disabled options in select and checkbox lists, but cannot interact with them.

    8.3.0release notes

Tooling 2

  • Type inference is improved for checkbox prompts.

    8.4.0release notes

  • Type inference is improved for search prompts.

    8.4.0release notes

Fixes and other changes 18

  • Answers may include surrounding whitespace, which the prompt now ignores.

    8.7.3release notes

  • While async search is loading, Enter waits for fresh results and preserves the query; repeated Enter presses during validation no longer run the async validator more than once.

    8.7.3release notes

  • confirm() trims surrounding whitespace from answers before matching yes/no keywords.

    8.7.2release notes

  • Keystrokes batched with the key that settles a prompt no longer reach keypress handlers after the prompt is done, cancelled, or aborted.

    8.7.2release notes

  • Bundled prompts pin @inquirer/type to an exact version in published manifests to prevent its type definitions from breaking downstream TypeScript builds.

    8.7.1release notes

  • An explicit undefined is accepted as the default.

    8.6.0release notes

  • An explicit undefined is accepted as the default.

    8.6.0release notes

  • An explicit undefined is accepted as the default.

    8.6.0release notes

  • Floating-point step errors are avoided.

    8.6.0release notes

  • Fixes the cursor being mispositioned relative to the input when lines wrap.

    8.5.0release notes

  • Preserves exact literal types in the choices array.

    8.4.3release notes

  • Allows the input default value to have type undefined.

    8.4.3release notes

  • Fixes some Windows terminals freezing and not reacting to keypresses.

    8.4.2release notes

  • Fixes editor prompt handling of editor paths on Windows.

    8.4.0release notes

  • Improves type inference for the expand prompt type.

    8.4.0release notesrelease notes

  • Keypresses that happen before a prompt is rendered are ignored.

    8.3.0release notes

  • The return type is now inferred properly when choices is an array of string literals.

    8.1.0release notes

  • Fixes TypeScript not discovering types when moduleResolution is set to commonjs.

    8.0.2release notes

@inquirer/prompts 73 changes

New APIs and options 2

  • Adds simple RegExp validation for input prompts using pattern.

    7.10.0release notes

  • Adds patternError for simple RegExp validation in input prompts.

    7.10.0release notes

Fixes and other changes 1

  • Downgraded to mute-stream@2 to maintain Node 18 compatibility.

    7.10.1release notes