Skip to content

Releases

@clack/prompts@1.8.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 13 Sep 17:00
Immutable release. Only release title and notes can be modified.
da44e23

Patch Changes

  • 8bd9129 Thanks @gameroman! - Return type for prompts now correctly specifies CANCEL_SYMBOL instead of symbol

  • Updated dependencies [8bd9129]:

    • @clack/core@1.5.1

@clack/core@1.5.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 13 Sep 17:00
Immutable release. Only release title and notes can be modified.
da44e23

Patch Changes

  • 8bd9129 Thanks @gameroman! - Return type for prompts now correctly specifies CANCEL_SYMBOL instead of symbol

@clack/prompts@1.8.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 07 Sep 20:12
Immutable release. Only release title and notes can be modified.
de1ef16

Minor Changes

  • #592 caa32e8 Thanks @gameroman! - Export CANCEL_SYMBOL constant from @clack/core and @clack/prompts

  • #594 37fca4e Thanks @dreyfus92! - Add tab-completion to the path prompt: 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-in completeOnTab option on autocomplete, which also shows a Tab: complete hint in the instructions footer. Default autocomplete behavior is unchanged.

  • #583 ae636dd Thanks @43081j! - Add async validation support to prompts, and validation state rendering to text prompts.

Patch Changes

@clack/core@1.5.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 07 Sep 20:12
Immutable release. Only release title and notes can be modified.
de1ef16

Minor Changes

  • #595 227583e Thanks @dreyfus92! - Add an accessible option to the shared PromptOptions and a resolved accessible getter on the base Prompt, so any prompt can opt into accessible mode individually. Resolution order: per-prompt option > updateSettings({ accessible }) > the ACCESSIBLE environment variable.

  • #592 caa32e8 Thanks @gameroman! - Export CANCEL_SYMBOL constant from @clack/core and @clack/prompts

  • #594 37fca4e Thanks @dreyfus92! - Add tab-completion to the path prompt: 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-in completeOnTab option on autocomplete, which also shows a Tab: complete hint in the instructions footer. Default autocomplete behavior is unchanged.

  • #583 ae636dd Thanks @43081j! - Add async validation support to prompts, and validation state rendering to text prompts.

  • #593 b20fa2b Thanks @dreyfus92! - Add isAccessible() and an accessible setting as the foundation for accessible mode. Resolution order: per-call option > updateSettings({ accessible }) > the ACCESSIBLE environment variable (any non-empty value enables it, except 0 and false).

@clack/prompts@1.7.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jul 22:59
Immutable release. Only release title and notes can be modified.
dc5bce8

Minor Changes

  • #574 8f1c380 Thanks @dreyfus92! - Add showInstructions option to select, multiselect, and groupMultiselect. Keyboard hints remain shown by default; pass showInstructions: false to hide them.

Patch Changes

  • #582 4b24953 Thanks @43081j! - Handle empty arrays in various prompts and utilities.

  • Updated dependencies [4b24953]:

    • @clack/core@1.4.3

@clack/core@1.4.3

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jul 22:59
Immutable release. Only release title and notes can be modified.
dc5bce8

Patch Changes

@clack/prompts@1.6.0

Choose a tag to compare

@bombshell-bot bombshell-bot released this 19 Jun 17:53
Immutable release. Only release title and notes can be modified.
0e70056

Minor Changes

  • #568 f87933f Thanks @florian-lefebvre! - Updates default formatter of note() to note dim lines anymore

    If you want the old behavior, provide a format() function:

    import { note } from '@clack/prompts';
    +import { styleText } from 'node:util';
    
    note(
      'You can edit the file src/index.jsx',
      'Next steps.'
    +  { format: (text) => styleText('dim', text) }
    );
  • #567 cc6aab5 Thanks @dreyfus92! - Add keyboard instruction footers to select, multiselect, and groupMultiselect in the active state, matching autocomplete. No option — always shown.

Patch Changes

@clack/core@1.4.2

Choose a tag to compare

@bombshell-bot bombshell-bot released this 19 Jun 17:53
Immutable release. Only release title and notes can be modified.
0e70056

Patch Changes

  • #561 2f2b52f Thanks @avallete! - Fix password prompt resolving to undefined on empty submit. It now normalizes an empty submission to "", matching the text prompt behavior and the documented Promise<string | symbol> return type.

  • #569 e1b6ee7 Thanks @43081j! - fix: only submit multi-line prompt when double-return happens at end of input.

    Also fixes two minor things:

    • Initial value is used as initial user input for multi-line prompts
    • Cursor is placed at the end when there is initial input

@clack/prompts@1.5.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jun 15:29
Immutable release. Only release title and notes can be modified.
02ae191

Patch Changes

@clack/core@1.4.1

Choose a tag to compare

@bombshell-bot bombshell-bot released this 03 Jun 15:29
Immutable release. Only release title and notes can be modified.
02ae191

Patch Changes