Skip to content

Commit

Permalink
[ci] release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 19, 2024
1 parent 801246b commit 053c962
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 52 deletions.
38 changes: 0 additions & 38 deletions .changeset/lucky-maps-beam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/swift-jars-destroy.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thin-moose-tease.md

This file was deleted.

42 changes: 42 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# @clack/core

## 0.4.0

### Minor Changes

- 801246b: Adds a new `signal` option to support programmatic prompt cancellation with an [abort controller](https://kettanaito.com/blog/dont-sleep-on-abort-controller).

One example use case is automatically cancelling a prompt after a timeout.

```ts
const shouldContinue = await confirm({
message: "This message will self destruct in 5 seconds",
signal: AbortSignal.timeout(5000),
});
```

Another use case is racing a long running task with a manual prompt.

```ts
const abortController = new AbortController();

const projectType = await Promise.race([
detectProjectType({
signal: abortController.signal,
}),
select({
message: "Pick a project type.",
options: [
{ value: "ts", label: "TypeScript" },
{ value: "js", label: "JavaScript" },
{ value: "coffee", label: "CoffeeScript", hint: "oh no" },
],
signal: abortController.signal,
}),
]);

abortController.abort();
```

### Patch Changes

- 51e12bc: Improves types for events and interaction states.

## 0.3.5

### Patch Changes
Expand Down
7 changes: 5 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clack/core",
"version": "0.3.5",
"version": "0.4.0",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand All @@ -22,7 +22,10 @@
"url": "https://github.com/natemoo-re/clack/issues"
},
"homepage": "https://github.com/natemoo-re/clack/tree/main/packages/core#readme",
"files": ["dist", "CHANGELOG.md"],
"files": [
"dist",
"CHANGELOG.md"
],
"keywords": [
"ask",
"clack",
Expand Down
45 changes: 45 additions & 0 deletions packages/prompts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# @clack/prompts

## 0.9.0

### Minor Changes

- 801246b: Adds a new `signal` option to support programmatic prompt cancellation with an [abort controller](https://kettanaito.com/blog/dont-sleep-on-abort-controller).

One example use case is automatically cancelling a prompt after a timeout.

```ts
const shouldContinue = await confirm({
message: "This message will self destruct in 5 seconds",
signal: AbortSignal.timeout(5000),
});
```

Another use case is racing a long running task with a manual prompt.

```ts
const abortController = new AbortController();

const projectType = await Promise.race([
detectProjectType({
signal: abortController.signal,
}),
select({
message: "Pick a project type.",
options: [
{ value: "ts", label: "TypeScript" },
{ value: "js", label: "JavaScript" },
{ value: "coffee", label: "CoffeeScript", hint: "oh no" },
],
signal: abortController.signal,
}),
]);

abortController.abort();
```

### Patch Changes

- f9f139d: Adapts `spinner` output for static CI environments
- Updated dependencies [801246b]
- Updated dependencies [51e12bc]
- @clack/core@0.4.0

## 0.8.2

### Patch Changes
Expand Down
7 changes: 5 additions & 2 deletions packages/prompts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clack/prompts",
"version": "0.8.2",
"version": "0.9.0",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand All @@ -22,7 +22,10 @@
"url": "https://github.com/natemoo-re/clack/issues"
},
"homepage": "https://github.com/natemoo-re/clack/tree/main/packages/prompts#readme",
"files": ["dist", "CHANGELOG.md"],
"files": [
"dist",
"CHANGELOG.md"
],
"author": {
"name": "Nate Moore",
"email": "[email protected]",
Expand Down

0 comments on commit 053c962

Please sign in to comment.