Skip to content

Commit 38f98d1

Browse files
chore(deps): update inquirer (#983)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [@inquirer/core](https://redirect.github.com/SBoudrias/Inquirer.js/blob/main/packages/core/README.md) ([source](https://redirect.github.com/SBoudrias/Inquirer.js)) | [`^10.1.15` → `^11.0.0`](https://renovatebot.com/diffs/npm/@inquirer%2fcore/10.3.2/11.1.0) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@inquirer%2fcore/11.1.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@inquirer%2fcore/10.3.2/11.1.0?slim=true) | | [@inquirer/input](https://redirect.github.com/SBoudrias/Inquirer.js/blob/main/packages/input/README.md) ([source](https://redirect.github.com/SBoudrias/Inquirer.js)) | [`^4.2.1` → `^5.0.0`](https://renovatebot.com/diffs/npm/@inquirer%2finput/4.3.1/5.0.3) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@inquirer%2finput/5.0.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@inquirer%2finput/4.3.1/5.0.3?slim=true) | | [@inquirer/password](https://redirect.github.com/SBoudrias/Inquirer.js/blob/main/packages/password/README.md) ([source](https://redirect.github.com/SBoudrias/Inquirer.js)) | [`^4.0.17` → `^5.0.0`](https://renovatebot.com/diffs/npm/@inquirer%2fpassword/4.0.23/5.0.3) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@inquirer%2fpassword/5.0.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@inquirer%2fpassword/4.0.23/5.0.3?slim=true) | | [@inquirer/select](https://redirect.github.com/SBoudrias/Inquirer.js/blob/main/packages/select/README.md) ([source](https://redirect.github.com/SBoudrias/Inquirer.js)) | [`^4.3.1` → `^5.0.0`](https://renovatebot.com/diffs/npm/@inquirer%2fselect/4.4.2/5.0.3) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@inquirer%2fselect/5.0.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@inquirer%2fselect/4.4.2/5.0.3?slim=true) | --- ### Release Notes <details> <summary>SBoudrias/Inquirer.js (@&#8203;inquirer/core)</summary> ### [`v11.1.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/inquirer%4011.1.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/core@11.0.2...@inquirer/core@11.1.0) - Now exports base utility Typescript types: `import type { Question, DistinctQuestion, Answers } from 'inquirer';` You should use as follow to keep the inference working properly: ```ts 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`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/inquirer%4011.0.2) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/core@11.0.1...@inquirer/core@11.0.2) - Fix [#&#8203;1555](https://redirect.github.com/SBoudrias/Inquirer.js/issues/1555): `when` behaviour changed unexpectedly when returning a falsy value. ### [`v11.0.1`](https://redirect.github.com/SBoudrias/Inquirer.js/compare/inquirer@11.0.0...inquirer@11.0.1) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/core@11.0.0...@inquirer/core@11.0.1) ### [`v11.0.0`](https://redirect.github.com/SBoudrias/Inquirer.js/releases/tag/inquirer%4011.0.0) [Compare Source](https://redirect.github.com/SBoudrias/Inquirer.js/compare/@inquirer/core@10.3.2...@inquirer/core@11.0.0) 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`. </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/apify/apify-cli). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zMi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNjkuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vlad Frangu <me@vladfrangu.dev>
1 parent e0437db commit 38f98d1

3 files changed

Lines changed: 57 additions & 88 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
"@apify/input_schema": "^3.17.0",
7070
"@apify/utilities": "^2.18.0",
7171
"@crawlee/memory-storage": "^3.12.0",
72-
"@inquirer/core": "^10.1.15",
73-
"@inquirer/input": "^4.2.1",
74-
"@inquirer/password": "^4.0.17",
75-
"@inquirer/select": "^4.3.1",
72+
"@inquirer/core": "^11.0.0",
73+
"@inquirer/input": "^5.0.0",
74+
"@inquirer/password": "^5.0.0",
75+
"@inquirer/select": "^5.0.0",
7676
"@root/walk": "~1.1.0",
7777
"@sapphire/duration": "^1.1.2",
7878
"@sapphire/result": "^2.7.2",

src/lib/hooks/user-confirmations/useSelectFromList.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,11 @@ interface UseSelectFromListInput<T> {
1010
pageSize?: number;
1111
loop?: boolean;
1212
default?: unknown;
13-
instructions?: {
14-
navigation: string;
15-
pager: string;
16-
};
1713
}
1814

1915
export const useSelectFromList = stdinCheckWrapper(
20-
async ({
21-
message,
22-
choices,
23-
pageSize,
24-
loop,
25-
default: defaultValue,
26-
instructions,
27-
}: UseSelectFromListInput<unknown>) => {
28-
const result = await select({ message, choices, pageSize, loop, default: defaultValue, instructions });
16+
async ({ message, choices, pageSize, loop, default: defaultValue }: UseSelectFromListInput<unknown>) => {
17+
const result = await select({ message, choices, pageSize, loop, default: defaultValue });
2918

3019
return result;
3120
},

yarn.lock

Lines changed: 51 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -900,99 +900,97 @@ __metadata:
900900
languageName: node
901901
linkType: hard
902902

903-
"@inquirer/ansi@npm:^1.0.2":
904-
version: 1.0.2
905-
resolution: "@inquirer/ansi@npm:1.0.2"
906-
checksum: 10c0/8e408cc628923aa93402e66657482ccaa2ad5174f9db526d9a8b443f9011e9cd8f70f0f534f5fe3857b8a9df3bce1e25f66c96f666d6750490bd46e2b4f3b829
903+
"@inquirer/ansi@npm:^2.0.2":
904+
version: 2.0.2
905+
resolution: "@inquirer/ansi@npm:2.0.2"
906+
checksum: 10c0/dd51378cbe358fb968fb5a686e88bede90930cf17ee75ea158f410dbef4ff2a108026159ee38699489c2247b29bedb8100d1f6081a8b63213aaba2ffc6ff2287
907907
languageName: node
908908
linkType: hard
909909

910-
"@inquirer/core@npm:^10.1.15, @inquirer/core@npm:^10.3.2":
911-
version: 10.3.2
912-
resolution: "@inquirer/core@npm:10.3.2"
910+
"@inquirer/core@npm:^11.0.0, @inquirer/core@npm:^11.1.0":
911+
version: 11.1.0
912+
resolution: "@inquirer/core@npm:11.1.0"
913913
dependencies:
914-
"@inquirer/ansi": "npm:^1.0.2"
915-
"@inquirer/figures": "npm:^1.0.15"
916-
"@inquirer/type": "npm:^3.0.10"
914+
"@inquirer/ansi": "npm:^2.0.2"
915+
"@inquirer/figures": "npm:^2.0.2"
916+
"@inquirer/type": "npm:^4.0.2"
917917
cli-width: "npm:^4.1.0"
918-
mute-stream: "npm:^2.0.0"
918+
mute-stream: "npm:^3.0.0"
919919
signal-exit: "npm:^4.1.0"
920-
wrap-ansi: "npm:^6.2.0"
921-
yoctocolors-cjs: "npm:^2.1.3"
920+
wrap-ansi: "npm:^9.0.2"
922921
peerDependencies:
923922
"@types/node": ">=18"
924923
peerDependenciesMeta:
925924
"@types/node":
926925
optional: true
927-
checksum: 10c0/f0f27e07fe288e01e3949b4ad216c19751f025ce77c610366e08d8b0f7a135d064dc074732031d251584b454c576f1e5c849e4abe259186dd5d4974c8f85c13e
926+
checksum: 10c0/5bd50d751c0f0714e8ff666f6ef888c321cfbfb459cca31030f930081fb2f44833609183feaac9f25f986fd75b2cf7b87313a20f28ac040ab91936daeb8a8161
928927
languageName: node
929928
linkType: hard
930929

931-
"@inquirer/figures@npm:^1.0.15":
932-
version: 1.0.15
933-
resolution: "@inquirer/figures@npm:1.0.15"
934-
checksum: 10c0/6e39a040d260ae234ae220180b7994ff852673e20be925f8aa95e78c7934d732b018cbb4d0ec39e600a410461bcb93dca771e7de23caa10630d255692e440f69
930+
"@inquirer/figures@npm:^2.0.2":
931+
version: 2.0.2
932+
resolution: "@inquirer/figures@npm:2.0.2"
933+
checksum: 10c0/12353dc765c001bc7df4d4570eaa25dba53af4553d02d231e69104e289918327ca3af3626a29885616d35e5d397fc3bfd4bbcc3e2c8d668d3064dd30c3fdf43b
935934
languageName: node
936935
linkType: hard
937936

938-
"@inquirer/input@npm:^4.2.1":
939-
version: 4.3.1
940-
resolution: "@inquirer/input@npm:4.3.1"
937+
"@inquirer/input@npm:^5.0.0":
938+
version: 5.0.3
939+
resolution: "@inquirer/input@npm:5.0.3"
941940
dependencies:
942-
"@inquirer/core": "npm:^10.3.2"
943-
"@inquirer/type": "npm:^3.0.10"
941+
"@inquirer/core": "npm:^11.1.0"
942+
"@inquirer/type": "npm:^4.0.2"
944943
peerDependencies:
945944
"@types/node": ">=18"
946945
peerDependenciesMeta:
947946
"@types/node":
948947
optional: true
949-
checksum: 10c0/9e81d6ae56e5b59f96475ae1327e7e7beeef0d917b83762e0c2ed5a75239ad6b1a39fc05553ce45fe6f6de49681dade8704b5f1c11c2f555663a74d0ac998af3
948+
checksum: 10c0/24f0445f951faff23fb011a4036fbeb33c279edb5965922c69f164406f719f34d9de4e70bfc74a3ec34f7cc74e341571592ff0bcf80a5dd59a6c0f0058ab95cd
950949
languageName: node
951950
linkType: hard
952951

953-
"@inquirer/password@npm:^4.0.17":
954-
version: 4.0.23
955-
resolution: "@inquirer/password@npm:4.0.23"
952+
"@inquirer/password@npm:^5.0.0":
953+
version: 5.0.3
954+
resolution: "@inquirer/password@npm:5.0.3"
956955
dependencies:
957-
"@inquirer/ansi": "npm:^1.0.2"
958-
"@inquirer/core": "npm:^10.3.2"
959-
"@inquirer/type": "npm:^3.0.10"
956+
"@inquirer/ansi": "npm:^2.0.2"
957+
"@inquirer/core": "npm:^11.1.0"
958+
"@inquirer/type": "npm:^4.0.2"
960959
peerDependencies:
961960
"@types/node": ">=18"
962961
peerDependenciesMeta:
963962
"@types/node":
964963
optional: true
965-
checksum: 10c0/9fd3d0462d02735bb1521c4e221d057a94d9aaac308e9a192e59d6c1e8efc707c2376ab627151d589bc3633f6b14b74b60b91c3d473a32adfd100ef1f6cfdef7
964+
checksum: 10c0/92102807addbeab0ba10c01f4cd9d6ef66d4f7cabbca294acae03153322663cdcb8b80250d21ec8c9b6996719bccb0a0aea41d03b4829a2ffc182a85ffc19180
966965
languageName: node
967966
linkType: hard
968967

969-
"@inquirer/select@npm:^4.3.1":
970-
version: 4.4.2
971-
resolution: "@inquirer/select@npm:4.4.2"
968+
"@inquirer/select@npm:^5.0.0":
969+
version: 5.0.3
970+
resolution: "@inquirer/select@npm:5.0.3"
972971
dependencies:
973-
"@inquirer/ansi": "npm:^1.0.2"
974-
"@inquirer/core": "npm:^10.3.2"
975-
"@inquirer/figures": "npm:^1.0.15"
976-
"@inquirer/type": "npm:^3.0.10"
977-
yoctocolors-cjs: "npm:^2.1.3"
972+
"@inquirer/ansi": "npm:^2.0.2"
973+
"@inquirer/core": "npm:^11.1.0"
974+
"@inquirer/figures": "npm:^2.0.2"
975+
"@inquirer/type": "npm:^4.0.2"
978976
peerDependencies:
979977
"@types/node": ">=18"
980978
peerDependenciesMeta:
981979
"@types/node":
982980
optional: true
983-
checksum: 10c0/6978a5a92928b4d439dd6b688f2db51fd49be209f24be224bb81ed8f75b76e0715e79bdb05dab2a33bbdc7091c779a99f8603fe0ca199f059528ca2b1d0d4944
981+
checksum: 10c0/cc2bd79ac09d1693a962b661ab07db49809a9ef280ce2f26f5fc2fe037a423837b9e7ce2b014048959d9c9c1500ec22d52267857ddbea53a84da09e2d4fbd755
984982
languageName: node
985983
linkType: hard
986984

987-
"@inquirer/type@npm:^3.0.10":
988-
version: 3.0.10
989-
resolution: "@inquirer/type@npm:3.0.10"
985+
"@inquirer/type@npm:^4.0.2":
986+
version: 4.0.2
987+
resolution: "@inquirer/type@npm:4.0.2"
990988
peerDependencies:
991989
"@types/node": ">=18"
992990
peerDependenciesMeta:
993991
"@types/node":
994992
optional: true
995-
checksum: 10c0/a846c7a570e3bf2657d489bcc5dcdc3179d24c7323719de1951dcdb722400ac76e5b2bfe9765d0a789bc1921fac810983d7999f021f30a78a6a174c23fc78dc9
993+
checksum: 10c0/cebf454dbed948809025d64807e60e333df6b9c8eac1090a1c4c07e51a9a03ffbe295ebb723ce1029cf28e66a1c6822e8290702dec006170cce4ff39264316f5
996994
languageName: node
997995
linkType: hard
998996

@@ -2316,10 +2314,10 @@ __metadata:
23162314
"@crawlee/memory-storage": "npm:^3.12.0"
23172315
"@crawlee/types": "npm:^3.11.1"
23182316
"@cucumber/cucumber": "npm:^12.0.0"
2319-
"@inquirer/core": "npm:^10.1.15"
2320-
"@inquirer/input": "npm:^4.2.1"
2321-
"@inquirer/password": "npm:^4.0.17"
2322-
"@inquirer/select": "npm:^4.3.1"
2317+
"@inquirer/core": "npm:^11.0.0"
2318+
"@inquirer/input": "npm:^5.0.0"
2319+
"@inquirer/password": "npm:^5.0.0"
2320+
"@inquirer/select": "npm:^5.0.0"
23232321
"@root/walk": "npm:~1.1.0"
23242322
"@sapphire/duration": "npm:^1.1.2"
23252323
"@sapphire/result": "npm:^2.7.2"
@@ -6817,10 +6815,10 @@ __metadata:
68176815
languageName: node
68186816
linkType: hard
68196817

6820-
"mute-stream@npm:^2.0.0":
6821-
version: 2.0.0
6822-
resolution: "mute-stream@npm:2.0.0"
6823-
checksum: 10c0/2cf48a2087175c60c8dcdbc619908b49c07f7adcfc37d29236b0c5c612d6204f789104c98cc44d38acab7b3c96f4a3ec2cfdc4934d0738d876dbefa2a12c69f4
6818+
"mute-stream@npm:^3.0.0":
6819+
version: 3.0.0
6820+
resolution: "mute-stream@npm:3.0.0"
6821+
checksum: 10c0/12cdb36a101694c7a6b296632e6d93a30b74401873cf7507c88861441a090c71c77a58f213acadad03bc0c8fa186639dec99d68a14497773a8744320c136e701
68246822
languageName: node
68256823
linkType: hard
68266824

@@ -9658,17 +9656,6 @@ __metadata:
96589656
languageName: node
96599657
linkType: hard
96609658

9661-
"wrap-ansi@npm:^6.2.0":
9662-
version: 6.2.0
9663-
resolution: "wrap-ansi@npm:6.2.0"
9664-
dependencies:
9665-
ansi-styles: "npm:^4.0.0"
9666-
string-width: "npm:^4.1.0"
9667-
strip-ansi: "npm:^6.0.0"
9668-
checksum: 10c0/baad244e6e33335ea24e86e51868fe6823626e3a3c88d9a6674642afff1d34d9a154c917e74af8d845fd25d170c4ea9cf69a47133c3f3656e1252b3d462d9f6c
9669-
languageName: node
9670-
linkType: hard
9671-
96729659
"wrap-ansi@npm:^8.1.0":
96739660
version: 8.1.0
96749661
resolution: "wrap-ansi@npm:8.1.0"
@@ -9680,7 +9667,7 @@ __metadata:
96809667
languageName: node
96819668
linkType: hard
96829669

9683-
"wrap-ansi@npm:^9.0.0":
9670+
"wrap-ansi@npm:^9.0.0, wrap-ansi@npm:^9.0.2":
96849671
version: 9.0.2
96859672
resolution: "wrap-ansi@npm:9.0.2"
96869673
dependencies:
@@ -9760,13 +9747,6 @@ __metadata:
97609747
languageName: node
97619748
linkType: hard
97629749

9763-
"yoctocolors-cjs@npm:^2.1.3":
9764-
version: 2.1.3
9765-
resolution: "yoctocolors-cjs@npm:2.1.3"
9766-
checksum: 10c0/584168ef98eb5d913473a4858dce128803c4a6cd87c0f09e954fa01126a59a33ab9e513b633ad9ab953786ed16efdd8c8700097a51635aafaeed3fef7712fa79
9767-
languageName: node
9768-
linkType: hard
9769-
97709750
"yoctocolors@npm:^2.1.1":
97719751
version: 2.1.2
97729752
resolution: "yoctocolors@npm:2.1.2"

0 commit comments

Comments
 (0)