@clack/prompts
1.9.0 · 9 Nov 2026MIT48.7M / weekRepositoryHomepagenpmAtom feed
In short
3 new5 fixed3 internal
Release note
Minor Changes
cbeefcbThanks @dreyfus92! - Add accessible mode tospinner: when enabled via theaccessibleoption, the global setting, or theACCESSIBLEenv var, the spinner emits static, append-only, screen-reader friendly output, a plain start line, a "still working" heartbeat every 30 seconds, and a plain final line. Instead of animated in-place repaints.Allow
multiselectto accept readonly option arrays, e.g. options declared withas const. TheValuetype parameter is now inferred as a literal union ('a' | 'b') from such arrays, andinitialValuesalso accepts readonly arrays.Add support for disabled
selectKeyoptions: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value.
Patch Changes
Update sisteransi to 2.x (ESM only).
Use an explicit undefined check when forwarding autocomplete initialValue so 0, false, and empty strings remain selectable instead of falling back to the first option.
Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly.
Fix that isCancelled returned after calling cancel and start methods in progress does not refresh.
Fix the
pathprompt indirectorymode on Windows: typing a trailing\after a directory now lists its children instead of showing no matches.Render falsy primitive options through the
limitOptionsstyle callback instead of leaving blank rows.
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.