Packages

@clack/prompts

1.9.0 · 9 Nov 2026MIT48.7M / weekRepositoryHomepagenpmAtom feed

Your version

1.9.0

Latest9 Nov 2026Where it was published

In short

3 new5 fixed3 internal

Release note

Minor Changes

  • cbeefcb Thanks @dreyfus92! - Add accessible mode to spinner: when enabled via the accessible option, the global setting, or the ACCESSIBLE env 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 multiselect to accept readonly option arrays, e.g. options declared with as const. The Value type parameter is now inferred as a literal union ('a' | 'b') from such arrays, and initialValues also accepts readonly arrays.

  • Add support for disabled selectKey options: 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 path prompt in directory mode on Windows: typing a trailing \ after a directory now lists its children instead of showing no matches.

  • Render falsy primitive options through the limitOptions style 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.