Skip to content

Update dependency inquirer to v13#230

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/inquirer-13.x
Open

Update dependency inquirer to v13#230
renovate[bot] wants to merge 1 commit intomainfrom
renovate/inquirer-13.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 8, 2025

This PR contains the following updates:

Package Change Age Confidence
inquirer (source) ^12.4.0^13.0.0 age confidence

Release Notes

SBoudrias/Inquirer.js (inquirer)

v13.2.4

Compare Source

v13.2.3

Compare Source

  • chore: Switch wrap-ansi with fast-wrap-ansi

v13.2.2

Compare Source

  • Typescript disallow type: 'list' unless there's a plugin installed under that name. (list was replaced by select and marked as deprecated for a few released, v13.0.0 removed the alias.)

v13.2.1

Compare Source

  • Regression: previous answers weren't provided to the validate functions as the second arguments.

v13.2.0

Compare Source

  • feat(search): Add support for default.
  • feat(rawlist): Add support for description of choices. That information is displayed under the list when the choice is highlighted.
  • Bump dependencies

v13.1.0

Compare Source

  • Feat: rawlist now supports default option.
  • Fix: select now infer return type properly when passing a choices array of string literals.

v13.0.2

Compare Source

  • Fix Typescript not discovering types when moduleResolution is set to commonjs (you probably want to fix that in your project if it's still in your tsconfig)

v13.0.1

Compare Source

v13.0.0

Compare Source

Release Notes

🚨 Breaking Changes

This is a major release that modernizes the codebase for Node.js ≥ 20.

ESM Only - No More CommonJS Support

Impact: All packages are now ESM-only. CommonJS imports are no longer supported.

If you're on modern Node versions (≥ 20), this should be transparent and have no impact.

Node.js Version Requirement

Minimum Node.js version is now 20.x

Node.js versions below 20 are no longer supported. Please upgrade to Node.js 20 or later.

Node min versions: >=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0

Deprecated APIs Removed

The following deprecated APIs have been removed after being deprecated in previous releases:

list prompt alias removed (affects inquirer package only)

The list alias has been removed from the inquirer package. This only impacts users of the legacy inquirer package, not users of @inquirer/prompts or individual prompt packages.

// ❌ No longer available (inquirer package only)
import inquirer from 'inquirer';
const answer = await inquirer.prompt([
  { type: 'list', name: 'choice', message: 'Pick one:', choices: ['a', 'b'] }
]);

// ✅ Use 'select' instead
import inquirer from 'inquirer';
const answer = await inquirer.prompt([
  { type: 'select', name: 'choice', message: 'Pick one:', choices: ['a', 'b'] }
]);
helpMode theme property removed
// ❌ No longer available
const answer = await select({
  theme: { helpMode: 'never' }
});

// ✅ Use theme.style.keysHelpTip instead
const answer = await select({
  theme: {
    style: {
      keysHelpTip: () => undefined // or your custom styling function
    }
  }
});

This affects the following prompts:

  • @inquirer/checkbox
  • @inquirer/search
  • @inquirer/select
instructions config property removed
// ❌ No longer available
const answer = await checkbox({
  instructions: 'Custom instructions'
});

// ✅ Use theme.style.keysHelpTip instead
const answer = await checkbox({
  theme: {
    style: {
      keysHelpTip: (text) => 'Custom instructions'
    }
  }
});

This affects the following prompts:

  • @inquirer/checkbox
  • @inquirer/search
  • @inquirer/select
cancel() method removed

The cancel() method on prompt return custom Promise has been removed.

// ❌ No longer available
const answerPromise = input({ message: 'Name?' });
answerPromise.cancel();
const answer = await answerPromise;

// ✅ Use AbortSignal instead
const controller = new AbortController();
const answer = await input(
  { message: 'Name?' },
  { signal: controller.signal }
);
controller.abort();
Color Library Change: yoctocolors → Node.js styleText

Internal change: The project now uses Node.js built-in util.styleText() instead of the yoctocolors package for terminal colors. This makes Inquirer smaller and reduces risks of vulnerabilities coming from transitive dependencies.

v12.11.1

Compare Source

  • [Node 18 compat] Downgraded to mute-stream@​2 to maintain Node 18 compatibility.
  • [Typescript] Allow passing a Partial<{ ... }> type as pre-filled answers.

v12.11.0

Compare Source

  • feat @inquirer/input: Now support simple RegExp validation with pattern/patternError.
  • fix @inquirer/editor: Fix typo s/waitForUseInput/waitForUserInput
  • Bump dependencies

Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/inquirer-13.x branch 2 times, most recently from 97e9850 to ac50dc5 Compare December 16, 2025 18:39
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch 5 times, most recently from 6f72070 to 3236471 Compare December 27, 2025 15:41
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch from 3236471 to bf7b498 Compare December 29, 2025 03:02
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch 2 times, most recently from b4b2771 to 1260632 Compare January 16, 2026 07:25
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch from 1260632 to 4876568 Compare January 23, 2026 18:56
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch from 4876568 to ad28e91 Compare January 31, 2026 12:09
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch from ad28e91 to 1e03d62 Compare February 12, 2026 12:14
@renovate renovate bot force-pushed the renovate/inquirer-13.x branch from 1e03d62 to 72311e4 Compare February 17, 2026 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants