@clack/prompts
1.9.0 · 9 Nov 2026MIT48.7M / weekRepositoryHomepagenpmAtom feed
Upgrading @clack/prompts From 1.7.0 to 1.9.0
3 releases in betweenevery note read
Release by release
- New
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. - New
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. - New
Add support for disabled
selectKeyoptions: they are rendered dimmed, cannot be selected by keypress, and are ignored when set as the initial value. - Fixed
Update sisteransi to 2.x (ESM only).
- New
- Fixed
Return type for prompts now correctly specifies
CANCEL_SYMBOLinstead ofsymbol
- Fixed
- New
Export
CANCEL_SYMBOLconstant from@clack/coreand@clack/prompts - New
Add tab-completion to the
pathprompt: pressing Tab fills the input with the focused suggestion, so you can quickly descend into deep directories (type/and Tab again). Powered by a new opt-incompleteOnTaboption onautocomplete, which also shows aTab: completehint in the instructions footer. Defaultautocompletebehavior is unchanged. - New
Add async validation support to prompts, and validation state rendering to text prompts.
- Fixed
Style the guide bar rendered by
box({ withGuide: true })in grey so it matches the gutter drawn bylog,noteand the spinner - Fixed
Fixes a withGuide rendering issue leaving extra spaces in text prompts.
- New
3 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.