Skip to content

Commit 32876d9

Browse files
[ci] release (alpha)
1 parent b0fa7d8 commit 32876d9

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.changeset/pre.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dull-singers-mate",
2020
"empty-buses-wonder",
2121
"famous-turkeys-burn",
22+
"fine-swans-retire",
2223
"five-chairs-poke",
2324
"floppy-laws-tan",
2425
"free-wasps-decide",
@@ -41,7 +42,9 @@
4142
"mean-years-remain",
4243
"moody-baboons-greet",
4344
"nasty-parrots-laugh",
45+
"odd-bikes-nail",
4446
"orange-deers-battle",
47+
"plenty-snakes-ring",
4548
"rich-plants-call",
4649
"sharp-lemons-build",
4750
"short-squids-battle",

packages/prompts/CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,38 @@
11
# @clack/prompts
22

3+
## 1.0.0-alpha.7
4+
5+
### Minor Changes
6+
7+
- 38019c7: Updates the API for stopping spinners and progress bars to be clearer
8+
9+
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()`:
10+
11+
```diff
12+
const spinner = prompts.spinner();
13+
spinner.start();
14+
15+
// Cancelling a spinner
16+
- spinner.stop(undefined, 1);
17+
+ spinner.cancel();
18+
19+
// Stopping with an error
20+
- spinner.stop(undefined, 2);
21+
+ spinner.error();
22+
```
23+
24+
As before, you can pass a message to each method to customize the output displayed:
25+
26+
```js
27+
spinner.cancel("Operation cancelled by user");
28+
progressBar.error("An error occurred during processing");
29+
```
30+
31+
### Patch Changes
32+
33+
- b0fa7d8: Add support for wrapped messages in multi line prompts
34+
- 7530af0: Fixes wrapping of cancelled and success messages of select prompt
35+
336
## 1.0.0-alpha.6
437

538
### Minor Changes

packages/prompts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clack/prompts",
3-
"version": "1.0.0-alpha.6",
3+
"version": "1.0.0-alpha.7",
44
"type": "module",
55
"main": "./dist/index.mjs",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)