A collection of common interactive command line user interfaces.
MIT License
Bot releases are hidden (Show)
number
prompt.chalk
with picolors
yoctocolors
to stay with Sindre's packages and reduce amount of provenance.)No impact expected, but it's a large changes in dependencies. Let us know if you run into any issues upgrading!
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;
@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.