Skip to content

Commit f43c721

Browse files
authored
chore: update dependencies (#860)
- Replace the `inquirer` dependency with `@inquirer/prompts` as the former is now legacy. - Update the `log-symbols` dependency and the `sinon` development dependency to their new major versions. - Update all other dependencies & development dependencies to their latest versions.
1 parent 964aa53 commit f43c721

File tree

3 files changed

+22
-26
lines changed

3 files changed

+22
-26
lines changed

lib/cli.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import ora from 'ora';
22
import chalk from 'chalk';
3-
import inquirer from 'inquirer';
3+
import * as inquirer from '@inquirer/prompts';
44

55
import { warning, error, info, success } from './figures.js';
66

@@ -81,12 +81,10 @@ export default class CLI {
8181
return defaultAnswer;
8282
}
8383

84-
const { answer } = await inquirer.prompt([{
85-
type: questionType,
86-
name: 'answer',
84+
const answer = await inquirer[questionType]({
8785
message: question,
8886
default: defaultAnswer
89-
}]);
87+
});
9088

9189
if (isSpinning) {
9290
this.spinner.start(spinningMessage);

lib/update-v8/backport.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
promises as fs
44
} from 'node:fs';
55

6-
import inquirer from 'inquirer';
6+
import { confirm } from '@inquirer/prompts';
77
import { ListrEnquirerPromptAdapter } from '@listr2/prompt-adapter-enquirer';
88

99
import { shortSha } from '../utils.js';
@@ -12,14 +12,12 @@ import { getCurrentV8Version } from './common.js';
1212

1313
export async function checkOptions(options) {
1414
if (options.sha.length > 1 && options.squash) {
15-
const { wantSquash } = await inquirer.prompt([{
16-
type: 'confirm',
17-
name: 'wantSquash',
15+
const wantSquash = await confirm({
1816
message: 'Squashing commits should be avoided if possible, because it ' +
1917
'can make git bisection difficult. Only squash commits if they would ' +
2018
'break the build when applied individually. Are you sure?',
2119
default: false
22-
}]);
20+
});
2321

2422
if (!wantSquash) {
2523
return true;

package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,36 @@
3434
],
3535
"license": "MIT",
3636
"dependencies": {
37-
"@listr2/prompt-adapter-enquirer": "^2.0.10",
37+
"@inquirer/prompts": "^6.0.1",
38+
"@listr2/prompt-adapter-enquirer": "^2.0.11",
3839
"@node-core/caritat": "^1.6.0",
3940
"@pkgjs/nv": "^0.2.2",
40-
"branch-diff": "^3.0.4",
41+
"branch-diff": "^3.1.1",
4142
"chalk": "^5.3.0",
4243
"changelog-maker": "^4.1.1",
43-
"cheerio": "^1.0.0-rc.12",
44+
"cheerio": "^1.0.0",
4445
"clipboardy": "^4.0.0",
45-
"core-validate-commit": "^4.0.0",
46+
"core-validate-commit": "^4.1.0",
4647
"figures": "^6.1.0",
47-
"ghauth": "^6.0.5",
48-
"inquirer": "^9.3.2",
48+
"ghauth": "^6.0.7",
4949
"js-yaml": "^4.1.0",
50-
"listr2": "^8.2.3",
50+
"listr2": "^8.2.4",
5151
"lodash": "^4.17.21",
52-
"log-symbols": "^6.0.0",
53-
"ora": "^8.0.1",
54-
"replace-in-file": "^8.0.2",
55-
"undici": "^6.19.2",
52+
"log-symbols": "^7.0.0",
53+
"ora": "^8.1.0",
54+
"replace-in-file": "^8.2.0",
55+
"undici": "^6.19.8",
5656
"which": "^4.0.0",
5757
"yargs": "^17.7.2"
5858
},
5959
"devDependencies": {
60-
"@reporters/github": "^1.7.0",
60+
"@reporters/github": "^1.7.1",
6161
"c8": "^10.1.2",
62-
"eslint": "^8.57.0",
62+
"eslint": "^8.57.1",
6363
"eslint-config-standard": "^17.1.0",
64-
"eslint-plugin-import": "^2.29.1",
64+
"eslint-plugin-import": "^2.30.0",
6565
"eslint-plugin-n": "^16.6.2",
66-
"eslint-plugin-promise": "^6.4.0",
67-
"sinon": "^18.0.0"
66+
"eslint-plugin-promise": "^6.6.0",
67+
"sinon": "^19.0.2"
6868
}
6969
}

0 commit comments

Comments
 (0)