Packages

@clack/prompts

1.9.0 · 9 Nov 2026MIT48.7M / weekRepositoryHomepagenpmAtom feed

Your version

1.5.0

29 May 2026Where it was published

1.9.0 is the newest release of 1.x.

In short

1 new1 fixed3 internal

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.