Skip to content

Releases

[email protected]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
[email protected]
00ded07

[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

  • filter now supports asynchronous filters and the legacy this.async() callback — a promise-returning filter is awaited before the answer is stored (#2386)
  • validate supports the legacy this.async() callback and promise-returning validators; a string rejection (done('msg') or Promise.reject('msg')) is shown as the validation message (#2389)
  • Dependencies updated: theme keys set to undefined no 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]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
00ded07

@inquirer/[email protected]

What's new

  • Only plain digit lines jump to a numbered choice — inputs like 2e1 or 2.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]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
00ded07

@inquirer/[email protected]

What's new

  • Input must be a full index or a custom key match — 2x or 1.5 no 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]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
00ded07

@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

@inquirer/[email protected]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
00ded07

@inquirer/[email protected]

What's new

  • Optional number prompts left empty now call validate with undefined — 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]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
00ded07

@inquirer/[email protected]

What's new

  • The user theme now overrides locale defaults: theme.style keys (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]

Choose a tag to compare

@SBoudrias SBoudrias released this 10 Nov 22:05
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
00ded07

@inquirer/[email protected]

What's 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 (#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]

Choose a tag to compare

@SBoudrias SBoudrias released this 27 Oct 00:46
Immutable release. Only release title and notes can be modified.
[email protected]
672b77f

[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]

Choose a tag to compare

@SBoudrias SBoudrias released this 27 Oct 00:46
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
672b77f

@inquirer/[email protected]

What's new

  • The @xterm/headless terminal 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

  • The vitest and jest adapters are now covered by their own test suites through their public APIs, and the mock factories, buffered stream and screen are exercised end-to-end (#2346, #2347)

@inquirer/[email protected]

Choose a tag to compare

@SBoudrias SBoudrias released this 27 Oct 00:46
Immutable release. Only release title and notes can be modified.
@inquirer/[email protected]
672b77f

@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)