Releases: SBoudrias/Inquirer.js
Releases · SBoudrias/Inquirer.js
@inquirer/[email protected]
All custom errors thrown from inquirer now includes a name
attribute reflecting the error class. When checking if an error comes from inquirer AND using a bundler (like tsup, rollup, etc), instanceof
might not work as you expect it to. So instead, it is recommend to follow this example:
- if (error instanceof ExitPromptError) {
+ if (error.name === 'ExitPromptError') {
[email protected]
- Fix broken backward compatibility issues with v9.
Choice
objects withoutvalue
should default to usename
as the value. Note: Please don't rely on this weird behaviour, but we fixed it since it was an unintended breaking change.
@inquirer/[email protected]
Fix issue where vim/emacs keybindings would conflict with the search term input when typing letters used to navigate through the list.
@inquirer/[email protected]
Fix issue where typing would disallow the following
search({
...,
source: async (term: string = '') => {
...
},
});
[email protected]
- Adds the new
{ type: 'search' }
prompt.
@inquirer/[email protected]
@inquirer/[email protected]
First release on a brand new search prompt! See documentation
@inquirer/[email protected]
- Now includes a
search
prompt.import { search } from @inquirer/prompts