Skip to content

Releases: SBoudrias/Inquirer.js

v0.8.3

04 May 03:40
Compare
Choose a tag to compare
  • when prompt option can now simply be a boolean value (before it needed to be a function).

v0.8.2

23 Mar 06:16
Compare
Choose a tag to compare
  • Revert usage of ttys module that was breaking Windows or non ttys terminals.

This release is really just a fix for version 0.8.1.

v0.8.1

21 Jan 06:57
Compare
Choose a tag to compare
  • use ttys module for a more reliable stdout.
  • Remove/cleanup some dependencies for faster load time.

v0.8.0

25 Sep 03:58
Compare
Choose a tag to compare

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

22 Sep 00:16
Compare
Choose a tag to compare

Bug fix

  • Correctly detect when to add a : to the end of a question phrase if it the question contains color codes.

v0.7.2

15 Sep 02:51
Compare
Choose a tag to compare

Bug

  • Update checkbox icons (some people had issue with their terminal fonts)

Feature

  • message can now also be a function

v0.7.1

02 Sep 00:32
Compare
Choose a tag to compare
  • Fix bug with checkbox prompt validation

v0.7.0

01 Sep 05:11
Compare
Choose a tag to compare

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 asynchronous validate method.

v0.6.0

07 Aug 05:39
Compare
Choose a tag to compare

Mainly an internal API update. We now use RxJS internally and provide a few public API surfacing this internal switch.

Reactive JS

See full doc for details

  • 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 an input prompt is not re-runned on the previously filtered value.

0.5.1

27 May 03:36
Compare
Choose a tag to compare
  • Update the color handling to use chalk. This will allow Inquirer to respect the --color and --no-color command line flags.