@clack/core
1.6.0 · 9 Nov 2026MIT48.6M / weekRepositoryHomepagenpmAtom feed
1.6.0 is the newest release of 1.x.
In short
1 new1 fixed
Release note
Minor Changes
Adds support for Standard Schema validation
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.Libraries following the Standard Schema specification are now natively supported. For example, using Arktype:
import { text } from '@clack/prompts'; import { type } from 'arktype'; const name = await text({ message: 'Enter your email', + validate: type('string.email').describe('Invalid email'), });
Patch Changes
Fixed spaces and uppercase characters in multiline prompt
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.