Skip to content

Releases: bombshell-dev/clack

@clack/[email protected]

24 Nov 15:31
08b58f5

Choose a tag to compare

Pre-release

Minor Changes

  • 38019c7: Updates the API for stopping spinners and progress bars to be clearer

    Previously, both the spinner and progress bar components used a single stop method that accepted a code to indicate success, cancellation, or error. This update separates these into distinct methods: stop(), cancel(), and error():

    const spinner = prompts.spinner();
    spinner.start();
    
    // Cancelling a spinner
    - spinner.stop(undefined, 1);
    + spinner.cancel();
    
    // Stopping with an error
    - spinner.stop(undefined, 2);
    + spinner.error();

    As before, you can pass a message to each method to customize the output displayed:

    spinner.cancel("Operation cancelled by user");
    progressBar.error("An error occurred during processing");

Patch Changes

  • 4d1d83b: Fixes rendering of multi-line messages and options in select prompt.
  • 6176ced: Add withGuide support to note prompt
  • 69681ea: Strip destructive ANSI codes from task log messages.
  • b0fa7d8: Add support for wrapped messages in multi line prompts
  • 7530af0: Fixes wrapping of cancelled and success messages of select prompt
  • acc4c3a: Add a new withGuide option to all prompts to disable the default clack border
  • Updated dependencies [0718b07]
  • Updated dependencies [4ba2d78]
  • Updated dependencies [acc4c3a]

@clack/[email protected]

24 Nov 15:31
08b58f5

Choose a tag to compare

Pre-release

Patch Changes

  • 0718b07: fix: export *Options types for prompts.
  • 4ba2d78: Support short terminal windows when re-rendering by accounting for off-screen lines
  • acc4c3a: Add a new withGuide option to all prompts to disable the default clack border

@clack/[email protected]

03 Oct 15:34
69508f4

Choose a tag to compare

Pre-release

Minor Changes

  • 8409f2c: feat: add styleFrame option for spinner

Patch Changes

@clack/[email protected]

03 Oct 15:34
69508f4

Choose a tag to compare

Pre-release

Patch Changes

  • b103ad3: Allow disabled options in multi-select and select prompts.

@clack/[email protected]

22 Sep 08:45
73b88da

Choose a tag to compare

Pre-release

Minor Changes

  • 55645c2: Support wrapping autocomplete and select prompts.

Patch Changes

  • 9999adf: fix note component overflow bug
  • 2839c66: fix(note): hard wrap text to column limit
  • 71b5029: Add missing nullish checks around values.
  • d25f6d0: fix(note, box): handle CJK correctly
  • 0b852e1: Handle stop calls on spinners which have not yet been started.
  • 09e596c: refactor(progress): remove unnecessary return statement in start function
  • 2310b43: Allow custom writables as output stream.
  • Updated dependencies [71b5029]
  • Updated dependencies [55645c2]
  • Updated dependencies [2310b43]

@clack/[email protected]

22 Sep 08:45
73b88da

Choose a tag to compare

Pre-release

Minor Changes

  • 55645c2: Support wrapping autocomplete and select prompts.

Patch Changes

  • 71b5029: Add missing nullish checks around values.
  • 2310b43: Allow custom writables as output stream.

@clack/[email protected]

19 Aug 10:28
b5016e8

Choose a tag to compare

Pre-release

Patch Changes

  • 7b009df: Fix spinner clearing too many lines upwards when non-wrapping.
  • ae84dd0: Update key binding text to show tab/space when navigating, and tab otherwise.
  • Updated dependencies [d98e033]

@clack/[email protected]

19 Aug 10:27
b5016e8

Choose a tag to compare

Pre-release

Patch Changes

  • d98e033: add invert selection for multiselect prompt

@clack/[email protected]

12 Aug 08:24
0ca2c4c

Choose a tag to compare

Pre-release

Minor Changes

  • 76fd17f: Added new box prompt for rendering boxed text, similar a note.
  • 1604f97: Add clearOnError option to password prompt to automatically clear input when validation fails

Patch Changes

@clack/[email protected]

12 Aug 08:24
0ca2c4c

Choose a tag to compare

Pre-release

Minor Changes

  • 1604f97: Add clearOnError option to password prompt to automatically clear input when validation fails

Patch Changes

  • 1a45f93: Switched from wrap-ansi to fast-wrap-ansi