Releases: SBoudrias/Inquirer.js
Releases · SBoudrias/Inquirer.js
inquirer@11.1.0
- Now exports base utility Typescript types:
import type { Question, DistinctQuestion, Answers } from 'inquirer';
You should use as follow to keep the inference working properly:
const questions = [
{ ... }
] as const satisfies Question[];
// If you're not using inquirer plugins, `Question` could alternatively be replaced by `DistinctQuestion` for stricter checks.
inquirer@11.0.2
- Fix #1555:
when
behaviour changed unexpectedly when returning a falsy value.
inquirer@11.0.0
No technical breaking changes; but we changed the style of the question prefix
once the answer is provided. Once a question is answer, the prefix becomes a tick mark (previously it was the same ?
as when the prompt is idle.)
This is theme-able, and so can be overwritten to with theme.prefix
.
@inquirer/prompts@6.0.0
No technical breaking changes; but we changed the style of the question prefix
once the answer is provided. Once a question is answer, the prefix becomes a tick mark (previously it was the same ?
as when the prompt is idle.)
This is theme-able, and so can be overwritten to with theme.prefix
.
@inquirer/core@9.2.0
theme.prefix
can now be defined per status:{ idle: string; done: string; }
theme.prefix
changed the defaultprefix.done
style to a tick mark (previously was the same?
as when idle.)theme.message
now takes a second argument representing the status of the prompt;(message: string, status: 'idle' | 'loading' | 'done') => string
- Bump dependencies & an internal refactor of exit handlers.
inquirer@10.2.2
- Fix the
filter
option not working. - The
signal: AbortSignal
didn't work with class based prompts (OSS plugins.) Now it should work consistently with legacy style prompts.
inquirer@10.2.1
- Fix
expand
prompt being broken if a Separator was in thechoices
array.
@inquirer/expand@2.3.0
- Add support for
Separator
in thechoices
array.
inquirer@10.2.0
- Includes various fixes & new features to the different built-in prompts
- Fix: Major rework of the Typescript types. Hoping to reduce the amount of finicky type errors (or wrong types) you might've ran into.
@inquirer/select@2.5.0
- Choices can now be an array of string.
- Includes
@inquirer/core@9.1.0
adding support for{ signal: AbortSignal }
in the context options to programatically cancel a prompt.