Skip to content

feat: add async validation#583

Draft
43081j wants to merge 1 commit into
mainfrom
jg/async-validators
Draft

feat: add async validation#583
43081j wants to merge 1 commit into
mainfrom
jg/async-validators

Conversation

@43081j

@43081j 43081j commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

This adds the ability to have async validation to all prompts.

For now, only the text prompt will render a validating message.

Every other prompt needs its own individual follow-up PR to add support for rendering the new validating state. They will all accept an async validator but will not show a message while validating right now.

Closes #92

Type of change

  • Bug fix
  • Feature
  • Refactor (no behavior change)
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

This adds the ability to have async validation to all prompts.

**For now, only the text prompt will render a validating message.**

Every other prompt needs its own individual follow-up PR to add support
for rendering the new `validating` state. They will all accept an async
validator but will not show a message while validating right now.
@changeset-bot

changeset-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c87f6ae

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clack/prompts Minor
@clack/core Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 2, 2026

Copy link
Copy Markdown

commit: c87f6ae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Async validation

1 participant