Releases: SBoudrias/Inquirer.js
Releases · SBoudrias/Inquirer.js
v1.1.1
- Correctly ignore validation on list prompts. (previously the function would be run and throw an exception)
Instead of validation, you can:
- Pass a function as
choices
so you can filter out invalid choices - If you want the end user to see all choices, then make the invalid choice
Separators
. That way, they'll be seen, but won't be selectable.
v1.1.0
v1.0.3
v1.0.2
v1.0.1
Fixes
- Fix bug where inquirer would overwrite properties on the options passed in. Now we're making sure to not mutate your originals objects.
- On the checkbox prompt, we're now only hiding the help message once the user click the
space
key instead of any keys. - Drop
readline2
in favor of Node core version. This might fix some edge cases some users on windows encountered.
v1.0.0 - Rosebud
Say hello to promises!
The whole inquirer API is now based on promises!
- The base API interface is now
inquirer.prompt(questions).then()
. There's no more callback function. - Any async question functions is taking a promise as return value instead of requiring
this.async()
.
Breaking changes
filter
is now always run beforevalidate
#122inquirer.prompt
doesn't take a callback argument anymore
Bug fixes
- Fixed list not displayed disabled options correctly #321
And various other minor fixes and cleanup to the code base.