Packages

@inquirer/core

12.1.1 · 22 Nov 2026MIT101.8M / weekRepositoryHomepagenpmAtom feed

Upgrading @inquirer/core From 8.1.0 to 12.1.1

68 releases in betweennotes for 30

Other targets from 8.1.0Newest 8.x8.2.4
11.0.0, 10.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below.
  1. 8.1.0yours
  2. 5 releases
  3. 9.0.0major
  4. 13 releases
  5. 10.0.0major
  6. 23 releases
  7. 11.0.0major
  8. 15 releases
  9. 12.0.0major
  10. 5 releases
  11. 12.0.6breaking
  12. 1 release
  13. 12.1.1target
3+
changes to make
0
advisories fixed
10+
new
14+
fixes

Counted from 30 of 68 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking12.0.6
  • Breaking12.0.0
  • Breaking9.0.0

Release by release

  1. 12.1.1

    22 Nov 20261 new · 4 fixes
    • New

      Node.js 20 support is restored (#2449); it will be dropped properly in the next major release

    • Fixed

      Ctrl+D on a TTY prompt now rejects it with an ExitPromptError (like Ctrl+C) instead of leaving it pending forever

    • Fixed

      State set by effects during a render flush is now painted — search prompts show their loading spinner and clear stale errors while a fetch is pending after a keystroke

    • Fixed

      Terminal rows are counted after wrapping using display-column widths — the cursor no longer lands on the wrong line for wide characters (CJK) in messages and answers

    • Fixed

      The readline line stays in sync with the displayed prompt value across prompts (rejected input, arrow-key picks, help expansion)

  2. 12.1.0

    10 Nov 20262 new
    • New

      Theme keys explicitly set to undefined no longer override the defaults — deepMerge skips undefined values, so partial themes that list a key as undefined (e.g. { prefix: undefined }) fall back to the default instead of crashing

    • New

      Node.js 20 is no longer supported; the minimum is now Node 22 (^22.22.2 || ^24.15.0 || >=26.0.0)

  3. 12.0.6

    Migration needed27 Oct 2026
    • Breaking

      Answers piped into a prompt are no longer silently dropped: the first-render deferral introduced for stale-keystroke discarding (#1303) is now gated on TTY input, so stdin data flowing in before the keypress handlers attach is consumed instead of discarded. Fixes intermittent hangs (30s timeouts) when answers are written to the child's stdin at spawn, as seen in Deno-based harnesses

  4. 12.0.5

    19 Oct 20261 new
    • New

      Cancelling or aborting a prompt before its deferred first render no longer invokes the prompt view after settlement — the pending setImmediate is now cancelled during cleanup, preventing keypress listener reinstalls and writes to an ended output stream (#2318, relates to #1816). Preserves the buffered-input behavior from #2007 and extends the settlement cleanup contract from #2255.

  5. 12.0.4

    4 Oct 20261 new
    • New

      The internal deferred-promise polyfill now uses withResolver from @inquirer/type instead of a core-local PromisePolyfill class (#2291).

  6. 12.0.3

    7 Sep 20261 fix
    • Fixed

      Fixed a race where keystrokes batched in the same tick as the key that settled a prompt could still reach useKeypress handlers after the prompt was done, cancelled, or aborted. Hook effects are now cleared in the synchronous settlement path (#2255, closes #1816).

  7. 12.0.2no release note

  8. 12.0.1

    26 Aug 20261 new
    • New

      Prettified prompt and theme types for better IDE display: makeTheme now returns a fully flattened theme type, and createPrompt expands the config's top-level keys in the IDE while staying assignable to Config (#2239).

11 other lines we could not sort, mostly version bumps
  • isUpKey/isDownKey now accepts a second parameters keybindings: ['vim', 'emacs'] that'll match up/down actions done with the keybindings specific to those editors.

    10.3.0
  • Replace 3rd party dependency strip-ansi in favour of Node built-in stripVTControlCharacters util.

    10.1.5
  • usePrefix will now work with custom statuses (before it only supported statuses used by core prompts.)

    10.1.0
  • theme.prefix can now be defined per status: { idle: string; done: string; }

    9.2.0
  • theme.prefix changed the default prefix.done style to a tick mark (previously was the same ? as when idle.)

    9.2.0
  • theme.message now takes a second argument representing the status of the prompt; (message: string, status: 'idle' | 'loading' | 'done') => string

    9.2.0
  • Bump dependencies & an internal refactor of exit handlers.

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

    9.0.9
  • Enforce useEffect cleanup functions should only run once.

    9.0.7
  • Performance improvements to usePrefix() when switched to loading mode. There's now a little delay of 300ms before displaying the loader to avoid flickering when fast validation occurs.

    8.2.3

5 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.