@inquirer/core
12.1.1 · 22 Nov 2026MIT101.8M / weekRepositoryHomepagenpmAtom feed
5.1.2 is the newest release of 5.x.
In short
1 breaking1 deprecated
- Breaking
Breaking (low chance): The typing always defined a
validateconfig; but it was rarely used. It's been removed and prompts relying on it are expected to handle it on their own (no default value.) The types were updated accordingly and will raise issue if you're using typescript. - Deprecated
Deprecation warning (TS only): If your custom prompt extended
AsyncPromptConfig, it's been deprecated in favour ofPromptConfig
Release note
- Breaking
Breaking (low chance): The typing always defined a
validateconfig; but it was rarely used. It's been removed and prompts relying on it are expected to handle it on their own (no default value.) The types were updated accordingly and will raise issue if you're using typescript. - Deprecated
Deprecation warning (TS only): If your custom prompt extended
AsyncPromptConfig, it's been deprecated in favour ofPromptConfig
- import type { AsyncPromptConfig } from '@inquirer/core';
+ import type { PromptConfig } from '@inquirer/core';
- type Config = AsyncPromptConfig & { custom: 'value' };
+ type Config = PromptConfig<{ custom: 'value' }>;Note: Old interface works for now, but is marked as deprecated.
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.