Skip to content

Releases: SBoudrias/Inquirer.js

v1.1.1

04 Jul 22:37
Compare
Choose a tag to compare
  • Correctly ignore validation on list prompts. (previously the function would be run and throw an exception)

Instead of validation, you can:

  1. Pass a function as choices so you can filter out invalid choices
  2. 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

25 Jun 19:34
Compare
Choose a tag to compare
  • Add a new editor prompt to launch an editor allowing to easily enter multiline content - or edit file content.

v1.0.3

25 Jun 19:36
Compare
Choose a tag to compare
  • Allow falsy values as option value in expand prompt.

v1.0.2

17 Apr 19:12
Compare
Choose a tag to compare
  • Fix expand prompt to correctly use the value key as the prompt answer.
  • Fix documentation saying the expand prompt support the filter key.

v1.0.1

16 Apr 23:59
Compare
Choose a tag to compare

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

04 Apr 04:10
Compare
Choose a tag to compare

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 before validate #122
  • inquirer.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.

v0.12.0

09 Feb 03:58
Compare
Choose a tag to compare
  • List prompts can now be navigated using Emacs bindings
  • expand prompt now use the short question property to display inline after a choice is selected
  • Bump and internal cleanup

v0.11.4

26 Jan 00:04
Compare
Choose a tag to compare
  • Fix error on environment where cli-width return 0 (we're now defaulting to 80 chars width)

v0.11.3

20 Jan 07:22
Compare
Choose a tag to compare
  • Fix bug with astral symbols not being calculated correctly in the width of a line
  • expand prompt now trim the whitespace around the answer

v0.11.2

11 Jan 06:23
Compare
Choose a tag to compare
  • Some display fixes on Windows (mainly) and Unix system.
  • Internal refactoring of the rendering logic.