Skip to content

Releases: terkelg/prompts

v1.2.1

15 Nov 23:10
Compare
Choose a tag to compare

Update kleur to version 3

v1.2.0

29 Oct 18:07
Compare
Choose a tag to compare
  • New onRender callback feature #101 by @DrunkenPoney
  • Added disable option #102 #96 #104 by @DrunkenPoney @pvdlg @SurionA
  • Fixed suggest/choices bug #98 by @DrunkenPoney
  • Expose all hardcoded strings as options to allow for translation #94 by @millette

Prompts recently hit 4 Million downloads a month. 🎉
Thanks to all the amazing contributors!

v1.1.1

19 Sep 16:25
Compare
Choose a tag to compare

Fix #86 #91
Huge thanks to @DrunkenPoney 🎉

v1.1.0

09 Sep 16:22
Compare
Choose a tag to compare
  • onSubmit and onCancel now support async/Promise returning functions. #83
  • answers object is now available in onSubmit/onCancel #85

Thanks @pvdlg

v1.0.0

27 Aug 08:13
Compare
Choose a tag to compare
  • validate option for NumberPrompt and TextPrompt. 🎉 #2
  • stdin and stdout option for all prompts.
  • Tab functionality for initial values in TextPrompt and NumberPrompt.
  • hint option in SelectPrompt.
  • float, round and increment option in NumberPrompt.
  • fallbacktext and initial value options for AutocompletePrompt.
  • emoji renderer option ... why not!
  • Better cursor in AutocompletePrompt.
  • Updated documention

v0.1.14

04 Aug 14:11
Compare
Choose a tag to compare

Fix #78

v0.1.8

13 Mar 02:56
Compare
Choose a tag to compare

Fix #57: Cannot use a function for message since 0.1.5

v0.1.7

11 Mar 22:31
Compare
Choose a tag to compare

New: Better default values
Most prompts now support default values with the initial property.
initial is used when a prompt is submitted without any values.
As soon as you start typing the initial value disappear. Hit tab to expand defaults NumberPrompt and all TextPrompt based prompts.

New: stdin and stdout option

  • This is going to be used to test prompts in future releases.

New: Improved NumberPrompt

  • Now supports floats too! Activate with the float option.
  • You can now enter negative values without having to use the arrow keys
  • Option to round float values with round
  • Option to change how much the arrow-keys increment with increment

New: hint added to SelectPrompt

New: Fallback message for AutocompletePrompt

  • New initial option
  • New option to define a fallback message when no results are found with fallback. Defaults to initial value or no matches found if no initial value is defined.

Fixes

  • Fix broken style function in NumberPrompt

Fix dynamic prompts

09 Mar 09:52
Compare
Choose a tag to compare

Fix broken dynamic prompts #53 after refactor #43. Thanks @WilliamChelman

v0.1.5

07 Mar 05:52
Compare
Choose a tag to compare
  • fix #26 thanks to @Unain #30
  • new inject feature by @lukeed #1 #13
  • fix default export by @lukeed #13
  • fix crash in number prompt when hitting delete before typing ba7a46f
  • default prompt choices title to value if not set #40
  • cancel prompt loop on abort by default #27