Releases: SBoudrias/Inquirer.js
Releases · SBoudrias/Inquirer.js
inquirer@12.3.0
- Checkbox prompt: re-added support for an array of
default
to be provided listing pre-checked checkboxes. This is a legacy interface brought back given this feature removal was an involuntary breaking change during thev12
release. The preferred interface is to provide thechecked
property to choices{ value: 'bar', checked: true }
.
@inquirer/input@4.1.0
- New theme option
validationFailureMode: 'keep' | 'clear'
to control the behaviour when validation fails.
@inquirer/editor@4.2.0
- New theme option
validationFailureMode: 'keep' | 'clear'
to control the behaviour when validation fails.
@inquirer/confirm@5.1.0
- Pressing
tab
will now toggle between yes/no answers.
@inquirer/editor@4.1.0
- Expose a new
file
option covering all options supported byexternal-editor
.
@inquirer/core@10.1.0
usePrefix
will now work with custom statuses (before it only supported statuses used by core prompts.)
@inquirer/prompts@7.0.1
- Hoist peer-dependencies to remove warning when using
yarn
inquirer@12.0.0
@types/node
is now only apeerDependencies
. This reduces the install size of inquirer dramatically for folks not using Typescript. It's unlikely to break your builds if you used TS already, if it does runnpm install --dev @types/node
/yarn add --dev @types/node
.
@inquirer/prompts@7.0.0
@types/node
is now only apeerDependencies
. This reduces the install size of inquirer dramatically for folks not using Typescript. It's unlikely to break your builds if you used TS already, if it does runnpm install --dev @types/node
/yarn add --dev @types/node
.
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.