Skip to content

chore(deps): bump listr2 to v11 - #1175

Draft
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:bump-listr2
Draft

chore(deps): bump listr2 to v11#1175
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:bump-listr2

Conversation

@trivikr

@trivikr trivikr commented Aug 31, 2026

Copy link
Copy Markdown
Member

Bump needed to use figures.info which will be available in future versions of listr2@v11

Refs: #1174 (comment)


Upgrade listr2 from v9.0.5 to v11.0.1.

Also upgrade @listr2/prompt-adapter-inquirer from v3.0.5 to v4.2.6 because the adapter requires the corresponding listr2 v11 release.

Notable upstream changes in listr2

v10

  • Drops support for Node.js 20. The node-core-utils already requires Node.js 22.22.2 or newer.
  • Updates major internal dependencies and the package bundling mechanism.
  • Replaces colorette with Node.js util.styleText.
  • Includes compatibility handling for readline cleanup on modern Node.js releases.

See the listr2 v10.0.0, v10.1.0, and v10.2.0 release notes.

v11

  • Adds a distinct cancelled task state and runs task rollbacks when execution is interrupted.
  • Improves renderer performance through partial output updates.
  • Preserves terminal hyperlinks and derives wrapping width from the configured output stream.
  • Prevents output-listener leaks after tasks finish.
  • Uses Node.js EventEmitter instead of eventemitter3.
  • Simplifies error collection and removes context cloning from collected errors.

The v11 error-collection API has breaking changes, but node-core-utils does not use the affected Listr.errors or collectErrors APIs. Existing task lists and the Inquirer prompt integration require no source changes.

See the listr2 v11.0.0 release notes.

@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.81%. Comparing base (c903a16) to head (cc256e0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1175   +/-   ##
=======================================
  Coverage   57.81%   57.81%           
=======================================
  Files          53       53           
  Lines       10398    10398           
=======================================
  Hits         6012     6012           
  Misses       4386     4386           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Renegade334

Copy link
Copy Markdown
Member

Looks fine (no applicable breaking changes that I can identify) but we may as well wait for that change to land.

@trivikr
trivikr marked this pull request as draft August 31, 2026 20:14
@trivikr

trivikr commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

we may as well wait for that change to land

Marked as draft. Will update and make ready for review when figures.info is available in listr2@v11.

I'll still prefer to keep the listr2@v11 bump and removal of figures as separate PRs though.

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.

2 participants