Update dependency @inquirer/prompts to v8 #86
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.0.0->^8.0.0Release Notes
SBoudrias/Inquirer.js (@inquirer/prompts)
v8.0.2Compare Source
moduleResolutionis set tocommonjs(you probably want to fix that in your project if it's still in your tsconfig)v8.0.1Compare Source
v8.0.0Compare Source
Release Notes
🚨 Breaking Changes
This is a major release that modernizes the codebase for Node.js ≥ 20.
ESM Only - No More CommonJS Support
Impact: All packages are now ESM-only. CommonJS imports are no longer supported.
If you're on modern Node versions (≥ 20), this should be transparent and have no impact.
Node.js Version Requirement
Minimum Node.js version is now 20.x
Node.js versions below 20 are no longer supported. Please upgrade to Node.js 20 or later.
Node min versions:
>=23.5.0 || ^22.13.0 || ^21.7.0 || ^20.12.0Deprecated APIs Removed
The following deprecated APIs have been removed after being deprecated in previous releases:
listprompt alias removed (affectsinquirerpackage only)The
listalias has been removed from theinquirerpackage. This only impacts users of the legacyinquirerpackage, not users of@inquirer/promptsor individual prompt packages.helpModetheme property removedThis affects the following prompts:
@inquirer/checkbox@inquirer/search@inquirer/selectinstructionsconfig property removedThis affects the following prompts:
@inquirer/checkbox@inquirer/search@inquirer/selectcancel()method removedThe
cancel()method on prompt return customPromisehas been removed.Color Library Change: yoctocolors → Node.js
styleTextInternal change: The project now uses Node.js built-in
util.styleText()instead of theyoctocolorspackage for terminal colors. This makes Inquirer smaller and reduces risks of vulnerabilities coming from transitive dependencies.v7.10.1Compare Source
v7.10.0Compare Source
@inquirer/input: Now support simple RegExp validation withpattern/patternError.@inquirer/editor: Fix typos/waitForUseInput/waitForUserInputv7.9.0Compare Source
theme.style.keysHelpTip.theme.keybindingsv7.8.6Compare Source
v7.8.5Compare Source
v7.8.4Compare Source
v7.8.3Compare Source
yesnot properly being processed by the confirm prompt. (yes | node confirm-script.js)v7.8.2Compare Source
@types/nodean optional peer dependency.v7.8.1Compare Source
external-editordependency with new@inquirer/external-editor. This remove the vulnerabletmptransitive dependency from the dependency tree.v7.8.0Compare Source
instructionsconfig to allow localizing the help tips.v7.7.1Compare Source
indexMode: numbertheme option didn't properly calculate the items indexes if separators where present in between choices.v7.7.0Compare Source
v7.6.0Compare Source
-
inputprompt: Newprefilloption to control if thedefaultvalue is editable inline or only after pressingtab.v7.5.3Compare Source
select,checkboxandsearchprompts was fully rewritten to handle edge cases around rendering multi-line choices and pointer positioning.v7.5.2Compare Source
v7.5.1Compare Source
v7.5.0Compare Source
instructionsoption allowing to customize the messages in the help tips.@inquirer/selectprompt. Also added aloopoption to control the list loop behaviour when reaching the boundaries.v7.4.1Compare Source
numberprompt (typescript): If prompt is required, only number can be returned. (previously was nullable)v7.4.0Compare Source
v7.3.3Compare Source
--frozen-intrinsicsflag.This fix is also released through patches of all specific prompts packages.
v7.3.2Compare Source
v7.3.1Compare Source
@types/nodeas an optional peer dependency across all packages.v7.3.0Compare Source
v7.2.4Compare Source
v7.2.3Compare Source
v7.2.2Compare Source
v7.2.1Compare Source
v7.2.0: Inquirer v7.2.0Compare Source
Enhancement
039a55c#923 Only import used lodash methods. (@merceyz)Bug Fix
a1171d2#918 Fix@inquirer/confirmformatted output value. (@rbardini)1bf6413Fixenginesfield for Node.js 8. (@LitoMore)v7.1.0Compare Source
v7.0.1Compare Source
v7.0.0Compare Source
@types/nodeis now only apeerDependencies. 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 runnpm install --dev @​types/node/yarn add --dev @​types/node.v6.0.1Compare Source
v6.0.0Compare Source
No technical breaking changes; but we changed the style of the question
prefixonce 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.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 becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.