Skip to content

Commit 120bc20

Browse files
[ci] release (alpha)
1 parent 4ba2d78 commit 120bc20

File tree

5 files changed

+49
-2
lines changed

5 files changed

+49
-2
lines changed

.changeset/pre.json

Lines changed: 5 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",
@@ -35,13 +37,16 @@
3537
"legal-bags-tie",
3638
"lemon-monkeys-help",
3739
"light-waves-jog",
40+
"little-ghosts-retire",
3841
"lucky-dragons-think",
3942
"mean-mice-train",
4043
"mean-turkeys-help",
4144
"mean-years-remain",
4245
"moody-baboons-greet",
4346
"nasty-parrots-laugh",
47+
"odd-bikes-nail",
4448
"orange-deers-battle",
49+
"plenty-snakes-ring",
4550
"rich-plants-call",
4651
"sharp-lemons-build",
4752
"short-squids-battle",

packages/core/CHANGELOG.md

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

3+
## 1.0.0-alpha.7
4+
5+
### Patch Changes
6+
7+
- 4ba2d78: Support short terminal windows when re-rendering by accounting for off-screen lines
8+
39
## 1.0.0-alpha.6
410

511
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clack/core",
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",

packages/prompts/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
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+
- Updated dependencies [4ba2d78]
37+
- @clack/core@1.0.0-alpha.7
38+
339
## 1.0.0-alpha.6
440

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