Skip to content

Commit fe1ee54

Browse files
[ci] release (#232)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 613179d commit fe1ee54

File tree

4 files changed

+32
-28
lines changed

4 files changed

+32
-28
lines changed

.changeset/bright-chefs-double.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/gentle-jokes-fail.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/prompts/CHANGELOG.md

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

3+
## 0.10.0
4+
5+
### Minor Changes
6+
7+
- 613179d: Adds a new `indicator` option to `spinner`, which supports the original `"dots"` loading animation or a new `"timer"` loading animation.
8+
9+
```ts
10+
import * as p from "@clack/prompts";
11+
12+
const spin = p.spinner({ indicator: "timer" });
13+
spin.start("Loading");
14+
await sleep(3000);
15+
spin.stop("Loaded");
16+
```
17+
18+
- a38b2bc: Adds `stream` API which provides the same methods as `log`, but for iterable (even async) message streams. This is particularly useful for AI responses which are dynamically generated by LLMs.
19+
20+
```ts
21+
import * as p from "@clack/prompts";
22+
23+
await p.stream.step(
24+
(async function* () {
25+
yield* generateLLMResponse(question);
26+
})()
27+
);
28+
```
29+
330
## 0.9.1
431

532
### Patch Changes

packages/prompts/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clack/prompts",
3-
"version": "0.9.1",
3+
"version": "0.10.0",
44
"type": "module",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",
@@ -22,7 +22,10 @@
2222
"url": "https://github.com/natemoo-re/clack/issues"
2323
},
2424
"homepage": "https://github.com/natemoo-re/clack/tree/main/packages/prompts#readme",
25-
"files": ["dist", "CHANGELOG.md"],
25+
"files": [
26+
"dist",
27+
"CHANGELOG.md"
28+
],
2629
"author": {
2730
"name": "Nate Moore",
2831
"email": "[email protected]",

0 commit comments

Comments
 (0)