Skip to content

Commit a274cee

Browse files
[ci] release (alpha)
1 parent 4d1d83b commit a274cee

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.changeset/pre.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"afraid-socks-deny",
1212
"better-hotels-fall",
1313
"bright-hornets-destroy",
14+
"busy-baths-work",
1415
"calm-trains-camp",
1516
"crazy-ducks-shine",
1617
"cruel-hairs-swim",
@@ -19,6 +20,7 @@
1920
"dull-singers-mate",
2021
"empty-buses-wonder",
2122
"famous-turkeys-burn",
23+
"fine-swans-retire",
2224
"five-chairs-poke",
2325
"floppy-laws-tan",
2426
"free-wasps-decide",
@@ -41,7 +43,9 @@
4143
"mean-years-remain",
4244
"moody-baboons-greet",
4345
"nasty-parrots-laugh",
46+
"odd-bikes-nail",
4447
"orange-deers-battle",
48+
"plenty-snakes-ring",
4549
"rich-plants-call",
4650
"sharp-lemons-build",
4751
"short-squids-battle",

packages/prompts/CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
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+
- 4d1d83b: Fixes rendering of multi-line messages and options in select prompt.
34+
- b0fa7d8: Add support for wrapped messages in multi line prompts
35+
- 7530af0: Fixes wrapping of cancelled and success messages of select prompt
36+
337
## 1.0.0-alpha.6
438

539
### 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)