Skip to content

Releases: SBoudrias/Inquirer.js

@inquirer/[email protected]

11 Nov 20:14
Compare
Choose a tag to compare

@inquirer/[email protected]

11 Nov 20:13
Compare
Choose a tag to compare
  • usePrefix will now work with custom statuses (before it only supported statuses used by core prompts.)

@inquirer/[email protected]

26 Oct 18:15
Compare
Choose a tag to compare
  • Hoist peer-dependencies to remove warning when using yarn

[email protected]

06 Oct 20:52
Compare
Choose a tag to compare
  • @types/node is now only a peerDependencies. This reduces the install size of inquirer dramatically for folks not using Typescript. It's unlikely to break your builds if you used TS already, if it does run npm install --dev @types/node/yarn add --dev @types/node.

@inquirer/[email protected]

06 Oct 20:52
Compare
Choose a tag to compare
  • @types/node is now only a peerDependencies. This reduces the install size of inquirer dramatically for folks not using Typescript. It's unlikely to break your builds if you used TS already, if it does run npm install --dev @types/node/yarn add --dev @types/node.

[email protected]

27 Sep 19:59
Compare
Choose a tag to compare
  • Now exports base utility Typescript types: import type { Question, DistinctQuestion, Answers } from 'inquirer';

You should use as follow to keep the inference working properly:

const questions = [
    { ... }
] as const satisfies Question[];
// If you're not using inquirer plugins, `Question` could alternatively be replaced by `DistinctQuestion` for stricter checks.

[email protected]

17 Sep 19:11
Compare
Choose a tag to compare
  • Fix #1555: when behaviour changed unexpectedly when returning a falsy value.

[email protected]

15 Sep 21:40
Compare
Choose a tag to compare

No technical breaking changes; but we changed the style of the question prefix once the answer is provided. Once a question is answer, the prefix becomes a tick mark (previously it was the same ? as when the prompt is idle.)

This is theme-able, and so can be overwritten to with theme.prefix.

@inquirer/[email protected]

15 Sep 21:39
Compare
Choose a tag to compare

No technical breaking changes; but we changed the style of the question prefix once the answer is provided. Once a question is answer, the prefix becomes a tick mark (previously it was the same ? as when the prompt is idle.)

This is theme-able, and so can be overwritten to with theme.prefix.

@inquirer/[email protected]

15 Sep 21:37
Compare
Choose a tag to compare
  • theme.prefix can now be defined per status: { idle: string; done: string; }
  • theme.prefix changed the default prefix.done style to a tick mark (previously was the same ? as when idle.)
  • theme.message now takes a second argument representing the status of the prompt; (message: string, status: 'idle' | 'loading' | 'done') => string
  • Bump dependencies & an internal refactor of exit handlers.