Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency inquirer to v12 #88

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Oct 6, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
inquirer (source) ^0.12.0 -> ^12.0.0 age adoption passing confidence

Release Notes

SBoudrias/Inquirer.js (inquirer)

v12.1.0

Compare Source

v12.0.1

Compare Source

v12.0.0

Compare Source

  • @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.

v11.1.0

Compare Source

  • 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.

v11.0.2

Compare Source

  • Fix #​1555: when behaviour changed unexpectedly when returning a falsy value.

v11.0.1

Compare Source

v11.0.0

Compare Source

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.

v10.2.2

Compare Source

  • Fix the filter option not working.
  • The signal: AbortSignal didn't work with class based prompts (OSS plugins.) Now it should work consistently with legacy style prompts.

v10.2.1

Compare Source

  • Fix expand prompt being broken if a Separator was in the choices array.

v10.2.0

Compare Source

  • Includes various fixes & new features to the different built-in prompts
  • Fix: Major rework of the Typescript types. Hoping to reduce the amount of finicky type errors (or wrong types) you might've ran into.

v10.1.8

Compare Source

v10.1.7

Compare Source

v10.1.6

Compare Source

v10.1.5

Compare Source

v10.1.4

Compare Source

v10.1.3

Compare Source

v10.1.2

Compare Source

v10.1.1

Compare Source

v10.1.0

Compare Source

  • Adds the new { type: 'search' } prompt.

v10.0.4

Compare Source

v10.0.3

Compare Source

v10.0.2

Compare Source

v10.0.1

Compare Source

v10.0.0

Compare Source

  • Re-implemented with Typescript.
  • Adding CJS support (now inquirer is publishes a dual-build CJS/ESM.)
  • All core prompts are now coming from @inquirer/prompt.
  • Custom prompts now should be implemented with @inquirer/core. Custom prompts built on [email protected] will keep working, but should plan a migration.
  • inquirer.ui.BottomBar is deleted.

My expectation is that this release should be a drop-in replacement for people using inquirer.prompt() and built-ins 🤞🏻. Please open an issue on Github if you run into issues migrating; it's a large rewrite and there might be a few sharp edges to cut! Hope you'll like this new release.

v9.3.7

Compare Source

v9.3.6

Compare Source

v9.3.5

Compare Source

  • Fix issue with plugins relying on internal inquirer packages file structure.

v9.3.4

Compare Source

v9.3.3

Compare Source

v9.3.2

Compare Source

v9.3.1

Compare Source

  • Fix risk of prototype injection.

v9.3.0

Compare Source

  • Replace chalk with picolors.
  • Drop many dependencies in favour of native functions when possible.

No impact expected, but it's a large changes in dependencies. Let us know if you run into any issues upgrading!

v9.2.23

Compare Source

v9.2.22

Compare Source

  • editor prompt: Fixed compatibility issue between default and waitUserInput options. #​1405

v9.2.21

Compare Source

v9.2.20

Compare Source

v9.2.19

Compare Source

v9.2.18

Compare Source

v9.2.17

Compare Source

v9.2.16

Compare Source

v9.2.15

Compare Source

v9.2.14

Compare Source

v9.2.13

Compare Source

v9.2.12

Compare Source

v9.2.11

Compare Source

v9.2.10

Compare Source

v9.2.9

Compare Source

  • Modified lodash imports to help with tree-shaking
  • Replace unmaintained through dependency (only affect users of the old bottom bar)

v9.2.8

Compare Source

v9.2.7

Compare Source

v9.2.6

Compare Source

v9.2.5

Compare Source

v9.2.4

Compare Source

v9.2.3

Compare Source

v9.2.2

Compare Source

v9.2.1

Compare Source

v9.2.0

Compare Source

v9.1.5

Compare Source

v9.1.4

Compare Source

Fix issue with the default value disappearing from prompt.

v9.1.3

Compare Source

v9.1.2

Compare Source

v9.1.1

Compare Source

v9.1.0

Compare Source

v9.0.2

Compare Source

v9.0.1

Compare Source

v9.0.0

Compare Source

Inquirer is now a native Node ECMAScript module. This will require your Node runtime to support es modules, and your app to be an es module. Node documentation over here: https://nodejs.org/api/esm.html#modules-ecmascript-modules

If you cannot migrate, please remember you can keep using the v8.x release line until you're ready.

v8.2.6

Compare Source

  • Bugfix: Fix a dependency who became ESM only

v8.2.5

Compare Source

v8.2.4

Compare Source

v8.2.3

Compare Source

  • Fix line wrapping with using with terminal links
  • Fix number prompt not working with negative numbers

v8.2.2

Compare Source

Fix bugs with the rawlist

v8.2.1

Compare Source

  • Fix bug when using both arrow keys and number keys on the rawList prompt.
  • Dependencies bump

v8.2.0

Compare Source

  • checkbox prompt: Update the help message to be more complete. And the help message is now shown until a selection is made.

v8.1.5

Compare Source

Fix older Node version compatibility issue.

v8.1.4

Compare Source

  • Fix an error being thrown inside the rawlist prompt

v8.1.3

Compare Source

Bug Fixes
  • Fix password prompt appearing when doing async filtering/validation
  • User being prompted a question even though it was answered when using nested answer object format.
  • Fix extra space appearing when using custom prefix.

And bump of all dependencies.

v8.1.2

Compare Source

  • Fix bug on rawList prompt
  • Bump dependencies

v8.1.1

Compare Source

Fix: Number prompt default behavior.

v8.1.0

Compare Source

New features
  • Now display a loading spinner while asynchronously filtering or validating data.
  • inquirer.prompt() now accept a shorthand object syntax instead of an array with named prompts:
const { foo, bar } = await inquirer.prompt({
  foo: {
    message: '...',
    default: '...',
  },
  bar: {
    default: '...',
  }
}):

v8.0.1

Compare Source

Fixes

  • Fix issue with duplicate keys in expand prompt not being caught if casing didn't match
  • Fix rawlist prompt ignoring short option
  • Rollback dependencies migrated to ESM causing issue for some users

And lastly general dependency upgrade (to non-ESM versions)

v8.0.0

Compare Source

  • Drop support for Node 10 (through dependencies)
  • Add postfix option to the editor prompt to allow easily turning on proper syntax highlighting

v7.3.3

Compare Source

  • Fix to release the readline on errors
  • Security patch (lodash)

v7.3.2

Compare Source

Fix the loop: false option in the checkbox prompt.

v7.3.1

Compare Source

  • Fix the loop: false option in the list prompt.

v7.3.0

Compare Source

  • New option loop (boolean) for list type prompts. This prevents the list from looping when reaching the top or bottom of the selection.
  • Bug fix: multi line list type prompts
  • Core: Bumped dependencies

v7.2.0: Inquirer v7.2.0

Compare Source

Enhancement
Bug Fix

v7.1.0

Compare Source

v7.0.7

Compare Source

v7.0.6

Compare Source

v7.0.5

Compare Source

Errors when running in non-TTY environment are now marked and catchable.

v7.0.4

Compare Source

v7.0.3

Compare Source

Revert broken fix done in 7.0.2

v7.0.2

Compare Source

