Skip to content

Releases: SBoudrias/Inquirer.js

@inquirer/checkbox@1.3.5

14 Jul 19:49
1814462
Compare
Choose a tag to compare
  • Choice list max width should always match the terminal width

@inquirer/prompts@2.3.1

14 Jul 19:46
b1b29c0
Compare
Choose a tag to compare

Fix bug where Common.js Typescript types definition were broken (should have no impact on ESM users)

@inquirer/testing@2.1.0

02 Jul 17:55
4c139f5
Compare
Choose a tag to compare
  • New getFullOutput() utility that'll return a raw string of everything that was written to the output stream
  • Ignore cursor hide/show ANSI code from raw output (keeping those made it harder to test raw output where those cleaning code would always be the only result due to how inquirer clean state.)

@inquirer/core@2.3.0

02 Jul 17:52
4c139f5
Compare
Choose a tag to compare
  • Fix bug where multiple prompts were allowed to run at the same time (and thus leak state)
  • Fix bug where a failed prompt state could leak to subsequent runs of other prompts

@inquirer/prompts@2.2.0

23 Jun 18:48
ba98109
Compare
Choose a tag to compare
  • Performance improvements
  • Includes updates in @inquirer/core@2.2.0

@inquirer/core@2.2.0

23 Jun 18:47
ba98109
Compare
Choose a tag to compare
  • When setting a state (useState), it'll only re-renders if the value changed.
  • When setting multiple states at once, we'll only trigger one re-renders if it happens inside a hook callback (previously each state change triggered one re-render.)

If you're setting multiple state in a callback from an async function (like setTimeout or a network call), those will not be merged in a single re-renders. For those case, you're better using a state object holding all values to reduce the amount of re-renders. Open to discuss this in #1251

@inquirer/editor@1.2.0

04 Jun 19:37
d48ecde
Compare
Choose a tag to compare

Now exposes the waitForUserInput option. Setting it to false will automatically launch the editor.

Be careful using this option as this mean the user will not have read the question/instruction before reaching the editor.

@inquirer/core@2.1.0

04 Jun 19:35
d48ecde
Compare
Choose a tag to compare

useEffect now pass the active Readline instance to the effect callback. e.g useEffect((readline) => ...

@inquirer/testing@2.0.0

03 Jun 20:57
8653186
Compare
Choose a tag to compare

Rewrote how raw input is handled. This shouldn't cause issue for most, but if you had specific or uncommon use of the testing framework, this could be a breaking change.

@inquirer/core@2.0.0

03 Jun 21:01
8653186
Compare
Choose a tag to compare

Major refactor of the core to allow multiple features:

  1. Prompt function now return cancelable promise (e.g input(...).cancel())
  2. Reduced amount of writes to the readline (should now be ~1 per render cycle)
  3. Make sure to restore the cursor on force exit.