Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
},
"changesets": [
"afraid-socks-deny",
"afraid-worms-help",
"better-hotels-fall",
"bright-hornets-destroy",
"busy-baths-work",
"calm-trains-camp",
"crazy-ducks-shine",
"cruel-hairs-swim",
Expand All @@ -19,6 +21,7 @@
"dull-singers-mate",
"empty-buses-wonder",
"famous-turkeys-burn",
"fine-swans-retire",
"five-chairs-poke",
"floppy-laws-tan",
"free-wasps-decide",
Expand All @@ -35,13 +38,16 @@
"legal-bags-tie",
"lemon-monkeys-help",
"light-waves-jog",
"little-ghosts-retire",
"lucky-dragons-think",
"mean-mice-train",
"mean-turkeys-help",
"mean-years-remain",
"moody-baboons-greet",
"nasty-parrots-laugh",
"odd-bikes-nail",
"orange-deers-battle",
"plenty-snakes-ring",
"rich-plants-call",
"sharp-lemons-build",
"short-squids-battle",
Expand All @@ -52,6 +58,7 @@
"strong-ravens-greet",
"sweet-deers-smell",
"tall-cows-fold",
"tall-keys-allow",
"thin-socks-travel",
"three-ideas-refuse",
"tough-crews-flow",
Expand Down
8 changes: 8 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @clack/core

## 1.0.0-alpha.7

### Patch Changes

- 0718b07: fix: export `*Options` types for prompts.
- 4ba2d78: Support short terminal windows when re-rendering by accounting for off-screen lines
- acc4c3a: Add a new `withGuide` option to all prompts to disable the default clack border

## 1.0.0-alpha.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clack/core",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"type": "module",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
Expand Down
39 changes: 39 additions & 0 deletions packages/prompts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# @clack/prompts

## 1.0.0-alpha.7

### 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()`:

```diff
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:

```js
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.
- 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 `withGuide` option to all prompts to disable the default clack border
- Updated dependencies [0718b07]
- Updated dependencies [4ba2d78]
- Updated dependencies [acc4c3a]
- @clack/[email protected]

## 1.0.0-alpha.6

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/prompts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clack/prompts",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"type": "module",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
Expand Down
Loading