~Work around bug affecting Windows user with Node 10 (#​767)~ (Reverted in v7.0.3)

v7.0.1

Compare Source

  • Hoist peer-dependencies to remove warning when using yarn

v7.0.0

Compare Source

  • @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.

v6.5.2

Compare Source

v6.5.1

Compare Source

v6.5.0

Compare Source

v6.4.1

Compare Source

v6.4.0

Compare Source

Bug Fix
  • Fix memory leak with some event listeners not being cleaned up after a prompting session.

v6.3.1

Compare Source

v6.2.2

Compare Source

v6.2.1

Compare Source

v6.2.0

Compare Source

  • Highlight the whole hovered row on the checkbox prompt
  • Any keypress will remove the default value on input prompt

v6.1.0

Compare Source

  • Pressing backspace on an empty input prompt now clears the default value.

v6.0.0

Compare Source

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.

v5.2.0

Compare Source

Now passing the answers hash in the transformer function arguments.

v5.1.0

Compare Source

  • Added a transformer option to the input prompt allowing you to modify the displayed user input. (Useful to modify colors as user type, etc)

v5.0.1

Compare Source

  • Fix: breaking change wrongly removed the Separator export.

v5.0.0

Compare Source

  • [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.

v4.0.2

Compare Source

Improve Windows rendering to properly match terminal size

v4.0.1

Compare Source

  • Update dependency to fix a LGPL license issue.

v4.0.0

Compare Source

  • 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.
  • Node 18 required

v3.3.0

Compare Source

  • Added prefix and suffix options to question object to allow you to edit the ? prefix or add a custom suffix.

v3.2.3

Compare Source

  • Fix bug where user input prompt containing ANSI code would offset the cursor.

v3.2.2

Compare Source

  • Fix BottomBar with multi-line content.

v3.2.1

Compare Source

  • Fix: gracefully exit process on SIGINT (stopped calling process.exit() directly)

v3.2.0

Compare Source

  • Change to list prompts default handling:
    • If number, default is the choice index
    • Any other defined values, find the value in the choice array. (previously it'd only support strings)
  • Bug: SIGINT was not properly exiting the process for some users
  • Cleanup: bump dependencies

v3.1.1

Compare Source

  • Fix: There was an issue with ESM/CJS imports interoperability that should now be fixed. Ref #​1297

v3.1.0

Compare Source

  • Review how force exit events are handled to make sure we restore the cursor properly.
  • Various dependencies bump (including TS 5.2.2)

v3.0.6

Compare Source

  • Fix help message not always disappearing after interaction in list prompt
  • Fix command line not properly cleaned when sending a SIGINT (ctrl-c) signal on Ubuntu

v3.0.5

Compare Source

Properly respect the pageSize option when deciding whether to paginate or not.

v3.0.4

Compare Source

Fix extra whitespace being printed #​506

v3.0.3

Compare Source

  • Unsure we properly unmute the stdout on force close.

v3.0.2

Compare Source

  • Properly reset the prompt state when a SIGINT signal is emitted. (this fix bug where texts under the input wouldn't be cleared off the terminal after emitting ctrl-c)
  • Fix bug with scrollable list centering

v3.0.1

Compare Source

  • Fix import bug

v3.0.0

Compare Source

  • Drop support for Node < 4
  • Allow failing async validation by rejecting the returned Promise
  • Fix bug with bottom bar

v2.0.0

Compare Source

  • Answer name with . are now expand in the answer object. e.g. name.sub would generate an answer object formatted as {name: {sub: 'answer'}}.
  • expand prompt default value if not specified is now help.
  • Drop support for node 0.10 and 0.12

v1.2.3

Compare Source

  • Fix bug with editor prompt #​442

v1.2.2

Compare Source

v1.2.1

Compare Source

v1.1.3

Compare Source

  • Fix bug where options passed to Inquirer were mutated.

v1.1.2

Compare Source

  • Fix list prompts being re-render each time enter key was pressed. (#​395)

v1.1.1

Compare Source

  • Correctly ignore validation on list prompts. (previously the function would be run and throw an exception)

Instead of validation, you can:

  1. Pass a function as choices so you can filter out invalid choices
  2. If you want the end user to see all choices, then make the invalid choice Separators. That way, they'll be seen, but won't be selectable.

v1.1.0

Compare Source

  • Add a new editor prompt to launch an editor allowing to easily enter multiline content - or edit file content.

v1.0.3

Compare Source

  • Allow falsy values as option value in expand prompt.

v1.0.2

Compare Source

  • Fix expand prompt to correctly use the value key as the prompt answer.
  • Fix documentation saying the expand prompt support the filter key.

v1.0.1

Compare Source

Fixes
  • Fix bug where inquirer would overwrite properties on the options passed in. Now we're making sure to not mutate your originals objects.
  • On the checkbox prompt, we're now only hiding the help message once the user click the space key instead of any keys.
  • Drop readline2 in favor of Node core version. This might fix some edge cases some users on windows encountered.

v1.0.0: - Rosebud

Compare Source

Say hello to promises!

The whole inquirer API is now based on promises!

  • The base API interface is now inquirer.prompt(questions).then(). There's no more callback function.
  • Any async question functions is taking a promise as return value instead of requiring this.async().
Breaking changes
  • filter is now always run before validate #​122
  • inquirer.prompt doesn't take a callback argument anymore
Bug fixes
  • Fixed list not displayed disabled options correctly #​321

And various other minor fixes and cleanup to the code base.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant