Releases: SBoudrias/Inquirer.js
Releases · SBoudrias/Inquirer.js
v0.8.3
v0.8.2
v0.8.1
v0.8.0
New Feature
Add inquirer.createPromptModule()
who return a self contained inquirer.prompt
method. This allow to decouple multiple interfaces who could rely on inquirer.prompt
and different sets of prompts.
Example usage:
var prompt = inquirer.createPromptModule();
prompt.registerPrompt('long-list', LongListPrompt);
prompt([{
type: 'long-list',
message: 'Choose a menu item',
choices: [ /* etc */ ]
}], callback);
v0.7.3
v0.7.2
v0.7.1
v0.7.0
New look
Thanks to @sindresorhus, we have a set of new glyph and a refreshed style.
New feature
inquirer.registerPrompt()
allow to register custom prompts (plugins!) or overwriting defaults prompts (mocking!)inquirer.restoreDefaultPrompts()
to restore the defaults prompts
Bugs
checkbox
prompt failed when used with an asynchronousvalidate
method.
v0.6.0
Mainly an internal API update. We now use RxJS internally and provide a few public API surfacing this internal switch.
Reactive JS
- You can now pass an
Observable
in lieu of a question array. This allow you to programmatically (and progressively) fill up Inquirer question queue. - Using
inquirer.prompts(prompts).process.subscribe()
you can be notified each time a question is answered.
Features (not Rx specific)
filter
functions can now be async.
Bug Fix
filter
function on aninput
prompt is not re-runned on the previously filtered value.