- On windows, we will now use unicode characters whenever possible
inquirer/select2.3.0
- Help tip behaviors are now customizable through theme options.
inquirer/prompts5.0.0
- [Breaking 1384] `inquirer/core` isn't exported from `inquirer/prompts` anymore. If you want to create custom prompts, import from the core package. This decision was made to disambiguate what breaks in each package - with prompts re-exporting core, any core breaking change (no matter how minor) caused a major version bump. Now only prompts interfaces breaking changes will be major on prompts. We're hoping this will simplify your usage of `inquirer/*` packages.
inquirer/prompts4.3.3
- On windows, we will now use unicode characters whenever possible
inquirer/figures1.0.0
- Fork of [figures](https://github.com/sindresorhus/figures) to get new features and CJS support. We plan on maintaining it ourselves for now.
inquirer/core8.0.0
- [Breaking] `usePagination()` doesn't return help tips anymore (and also doesn't take a `theme` argument anymore.) Help tips are now solely the responsibility of prompt implementation.
inquirer/checkbox2.3.0
- Help tip behaviors are now customizable through theme options.
inquirer/prompts4.3.2
- Performance improvements (less flickering mainly noticeable on select/checkbox)
inquirer/input2.1.1
- Bugfix: Cursor position when no value/default value is rendered.
- Chore: Dependency bumps
inquirer/prompts4.3.0
- Errors thrown from prompts are now custom errors.
inquirer/core7.1.0
- Feat: Thrown errors from Inquirer are now all custom (so they can be filtered.) Those errors are exported from the package.
inquirer/prompts4.2.1
- Bugfix: When relying on asynchronous validation, the loader icon was broken.
- Chore: Added tests covering the prior issue to prevent future regression of loaders.
inquirer/core7.0.2
- Bugfix: `usePrefix` returned broken loader frames (bug introduced with the themability capabilities)
- Chore: Added tests covering the prior issue to prevent future regression.
inquirer/select2.1.0
* `inquirer/select` now support search when typing letters (aiming to imitate how the HTML `<select>` search works)
inquirer/checkbox2.1.0
- Allow customizing `renderSelectedChoices` with theme.
inquirer/prompts4.0.0
- All prompts are now themable. See each prompts documentation about the options available.
- BREAKING: The `message` option of each prompt must now be a `string`. It could previously be an asynchronous function. See [recipes for a migration option](https://github.com/SBoudrias/Inquirer.js#wait-for-config).
- Node 18 required
inquirer/core7.0.0
- Now exposes utilities to allow theming prompts (`type Theme`, `makeTheme`)
- `message` option isn't transformed by the core anymore - options are now passed through as-is to the prompt.
- Node 18 required
inquirer/core6.0.0
- Breaking: `usePagination` now requires `pageSize` to be passed in. The size of the pages should inform the help shown on the screen, and keeping this information in 2 areas leave a change the default value will mistmatch.
inquirer/checkbox1.5.0
New features!
- New `required` prompt config. Makes sure at least one choice is selected.
- New `validate` prompt config. Provide a function that'll validate the user selection with any logic you want (like enforcing a min or max selection amount.) Please use this config with parsimony since complicated validation scheme can lead to sub-optimal UX!
inquirer/select1.3.0
- Now supports the `loop: false` option. (This feature was available on `inquirer`, but not ported to new prompts yet)
inquirer/core5.1.0
- Introduces a new `useMemo` hook.
inquirer/checkbox1.4.0
- Now supports the `loop: false` option. (This feature was available on `inquirer`, but not ported to new prompts yet)
inquirer/core5.0.1
- Bugfix: infinite loop occurring when changing state from `useEffect` body. See 1307
inquirer/prompts3.1.1
- Fix: There was an issue with ESM/CJS imports interoperability that should now be fixed. Ref 1297
inquirer/core5.0.0
- Breaking (low chance): The typing always defined a `validate` config; but it was rarely used. It's been removed and prompts relying on it are expected to handle it on their own (no default value.) The types were updated accordingly and will raise issue if you're using typescript.
- Deprecation warning (TS only): If your custom prompt extended `AsyncPromptConfig`, it's been deprecated in favour of `PromptConfig`
diff
- import type { AsyncPromptConfig } from 'inquirer/core';
+ import type { PromptConfig } from 'inquirer/core';
- type Config = AsyncPromptConfig & { custom: 'value' };
+ type Config = PromptConfig<{ custom: 'value' }>;
Note: Old interface works for now, but is marked as deprecated.
inquirer/prompts3.1.0
- Review how force exit events are handled to make sure we restore the cursor properly.
- Various dependencies bump (including TS 5.2.2)
inquirer/core4.1.0
- Review how force exit events are handled to make sure we restore the cursor properly.
- Various dependencies bump (including TS 5.2.2)
inquirer/core4.0.0
Major rewrite of the core to rely on [node's async hooks](https://nodejs.org/api/async_hooks.html) for better isolation of each prompts. Relying on this means each prompt context is fully isolated (previously it would rely on the module level context.)
We expect this update to be transparent to most. Though some custom event handlers within `useEffect` could stop working. If you find any issues there, first please let us know - there might be thing to improve internally to make it transparent. The manual fix will likely be to explicitly define events callback as an [AsyncResource](https://nodejs.org/api/async_context.html#integrating-asyncresource-with-eventemitter).
Let us know how this works for you!
inquirer/core3.1.2
- Fix bug where a `setState` call triggered from `useEffect` might re-render the screen with the previous state.