Inquirer.js

A collection of common interactive command line user interfaces.

MIT License

Downloads
263.1M
Stars
19.4K
Committers
229

Bot releases are hidden (Show)

Inquirer.js - Latest Release

Published by SBoudrias 3 months ago

  • Fix a memory leak in the core. A warning would appear once the same prompt is repeated > 10 times.

The fix is released in all other packages through a patch version.

Inquirer.js -

Published by SBoudrias 3 months ago

  • Improve rendering performance (should reduce appearance of screen flickering)

The improvement is released in all other packages through a patch version.

Inquirer.js -

Published by SBoudrias 3 months ago

  • Fix issue where hooks cleanup would wait until all timeouts resolve before triggering. Now hooks cleanup functions are run immediately when the user press ctrl+c or send other exit signals.
Inquirer.js -

Published by SBoudrias 3 months ago

  • Fix support for decimal numbers
Inquirer.js -

Published by SBoudrias 3 months ago

  • Enforce useEffect cleanup functions should only run once.
Inquirer.js -

Published by SBoudrias 3 months ago

  • Add support for short property on rawlist choices.
Inquirer.js -

Published by SBoudrias 3 months ago

All custom errors thrown from inquirer now includes a name attribute reflecting the error class. When checking if an error comes from inquirer AND using a bundler (like tsup, rollup, etc), instanceof might not work as you expect it to. So instead, it is recommend to follow this example:

- if (error instanceof ExitPromptError) {
+ if (error.name === 'ExitPromptError') {
Inquirer.js -

Published by SBoudrias 3 months ago

  • Fix broken backward compatibility issues with v9. Choice objects without value should default to use name as the value. Note: Please don't rely on this weird behaviour, but we fixed it since it was an unintended breaking change.
Inquirer.js -

Published by SBoudrias 3 months ago

Fix issue where vim/emacs keybindings would conflict with the search term input when typing letters used to navigate through the list.

Inquirer.js -

Published by SBoudrias 3 months ago

Fix issue where typing would disallow the following

search({
    ...,
    source: async (term: string = '') => {
        ...
    },
});
Inquirer.js -

Published by SBoudrias 3 months ago

  • Now includes a search prompt. import { search } from @inquirer/prompts
Inquirer.js -

Published by SBoudrias 3 months ago

  • Adds the new { type: 'search' } prompt.
Inquirer.js -

Published by SBoudrias 3 months ago

First release on a brand new search prompt! See documentation

Inquirer.js -

Published by SBoudrias 3 months ago

Inquirer.js -

Published by SBoudrias 3 months ago

Inquirer.js -

Published by SBoudrias 3 months ago

  • Fix: Re-added missing short on select and checkbox prompt.
  • Fix: Remove type requiring a close method on prompt class instances (it wasn't required.)
Inquirer.js -

Published by SBoudrias 3 months ago

  • Added optional short property to the choices. When defined, we'll use short instead of name when rendering the selection after submitting the prompt.
Inquirer.js -

Published by SBoudrias 3 months ago

  • Added optional short property to the choices. When defined, we'll use short instead of name when rendering the selection after submitting the prompt. This is added to maintain compatibility with the inquirer API.
Inquirer.js -

Published by SBoudrias 3 months ago

  • Re-implemented with Typescript.
  • Adding CJS support (now inquirer is publishes a dual-build CJS/ESM.)
  • All core prompts are now coming from @inquirer/prompt.
  • Custom prompts now should be implemented with @inquirer/core. Custom prompts built on [email protected] will keep working, but should plan a migration.
  • inquirer.ui.BottomBar is deleted.

My expectation is that this release should be a drop-in replacement for people using inquirer.prompt() and built-ins 🤞🏻. Please open an issue on Github if you run into issues migrating; it's a large rewrite and there might be a few sharp edges to cut! Hope you'll like this new release.