Releases: terkelg/prompts
Releases · terkelg/prompts
v1.2.1
v1.2.0
- 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
v1.1.0
v1.0.0
validate
option for NumberPrompt and TextPrompt. 🎉 #2stdin
andstdout
option for all prompts.- Tab functionality for
initial
values in TextPrompt and NumberPrompt. hint
option in SelectPrompt.float
,round
andincrement
option in NumberPrompt.fallback
text andinitial
value options for AutocompletePrompt.emoji
renderer option ... why not!- Better cursor in AutocompletePrompt.
- Updated documention
v0.1.14
v0.1.8
v0.1.7
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 toinitial
value orno matches found
if no initial value is defined.
Fixes
- Fix broken
style
function in NumberPrompt
Fix dynamic prompts
Fix broken dynamic prompts #53 after refactor #43. Thanks @WilliamChelman