github SBoudrias/Inquirer.js @inquirer/core@5.0.0

latest releases: inquirer@11.0.2, inquirer@11.0.1, @inquirer/type@2.0.0...
12 months ago
  • Breaking (low chance): The typing always defined a validate config; 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.
  • Deprecation warning (TS only): If your custom prompt extended AsyncPromptConfig, it's been deprecated in favour of PromptConfig
- 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.

Don't miss a new Inquirer.js release

NewReleases is sending notifications on new releases.