unstale

npm / listr2

listr2

What changed in listr2 4 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

25 breaking15 new APIs and options1 performance9 behavior and defaults2 tooling9 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

listr2 1126 changes

Breaking changes 8

  • The cloneObject export has been removed; use structuredClone or your own clone instead.

    11.0.0upgrade guide

  • collectErrors no longer accepts 'minimal' or 'full'; use true for the previous 'minimal' behavior.

    11.0.0release notesupgrade guide

  • The enquirer prompt adapter is no longer guaranteed on Node.js 26 and above; prefer the inquirer adapter on newer Node.js versions.

    11.0.0upgrade guide

  • listr2 no longer provides eventemitter3 transitively; install it directly if your project relied on that dependency.

    11.0.0upgrade guide

  • Listr.errors is now ListrError[] or null; with the default collectErrors setting, it is null instead of an empty array.

    11.0.0release notes

  • When collection is disabled, errors is null rather than an empty array; collection is shared from the root, so enabling it only on a subtask does not collect errors.

    11.0.0upgrade guide

  • ListrError.ctx is removed, and collected errors no longer contain cloned context.

    11.0.0release notesupgrade guide

  • On interruption, tasks without a rollback are marked CANCELLED instead of FAILED; the process exits after in-flight rollbacks settle.

    11.0.0release notesupgrade guide

New APIs and options 5

  • A separate TITLE_RESET event is emitted when a title is reset.

    11.3.0release notes

  • Adds the info figure for developers to use.

    11.1.0release notes

  • Cancel a run programmatically without an operating-system signal, rolling back or cancelling in-flight tasks as Ctrl+C does.

    11.0.0upgrade guide

  • A helper is available to check whether a task was cancelled.

    11.0.0upgrade guide

  • The task wrapper exposes the run's AbortSignal so task functions can cooperatively cancel asynchronous work when interrupted.

    11.0.0upgrade guide

Performance 1

  • The renderer uses partial updates to render the task list.

    11.0.0release notes

Behavior and default changes 6

  • Retries stop when a task returns task.fail.

    11.4.0release notes

  • Setting a task's title to undefined removes the title.

    11.3.0release notes

  • On SIGINT, in-flight task rollbacks run before exit(127); exit waits until all in-flight rollbacks settle.

    11.0.0upgrade guide

  • The library replaces eventemitter3 with Node's built-in EventEmitter.

    11.0.0release notes

  • The default renderer uses smaller, targeted terminal writes wrapped in synchronized-output markers on supporting terminals, reducing flicker without changing visible output.

    11.0.0upgrade guide

  • Setting a task's streamed output to null resets it.

    11.0.0release notesupgrade guide

Fixes and other changes 6

  • The test renderer now serializes the cancelled state.

    11.0.0release notes

  • cleanseAnsi now preserves OSC-8 hyperlinks.

    11.0.0release notes

  • Finalized tasks no longer recreate output buffers and reattach listeners on every render, preventing heap exhaustion during long runs with rapidly streamed output.

    11.0.0upgrade guide

  • Finalized tasks no longer leak output listeners.

    11.0.0release notes

  • Task output now preserves OSC-8 hyperlinks, bells, and other formatting while stripping cursor and erase codes that disrupt rendering.

    11.0.0upgrade guide

  • The renderer derives wrap width from the configured output stream.

    11.0.0release notesupgrade guide

listr2 107 changes

Breaking changes 2

  • Enquirer mostly fails on Node.js v24; the notes recommend using the enquirer prompt adapter with caution.

    10.0.0upgrade guide

  • Node.js 20 support was dropped because it is reaching end of life.

    10.0.0release notesupgrade guide

New APIs and options 1

  • ESM is now supported for module distribution; CJS is no longer bundled but remains supported.

    10.0.0upgrade guide

Behavior and default changes 1

  • Using log-update v7+ changes terminal rendering, so snapshot tests might look different.

    10.0.0upgrade guide

Tooling 1

  • Replaces colorette with util.styleText for styling output.

    10.2.0release notes

Fixes and other changes 2

  • Fixes a problem with statically passed values.

    10.1.2release notes

  • Suppresses specific readline close errors during cancellation cleanup on Node.js 22 and 24, while still allowing prompts to be cancelled and cleaned up.

    10.0.0release notes

listr2 91 changes

Fixes and other changes 1

listr2 621 changes

Breaking changes 12

  • Renames the default renderer option collapse to collapseSubtasks.

    6.0.0release notes

  • The retry property withError is renamed to error.

    6.0.0release notes

  • Error collection now defaults to false instead of minimal, making it opt-in.

    6.0.0release notes

  • The Listr err field is renamed to errors, with error collection shared instead of injected.

    6.0.0release notes

  • The manager err field is renamed to errors.

    6.0.0release notes

  • Replaces nonTTYRenderer in Listr tasks.

    6.0.0release notes

  • Replaces rendererFallback on the main Listr task list.

    6.0.0release notes

  • Replaces nonTTYRendererOptions in Listr tasks.

    6.0.0release notes

  • The minimum usable Node.js version is increased to 16.

    6.0.0release notes

  • Replaces rendererSilent on the main Listr task list.

    6.0.0release notes

  • The default fallback renderer changes from verbose to simple.

    6.0.0release notes

  • The default behavior for handling longer renderer output changes to wrap.

    6.0.0release notes

New APIs and options 7

  • Process output can overwrite streams.

    6.0.0release notes

  • Adds process hooks that hook the terminal to obstruct anything while rendering.

    6.0.0release notes

  • The renderer gains an eager option.

    6.0.0release notes

  • Renderers can use pluggable components through shared constants, allowing user configuration.

    6.0.0release notes

  • The spinner is exposed through its own stateful class.

    6.0.0release notes

  • The task path is exposed directly from the task.

    6.0.0release notes

  • Adds a delay option for task retries.

    6.0.0release notes

Behavior and default changes 1

  • Adds util.format splat support to output, titles, and skips.

    6.0.0release notes

Tooling 1

listr2 51 changes

Breaking changes 1

listr2 45 changes

Breaking changes 2

  • By default, error collection is minimal: it collects only error messages and where errors were encountered, not the context and task.

    4.0.0release notes

  • Support for Node 10 has been dropped.

    4.0.0release notes

New APIs and options 2

  • The package now supports ESM while continuing to support CommonJS.

    4.0.0release notes

  • Use secure to disable the error collection mechanism fully.

    4.0.0release notes

Behavior and default changes 1

  • Everything is now exported from the index after the build methodology changed.

    4.0.0release notes