A collection of common interactive command line user interfaces.
editor
prompt: Fixed compatibility issue between default
and waitUserInput
options. #1405makeTheme
now performs deep merges of the theme objects.useState
doesn't require a default value anymore; in which case it'll default to undefined
useRef
doesn't require a default value anymore; in which case it'll default to undefined
Examples:
const [value, setValue] = useState<number>();
// value: number | undefined;
const [value, setValue] = useState<number>(1);
// value: number;
Separator
export.@inquirer/core
isn't exported from @inquirer/prompts
anymore. If you want to create custom prompts, import from the core package. This decision was made to disambiguate what breaks in each package - with prompts re-exporting core, any core breaking change (no matter how minor) caused a major version bump. Now only prompts interfaces breaking changes will be major on prompts. We're hoping this will simplify your usage of @inquirer/*
packages.usePagination()
doesn't return help tips anymore (and also doesn't take a theme
argument anymore.) Help tips are now solely the responsibility of prompt implementation.