From 9973770b43dde84d66fbf73725716e82107db635 Mon Sep 17 00:00:00 2001 From: Rahul Mishra Date: Wed, 13 Dec 2023 05:46:13 +0530 Subject: [PATCH] chore(create-next-app): bump prompts to v2.4.2 (#59006) This PR updates `prompts` to `v2.4.2`, it fixes a bug I found and I haven't seen any reports about it. ## The Bug [Screencast from 2023-11-28 17-58-41.webm](https://github.com/vercel/next.js/assets/130567419/cf17f0d8-39f3-4ced-80ca-9fb5962587d8) There was a bug in `prompts` where it didn't handle Home and End button correctly. It has been fixed in later version. I have updated `prompts` along with `@types/prompts` to latest available version which is `v2.4.2`. Co-authored-by: JJ Kasper --- packages/create-next-app/package.json | 4 ++-- pnpm-lock.yaml | 27 +++++++++++++++------------ 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/packages/create-next-app/package.json b/packages/create-next-app/package.json index 8b3d96342481a..b6e1483c83871 100644 --- a/packages/create-next-app/package.json +++ b/packages/create-next-app/package.json @@ -33,7 +33,7 @@ "@types/ci-info": "2.0.0", "@types/cross-spawn": "6.0.0", "@types/node": "^20.2.5", - "@types/prompts": "2.0.1", + "@types/prompts": "2.4.2", "@types/tar": "6.1.5", "@types/validate-npm-package-name": "3.0.0", "@vercel/ncc": "0.34.0", @@ -46,7 +46,7 @@ "got": "10.7.0", "picocolors": "1.0.0", "prettier-plugin-tailwindcss": "0.3.0", - "prompts": "2.1.0", + "prompts": "2.4.2", "tar": "6.1.15", "update-check": "1.5.4", "validate-npm-package-name": "3.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af183195ed39e..3f18044a4f372 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -687,8 +687,8 @@ importers: specifier: 20.2.5 version: 20.2.5 '@types/prompts': - specifier: 2.0.1 - version: 2.0.1 + specifier: 2.4.2 + version: 2.4.2 '@types/tar': specifier: 6.1.5 version: 6.1.5 @@ -726,8 +726,8 @@ importers: specifier: 0.3.0 version: 0.3.0(prettier@2.8.8) prompts: - specifier: 2.1.0 - version: 2.1.0 + specifier: 2.4.2 + version: 2.4.2 tar: specifier: 6.1.15 version: 6.1.15 @@ -6690,8 +6690,11 @@ packages: resolution: {integrity: sha512-U0o4K+GNiK0PNxoDwd8xRnvLVe4kzei6opn3/FCjAriqaP+rfrDdSl1kP/hLL6Y3/Y3hhGnBwD4dCkkAqs1W/Q==} dev: true - /@types/prompts@2.0.1: - resolution: {integrity: sha512-AhtMcmETelF8wFDV1ucbChKhLgsc+ytXZXkNz/nnTAMSDeqsjALknEFxi7ZtLgS/G8bV2rp90LhDW5SGACimIQ==} + /@types/prompts@2.4.2: + resolution: {integrity: sha512-TwNx7qsjvRIUv/BCx583tqF5IINEVjCNqg9ofKHRlSoUHE62WBHrem4B1HGXcIrG511v29d1kJ9a/t2Esz7MIg==} + dependencies: + '@types/node': 20.2.5 + kleur: 3.0.3 dev: true /@types/prop-types@15.7.8: @@ -9651,7 +9654,7 @@ packages: graceful-fs: 4.2.11 jest-config: 29.7.0(@types/node@20.2.5) jest-util: 29.7.0 - prompts: 2.1.0 + prompts: 2.4.2 transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -19965,12 +19968,12 @@ packages: asap: 2.0.6 dev: true - /prompts@2.1.0: - resolution: {integrity: sha512-+x5TozgqYdOwWsQFZizE/Tra3fKvAoy037kOyU6cgz84n8f6zxngLOV4O32kTwt9FcLCxAqw0P/c8rOr9y+Gfg==} + /prompts@2.4.2: + resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} engines: {node: '>= 6'} dependencies: kleur: 3.0.3 - sisteransi: 1.0.4 + sisteransi: 1.0.5 dev: true /promzard@0.3.0: @@ -21755,8 +21758,8 @@ packages: mime: 2.5.2 totalist: 1.1.0 - /sisteransi@1.0.4: - resolution: {integrity: sha512-/ekMoM4NJ59ivGSfKapeG+FWtrmWvA1p6FBZwXrqojw90vJu8lBmrTxCMuBCydKtkaUe2zt4PlxeTKpjwMbyig==} + /sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} dev: true /slash@1.0.0: