diff --git a/.changeset/pre.json b/.changeset/pre.json index 03235be..233a279 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -9,16 +9,21 @@ }, "changesets": [ "afraid-socks-deny", + "afraid-worms-help", "better-hotels-fall", "bright-hornets-destroy", + "busy-baths-work", "calm-trains-camp", + "chatty-islands-move", "crazy-ducks-shine", "cruel-hairs-swim", "curvy-seals-sit", "dirty-papayas-happen", "dull-singers-mate", "empty-buses-wonder", + "evil-rats-turn", "famous-turkeys-burn", + "fine-swans-retire", "five-chairs-poke", "floppy-laws-tan", "free-wasps-decide", @@ -35,13 +40,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", @@ -52,6 +60,7 @@ "strong-ravens-greet", "sweet-deers-smell", "tall-cows-fold", + "tall-keys-allow", "thin-socks-travel", "three-ideas-refuse", "tough-crews-flow", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index ce09349..c5e8b8f 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -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 diff --git a/packages/core/package.json b/packages/core/package.json index 1e80292..79fdc16 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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", diff --git a/packages/prompts/CHANGELOG.md b/packages/prompts/CHANGELOG.md index 6be18f1..07be8fa 100644 --- a/packages/prompts/CHANGELOG.md +++ b/packages/prompts/CHANGELOG.md @@ -1,5 +1,46 @@ # @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. +- 6176ced: Add withGuide support to note prompt +- 69681ea: Strip destructive ANSI codes from task log messages. +- 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/core@1.0.0-alpha.7 + ## 1.0.0-alpha.6 ### Minor Changes diff --git a/packages/prompts/package.json b/packages/prompts/package.json index 0a63634..30eed45 100644 --- a/packages/prompts/package.json +++ b/packages/prompts/package.json @@ -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",