Skip to content

Commit b0e43c1

Browse files
[ci] release
1 parent b83cdcb commit b0e43c1

8 files changed

Lines changed: 55 additions & 38 deletions

File tree

.changeset/giant-doors-rest.md

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

.changeset/social-lands-talk.md

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

.changeset/weak-clocks-switch.md

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

.changeset/yellow-bats-listen.md

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

packages/core/CHANGELOG.md

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

3+
## 1.4.0
4+
5+
### Minor Changes
6+
7+
- 83428ac: Adds support for Standard Schema validation
8+
9+
Prompts accept an optional `validate()` function to validate user input. While a function provides more flexibility and customization over your validation, it can be a bit verbose. To help solve this, there are libraries that provide schema-based validation to make shorthand and type-strict validation substantially easier.
10+
11+
Libraries following the [Standard Schema specification](https://github.com/standard-schema/standard-schema) are now natively supported. For example, using [Arktype](https://arktype.io/):
12+
13+
```diff
14+
import { text } from '@clack/prompts';
15+
import { type } from 'arktype';
16+
17+
const name = await text({
18+
message: 'Enter your email',
19+
+ validate: type('string.email').describe('Invalid email'),
20+
});
21+
```
22+
23+
### Patch Changes
24+
25+
- 3dcb31a: Fixed spaces and uppercase characters in multiline prompt
26+
327
## 1.3.1
428

529
### 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.3.1",
3+
"version": "1.4.0",
44
"type": "module",
55
"main": "./dist/index.mjs",
66
"module": "./dist/index.mjs",

packages/prompts/CHANGELOG.md

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

3+
## 1.5.0
4+
5+
### Minor Changes
6+
7+
- 83428ac: Adds support for Standard Schema validation
8+
9+
Prompts accept an optional `validate()` function to validate user input. While a function provides more flexibility and customization over your validation, it can be a bit verbose. To help solve this, there are libraries that provide schema-based validation to make shorthand and type-strict validation substantially easier.
10+
11+
Libraries following the [Standard Schema specification](https://github.com/standard-schema/standard-schema) are now natively supported. For example, using [Arktype](https://arktype.io/):
12+
13+
```diff
14+
import { text } from '@clack/prompts';
15+
import { type } from 'arktype';
16+
17+
const name = await text({
18+
message: 'Enter your email',
19+
+ validate: type('string.email').describe('Invalid email'),
20+
});
21+
```
22+
23+
### Patch Changes
24+
25+
- adb6af9: docs: add jsdoc for `box`, `group`, and `group-multi-select`
26+
- 3dcb31a: Fixed spaces and uppercase characters in multiline prompt
27+
- 3170ed9: docs: add jsdoc for `autocomplete`, `confirm`, and `path` prompts
28+
- Updated dependencies [83428ac]
29+
- Updated dependencies [3dcb31a]
30+
- @clack/core@1.4.0
31+
332
## 1.4.0
433

534
### 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.4.0",
3+
"version": "1.5.0",
44
"type": "module",
55
"main": "./dist/index.mjs",
66
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)