@inquirer/core
12.1.1 · 22 Nov 2026MIT101.8M / weekRepositoryHomepagenpmAtom feed
Upgrading @inquirer/core From 11.2.1 to 12.0.6
7 releases in betweennotes for 6
- 2+
- changes to make
- 0
- advisories fixed
- 4+
- new
- 1+
- fix
Counted from 6 of 7 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
Release by release
- 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
- Breaking
- New
Cancelling or aborting a prompt before its deferred first render no longer invokes the prompt view after settlement — the pending
setImmediateis 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.
- New
- New
The internal deferred-promise polyfill now uses
withResolverfrom@inquirer/typeinstead of a core-localPromisePolyfillclass (#2291).
- New
12.0.2no release note
- Breaking
This is a type-level breaking change for consumers of the core hook API.
- New
useStatesetter accepts a reducer function(currentValue) => nextValue
- Breaking
3 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.