Repository navigation
Releases
Releases · SBoudrias/Inquirer.js
[email protected]
Immutable
release. Only release title and notes can be modified.
[email protected]
Breaking changes
- Node.js 20 is no longer supported; the minimum is now Node 22 (
^22.22.2 || ^24.15.0 || >=26.0.0)
What's new
filternow supports asynchronous filters and the legacythis.async()callback — a promise-returning filter is awaited before the answer is stored (#2386)validatesupports the legacythis.async()callback and promise-returning validators; a string rejection (done('msg')orPromise.reject('msg')) is shown as the validation message (#2389)- Dependencies updated: theme keys set to
undefinedno longer crash prompts (#2390,@inquirer/[email protected]), localized prompts respect user theme overrides (#2371,@inquirer/[email protected]), and the select/rawlist index-input fixes (#2388/#2387)
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- Only plain digit lines jump to a numbered choice — inputs like
2e1or2.5(which JavaScript parses as a number) no longer move the cursor to item 21 or a fractional index; they fall through to search (#2388) - Node.js 20 is no longer supported; the minimum is now Node 22
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- Input must be a full index or a custom key match —
2xor1.5no longer select choice 2 or 1; surrounding whitespace is still accepted (#2387) - Node.js 20 is no longer supported; the minimum is now Node 22
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
Breaking changes
- Node.js 20 is no longer supported; the minimum is now Node 22 (
^22.22.2 || ^24.15.0 || >=26.0.0)
What's new
- Dependencies updated:
@inquirer/[email protected](themeundefinedkeys no longer crash prompts),@inquirer/[email protected](validate runs on empty optional answers),@inquirer/[email protected]and@inquirer/[email protected](strict digit-index parsing),@inquirer/[email protected](user theme overrides locale defaults)
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- Optional number prompts left empty now call
validatewithundefined— a custom validator can reject or accept an empty answer (this restores the pre-4.0.11 behavior; built-in range checks still run first) (#2391) - Node.js 20 is no longer supported; the minimum is now Node 22
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- The user theme now overrides locale defaults:
theme.stylekeys (maskedText,waitingMessage,keysHelpTip, …) apply in every language instead of being silently replaced by the locale strings; keys the user does not set stay localized (#2371) - Node.js 20 is no longer supported; the minimum is now Node 22
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- Theme keys explicitly set to
undefinedno longer override the defaults —deepMergeskipsundefinedvalues, so partial themes that list a key as undefined (e.g.{ prefix: undefined }) fall back to the default instead of crashing (#2390) - Node.js 20 is no longer supported; the minimum is now Node 22 (
^22.22.2 || ^24.15.0 || >=26.0.0)
[email protected]
Immutable
release. Only release title and notes can be modified.
[email protected]
What's new
- Dependencies updated:
@inquirer/[email protected]fixes the cursor overlapping the message when the password prompt is empty (#2360), and@inquirer/[email protected]fixes piped-stdin answers being dropped before the first render (#2359)
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- The
@xterm/headlessterminal is now loaded through a type-guarded resolution path, fixing interop issues under bundlers and alternative module loaders (#2343) - Jest adapter mocks are now marked as ES modules (
__esModule), so mocked prompts keep their named exports when the adapter runs under jest with swc/babel transforms (#2340)
Also in this release
@inquirer/[email protected]
Immutable
release. Only release title and notes can be modified.
@inquirer/[email protected]
What's new
- Dependencies updated:
@inquirer/[email protected]fixes the cursor overlapping the message when the password prompt is empty (#2360), and@inquirer/[email protected]fixes piped-stdin answers being dropped before the first render (#2359)