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.