Skip to content

Comments

build: update dependency @inquirer/prompts to v8 (main)#32566

Closed
angular-robot wants to merge 1 commit intoangular:mainfrom
angular-robot:ng-renovate/main-inquirer-prompts-8-x
Closed

build: update dependency @inquirer/prompts to v8 (main)#32566
angular-robot wants to merge 1 commit intoangular:mainfrom
angular-robot:ng-renovate/main-inquirer-prompts-8-x

Conversation

@angular-robot
Copy link
Contributor

@angular-robot angular-robot commented Feb 24, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@inquirer/prompts (source) 7.10.18.3.0 age adoption passing confidence

Release Notes

SBoudrias/Inquirer.js (@​inquirer/prompts)

v8.3.0

Compare Source

  • Fix: Keypresses happening before a prompt is rendered are now ignored.
  • Fix (checkbox): Element who're both checked and disabled are now always included in the returned array.
  • Feat (select/checkbox): Cursor will now hover disabled options of the list; but they still cannot be interacted with. This prevents the cursor jumping ahead in ways that can be confusing.
  • Feat: various new theme options to make all prompts content localizable.

Finally, see our new @inquirer/i18n package!

v8.2.1

Compare Source

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

v8.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

v8.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.

v8.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)

v8.0.1

Compare Source

v8.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.


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

@angular-robot angular-robot added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only] labels Feb 24, 2026
@angular-robot angular-robot force-pushed the ng-renovate/main-inquirer-prompts-8-x branch from 130f027 to 025591a Compare February 24, 2026 17:52
@angular-robot angular-robot force-pushed the ng-renovate/main-inquirer-prompts-8-x branch from 025591a to 255d212 Compare February 24, 2026 19:25
See associated pull request for more information.
@angular-robot angular-robot force-pushed the ng-renovate/main-inquirer-prompts-8-x branch from 255d212 to 1c942a4 Compare February 24, 2026 21:12
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this pull request Feb 25, 2026
See associated pull request for more information.

Closes angular#32566 as a pr takeover
alan-agius4 added a commit that referenced this pull request Feb 25, 2026
See associated pull request for more information.

Closes #32566 as a pr takeover
@angular-robot angular-robot deleted the ng-renovate/main-inquirer-prompts-8-x branch February 25, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: automation This PR is targeted to only merge into the branch defined in Github [bot use only]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants