Skip to content

Conversation

@bombshell-bot
Copy link
Contributor

@bombshell-bot bombshell-bot bot commented Oct 22, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@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 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");

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 22, 2025

@example/basic@example/changesets

npm i https://pkg.pr.new/bombshell-dev/clack/@clack/core@406
npm i https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@406

commit: 58cb696

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant