Skip to content

@clack/prompts@1.9.0

Latest

Choose a tag to compare

@bombshell-bot bombshell-bot released this 09 Nov 13:07
· 6 commits to main since this release
Immutable release. Only release title and notes can be modified.
50c8ea0

Minor Changes

  • #596 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.

  • #614 5ac9e73 Thanks @btea! - 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.

  • #622 1835f41 Thanks @btea! - 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

  • #610 be35482 Thanks @43081j! - Update sisteransi to 2.x (ESM only).

  • #618 3e0bffd Thanks @btea! - 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.

  • #631 9053625 Thanks @43081j! - Account for escape sequences in prefixes during line wrapping. Very narrow outputs will now render correctly.

  • #616 f325a53 Thanks @btea! - Fix that isCancelled returned after calling cancel and start methods in progress does not refresh.

  • #627 34976a7 Thanks @b84330808! - Fix the path prompt in directory mode on Windows: typing a trailing \ after a directory now lists its children instead of showing no matches.

  • #628 85f6aff Thanks @imharjot! - Render falsy primitive options through the limitOptions style callback instead of leaving blank rows.

  • Updated dependencies [be35482, 9053625, f2bc46b, f325a53, 5ac9e73, e66ab12, 1835f41]:

    • @clack/core@1.6.0