Releases: bombshell-dev/clack
Releases · bombshell-dev/clack
@clack/[email protected]
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
stopmethod that accepted a code to indicate success, cancellation, or error. This update separates these into distinct methods:stop(),cancel(), anderror():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
withGuideoption to all prompts to disable the default clack border - Updated dependencies [0718b07]
- Updated dependencies [4ba2d78]
- Updated dependencies [acc4c3a]
- @clack/[email protected]
@clack/[email protected]
@clack/[email protected]
Minor Changes
- 8409f2c: feat: add styleFrame option for spinner
Patch Changes
- aea4573: Clamp scrolling windows to 5 rows.
- b103ad3: Allow disabled options in multi-select and select prompts.
- Updated dependencies [b103ad3]
- @clack/[email protected]
@clack/[email protected]
Patch Changes
- b103ad3: Allow disabled options in multi-select and select prompts.
@clack/[email protected]
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
stopcalls 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]
@clack/[email protected]
@clack/[email protected]
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]
@clack/[email protected]
Patch Changes
- d98e033: add invert selection for multiselect prompt
@clack/[email protected]
Minor Changes
- 76fd17f: Added new
boxprompt for rendering boxed text, similar a note. - 1604f97: Add
clearOnErroroption to password prompt to automatically clear input when validation fails
Patch Changes
- 1a45f93: Switched from wrap-ansi to fast-wrap-ansi
- 4c89dd7: chore: use more accurate type to replace any in group select
- Updated dependencies [1a45f93]
- Updated dependencies [1604f97]
- @clack/[email protected]