From: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:25:32 +0000 (-0500) Subject: chore(deps): update dependency execa to v8 (#9266) X-Git-Tag: v3.3.5~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30c6b12957c76fbdbaf738a59024d3f231bcb812;p=thirdparty%2Fvuejs%2Fcore.git chore(deps): update dependency execa to v8 (#9266) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: 三咲智子 Kevin Deng --- diff --git a/package.json b/package.json index 1b08c54e85..0bdec3084f 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "eslint": "^8.49.0", "eslint-plugin-jest": "^27.4.0", "estree-walker": "^2.0.2", - "execa": "^4.1.0", + "execa": "^8.0.1", "jsdom": "^22.1.0", "lint-staged": "^14.0.1", "lodash": "^4.17.21", diff --git a/packages/sfc-playground/package.json b/packages/sfc-playground/package.json index 4455a801d3..7eca6b512e 100644 --- a/packages/sfc-playground/package.json +++ b/packages/sfc-playground/package.json @@ -1,6 +1,7 @@ { "name": "@vue/sfc-playground", "version": "3.3.4", + "type": "module", "private": true, "scripts": { "dev": "vite", diff --git a/packages/sfc-playground/vite.config.ts b/packages/sfc-playground/vite.config.ts index 8b93d1d312..df5441cb0f 100644 --- a/packages/sfc-playground/vite.config.ts +++ b/packages/sfc-playground/vite.config.ts @@ -2,9 +2,9 @@ import fs from 'fs' import path from 'path' import { defineConfig, Plugin } from 'vite' import vue from '@vitejs/plugin-vue' -import execa from 'execa' +import { execaSync } from 'execa' -const commit = execa.sync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7) +const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7) export default defineConfig({ plugins: [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 24ead2e1e9..7e99620529 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,8 +72,8 @@ importers: specifier: ^2.0.2 version: 2.0.2 execa: - specifier: ^4.1.0 - version: 4.1.0 + specifier: ^8.0.1 + version: 8.0.1 jsdom: specifier: ^22.1.0 version: 22.1.0 @@ -3116,21 +3116,6 @@ packages: resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==} dev: true - /execa@4.1.0: - resolution: {integrity: sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==} - engines: {node: '>=10'} - dependencies: - cross-spawn: 7.0.3 - get-stream: 5.2.0 - human-signals: 1.1.1 - is-stream: 2.0.1 - merge-stream: 2.0.0 - npm-run-path: 4.0.1 - onetime: 5.1.2 - signal-exit: 3.0.7 - strip-final-newline: 2.0.0 - dev: true - /execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -3161,6 +3146,21 @@ packages: strip-final-newline: 3.0.0 dev: true + /execa@8.0.1: + resolution: {integrity: sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==} + engines: {node: '>=16.17'} + dependencies: + cross-spawn: 7.0.3 + get-stream: 8.0.1 + human-signals: 5.0.0 + is-stream: 3.0.0 + merge-stream: 2.0.0 + npm-run-path: 5.1.0 + onetime: 6.0.0 + signal-exit: 4.1.0 + strip-final-newline: 3.0.0 + dev: true + /extract-zip@2.0.1: resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==} engines: {node: '>= 10.17.0'} @@ -3378,6 +3378,11 @@ packages: engines: {node: '>=10'} dev: true + /get-stream@8.0.1: + resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} + engines: {node: '>=16'} + dev: true + /get-symbol-description@1.0.0: resolution: {integrity: sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==} engines: {node: '>= 0.4'} @@ -3649,11 +3654,6 @@ packages: - supports-color dev: true - /human-signals@1.1.1: - resolution: {integrity: sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==} - engines: {node: '>=8.12.0'} - dev: true - /human-signals@2.1.0: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} @@ -3664,6 +3664,11 @@ packages: engines: {node: '>=14.18.0'} dev: true + /human-signals@5.0.0: + resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==} + engines: {node: '>=16.17.0'} + dev: true + /iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} @@ -5565,6 +5570,11 @@ packages: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: true + /signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + dev: true + /simple-git-hooks@2.9.0: resolution: {integrity: sha512-waSQ5paUQtyGC0ZxlHmcMmD9I1rRXauikBwX31bX58l5vTOhCEcBC5Bi+ZDkPXTjDnZAF8TbCqKBY+9+sVPScw==} hasBin: true diff --git a/scripts/build.js b/scripts/build.js index 1f8af65017..eb1ac33ac4 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -22,7 +22,7 @@ import path from 'node:path' import minimist from 'minimist' import { gzipSync, brotliCompressSync } from 'node:zlib' import chalk from 'chalk' -import execa from 'execa' +import { execa, execaSync } from 'execa' import { cpus } from 'node:os' import { createRequire } from 'node:module' import { targets as allTargets, fuzzyMatchTarget } from './utils.js' @@ -40,7 +40,7 @@ const sourceMap = args.sourcemap || args.s const isRelease = args.release const buildAllMatching = args.all || args.a const writeSize = args.size -const commit = execa.sync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7) +const commit = execaSync('git', ['rev-parse', 'HEAD']).stdout.slice(0, 7) const sizeDir = path.resolve('temp/size') diff --git a/scripts/const-enum.js b/scripts/const-enum.js index 0e262285f1..e9f25bcef5 100644 --- a/scripts/const-enum.js +++ b/scripts/const-enum.js @@ -14,7 +14,7 @@ * This file is expected to be executed with project root as cwd. */ -import execa from 'execa' +import { execaSync } from 'execa' import { existsSync, mkdirSync, @@ -45,7 +45,7 @@ export function scanEnums() { } // 1. grep for files with exported const enum - const { stdout } = execa.sync('git', ['grep', `export const enum`]) + const { stdout } = execaSync('git', ['grep', `export const enum`]) const files = [...new Set(stdout.split('\n').map(line => line.split(':')[0]))] // 2. parse matched files to collect enum info diff --git a/scripts/release.js b/scripts/release.js index 2c91cbbafa..3d29b8b2c6 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -5,7 +5,7 @@ import path from 'node:path' import chalk from 'chalk' import semver from 'semver' import enquirer from 'enquirer' -import execa from 'execa' +import { execa } from 'execa' import { createRequire } from 'node:module' import { fileURLToPath } from 'node:url'